49 #ifndef vtkVolumeProperty_h
50 #define vtkVolumeProperty_h
86 vtkSetClampMacro(IndependentComponents,
int, 0, 1);
87 vtkGetMacro(IndependentComponents,
int);
88 vtkBooleanMacro(IndependentComponents,
int);
94 vtkSetClampMacro(InterpolationType,
int,
96 vtkGetMacro(InterpolationType,
int);
101 const char *GetInterpolationTypeAsString(
void);
106 virtual void SetComponentWeight(
int index,
double value);
107 virtual double GetComponentWeight(
int index);
116 { this->SetColor(0,
function); }
125 { this->SetColor(0,
function); }
131 int GetColorChannels(
int index);
133 {
return this->GetColorChannels(0); }
141 {
return this->GetGrayTransferFunction(0); }
150 {
return this->GetRGBTransferFunction(0); }
158 { this->SetScalarOpacity(0,
function); }
167 {
return this->GetScalarOpacity(0); }
176 void SetScalarOpacityUnitDistance(
int index,
double distance);
178 { this->SetScalarOpacityUnitDistance(0, distance); }
179 double GetScalarOpacityUnitDistance(
int index);
181 {
return this->GetScalarOpacityUnitDistance(0); }
190 { this->SetGradientOpacity(0,
function); }
200 {
return this->GetGradientOpacity(0); }
209 virtual void SetDisableGradientOpacity(
int index,
int value);
211 { this->SetDisableGradientOpacity(0, value); }
213 { this->SetDisableGradientOpacity(index, 1); }
215 { this->DisableGradientOpacityOn(0); }
217 { this->SetDisableGradientOpacity(index, 0); }
219 { this->DisableGradientOpacityOff(0); }
220 virtual int GetDisableGradientOpacity(
int index);
222 {
return this->GetDisableGradientOpacity(0); }
225 {
return this->GetStoredGradientOpacity(0); }
235 return (this->GradientOpacity[
index] != NULL);
250 { this->SetShade(0,value); }
251 int GetShade(
int index);
253 {
return this->GetShade(0); }
254 void ShadeOn(
int index);
256 { this->ShadeOn(0); }
257 void ShadeOff(
int index);
259 { this->ShadeOff(0); }
266 { this->SetAmbient(0, value); }
267 double GetAmbient(
int index);
269 {
return this->GetAmbient(0); }
276 { this->SetDiffuse(0, value); }
277 double GetDiffuse(
int index);
279 {
return this->GetDiffuse(0); }
286 { this->SetSpecular(0, value); }
287 double GetSpecular(
int index);
289 {
return this->GetSpecular(0); }
294 void SetSpecularPower(
int index,
double value);
296 { this->SetSpecularPower(0, value); }
297 double GetSpecularPower(
int index);
299 {
return this->GetSpecularPower(0); }
314 {
return this->GetGradientOpacityMTime(0); }
322 {
return this->GetScalarOpacityMTime(0); }
330 {
return this->GetRGBTransferFunctionMTime(0); }
338 {
return this->GetGrayTransferFunctionMTime(0); }
374 virtual void CreateDefaultGradientOpacity(
int index);
387 return "Nearest Neighbor";
vtkColorTransferFunction * GetRGBTransferFunction()
virtual void DisableGradientOpacityOn()
abstract base class for most VTK objects
void SetAmbient(double value)
Defines a 1D piecewise function.
void SetSpecularPower(double value)
void SetColor(vtkColorTransferFunction *function)
vtkPiecewiseFunction * GetGrayTransferFunction()
record modification and/or execution time
#define VTK_LINEAR_INTERPOLATION
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
void SetScalarOpacity(vtkPiecewiseFunction *function)
void SetGradientOpacity(vtkPiecewiseFunction *function)
void SetColor(vtkPiecewiseFunction *function)
double GetScalarOpacityUnitDistance()
vtkPiecewiseFunction * GetScalarOpacity()
vtkTimeStamp GetRGBTransferFunctionMTime()
virtual void PrintSelf(ostream &os, vtkIndent indent)
const char * GetInterpolationTypeAsString(void)
vtkPiecewiseFunction * GetStoredGradientOpacity()
vtkTimeStamp GetScalarOpacityMTime()
virtual unsigned long GetMTime()
a simple class to control print indentation
bool HasGradientOpacity(int index=0)
vtkTimeStamp GetGrayTransferFunctionMTime()
void SetInterpolationTypeToNearest()
int IndependentComponents
represents the common properties for rendering a volume.
virtual void SetDisableGradientOpacity(int value)
void SetSpecular(double value)
Defines a transfer function for mapping a property to an RGB color value.
#define VTKRENDERINGCORE_EXPORT
void SetDiffuse(double value)
void SetInterpolationTypeToLinear()
virtual int GetDisableGradientOpacity()
vtkTimeStamp GetGradientOpacityMTime()
virtual void DisableGradientOpacityOff(int index)
virtual void DisableGradientOpacityOn(int index)
#define VTK_NEAREST_INTERPOLATION
virtual void DisableGradientOpacityOff()
void SetScalarOpacityUnitDistance(double distance)
vtkPiecewiseFunction * GetGradientOpacity()
double GetSpecularPower()