casa
$Rev:20696$
|
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. | |
void | get (float &red, float &green, float &blue) const |
uInt | getIndex () const |
void | setIndex (const uInt i) |
uLong | getPixel () const |
void | setPixel (const unsigned long p) |
Private Attributes | |
uInt | index_ |
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.
void casa::GLVColorTableEntry::get | ( | float & | red, |
float & | green, | ||
float & | blue | ||
) | const [inline] |
Definition at line 85 of file GLPixelCanvasColorTable.h.
uInt casa::GLVColorTableEntry::getIndex | ( | ) | const [inline] |
Definition at line 89 of file GLPixelCanvasColorTable.h.
References index_.
uLong casa::GLVColorTableEntry::getPixel | ( | ) | const [inline] |
Definition at line 92 of file GLPixelCanvasColorTable.h.
References pixel_.
void casa::GLVColorTableEntry::operator= | ( | const GLVColorTableEntry & | ) |
void casa::GLVColorTableEntry::put | ( | const float | red, |
const float | green, | ||
const float | blue | ||
) | [inline] |
Store/get the values.
Definition at line 81 of file GLPixelCanvasColorTable.h.
void casa::GLVColorTableEntry::setIndex | ( | const uInt | i | ) | [inline] |
Definition at line 90 of file GLPixelCanvasColorTable.h.
References index_.
void casa::GLVColorTableEntry::setPixel | ( | const unsigned long | p | ) | [inline] |
Definition at line 93 of file GLPixelCanvasColorTable.h.
References pixel_.
ostream& operator<< | ( | ostream & | s, |
const GLVColorTableEntry & | x | ||
) | [friend] |
float casa::GLVColorTableEntry::blue_ [private] |
Definition at line 100 of file GLPixelCanvasColorTable.h.
float casa::GLVColorTableEntry::green_ [private] |
Definition at line 100 of file GLPixelCanvasColorTable.h.
uInt casa::GLVColorTableEntry::index_ [private] |
Definition at line 98 of file GLPixelCanvasColorTable.h.
Referenced by getIndex(), and setIndex().
uLong casa::GLVColorTableEntry::pixel_ [private] |
Definition at line 99 of file GLPixelCanvasColorTable.h.
Referenced by getPixel(), and setPixel().
float casa::GLVColorTableEntry::red_ [private] |
Definition at line 100 of file GLPixelCanvasColorTable.h.