Documentation for vtkColorTransferFunction

vtkColorTransferFunction - Defines a transfer function for mapping a property to an RGB color value.

Super Class: vtkObject

Description:

vtkColorTransferFunction encapsulates three vtkPiecewiseFunction instances to provide a full RGB transfer funciton.

 

See Also:

vtkPiecewiseFunction

 

Methods:

void vtkColorTransferFunction ()
void vtkColorTransferFunction ()
static vtkColorTransferFunction *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
int GetTotalSize ()
int GetRedSize ()
int GetGreenSize ()
int GetBlueSize ()
void AddRedPoint (float ,float )
void AddGreenPoint (float ,float )
void AddBluePoint (float ,float )
void RemoveRedPoint (float )
void RemoveGreenPoint (float )
void RemoveBluePoint (float )
void AddRedSegment (float ,float ,float ,float )
void AddGreenSegment (float ,float ,float ,float )
void AddBlueSegment (float ,float ,float ,float )
void AddRGBPoint (float ,float ,float ,float )
void AddRGBSegment (float ,float ,float ,float ,float ,float ,float ,float )
void RemoveRGBPoint (float )
void RemoveAllPoints ()
float *GetValue (float )
float GetRedValue (float )
float GetGreenValue (float )
float GetBlueValue (float )
float *GetRange ()
void GetTable (float ,float ,int ,float *)
void SetClamping (int )
int GetClamping ()
void UpdateRange ()

 

Detailed Method Descriptions:

Print method for vtkColorTransferFunction

void PrintSelf (unknown & ,vtkIndent )

Returns the sum of the number of function points used to specify the three independent functions (R,G,B).

int GetTotalSize ()
int GetRedSize ()
int GetGreenSize ()
int GetBlueSize ()

Methods to add points to the R, G, B functions

void AddRedPoint (float ,float )
void AddGreenPoint (float ,float )
void AddBluePoint (float ,float )

Methods to remove points from the R, G, B functions

void RemoveRedPoint (float )
void RemoveGreenPoint (float )
void RemoveBluePoint (float )

Methods to add lines to the R, G, B functions

void AddRedSegment (float ,float ,float ,float )
void AddGreenSegment (float ,float ,float ,float )
void AddBlueSegment (float ,float ,float ,float )

Convenience methods to add points and lines to all three independent functions (R, G, B) simultaneously.

void AddRGBPoint (float ,float ,float ,float )
void AddRGBSegment (float ,float ,float ,float ,float ,float ,float ,float )

Convenience method to remove points from all three independent functions simultaneously.

void RemoveRGBPoint (float )

Removes all points in all functions

void RemoveAllPoints ()

Returns an RGB color at the specified location.

float *GetValue (float )
float GetRedValue (float )
float GetGreenValue (float )
float GetBlueValue (float )

Returns min and max position of all function points.

float *GetRange ()

Fills in a table of n function values between x1 and x2

void GetTable (float ,float ,int ,float *)

Sets and gets the clamping value for this transfer function.

void SetClamping (int )
int GetClamping ()

Calculates the min and max point locations for all three transfer functions

void UpdateRange ()