26#ifndef vtkSphericalDirectionEncoder_h
27#define vtkSphericalDirectionEncoder_h
29#include "vtkRenderingVolumeModule.h"
69 return &(this->DecodedGradientTable[0]);
77 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.
int GetNumberOfEncodedDirections(void)
Return the number of encoded directions.
float * GetDecodedGradientTable(void)
Get the decoded gradient table.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static int DecodedGradientTableInitialized
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.
float * GetDecodedGradient(int value)
/ Given an encoded value, return a pointer to the normal vector
vtkSphericalDirectionEncoder()
~vtkSphericalDirectionEncoder()