50 #ifndef vtkVolumeProperty_h
51 #define vtkVolumeProperty_h
53 #include "vtkRenderingCoreModule.h"
96 vtkSetClampMacro(IndependentComponents,
int, 0, 1);
97 vtkGetMacro(IndependentComponents,
int);
106 vtkSetClampMacro(InterpolationType,
int,
108 vtkGetMacro(InterpolationType,
int);
113 const char *GetInterpolationTypeAsString(
void);
121 virtual void SetComponentWeight(
int index,
double value);
122 virtual double GetComponentWeight(
int index);
132 { this->SetColor(0,
function); }
142 { this->SetColor(0,
function); }
148 int GetColorChannels(
int index);
150 {
return this->GetColorChannels(0); }
159 {
return this->GetGrayTransferFunction(0); }
168 {
return this->GetRGBTransferFunction(0); }
176 { this->SetScalarOpacity(0,
function); }
185 {
return this->GetScalarOpacity(0); }
194 void SetScalarOpacityUnitDistance(
int index,
double distance);
196 { this->SetScalarOpacityUnitDistance(0, distance); }
197 double GetScalarOpacityUnitDistance(
int index);
199 {
return this->GetScalarOpacityUnitDistance(0); }
209 { this->SetGradientOpacity(0,
function); }
221 {
return this->GetGradientOpacity(0); }
231 virtual void SetDisableGradientOpacity(
int index,
int value);
233 { this->SetDisableGradientOpacity(0, value); }
235 { this->SetDisableGradientOpacity(index, 1); }
237 { this->DisableGradientOpacityOn(0); }
239 { this->SetDisableGradientOpacity(index, 0); }
241 { this->DisableGradientOpacityOff(0); }
242 virtual int GetDisableGradientOpacity(
int index);
244 {
return this->GetDisableGradientOpacity(0); }
247 {
return this->GetStoredGradientOpacity(0); }
257 return (this->GradientOpacity[
index] != NULL);
283 { this->SetShade(0,value); }
284 int GetShade(
int index);
286 {
return this->GetShade(0); }
287 void ShadeOn(
int index);
289 { this->ShadeOn(0); }
290 void ShadeOff(
int index);
292 { this->ShadeOff(0); }
301 { this->SetAmbient(0, value); }
302 double GetAmbient(
int index);
304 {
return this->GetAmbient(0); }
313 { this->SetDiffuse(0, value); }
314 double GetDiffuse(
int index);
316 {
return this->GetDiffuse(0); }
325 { this->SetSpecular(0, value); }
326 double GetSpecular(
int index);
328 {
return this->GetSpecular(0); }
335 void SetSpecularPower(
int index,
double value);
337 { this->SetSpecularPower(0, value); }
338 double GetSpecularPower(
int index);
340 {
return this->GetSpecularPower(0); }
358 {
return this->GetGradientOpacityMTime(0); }
366 {
return this->GetScalarOpacityMTime(0); }
374 {
return this->GetRGBTransferFunctionMTime(0); }
382 {
return this->GetGrayTransferFunctionMTime(0); }
416 virtual void CreateDefaultGradientOpacity(
int index);
431 return "Nearest Neighbor";
int GetShade()
Set/Get the shading of a volume.
vtkColorTransferFunction * GetRGBTransferFunction()
virtual void DisableGradientOpacityOn()
Enable/Disable the gradient opacity function for the given component.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double GetDiffuse()
Set/Get the diffuse lighting coefficient.
void SetAmbient(double value)
Set/Get the ambient lighting coefficient.
Defines a 1D piecewise function.
void SetSpecularPower(double value)
Set/Get the specular power.
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)
double GetSpecular()
Set/Get the specular lighting coefficient.
void SetGradientOpacity(vtkPiecewiseFunction *function)
void SetColor(vtkPiecewiseFunction *function)
double GetScalarOpacityUnitDistance()
Set/Get the unit distance on which the scalar opacity transfer function is defined.
vtkTypeUInt64 vtkMTimeType
vtkPiecewiseFunction * GetScalarOpacity()
vtkTimeStamp GetRGBTransferFunctionMTime()
vtkPiecewiseFunction * GetStoredGradientOpacity()
Enable/Disable the gradient opacity function for the given component.
vtkTimeStamp GetScalarOpacityMTime()
a simple class to control print indentation
bool HasGradientOpacity(int index=0)
Check whether or not we have the gradient opacity.
vtkTimeStamp GetGrayTransferFunctionMTime()
void ShadeOff()
Set/Get the shading of a volume.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void SetInterpolationTypeToNearest()
Set the interpolation type for sampling a volume.
int IndependentComponents
represents the common properties for rendering a volume.
virtual void SetDisableGradientOpacity(int value)
Enable/Disable the gradient opacity function for the given component.
void SetSpecular(double value)
Set/Get the specular lighting coefficient.
void SetShade(int value)
Set/Get the shading of a volume.
Defines a transfer function for mapping a property to an RGB color value.
void SetDiffuse(double value)
Set/Get the diffuse lighting coefficient.
void SetInterpolationTypeToLinear()
Set the interpolation type for sampling a volume.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual int GetDisableGradientOpacity()
Enable/Disable the gradient opacity function for the given component.
vtkTimeStamp GetGradientOpacityMTime()
virtual void DisableGradientOpacityOff(int index)
Enable/Disable the gradient opacity function for the given component.
virtual void DisableGradientOpacityOn(int index)
Enable/Disable the gradient opacity function for the given component.
#define VTK_NEAREST_INTERPOLATION
void ShadeOn()
Set/Get the shading of a volume.
virtual void DisableGradientOpacityOff()
Enable/Disable the gradient opacity function for the given component.
void SetScalarOpacityUnitDistance(double distance)
Set/Get the unit distance on which the scalar opacity transfer function is defined.
vtkPiecewiseFunction * GetGradientOpacity()
double GetAmbient()
Set/Get the ambient lighting coefficient.
double GetSpecularPower()
Set/Get the specular power.