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],
Superclass for gradient estimation.
Compute shading tables for encoded normals.
float ZeroNormalSpecularIntensity
float * GetRedSpecularShadingTable(vtkVolume *vol)
float * GetRedDiffuseShadingTable(vtkVolume *vol)
Get the red/green/blue shading table.
float * GetBlueDiffuseShadingTable(vtkVolume *vol)
~vtkEncodedGradientShader()
vtkEncodedGradientShader()
void UpdateShadingTable(vtkRenderer *ren, vtkVolume *vol, vtkEncodedGradientEstimator *gradest)
Cause the shading table to be updated.
void PrintSelf(ostream &os, vtkIndent indent)
Print the vtkEncodedGradientShader.
float * GetGreenSpecularShadingTable(vtkVolume *vol)
float * GetGreenDiffuseShadingTable(vtkVolume *vol)
float * GetBlueSpecularShadingTable(vtkVolume *vol)
static vtkEncodedGradientShader * New()
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...
float ZeroNormalDiffuseIntensity
a simple class to control print indentation
abstract base class for most VTK objects
abstract specification for renderers
represents a volume (data & properties) in a rendered scene
#define VTK_MAX_SHADING_TABLES