Documentation for vtkDirectionEncoder

vtkDirectionEncoder - encode a direction into a one or two byte value

Super Class: vtkObject

Description:

Given a direction, encode it into an integer value. This value should be less than 65536, which is the maximum number of encoded directions supported by this superclass. A direction encoded is used to encode normals in a volume for use during volume rendering, and the largest amount of space that can be allocated per normal is 2 bytes. This is an abstract superclass - see the subclasses for specific implementation details.

 

See Also:

vtkRecursiveSphereDirectionEncoder

 

Methods:

const char *GetClassName ()
int GetEncodedDirection (float )
float *GetDecodedGradient (int )
int GetNumberOfEncodedDirections ()
float *GetDecodedGradientTable ()

 

Detailed Method Descriptions:

Given a normal vector n, return the encoded direction

int GetEncodedDirection (float )

/ Given an encoded value, return a pointer to the normal vector

float *GetDecodedGradient (int )

Return the number of encoded directions

int GetNumberOfEncodedDirections ()

Get the decoded gradient table. There are this->GetNumberOfEncodedDirections() entries in the table, each containing a normal (direction) vector. This is a flat structure - 3 times the number of directions floats in an array.

float *GetDecodedGradientTable ()