Definition at line 54 of file qglcolormap.h.
#include <qglcolormap.h>
Classes |
|
| struct | QGLColormapData |
Public Member Functions |
|
| QGLColormap () | |
| QGLColormap (const QGLColormap &) | |
| ~QGLColormap () | |
| QGLColormap & | operator= (const QGLColormap &) |
| bool | isEmpty () const |
| int | size () const |
| void | detach () |
| void | setEntries (int count, const QRgb *colors, int base=0) |
| void | setEntry (int idx, QRgb color) |
| void | setEntry (int idx, const QColor &color) |
| QRgb | entryRgb (int idx) const |
| QColor | entryColor (int idx) const |
| int | find (QRgb color) const |
| int | findNearest (QRgb color) const |
Protected Member Functions |
|
| Qt::HANDLE | handle () |
| void | setHandle (Qt::HANDLE ahandle) |
Friends |
|
| class | QGLWidget |
| class | QGLWidgetPrivate |
| QGLColormap | ( | ) |
| QGLColormap | ( | const QGLColormap & | ) |
| ~QGLColormap | ( | ) |
| QGLColormap& operator= | ( | const QGLColormap & | ) |
| bool isEmpty | ( | ) | const |
| int size | ( | ) | const |
| void detach | ( | ) | [inline] |
Definition at line 95 of file qglcolormap.h.
{
if (d->ref != 1)
detach_helper();
}
| void setEntries | ( | int | count, |
| const QRgb * | colors, | ||
| int | base = 0 |
||
| ) |
| void setEntry | ( | int | idx, |
| QRgb | color | ||
| ) |
| void setEntry | ( | int | idx, |
| const QColor & | color | ||
| ) |
| QRgb entryRgb | ( | int | idx | ) | const |
| QColor entryColor | ( | int | idx | ) | const |
| int find | ( | QRgb | color | ) | const |
| int findNearest | ( | QRgb | color | ) | const |
| Qt::HANDLE handle | ( | ) | [inline, protected] |
Definition at line 76 of file qglcolormap.h.
{ return d ? d->cmapHandle : 0; }
| void setHandle | ( | Qt::HANDLE | ahandle | ) | [inline, protected] |
Definition at line 77 of file qglcolormap.h.
{ d->cmapHandle = ahandle; }
friend class QGLWidget [friend] |
Definition at line 91 of file qglcolormap.h.
friend class QGLWidgetPrivate
[friend] |
Definition at line 92 of file qglcolormap.h.