Go to the documentation of this file.
33 #ifndef vtkEncodedGradientShader_h
34 #define vtkEncodedGradientShader_h
36 #include "vtkRenderingVolumeModule.h"
43 #define VTK_MAX_SHADING_TABLES 100
61 vtkSetClampMacro( ZeroNormalDiffuseIntensity,
float, 0.0f, 1.0f);
62 vtkGetMacro( ZeroNormalDiffuseIntensity,
float );
63 vtkSetClampMacro( ZeroNormalSpecularIntensity,
float, 0.0f, 1.0f);
64 vtkGetMacro( ZeroNormalSpecularIntensity,
float );
91 vtkSetClampMacro( ActiveComponent,
int, 0, 3 );
92 vtkGetMacro( ActiveComponent,
int );
114 double lightDirection[3],
115 double lightAmbientColor[3],
116 double lightDiffuseColor[3],
117 double lightSpecularColor[3],
118 double lightIntensity,
119 double viewDirection[3],
float * GetRedSpecularShadingTable(vtkVolume *vol)
float * GetRedDiffuseShadingTable(vtkVolume *vol)
Get the red/green/blue shading table.
represents a volume (data & properties) in a rendered scene
float ZeroNormalSpecularIntensity
float * GetGreenDiffuseShadingTable(vtkVolume *vol)
float * GetBlueSpecularShadingTable(vtkVolume *vol)
void BuildShadingTable(int index, double lightDirection[3], double lightAmbientColor[3], double lightDiffuseColor[3], double lightSpecularColor[3], double lightIntensity, double viewDirection[3], double material[4], int twoSided, vtkEncodedGradientEstimator *gradest, int updateFlag)
Build a shading table for a light with the specified direction, and color for an object of the specif...
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent)
Print the vtkEncodedGradientShader.
void UpdateShadingTable(vtkRenderer *ren, vtkVolume *vol, vtkEncodedGradientEstimator *gradest)
Cause the shading table to be updated.
float ZeroNormalDiffuseIntensity
Compute shading tables for encoded normals.
Superclass for gradient estimation.
vtkEncodedGradientShader()
a simple class to control print indentation
#define VTK_MAX_SHADING_TABLES
abstract specification for renderers
float * GetBlueDiffuseShadingTable(vtkVolume *vol)
static vtkEncodedGradientShader * New()
float * GetGreenSpecularShadingTable(vtkVolume *vol)
~vtkEncodedGradientShader()