Public Member Functions | |
TransferFunction () | |
TransferFunction (TransferFunction TF) | |
void | Clear () |
SortedList | GetAlphaKeyFrames () |
SortedList | GetColorKeyFrames () |
float | GetAlpha (ushort voxelValue) |
Vector3 | GetColor (ushort voxelValue) |
void | AddKeyAlpha (ushort voxelValue, float alpha) |
void | AddKeyColor (ushort voxelValue, Vector3 color) |
void | Precalc () |
bool | SaveToFile (String fileName) |
bool | LoadFromFile (String fileName) |
Properties | |
bool | Precalced |
|
Constructor. |
|
Copy constuctor. The object this TF will take its data from. |
|
Adds a new alpha key frame. The voxel value of the key frame. The alpha value for the key frame. |
|
Adds a new color key frame. The voxel value of the key frame. The color vector for the key frame. |
|
Clears the internal data. |
|
Returns the alpha value in the range [0,1] for a specified voxel value. This methode uses linear interpolation between key frames. The voxel value to get the alpha value from. Returns the alpha value in the range [0,1] for a specified voxel value. |
|
Returns the internal list of alpha keyframes. The internal list of alpha keyframes. |
|
Returns the color vector in the range [0,1] for every component for a specified voxel value. This methode uses linear interpolation between key values. The voxel value to get the color vector from. Returns the color vector in the range [0,1] for every component for a specified voxel value. |
|
Returns the internal list of color keyframes. The internal list of color keyframes. |
|
Loads the transfer function from a file. True if succeeded, False otherwise |
|
Precalculates the alpha and color values for every possible voxel value. |
|
Saves the transfer function to a file. True if succeeded, False otherwise |
|
Indicates if the transfer function has been precalculated. |