#ifndef QGLCOLORMAP_H
#define QGLCOLORMAP_H
#include <QtGui/qcolor.h>
#include <QtCore/qvector.h>
typedef enum QtValidLicenseForOpenGLModule QtOpenGLModule;
class QGLColormap{
public: QGLColormap();
public: QGLColormap(class QGLColormap const &);
public: ~QGLColormap();
public: class QGLColormap& operator =(class QGLColormap const &);
public: bool isEmpty() const
public: int size() const
public: void setEntries(int count, QRgb const * colors, int base = 0);
public: void setEntry(int idx, QRgb color);
public: void setEntry(int idx, class QColor const & color);
public: QRgb entryRgb(int idx) const
public: class QColor entryColor(int idx) const
public: int find(QRgb color) const
public: int findNearest(QRgb color) const
protected: inline Qt::HANDLE handle();
protected: inline void setHandle(Qt::HANDLE ahandle);
private: struct QGLColormapData{
public: struct QBasicAtomic ref;
public: class QVector < unsigned int >* cells;
public: Qt::HANDLE cmapHandle;
};
private: struct QGLColormap::QGLColormapData* d;
private: static struct QGLColormap::QGLColormapData shared_null;
private: static void cleanup(struct QGLColormap::QGLColormapData* x);
private: void detach_helper();
public: inline void detach();
friend struct QGLWidget;
friend struct QGLWidgetPrivate;
};
struct QGLWidget;
struct QGLWidgetPrivate;
#endif // QGLCOLORMAP_H