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