VIPER REFERENCE MANUAL


NAME
iflColormap - class for defining colormaps

INHERITS FROM
iflLut

HEADER FILE
#include <ifl/iflColormap.h>

PUBLIC METHOD SUMMARY

   Contructors
iflColormap (  );
iflColormap ( int numChan, iflDataType dtype, int min, int max);
iflColormap ( void* table, int numChan, iflDataType dtype, int min, int max);
virtual ~iflColormap (  );

INHERITED PUBLIC METHODS

   Inherited from iflLut
void* getChan ( int chan) const;
void* getData (  ) const;
iflDataType getDataType (  ) const;
void getDomain ( double& min, double& max) const;
double getDomainMax (  ) const;
double getDomainMin (  ) const;
double getDomainStep (  ) const;
int getLength (  ) const;
int getNumChans (  ) const;
void* getOrigin ( int chan) const;
void getRange ( double& min, double& max) const;
double getVal ( double domainIdx, int chan=0) const;
int isDiff ( const iflLut& from) const;
void operator= ( const iflLut& from);
void setData ( void* data);
iflStatus setDomain ( double min, double max);
iflStatus setVal ( double val, double domainIdx, int chan=0);

INHERITED PROTECTED METHODS

   Inherited from iflLut
void init ( void* table, int tabChannels, iflDataType tabType, double min, double max, int length=0);

CLASS DESCRIPTION
iflColormap is derived from iflLut. The only difference is the removal of the ability to have the table length not be a one-to-one mapping onto the domain of the lut. It is intended to represent the colormap for image files that have an iflRGBPalette color model. Refer to iflLut for more info on the supported access methods.

METHOD DESCRIPTIONS

   iflColormap()
iflColormap (  );
iflColormap ( int numChan, iflDataType dtype, int min, int max);
iflColormap ( void* table, int numChan, iflDataType dtype, int min, int max);

Constructors for the iflColormap class. The number of tables or channels in the colormap is specified by numChan and the colormap data type is specified by dtype. The domain of values the table handles is from min to max. The length of each table is either max-min+1.

The second constructor creates an iflColormap whose look-up table data is pointed to by table.

The final constructor generates an empty iflColormap. This can be useful in conjuction with the assigment operator.

   ~iflColormap()
virtual ~iflColormap (  );

Destroys all memory allocated by this class. If the table data was passed to the constructor then that data is not affected.

SEE ALSO
iflLut