49 #ifndef __vtkVolumeProperty_h
50 #define __vtkVolumeProperty_h
85 vtkSetClampMacro( IndependentComponents,
int, 0, 1 );
86 vtkGetMacro( IndependentComponents,
int );
87 vtkBooleanMacro( IndependentComponents,
int );
93 vtkSetClampMacro( InterpolationType,
int,
95 vtkGetMacro(InterpolationType,
int);
100 const char *GetInterpolationTypeAsString(
void);
105 virtual void SetComponentWeight(
int index,
double value);
106 virtual double GetComponentWeight(
int index);
128 int GetColorChannels(
int index );
137 {
return this->GetGrayTransferFunction(0);};
146 {
return this->GetRGBTransferFunction(0);};
154 {this->SetScalarOpacity(0,f);};
163 {
return this->GetScalarOpacity(0);};
172 void SetScalarOpacityUnitDistance(
int index,
double distance );
174 {this->SetScalarOpacityUnitDistance( 0, distance );}
175 double GetScalarOpacityUnitDistance(
int index );
177 {
return this->GetScalarOpacityUnitDistance(0);}
186 {this->SetGradientOpacity(0,
function);}
196 {
return this->GetGradientOpacity( 0 );}
205 virtual void SetDisableGradientOpacity(
int index,
int value );
207 { this->SetDisableGradientOpacity(0, value); }
209 { this->SetDisableGradientOpacity(index, 1); }
211 { this->DisableGradientOpacityOn(0); }
213 { this->SetDisableGradientOpacity(index, 0); }
215 { this->DisableGradientOpacityOff(0); }
216 virtual int GetDisableGradientOpacity(
int index );
218 {
return this->GetDisableGradientOpacity(0); }
221 {
return this->GetStoredGradientOpacity( 0 );}
235 int GetShade(
int index );
237 void ShadeOn(
int index );
239 void ShadeOff(
int index );
247 double GetAmbient(
int index );
255 double GetDiffuse(
int index );
263 double GetSpecular(
int index );
269 void SetSpecularPower(
int index,
double value );
271 double GetSpecularPower(
int index );
287 {
return this->GetGradientOpacityMTime(0); }
295 {
return this->GetScalarOpacityMTime(0); }
303 {
return this->GetRGBTransferFunctionMTime(0); }
311 {
return this->GetGrayTransferFunctionMTime(0); }
347 virtual void CreateDefaultGradientOpacity(
int index);
360 return "Nearest Neighbor";