casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes | Friends
casa::GLVColorTableEntry Class Reference

Implementation of PixelCanvasColorTable for OpenGL. More...

#include <GLPixelCanvasColorTable.h>

List of all members.

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)

Detailed Description

Implementation of PixelCanvasColorTable for OpenGL.

Synopsis

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.

Prerequisite

Etymology

Thrown Exceptions

Intended use:

Public interface

Colormap entry for the virtual colormap.

Definition at line 74 of file GLPixelCanvasColorTable.h.


Constructor & Destructor Documentation


Member Function Documentation

void casa::GLVColorTableEntry::get ( float &  red,
float &  green,
float &  blue 
) const [inline]

Definition at line 85 of file GLPixelCanvasColorTable.h.

References blue_, green_, and red_.

Definition at line 89 of file GLPixelCanvasColorTable.h.

References index_.

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.

References blue_, green_, and red_.

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_.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  s,
const GLVColorTableEntry x 
) [friend]

Member Data Documentation

Definition at line 100 of file GLPixelCanvasColorTable.h.

Referenced by get(), and put().

Definition at line 100 of file GLPixelCanvasColorTable.h.

Referenced by get(), and put().

Definition at line 98 of file GLPixelCanvasColorTable.h.

Referenced by getIndex(), and setIndex().

Definition at line 99 of file GLPixelCanvasColorTable.h.

Referenced by getPixel(), and setPixel().

Definition at line 100 of file GLPixelCanvasColorTable.h.

Referenced by get(), and put().


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