29#ifndef vtkRecursiveSphereDirectionEncoder_h
30#define vtkRecursiveSphereDirectionEncoder_h
33#include "vtkRenderingVolumeModule.h"
87 vtkSetClampMacro(RecursionDepth,
int, 0, 6);
88 vtkGetMacro(RecursionDepth,
int);
encode a direction into a one or two byte value
a simple class to control print indentation
A direction encoder based on the recursive subdivision of an octahedron.
int GetEncodedDirection(float n[3]) override
Given a normal vector n, return the encoded direction.
float * GetDecodedGradient(int value) override
/ Given an encoded value, return a pointer to the normal vector
~vtkRecursiveSphereDirectionEncoder() override
void PrintSelf(ostream &os, vtkIndent indent) override
Get the name of this class.
float * GetDecodedGradientTable(void) override
Get the decoded gradient table.
void InitializeIndexTable(void)
int IndexTableRecursionDepth
int GetNumberOfEncodedDirections(void) override
Return the number of encoded directions.
static vtkRecursiveSphereDirectionEncoder * New()
Construct the object.
vtkRecursiveSphereDirectionEncoder()
#define VTK_SIZEHINT(...)