29 #ifndef vtkRecursiveSphereDirectionEncoder_h
30 #define vtkRecursiveSphereDirectionEncoder_h
32 #include "vtkRenderingVolumeModule.h"
88 vtkSetClampMacro( RecursionDepth,
int, 0, 6 );
89 vtkGetMacro( RecursionDepth,
int );
encode a direction into a one or two byte value
a simple class to control print indentation
A direction encoder based on the recursive subdivision of an octahedron.
~vtkRecursiveSphereDirectionEncoder()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkRecursiveSphereDirectionEncoder * New()
Construct the object.
int GetEncodedDirection(float n[3])
Given a normal vector n, return the encoded direction.
int GetNumberOfEncodedDirections(void)
Return the number of encoded directions.
float * GetDecodedGradientTable(void)
Get the decoded gradient table.
void InitializeIndexTable(void)
int IndexTableRecursionDepth
float * GetDecodedGradient(int value)
/ Given an encoded value, return a pointer to the normal vector
vtkRecursiveSphereDirectionEncoder()