Documentation for vtkEncodedGradientShader

vtkEncodedGradientShader - Compute shading tables for encoded normals.

Super Class: vtkObject

Description:

vtkEncodedGradientShader computes shading tables for encoded normals that indicates the amount of diffuse and specular illumination that is recieved from all light sources at a surface location with that normal. For diffuse illumination this is accurate, but for specular illumination it is approximate for perspective projections since the center view direction is always used as the view direction.

 

Methods:

void vtkEncodedGradientShader ()
void vtkEncodedGradientShader ()
static vtkEncodedGradientShader *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void UpdateShadingTable (vtkRenderer * ,vtkVolume * ,vtkEncodedGradientEstimator *)
float *GetRedDiffuseShadingTable ()
float *GetGreenDiffuseShadingTable ()
float *GetBlueDiffuseShadingTable ()
float *GetRedSpecularShadingTable ()
float *GetGreenSpecularShadingTable ()
float *GetBlueSpecularShadingTable ()
void BuildShadingTable (float ,float ,float ,float ,float ,vtkEncodedGradientEstimator * ,int )

 

Detailed Method Descriptions:

Print the vtkEncodedGradientShader

void PrintSelf (unknown & ,vtkIndent )

Cause the shading table to be updated

void UpdateShadingTable (vtkRenderer * ,vtkVolume * ,vtkEncodedGradientEstimator *)

Get the red/green/blue shading table.

float *GetRedDiffuseShadingTable ()
float *GetGreenDiffuseShadingTable ()
float *GetBlueDiffuseShadingTable ()
float *GetRedSpecularShadingTable ()
float *GetGreenSpecularShadingTable ()
float *GetBlueSpecularShadingTable ()

Build a shading table for a light with the specified direction, and color for an object of the specified material properties. material[0] = ambient, material[1] = diffuse, material[2] = specular and material[3] = specular exponent. If the update flag is 0, the shading table is overwritten with these new shading values. If the update_flag is 1, then the computed light contribution is added to the current shading table values.

void BuildShadingTable (float ,float ,float ,float ,float ,vtkEncodedGradientEstimator * ,int )