casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | Friends | List of all members
casa::GLVColorTableEntry Class Reference

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)
 

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

casa::GLVColorTableEntry::GLVColorTableEntry ( )

Member Function Documentation

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

Definition at line 87 of file GLPixelCanvasColorTable.h.

References blue_, green_, and red_.

casacore::uInt casa::GLVColorTableEntry::getIndex ( ) const
inline

Definition at line 93 of file GLPixelCanvasColorTable.h.

References index_.

casacore::uLong casa::GLVColorTableEntry::getPixel ( ) const
inline

Definition at line 100 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 casacore::uInt  i)
inline

Definition at line 96 of file GLPixelCanvasColorTable.h.

References index_.

void casa::GLVColorTableEntry::setPixel ( const unsigned long  p)
inline

Definition at line 103 of file GLPixelCanvasColorTable.h.

References pixel_.

Friends And Related Function Documentation

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

Member Data Documentation

float casa::GLVColorTableEntry::blue_
private

Definition at line 112 of file GLPixelCanvasColorTable.h.

Referenced by get(), and put().

float casa::GLVColorTableEntry::green_
private

Definition at line 112 of file GLPixelCanvasColorTable.h.

Referenced by get(), and put().

casacore::uInt casa::GLVColorTableEntry::index_
private

Definition at line 110 of file GLPixelCanvasColorTable.h.

Referenced by getIndex(), and setIndex().

casacore::uLong casa::GLVColorTableEntry::pixel_
private

Definition at line 111 of file GLPixelCanvasColorTable.h.

Referenced by getPixel(), and setPixel().

float casa::GLVColorTableEntry::red_
private

Definition at line 112 of file GLPixelCanvasColorTable.h.

Referenced by get(), and put().


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