14 #ifndef vtkSphericalDirectionEncoder_h
15 #define vtkSphericalDirectionEncoder_h
18 #include "vtkRenderingVolumeModule.h"
20 VTK_ABI_NAMESPACE_BEGIN
64 static float DecodedGradientTable[65536 * 3];
70 static void InitializeDecodedGradientTable();
static int DecodedGradientTableInitialized
Initialize the table at startup.
encode a direction into a one or two byte value
int GetNumberOfEncodedDirections() override
Return the number of encoded directions.
static float DecodedGradientTable[65536 *3]
a simple class to control print indentation
A direction encoder based on spherical coordinates.
void PrintSelf(ostream &os, vtkIndent indent) override
Get the name of this class.
#define VTK_SIZEHINT(...)
virtual float * GetDecodedGradient(int value)=0
/ Given an encoded value, return a pointer to the normal vector
virtual int GetEncodedDirection(float n[3])=0
Given a normal vector n, return the encoded direction.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
float * GetDecodedGradientTable() override
Get the decoded gradient table.