 |
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>
110 vtkSetClampMacro(IndependentComponents,
vtkTypeBool, 0, 1);
112 vtkBooleanMacro(IndependentComponents,
vtkTypeBool);
121 vtkGetMacro(InterpolationType,
int);
124 const char* GetInterpolationTypeAsString(
void);
132 virtual void SetComponentWeight(
int index,
double value);
133 virtual double GetComponentWeight(
int index);
157 int GetColorChannels(
int index);
198 void SetScalarOpacityUnitDistance(
int index,
double distance);
201 this->SetScalarOpacityUnitDistance(0, distance);
203 double GetScalarOpacityUnitDistance(
int index);
240 vtkSetClampMacro(TransferFunctionMode,
int, 0, 1);
241 vtkGetMacro(TransferFunctionMode,
int);
263 virtual void SetDisableGradientOpacity(
int index,
int value);
269 virtual int GetDisableGradientOpacity(
int index);
283 switch (this->TransferFunctionMode)
286 return (this->GradientOpacity[
index] !=
nullptr);
321 int GetShade(
int index);
323 void ShadeOn(
int index);
325 void ShadeOff(
int index);
335 double GetAmbient(
int index);
345 double GetDiffuse(
int index);
355 double GetSpecular(
int index);
363 void SetSpecularPower(
int index,
double value);
365 double GetSpecularPower(
int index);
431 vtkSetMacro(UseClippedVoxelIntensity,
int);
432 vtkGetMacro(UseClippedVoxelIntensity,
int);
433 vtkBooleanMacro(UseClippedVoxelIntensity,
int);
446 vtkSetMacro(ClippedVoxelIntensity,
double);
447 vtkGetMacro(ClippedVoxelIntensity,
double);
496 std::size_t GetNumberOfLabels();
502 std::set<int> GetLabelMapLabels();
515 virtual void CreateDefaultGradientOpacity(
int index);
570 std::unordered_map<int, vtkColorTransferFunction*>
LabelColor;
588 return "Nearest Neighbor";
virtual void DisableGradientOpacityOn(int index)
vtkTimeStamp LabelColorMTime
virtual void DisableGradientOpacityOff()
void SetScalarOpacityUnitDistance(double distance)
vtkPiecewiseFunction * GetGradientOpacity()
vtkPiecewiseFunction * GetGrayTransferFunction()
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkSmartPointer< vtkImplicitFunction > SliceFunction
Function used for slice.
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
double ClippedVoxelIntensity
vtkTimeStamp GetRGBTransferFunctionMTime()
void SetScalarOpacity(vtkPiecewiseFunction *function)
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)
vtkPiecewiseFunction * GetScalarOpacity()
double GetScalarOpacityUnitDistance()
bool HasLabelGradientOpacity()
abstract interface for implicit functions
vtkTimeStamp GetScalarOpacityMTime()
std::unordered_map< int, vtkPiecewiseFunction * > LabelGradientOpacity
void SetColor(vtkPiecewiseFunction *function)
bool HasGradientOpacity(int index=0)
Check whether or not we have the gradient opacity.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
helper object to manage setting and generating contour values
TransferMode
Color-opacity transfer function mode.
vtkPiecewiseFunction * GetStoredGradientOpacity()
topologically and geometrically regular array of data
a simple class to control print indentation
vtkTimeStamp GetGrayTransferFunctionMTime()
#define VTK_LINEAR_INTERPOLATION
virtual void SetDisableGradientOpacity(int value)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
vtkTimeStamp GetTransferFunction2DMTime()
vtkTimeStamp GetGradientOpacityMTime()
virtual void DisableGradientOpacityOff(int index)
void SetInterpolationTypeToNearest()
virtual int GetDisableGradientOpacity()
vtkTimeStamp LabelGradientOpacityMTime
std::set< int > LabelMapLabels
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)
std::unordered_map< int, vtkPiecewiseFunction * > LabelScalarOpacity
double GetSpecularPower()
represents the common properties for rendering a volume.
vtkTypeUInt32 vtkMTimeType
void SetAmbient(double value)
void SetDiffuse(double value)