44 #ifndef vtkVolumeProperty_h 45 #define vtkVolumeProperty_h 47 #include "vtkRenderingCoreModule.h" 90 vtkSetClampMacro(IndependentComponents,
int, 0, 1);
91 vtkGetMacro(IndependentComponents,
int);
100 vtkSetClampMacro(InterpolationType,
int,
102 vtkGetMacro(InterpolationType,
int);
103 void SetInterpolationTypeToNearest()
107 const char *GetInterpolationTypeAsString(
void);
115 virtual void SetComponentWeight(
int index,
double value);
116 virtual double GetComponentWeight(
int index);
126 { this->SetColor(0,
function); }
136 { this->SetColor(0,
function); }
142 int GetColorChannels(
int index);
144 {
return this->GetColorChannels(0); }
153 {
return this->GetGrayTransferFunction(0); }
162 {
return this->GetRGBTransferFunction(0); }
170 { this->SetScalarOpacity(0,
function); }
179 {
return this->GetScalarOpacity(0); }
188 void SetScalarOpacityUnitDistance(
int index,
double distance);
190 { this->SetScalarOpacityUnitDistance(0, distance); }
191 double GetScalarOpacityUnitDistance(
int index);
193 {
return this->GetScalarOpacityUnitDistance(0); }
203 { this->SetGradientOpacity(0,
function); }
215 {
return this->GetGradientOpacity(0); }
225 virtual void SetDisableGradientOpacity(
int index,
int value);
227 { this->SetDisableGradientOpacity(0,
value); }
229 { this->SetDisableGradientOpacity(
index, 1); }
231 { this->DisableGradientOpacityOn(0); }
233 { this->SetDisableGradientOpacity(
index, 0); }
235 { this->DisableGradientOpacityOff(0); }
236 virtual int GetDisableGradientOpacity(
int index);
238 {
return this->GetDisableGradientOpacity(0); }
241 {
return this->GetStoredGradientOpacity(0); }
251 return (this->GradientOpacity[
index] != NULL);
277 { this->SetShade(0,
value); }
278 int GetShade(
int index);
280 {
return this->GetShade(0); }
281 void ShadeOn(
int index);
283 { this->ShadeOn(0); }
284 void ShadeOff(
int index);
286 { this->ShadeOff(0); }
295 { this->SetAmbient(0,
value); }
296 double GetAmbient(
int index);
298 {
return this->GetAmbient(0); }
307 { this->SetDiffuse(0,
value); }
308 double GetDiffuse(
int index);
310 {
return this->GetDiffuse(0); }
319 { this->SetSpecular(0,
value); }
320 double GetSpecular(
int index);
322 {
return this->GetSpecular(0); }
329 void SetSpecularPower(
int index,
double value);
331 { this->SetSpecularPower(0,
value); }
332 double GetSpecularPower(
int index);
334 {
return this->GetSpecularPower(0); }
352 {
return this->GetGradientOpacityMTime(0); }
360 {
return this->GetScalarOpacityMTime(0); }
368 {
return this->GetRGBTransferFunctionMTime(0); }
376 {
return this->GetGrayTransferFunctionMTime(0); }
382 int IndependentComponents;
385 int InterpolationType;
410 virtual
void CreateDefaultGradientOpacity(
int index);
425 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.
vtkTypeUInt32 vtkMTimeType
void SetColor(vtkColorTransferFunction *function)
vtkPiecewiseFunction * GetGrayTransferFunction()
record modification and/or execution time
#define VTK_LINEAR_INTERPOLATION
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.
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.
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.