casa
5.7.0-16
|
Implementation of PixelCanvasColorTable for OpenGL. More...
#include <GLPixelCanvasColorTable.h>
Public Member Functions | |
GLVColorTableEntry () | |
void | operator= (const GLVColorTableEntry &) |
void | put (const float red, const float green, const float blue) |
Store/get the values. More... | |
void | get (float &red, float &green, float &blue) const |
casacore::uInt | getIndex () const |
void | setIndex (const casacore::uInt i) |
casacore::uLong | getPixel () const |
void | setPixel (const unsigned long p) |
Private Attributes | |
casacore::uInt | index_ |
casacore::uLong | pixel_ |
float | red_ |
float | green_ |
float | blue_ |
Friends | |
ostream & | operator<< (ostream &s, const GLVColorTableEntry &x) |
Implementation of PixelCanvasColorTable for OpenGL.
GLPixelCanvasColorTable is an X11PixelCanvasColorTable that has been modified to work within the constraints of the GLPixelCanvas. (e.g. Not assuming the default visual).
Colormap values are written to a virtual colortable (an internal array). For Indexed (PseudoColor) windows, the values are sent to the hardware colormap. For RGB (trueColor) windows, the virtual colortable is used to emulate a hardware lookup table.
Public interface
Colormap entry for the virtual colormap.
Definition at line 74 of file GLPixelCanvasColorTable.h.
casa::GLVColorTableEntry::GLVColorTableEntry | ( | ) |
|
inline |
Definition at line 87 of file GLPixelCanvasColorTable.h.
|
inline |
Definition at line 93 of file GLPixelCanvasColorTable.h.
References index_.
|
inline |
Definition at line 100 of file GLPixelCanvasColorTable.h.
References pixel_.
void casa::GLVColorTableEntry::operator= | ( | const GLVColorTableEntry & | ) |
|
inline |
Store/get the values.
Definition at line 81 of file GLPixelCanvasColorTable.h.
|
inline |
Definition at line 96 of file GLPixelCanvasColorTable.h.
References index_.
|
inline |
Definition at line 103 of file GLPixelCanvasColorTable.h.
References pixel_.
|
friend |
|
private |
Definition at line 112 of file GLPixelCanvasColorTable.h.
|
private |
Definition at line 112 of file GLPixelCanvasColorTable.h.
|
private |
Definition at line 110 of file GLPixelCanvasColorTable.h.
Referenced by getIndex(), and setIndex().
|
private |
Definition at line 111 of file GLPixelCanvasColorTable.h.
Referenced by getPixel(), and setPixel().
|
private |
Definition at line 112 of file GLPixelCanvasColorTable.h.