QGLColormap Class Reference

#include <qglcolormap.h>

Class Description

Definition at line 54 of file qglcolormap.h.

Public Member Functions

 QGLColormap ()
 
 QGLColormap (const QGLColormap &)
 
 ~QGLColormap ()
 
QGLColormapoperator= (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
 

Constructor & Destructor Documentation

QGLColormap ( const QGLColormap )

Member Function Documentation

QGLColormap& operator= ( const QGLColormap )
bool isEmpty ( ) const
int size ( ) const
void detach ( )
inline

Definition at line 95 of file qglcolormap.h.

96 {
97  if (d->ref != 1)
98  detach_helper();
99 }
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 ( )
inlineprotected

Definition at line 76 of file qglcolormap.h.

76 { return d ? d->cmapHandle : 0; }
void setHandle ( Qt::HANDLE  ahandle)
inlineprotected

Definition at line 77 of file qglcolormap.h.

77 { d->cmapHandle = ahandle; }

Friends And Related Function Documentation

friend class QGLWidget
friend

Definition at line 91 of file qglcolormap.h.

friend class QGLWidgetPrivate
friend

Definition at line 92 of file qglcolormap.h.


The documentation for this class was generated from the following file: