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