version 3.3

VRS::PaletteImage Class Reference

Memory Resident 2D Image with colortable. More...

#include <vrs/image/paletteimage.h>

Inheritance diagram for VRS::PaletteImage:

VRS::Image VRS::SharedObj VRS::Visitable VRS::PaletteFileImage

List of all members.

Public Member Functions

 PaletteImage (int width, int height, ColorPalette *pal=0, bool clear=false)
virtual ~PaletteImage ()
virtual int width () const
virtual int height () const
 See Image.
virtual void * lineComponents (int y) const
virtual void * pixelComponents (int x, int y, int component=0) const
 See Image.
ColorPalettecolorPalette () const
 VRS_TYPEINFO (PaletteImage, Image)
 VRS_SERIALIZABLE (PaletteImage)

Static Public Member Functions

static PaletteImageisAPaletteImage (Image *image)

Protected Member Functions

 PaletteImage ()

Protected Attributes

SO< ColorPalettepalette_
int width_
int height_
int scanLineSize_
unsigned char * data_


Detailed Description

Memory Resident 2D Image with colortable.

Constructor & Destructor Documentation

VRS::PaletteImage::PaletteImage ( int  width,
int  height,
ColorPalette pal = 0,
bool  clear = false 
)

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

An PaletteImage is a 2D array of indices which refer to entries in the colortable. The array consists of width * height bytes. The maximum color table size is 256.

VRS::PaletteImage::PaletteImage (  )  [protected]


Member Function Documentation

virtual int VRS::PaletteImage::width (  )  const [virtual]

Implements VRS::Image.

Reimplemented in VRS::PaletteFileImage.

virtual int VRS::PaletteImage::height (  )  const [virtual]

See Image.

Implements VRS::Image.

Reimplemented in VRS::PaletteFileImage.

virtual void* VRS::PaletteImage::lineComponents ( int  y  )  const [virtual]

Reimplemented from VRS::Image.

Reimplemented in VRS::PaletteFileImage.

virtual void* VRS::PaletteImage::pixelComponents ( int  x,
int  y,
int  component = 0 
) const [virtual]

See Image.

Implements VRS::Image.

Reimplemented in VRS::PaletteFileImage.

ColorPalette* VRS::PaletteImage::colorPalette (  )  const

static PaletteImage* VRS::PaletteImage::isAPaletteImage ( Image image  )  [static]

VRS::PaletteImage::VRS_TYPEINFO ( PaletteImage  ,
Image   
)

VRS::PaletteImage::VRS_SERIALIZABLE ( PaletteImage   ) 


Member Data Documentation

int VRS::PaletteImage::width_ [protected]

int VRS::PaletteImage::height_ [protected]

unsigned char* VRS::PaletteImage::data_ [protected]


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

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