PythonQtWrapper_QGLColormap.h
41 lines
| 1.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGLCOLORMAP_H | ||
#define PYTHONQTWRAPPER_QGLCOLORMAP_H | ||||
#include <qglcolormap.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qcolor.h> | ||||
#include <qglcolormap.h> | ||||
florianlink
|
r24 | class PythonQtShell_QGLColormap : public QGLColormap | ||
{ | ||||
public: | ||||
PythonQtShell_QGLColormap():QGLColormap(),_wrapper(NULL) {}; | ||||
PythonQtShell_QGLColormap(const QGLColormap& arg__1):QGLColormap(arg__1),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QGLColormap : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QGLColormap* new_QGLColormap(); | ||||
QGLColormap* new_QGLColormap(const QGLColormap& arg__1); | ||||
void delete_QGLColormap(QGLColormap* obj) { delete obj; } | ||||
unsigned int entryRgb(QGLColormap* theWrappedObject, int idx) const; | ||||
void setEntry(QGLColormap* theWrappedObject, int idx, const QColor& color); | ||||
florianlink
|
r28 | void setEntries(QGLColormap* theWrappedObject, int count, const unsigned int* colors, int base = 0); | ||
void setEntry(QGLColormap* theWrappedObject, int idx, unsigned int color); | ||||
florianlink
|
r24 | QColor entryColor(QGLColormap* theWrappedObject, int idx) const; | ||
int findNearest(QGLColormap* theWrappedObject, unsigned int color) const; | ||||
bool isEmpty(QGLColormap* theWrappedObject) const; | ||||
int find(QGLColormap* theWrappedObject, unsigned int color) const; | ||||
florianlink
|
r28 | int size(QGLColormap* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QGLCOLORMAP_H | ||||