Go to the documentation of this file.
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);
132 { this->SetColor(0,
function); }
142 { this->SetColor(0,
function); }
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); }
196 { this->SetScalarOpacityUnitDistance(0, distance); }
199 {
return this->GetScalarOpacityUnitDistance(0); }
209 { this->SetGradientOpacity(0,
function); }
221 {
return this->GetGradientOpacity(0); }
233 { this->SetDisableGradientOpacity(0,
value); }
235 { this->SetDisableGradientOpacity(
index, 1); }
237 { this->DisableGradientOpacityOn(0); }
239 { this->SetDisableGradientOpacity(
index, 0); }
241 { this->DisableGradientOpacityOff(0); }
244 {
return this->GetDisableGradientOpacity(0); }
247 {
return this->GetStoredGradientOpacity(0); }
257 return (this->GradientOpacity[
index] != NULL);
283 { this->SetShade(0,
value); }
286 {
return this->GetShade(0); }
289 { this->ShadeOn(0); }
292 { this->ShadeOff(0); }
301 { this->SetAmbient(0,
value); }
304 {
return this->GetAmbient(0); }
313 { this->SetDiffuse(0,
value); }
316 {
return this->GetDiffuse(0); }
325 { this->SetSpecular(0,
value); }
328 {
return this->GetSpecular(0); }
337 { this->SetSpecularPower(0,
value); }
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); }
431 return "Nearest Neighbor";
void SetScalarOpacityUnitDistance(int index, double distance)
Set/Get the unit distance on which the scalar opacity transfer function is defined.
double GetSpecular(int index)
vtkPiecewiseFunction * GetScalarOpacity(int index)
Get the scalar opacity transfer function for the given component.
virtual void DisableGradientOpacityOn(int index)
virtual void DisableGradientOpacityOff()
void SetScalarOpacityUnitDistance(double distance)
vtkPiecewiseFunction * GetGradientOpacity()
void SetDiffuse(int index, double value)
Set/Get the diffuse lighting coefficient.
void SetGradientOpacity(int index, vtkPiecewiseFunction *function)
Set the opacity of a volume to an opacity transfer function based on gradient magnitude for the given...
vtkPiecewiseFunction * GetGrayTransferFunction()
virtual double GetComponentWeight(int index)
double GetScalarOpacityUnitDistance(int index)
static vtkVolumeProperty * New()
void SetAmbient(int index, double value)
Set/Get the ambient lighting coefficient.
record modification and/or execution time
vtkColorTransferFunction * GetRGBTransferFunction()
void SetSpecularPower(double value)
void SetColor(vtkColorTransferFunction *function)
virtual void DisableGradientOpacityOn()
abstract base class for most VTK objects
void SetShade(int index, int value)
Set/Get the shading of a volume.
vtkTimeStamp GetRGBTransferFunctionMTime()
void SetScalarOpacity(vtkPiecewiseFunction *function)
virtual void SetComponentWeight(int index, double value)
Set/Get the scalar component weights.
#define VTK_NEAREST_INTERPOLATION
Defines a transfer function for mapping a property to an RGB color value.
void SetGradientOpacity(vtkPiecewiseFunction *function)
vtkTimeStamp GetScalarOpacityMTime(int index)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the scalar opacity transfer...
vtkTimeStamp GetRGBTransferFunctionMTime(int index)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the RGBTransferFunction was...
vtkPiecewiseFunction * GetScalarOpacity()
double GetScalarOpacityUnitDistance()
vtkTypeUInt64 vtkMTimeType
vtkColorTransferFunction * GetRGBTransferFunction(int index)
Get the RGB transfer function for the given component.
vtkTimeStamp GetScalarOpacityMTime()
void SetColor(vtkPiecewiseFunction *function)
void DeepCopy(vtkVolumeProperty *p)
double GetSpecularPower(int index)
bool HasGradientOpacity(int index=0)
Check whether or not we have the gradient opacity.
int IndependentComponents
vtkPiecewiseFunction * GetGrayTransferFunction(int index)
Get the gray transfer function.
void SetSpecular(int index, double value)
Set/Get the specular lighting coefficient.
vtkPiecewiseFunction * GetStoredGradientOpacity()
a simple class to control print indentation
void SetColor(int index, vtkColorTransferFunction *function)
Set the color of a volume to an RGB transfer function for the component indicated by index.
vtkTimeStamp GetGrayTransferFunctionMTime()
void SetColor(int index, vtkPiecewiseFunction *function)
Set the color of a volume to a gray level transfer function for the component indicated by index.
#define VTK_LINEAR_INTERPOLATION
virtual void SetDisableGradientOpacity(int value)
virtual int GetDisableGradientOpacity(int index)
void SetSpecular(double value)
const char * GetInterpolationTypeAsString(void)
Return the interpolation type as a descriptive character string.
vtkMTimeType GetMTime()
Get the modified time for this object (or the properties registered with this object).
Defines a 1D piecewise function.
void SetScalarOpacity(int index, vtkPiecewiseFunction *function)
Set the opacity of a volume to an opacity transfer function based on scalar value for the component i...
int GetColorChannels(int index)
Get the number of color channels in the transfer function for the given component.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
void SetSpecularPower(int index, double value)
Set/Get the specular power.
vtkTimeStamp GetGradientOpacityMTime()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void DisableGradientOpacityOff(int index)
vtkTimeStamp GetGradientOpacityMTime(int index)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the gradient opacity transf...
vtkPiecewiseFunction * GetStoredGradientOpacity(int index)
void SetInterpolationTypeToNearest()
vtkTimeStamp GetGrayTransferFunctionMTime(int index)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the GrayTransferFunction wa...
virtual int GetDisableGradientOpacity()
void UpdateMTimes()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE UpdateMTimes performs a Modified() on all Tim...
virtual void CreateDefaultGradientOpacity(int index)
void SetInterpolationTypeToLinear()
double GetDiffuse(int index)
double GetSpecularPower()
vtkPiecewiseFunction * GetGradientOpacity(int index)
Get the gradient magnitude opacity transfer function for the given component.
virtual void SetDisableGradientOpacity(int index, int value)
Enable/Disable the gradient opacity function for the given component.
represents the common properties for rendering a volume.
double GetAmbient(int index)
void SetAmbient(double value)
void SetDiffuse(double value)