#include <mitkColorTransferFunction.h>
Inherits mitkObject.
Inheritance diagram for mitkColorTransferFunction:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
void | AddPoint (int x, float rColor, float gColor, float bColor) |
void | RemovePoint (int x) |
void | RemoveAllPoints () |
int | GetPointsCount () |
int | GetDataValueAtPoint (int pointIndex) |
float | GetRedColorAtPoint (int pointIndex) |
float | GetGreenColorAtPoint (int pointIndex) |
float | GetBlueColorAtPoint (int pointIndex) |
void | SetMax (int xMax, float rMax, float gMax, float bMax) |
int | GetMaxX () |
float | GetRedValue (int x) |
float | GetGreenValue (int x) |
float | GetBlueValue (int x) |
float * | GetRData () |
float * | GetGData () |
float * | GetBData () |
bool | IsModified () const |
void | SetUnmodified () |
mitkColorTransferFunction is a transfer function to map the scalar value to color. The scalar value has a range. The minimum value is always 0, the maximum value can be set by calling the function SetMax(). In general, you firstly get the maximum value from a volume, and then pass it to mitkColorTransferFunction.
|
Add a point to the color transfer function
|
|
Get the address of the blue component of the colors in the transfer function.
|
|
Get the blue color component at pointIndex point
|
|
Get the blue component of the color corresponding to the specified scalar value.
|
|
Get the data value at pointIndex point
|
|
Get the address of the green component of the colors in the transfer function.
|
|
Get the green color component at pointIndex point
|
|
Get the green component of the color corresponding to the specified scalar value.
|
|
Get the maximum scalar value of this transfer function.
|
|
Get the number of points in this transfer function
|
|
Get the address of the red component of the colors in the transfer function.
|
|
Get the red color component at pointIndex point
|
|
Get the red component of the color corresponding to the specified scalar value.
|
|
Test if some of the transfer function is modified.
|
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkObject. |
|
Remove all points from the color transfer function |
|
Remove a point from the color transfer function
|
|
Set the maximum scalar value and its corresponding color.
|
|
Reset to unmodified after changes have been done according to the new transfer function. |