Go to the documentation of this file.
26 #ifndef vtkSphericalDirectionEncoder_h
27 #define vtkSphericalDirectionEncoder_h
29 #include "vtkRenderingVolumeModule.h"
69 return &(this->DecodedGradientTable[0]);
77 static float DecodedGradientTable[65536*3];
vtkSphericalDirectionEncoder()
a simple class to control print indentation
float * GetDecodedGradientTable(void)
Get the decoded gradient table.
static int DecodedGradientTableInitialized
~vtkSphericalDirectionEncoder()
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
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static void InitializeDecodedGradientTable()
Initialize the table at startup.
static vtkSphericalDirectionEncoder * New()
Construct the object.
int GetEncodedDirection(float n[3])
Given a normal vector n, return the encoded direction.
A direction encoder based on spherical coordinates.
int GetNumberOfEncodedDirections(void)
Return the number of encoded directions.