vtkNormalEncoder - encode volume gradients and gradient magnitudes, build shading table
Super Class: vtkObject
Description:
vtkNormalEncode takes vtkStructuredPoints as input and can generate two 3D array data sets - a two-byte per value array which encodes normal direction, and a 1 byte per value array which captures gradient magnitude information. Once these structures have been build, a shading table can be created for a given directional light source and given material properties.
Methods:
Detailed Method Descriptions:
static vtkNormalEncoder *New () |
void SetScalarInput (vtkStructuredPoints *) | |
vtkStructuredPoints *GetScalarInput () |
void SetSampleSpacingInVoxels (int ) | |
int GetSampleSpacingInVoxels () |
void SetGradientMagnitudeScale (float ) | |
float GetGradientMagnitudeScale () | |
void SetGradientMagnitudeBias (float ) | |
float GetGradientMagnitudeBias () |
void UpdateNormals () |
void BuildShadingTable (float ,float ,float ,float ,float ,int ) |
unsigned short *GetEncodedNormals () |
int GetEncodedNormalIndex (int ) | |
int GetEncodedNormalIndex (int ,int ,int ) |
unsigned char *GetGradientMagnitudes () |
void SetNumberOfThreads (int ) | |
int GetNumberOfThreads () |