#include <mitkColorTable.h>
Inherits mitkObject.
Inheritance diagram for mitkColorTable:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
mitkColorTable () | |
void | SetDefaultColor (int r, int g, int b, int a=0) |
void | AddColor (double pixVal, int r, int g, int b, int a=0) |
void | RemoveColor (double pixVal) |
void | RemoveColor (int index) |
void | RemoveAllColors () |
int | GetColorCount () |
bool | SetColor (int index, int r, int g, int b, int a=0) |
bool | SetValue (int index, double pixVal) |
bool | SetValueColor (int index, double pixVal, int r, int g, int b, int a=0) |
bool | GetColor (double pixVal, int &r, int &g, int &b) |
bool | GetColor (double pixVal, int &r, int &g, int &b, int &a) |
bool | GetColor (double pixVal, unsigned char &r, unsigned char &g, unsigned char &b) |
bool | GetColor (double pixVal, unsigned char color[3]) |
bool | GetColor (int index, int &r, int &g, int &b) |
bool | GetColor (int index, int &r, int &g, int &b, int &a) |
bool | GetColor (int index, unsigned char &r, unsigned char &g, unsigned char &b) |
bool | GetColor (int index, unsigned char color[3]) |
bool | GetValue (int index, double &pixVal) |
bool | GetValueColor (int index, double &pixVal, int &r, int &g, int &b) |
bool | GetValueColor (int index, double &pixVal, int &r, int &g, int &b, int &a) |
bool | GetValueColor (int index, double &pixVal, unsigned char &r, unsigned char &g, unsigned char &b) |
bool | GetValueColor (int index, double &pixVal, unsigned char color[3]) |
void | Copy (mitkColorTable *src) |
mitkColorTable is a table mapping pixel value to color. The data type of the pixel value is double. It records some double value regions. Each region is mapped to one RGBA color.
|
Default constructor. |
|
Add a mapping entity into the table. After this operation, the pixel values which >= pixVal and < the minimum pixel value which > pixVal in the former table will be mapper to color (r,g,b,a).
|
|
Copy the entities from another color table.
|
|
Get the color of the entity indicated by index.
|
|
Get the color of the entity indicated by index.
|
|
Get the color of the entity indicated by index.
|
|
Get the color of the entity indicated by index.
|
|
Get the color pixVal is mapping to according to the table.
|
|
Get the color pixVal is mapping to according to the table.
|
|
Get the color pixVal is mapping to according to the table.
|
|
Get the color pixVal is mapping to according to the table.
|
|
Get the number of mapping entities in the table. |
|
Get the pixel value delimiter of the entity indicated by index.
|
|
Get the pixel value delimiter and the color of the entity indicated by index.
|
|
Get the pixel value delimiter and the color of the entity indicated by index.
|
|
Get the pixel value delimiter and the color of the entity indicated by index.
|
|
Get the pixel value delimiter and the color of the entity indicated by index.
|
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkObject. |
|
Remove all mapping entities. |
|
Remove a mapping entity by index.
|
|
Remove a mapping entity decided by the pixel value delimiter pixVal from the table.
|
|
Set the color of the mapping entity indicated by index to (r,g,b,a).
|
|
Set the default color.
|
|
Set the pixel value delimiter of the mapping entity indicated by index to pixVal.
|
|
Set the pixel value delimiter and the color of the mapping entity indicated by index to pixVal and (r,g,b,a).
|