 |
VTK
9.0.1
|
Go to the documentation of this file.
55 #ifndef vtkVolumeProperty_h
56 #define vtkVolumeProperty_h
61 #include "vtkRenderingCoreModule.h"
66 #include <unordered_map>
121 vtkGetMacro(InterpolationType,
int);
124 const char* GetInterpolationTypeAsString(
void);
201 this->SetScalarOpacityUnitDistance(0, distance);
240 vtkSetClampMacro(TransferFunctionMode,
int, 0, 1);
241 vtkGetMacro(TransferFunctionMode,
int);
283 switch (this->TransferFunctionMode)
286 return (this->GradientOpacity[
index] !=
nullptr);
431 vtkSetMacro(UseClippedVoxelIntensity,
int);
432 vtkGetMacro(UseClippedVoxelIntensity,
int);
433 vtkBooleanMacro(UseClippedVoxelIntensity,
int);
446 vtkSetMacro(ClippedVoxelIntensity,
double);
447 vtkGetMacro(ClippedVoxelIntensity,
double);
570 std::unordered_map<int, vtkColorTransferFunction*>
LabelColor;
588 return "Nearest Neighbor";
void SetTransferFunction2D(int index, vtkImageData *function)
Set/Get a 2D transfer function.
void SetScalarOpacityUnitDistance(int index, double distance)
Set/Get the unit distance on which the scalar opacity transfer function is defined.
double GetSpecular(int index)
void SetLabelGradientOpacity(int label, vtkPiecewiseFunction *function)
Set/Get the gradient opacity function for a label in the label map.
vtkPiecewiseFunction * GetScalarOpacity(int index)
Get the scalar opacity transfer function for the given component.
virtual void DisableGradientOpacityOn(int index)
vtkTimeStamp LabelColorMTime
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...
std::size_t GetNumberOfLabels()
Get the number of labels that are provided with transfer functions using either SetLabelColor,...
vtkContourValues * GetIsoSurfaceValues()
Get contour values for isosurface blending mode.
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.
vtkSmartPointer< vtkImplicitFunction > SliceFunction
Function used for slice.
record modification and/or execution time
vtkColorTransferFunction * GetRGBTransferFunction()
void SetSpecularPower(double value)
vtkMTimeType GetMTime() override
Get the modified time for this object (or the properties registered with this object).
vtkGetSmartPointerMacro(SliceFunction, vtkImplicitFunction)
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.
double ClippedVoxelIntensity
vtkTimeStamp GetRGBTransferFunctionMTime()
void SetScalarOpacity(vtkPiecewiseFunction *function)
virtual void SetComponentWeight(int index, double value)
Set/Get the scalar component weights.
vtkImageData * GetTransferFunction2D()
vtkTypeBool IndependentComponents
#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()
bool HasLabelGradientOpacity()
std::set< int > GetLabelMapLabels()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get access to the internal set that keeps tra...
abstract interface for implicit functions
vtkColorTransferFunction * GetRGBTransferFunction(int index)
Get the RGB transfer function for the given component.
vtkTimeStamp GetScalarOpacityMTime()
std::unordered_map< int, vtkPiecewiseFunction * > LabelGradientOpacity
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageData * GetTransferFunction2D(int index)
vtkPiecewiseFunction * GetGrayTransferFunction(int index)
Get the gray transfer function.
helper object to manage setting and generating contour values
TransferMode
Color-opacity transfer function mode.
void SetSpecular(int index, double value)
Set/Get the specular lighting coefficient.
vtkPiecewiseFunction * GetStoredGradientOpacity()
topologically and geometrically regular array of data
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.
~vtkVolumeProperty() override
#define VTK_LINEAR_INTERPOLATION
virtual void SetDisableGradientOpacity(int value)
virtual int GetDisableGradientOpacity(int index)
void SetSpecular(double value)
int UseClippedVoxelIntensity
const char * GetInterpolationTypeAsString(void)
Return the interpolation type as a descriptive character string.
vtkTimeStamp LabelScalarOpacityMTime
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.
void SetSpecularPower(int index, double value)
Set/Get the specular power.
void SetLabelScalarOpacity(int label, vtkPiecewiseFunction *function)
Set/Get the opacity transfer function for a label in the label map.
vtkColorTransferFunction * GetLabelColor(int label)
vtkTimeStamp GetTransferFunction2DMTime()
vtkTimeStamp GetGradientOpacityMTime()
vtkTimeStamp GetTransferFunction2DMTime(int index)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time when the TransferFunction2D was ...
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()
vtkTimeStamp LabelGradientOpacityMTime
void UpdateMTimes()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE UpdateMTimes performs a Modified() on all Tim...
std::set< int > LabelMapLabels
vtkPiecewiseFunction * GetLabelScalarOpacity(int label)
virtual void CreateDefaultGradientOpacity(int index)
vtkSetSmartPointerMacro(SliceFunction, vtkImplicitFunction)
Get/Set the function used for slicing.
std::unordered_map< int, vtkColorTransferFunction * > LabelColor
Label map transfer functions.
vtkNew< vtkContourValues > IsoSurfaceValues
Contour values for isosurface blend mode.
void SetInterpolationTypeToLinear()
void SetTransferFunction2D(vtkImageData *function)
void SetLabelColor(int label, vtkColorTransferFunction *function)
Set/Get the color transfer function for a label in the label map.
double GetDiffuse(int index)
vtkPiecewiseFunction * GetLabelGradientOpacity(int label)
std::unordered_map< int, vtkPiecewiseFunction * > LabelScalarOpacity
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)
vtkTypeUInt32 vtkMTimeType
void SetAmbient(double value)
void SetDiffuse(double value)