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];
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
float * GetDecodedGradient(int value) override
/ Given an encoded value, return a pointer to the normal vector
vtkSphericalDirectionEncoder()
int GetEncodedDirection(float n[3]) override
Given a normal vector n, return the encoded direction.
float * GetDecodedGradientTable(void) override
Get the decoded gradient table.
#define VTK_SIZEHINT(...)
a simple class to control print indentation
~vtkSphericalDirectionEncoder() override
static int DecodedGradientTableInitialized
encode a direction into a one or two byte value
static void InitializeDecodedGradientTable()
Initialize the table at startup.
static vtkSphericalDirectionEncoder * New()
Construct the object.
A direction encoder based on spherical coordinates.
int GetNumberOfEncodedDirections(void) override
Return the number of encoded directions.