iMSTK
Interactive Medical Simulation Toolkit
Public Types | Public Member Functions | Protected Attributes | List of all members
imstk::ColorFunction Class Reference

A regularly/structured table of colors to lookup by value. More...

#include <imstkColorFunction.h>

Public Types

enum  ColorSpace { RGB, DIVERING, HSV, LAB }
 

Public Member Functions

int getNumberOfColors () const
 
const ColorgetColor (int i) const
 
const Vec2d & getRange () const
 
const ColorSpace & getColorSpace () const
 
void setNumberOfColors (int numColors)
 
void setColor (int i, const Color &color)
 
void setRange (double min, double max)
 
void setRange (const Vec2d &range)
 
void setColorSpace (const ColorSpace &space)
 
void clear ()
 Clears all colors from the lookup table.
 

Protected Attributes

std::vector< Colorm_table
 
Vec2d m_range
 
ColorSpace m_colorSpace
 

Detailed Description

A regularly/structured table of colors to lookup by value.

Todo:
: Currently just serves as storage, write the mapping functions

Definition at line 22 of file imstkColorFunction.h.


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