version 3.3

VRS::ColorPalette Class Reference

Color table for PaletteImage. More...

#include <vrs/image/paletteimage.h>

Inheritance diagram for VRS::ColorPalette:

VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 ColorPalette (int size=256, bool init=false)
virtual ~ColorPalette ()
int size () const
 returns size of colortable
void setColor (int index, const Color &col)
void setColor (int index, unsigned char r, unsigned char g, unsigned char b, unsigned char a)
void setColor (int index, float r, float g, float b, float a)
Color getColor (int index) const
float * directData () const
 Direct data access for OpenGL only.
 VRS_TYPEINFO (ColorPalette, SharedObj)
 VRS_SERIALIZABLE (ColorPalette)


Detailed Description

Color table for PaletteImage.

Constructor & Destructor Documentation

VRS::ColorPalette::ColorPalette ( int  size = 256,
bool  init = false 
)

virtual VRS::ColorPalette::~ColorPalette (  )  [virtual]


Member Function Documentation

int VRS::ColorPalette::size (  )  const

returns size of colortable

void VRS::ColorPalette::setColor ( int  index,
const Color col 
)

void VRS::ColorPalette::setColor ( int  index,
unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a 
)

void VRS::ColorPalette::setColor ( int  index,
float  r,
float  g,
float  b,
float  a 
)

Color VRS::ColorPalette::getColor ( int  index  )  const

float* VRS::ColorPalette::directData (  )  const

Direct data access for OpenGL only.

VRS::ColorPalette::VRS_TYPEINFO ( ColorPalette  ,
SharedObj   
)

VRS::ColorPalette::VRS_SERIALIZABLE ( ColorPalette   ) 


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

Generated on Mon May 21 06:00:18 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact