VTK
9.1.0
|
represents the common properties for rendering a volume. More...
#include <vtkVolumeProperty.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. | |
vtkVolumeProperty * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. | |
void | DeepCopy (vtkVolumeProperty *p) |
vtkMTimeType | GetMTime () override |
Get the modified time for this object (or the properties registered with this object). | |
void | SetColor (int index, vtkPiecewiseFunction *function) |
Set the color of a volume to a gray level transfer function for the component indicated by index. | |
void | SetColor (vtkPiecewiseFunction *function) |
void | SetColor (int index, vtkColorTransferFunction *function) |
Set the color of a volume to an RGB transfer function for the component indicated by index. | |
void | SetColor (vtkColorTransferFunction *function) |
int | GetColorChannels (int index) |
Get the number of color channels in the transfer function for the given component. | |
int | GetColorChannels () |
vtkPiecewiseFunction * | GetGrayTransferFunction (int index) |
Get the gray transfer function. | |
vtkPiecewiseFunction * | GetGrayTransferFunction () |
vtkColorTransferFunction * | GetRGBTransferFunction (int index) |
Get the RGB transfer function for the given component. | |
vtkColorTransferFunction * | GetRGBTransferFunction () |
void | SetScalarOpacity (int index, vtkPiecewiseFunction *function) |
Set the opacity of a volume to an opacity transfer function based on scalar value for the component indicated by index. | |
void | SetScalarOpacity (vtkPiecewiseFunction *function) |
vtkPiecewiseFunction * | GetScalarOpacity (int index) |
Get the scalar opacity transfer function for the given component. | |
vtkPiecewiseFunction * | GetScalarOpacity () |
void | SetGradientOpacity (int index, vtkPiecewiseFunction *function) |
Set the opacity of a volume to an opacity transfer function based on gradient magnitude for the given component. | |
void | SetGradientOpacity (vtkPiecewiseFunction *function) |
vtkPiecewiseFunction * | GetGradientOpacity (int index) |
Get the gradient magnitude opacity transfer function for the given component. | |
vtkPiecewiseFunction * | GetGradientOpacity () |
bool | HasGradientOpacity (int index=0) |
Check whether or not we have the gradient opacity. | |
bool | HasLabelGradientOpacity () |
vtkContourValues * | GetIsoSurfaceValues () |
Get contour values for isosurface blending mode. | |
void | UpdateMTimes () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE UpdateMTimes performs a Modified() on all TimeStamps. | |
vtkTimeStamp | GetGradientOpacityMTime (int index) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the gradient opacity transfer function was set. | |
vtkTimeStamp | GetGradientOpacityMTime () |
vtkTimeStamp | GetScalarOpacityMTime (int index) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the scalar opacity transfer function was set. | |
vtkTimeStamp | GetScalarOpacityMTime () |
vtkTimeStamp | GetRGBTransferFunctionMTime (int index) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the RGBTransferFunction was set. | |
vtkTimeStamp | GetRGBTransferFunctionMTime () |
vtkTimeStamp | GetGrayTransferFunctionMTime (int index) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the GrayTransferFunction was set. | |
vtkTimeStamp | GetGrayTransferFunctionMTime () |
virtual vtkTimeStamp | GetLabelColorMTime () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that label color transfer functions were set. | |
virtual vtkTimeStamp | GetLabelScalarOpacityMTime () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that label scalar opacity transfer functions were set. | |
virtual vtkTimeStamp | GetLabelGradientOpacityMTime () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that label gradient opacity transfer functions were set. | |
std::size_t | GetNumberOfLabels () |
Get the number of labels that are provided with transfer functions using either SetLabelColor, SetLabelScalarOpacity or SetLabelGradientOpacity. | |
std::set< int > | GetLabelMapLabels () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get access to the internal set that keeps track of labels. | |
virtual void | SetIndependentComponents (vtkTypeBool) |
Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded. | |
virtual vtkTypeBool | GetIndependentComponents () |
Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded. | |
virtual void | IndependentComponentsOn () |
Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded. | |
virtual void | IndependentComponentsOff () |
Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded. | |
virtual void | SetInterpolationType (int) |
Set the interpolation type for sampling a volume. | |
virtual int | GetInterpolationType () |
Set the interpolation type for sampling a volume. | |
void | SetInterpolationTypeToNearest () |
Set the interpolation type for sampling a volume. | |
void | SetInterpolationTypeToLinear () |
Set the interpolation type for sampling a volume. | |
const char * | GetInterpolationTypeAsString (void) |
Return the interpolation type as a descriptive character string. | |
virtual void | SetComponentWeight (int index, double value) |
Set/Get the scalar component weights. | |
virtual double | GetComponentWeight (int index) |
Set/Get the scalar component weights. | |
void | SetScalarOpacityUnitDistance (int index, double distance) |
Set/Get the unit distance on which the scalar opacity transfer function is defined. | |
void | SetScalarOpacityUnitDistance (double distance) |
Set/Get the unit distance on which the scalar opacity transfer function is defined. | |
double | GetScalarOpacityUnitDistance (int index) |
Set/Get the unit distance on which the scalar opacity transfer function is defined. | |
double | GetScalarOpacityUnitDistance () |
Set/Get the unit distance on which the scalar opacity transfer function is defined. | |
virtual void | SetDisableGradientOpacity (int index, int value) |
Enable/Disable the gradient opacity function for the given component. | |
virtual void | SetDisableGradientOpacity (int value) |
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. | |
virtual void | DisableGradientOpacityOn () |
Enable/Disable the gradient opacity function for the given component. | |
virtual void | DisableGradientOpacityOff (int index) |
Enable/Disable the gradient opacity function for the given component. | |
virtual void | DisableGradientOpacityOff () |
Enable/Disable the gradient opacity function for the given component. | |
virtual int | GetDisableGradientOpacity (int index) |
Enable/Disable the gradient opacity function for the given component. | |
virtual int | GetDisableGradientOpacity () |
Enable/Disable the gradient opacity function for the given component. | |
vtkPiecewiseFunction * | GetStoredGradientOpacity (int index) |
Enable/Disable the gradient opacity function for the given component. | |
vtkPiecewiseFunction * | GetStoredGradientOpacity () |
Enable/Disable the gradient opacity function for the given component. | |
void | SetShade (int index, int value) |
Set/Get the shading of a volume. | |
void | SetShade (int value) |
Set/Get the shading of a volume. | |
int | GetShade (int index) |
Set/Get the shading of a volume. | |
int | GetShade () |
Set/Get the shading of a volume. | |
void | ShadeOn (int index) |
Set/Get the shading of a volume. | |
void | ShadeOn () |
Set/Get the shading of a volume. | |
void | ShadeOff (int index) |
Set/Get the shading of a volume. | |
void | ShadeOff () |
Set/Get the shading of a volume. | |
void | SetAmbient (int index, double value) |
Set/Get the ambient lighting coefficient. | |
void | SetAmbient (double value) |
Set/Get the ambient lighting coefficient. | |
double | GetAmbient (int index) |
Set/Get the ambient lighting coefficient. | |
double | GetAmbient () |
Set/Get the ambient lighting coefficient. | |
void | SetDiffuse (int index, double value) |
Set/Get the diffuse lighting coefficient. | |
void | SetDiffuse (double value) |
Set/Get the diffuse lighting coefficient. | |
double | GetDiffuse (int index) |
Set/Get the diffuse lighting coefficient. | |
double | GetDiffuse () |
Set/Get the diffuse lighting coefficient. | |
void | SetSpecular (int index, double value) |
Set/Get the specular lighting coefficient. | |
void | SetSpecular (double value) |
Set/Get the specular lighting coefficient. | |
double | GetSpecular (int index) |
Set/Get the specular lighting coefficient. | |
double | GetSpecular () |
Set/Get the specular lighting coefficient. | |
void | SetSpecularPower (int index, double value) |
Set/Get the specular power. | |
void | SetSpecularPower (double value) |
Set/Get the specular power. | |
double | GetSpecularPower (int index) |
Set/Get the specular power. | |
double | GetSpecularPower () |
Set/Get the specular power. | |
vtkSetSmartPointerMacro (SliceFunction, vtkImplicitFunction) | |
Get/Set the function used for slicing. | |
vtkGetSmartPointerMacro (SliceFunction, vtkImplicitFunction) | |
Get/Set the function used for slicing. | |
virtual void | SetUseClippedVoxelIntensity (int) |
Set/Get whether to use a fixed intensity value for voxels in the clipped space for gradient calculations. | |
virtual int | GetUseClippedVoxelIntensity () |
Set/Get whether to use a fixed intensity value for voxels in the clipped space for gradient calculations. | |
virtual void | UseClippedVoxelIntensityOn () |
Set/Get whether to use a fixed intensity value for voxels in the clipped space for gradient calculations. | |
virtual void | UseClippedVoxelIntensityOff () |
Set/Get whether to use a fixed intensity value for voxels in the clipped space for gradient calculations. | |
virtual void | SetClippedVoxelIntensity (double) |
Set/Get the intensity value for voxels in the clipped space for gradient computations (for shading and gradient based opacity modulation). | |
virtual double | GetClippedVoxelIntensity () |
Set/Get the intensity value for voxels in the clipped space for gradient computations (for shading and gradient based opacity modulation). | |
void | SetLabelColor (int label, vtkColorTransferFunction *function) |
Set/Get the color transfer function for a label in the label map. | |
vtkColorTransferFunction * | GetLabelColor (int label) |
Set/Get the color transfer function for a label in the label map. | |
void | SetLabelScalarOpacity (int label, vtkPiecewiseFunction *function) |
Set/Get the opacity transfer function for a label in the label map. | |
vtkPiecewiseFunction * | GetLabelScalarOpacity (int label) |
Set/Get the opacity transfer function for a label in the label map. | |
void | SetLabelGradientOpacity (int label, vtkPiecewiseFunction *function) |
Set/Get the gradient opacity function for a label in the label map. | |
vtkPiecewiseFunction * | GetLabelGradientOpacity (int label) |
Set/Get the gradient opacity function for a label in the label map. | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. | |
virtual void | DebugOff () |
Turn debugging output off. | |
bool | GetDebug () |
Get the value of the debug flag. | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. | |
virtual void | Modified () |
Update the modification time for this object. | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
vtkTypeBool | HasObserver (unsigned long event) |
vtkTypeBool | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. | |
virtual vtkTypeBool | IsA (const char *name) |
Return 1 if this class is the same type of (or a subclass of) the named class. | |
virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). | |
virtual void | Delete () |
Delete a VTK object. | |
virtual void | FastDelete () |
Delete a reference to this object. | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). | |
int | GetReferenceCount () |
Return the current reference count of this object. | |
void | SetReferenceCount (int) |
Sets the reference count. | |
bool | GetIsInMemkind () const |
A local state flag that remembers whether this object lives in the normal or extended memory space. | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. | |
Static Public Member Functions | |
static vtkVolumeProperty * | New () |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkVolumeProperty * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. | |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. | |
static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. | |
static void | SetMemkindDirectory (const char *directoryname) |
The name of a directory, ideally mounted -o dax, to memory map an extended memory space within. | |
static bool | GetUsingMemkind () |
A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space. | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkVolumeProperty () | |
~vtkVolumeProperty () override | |
vtkTimeStamp | GetTransferFunction2DMTime (int index) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time when the TransferFunction2D was set. | |
vtkTimeStamp | GetTransferFunction2DMTime () |
virtual void | CreateDefaultGradientOpacity (int index) |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods allow a command to exclusively grab all events. | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. | |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
Static Protected Member Functions inherited from vtkObjectBase | |
static vtkMallocingFunction | GetCurrentMallocFunction () |
static vtkReallocingFunction | GetCurrentReallocFunction () |
static vtkFreeingFunction | GetCurrentFreeFunction () |
static vtkFreeingFunction | GetAlternateFreeFunction () |
represents the common properties for rendering a volume.
vtkVolumeProperty is used to represent common properties associated with volume rendering. This includes properties for determining the type of interpolation to use when sampling a volume, the color of a volume, the scalar opacity of a volume, the gradient opacity of a volume, and the shading parameters of a volume.
Color, scalar opacity and gradient magnitude opacity transfer functions can be set as either 3 separate 1D functions or as a single 2D transfer function.
Most properties can be set per "component" for volume mappers that support multiple independent components. If you are using 2 component data as LV or 4 component data as RGBV (as specified in the mapper) only the first scalar opacity and gradient opacity transfer functions will be used (and all color functions will be ignored). Omitting the index parameter on the Set/Get methods will access index = 0.
Definition at line 173 of file vtkVolumeProperty.h.
Definition at line 177 of file vtkVolumeProperty.h.
Color-opacity transfer function mode.
TF_1D is its default value.
Enumerator | |
---|---|
TF_1D | |
TF_2D |
Definition at line 333 of file vtkVolumeProperty.h.
|
protected |
|
overrideprotected |
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class.
Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObjectBase.
|
static |
|
protectedvirtual |
vtkVolumeProperty * vtkVolumeProperty::NewInstance | ( | ) | const |
|
overridevirtual |
void vtkVolumeProperty::DeepCopy | ( | vtkVolumeProperty * | p | ) |
|
overridevirtual |
Get the modified time for this object (or the properties registered with this object).
Reimplemented from vtkObject.
|
virtual |
Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded.
Some volume Mappers can handle 1 to 4 component unsigned char or unsigned short data (see each mapper header file to determine functionality). If IndependentComponents is Off, then you must have either 2 or 4 component data. For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first scalar opacity (and gradient opacity) transfer function. Normals will be generated off of the second component. When using gradient based opacity modulation, the gradients are computed off of the second component. For 4 component data, the first three will directly represent RGB (no lookup table). The fourth component will be passed through the first scalar opacity transfer function for opacity and first gradient opacity transfer function for gradient based opacity modulation. Normals will be generated from the fourth component. When using gradient based opacity modulation, the gradients are computed off of the fourth component.
|
virtual |
Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded.
Some volume Mappers can handle 1 to 4 component unsigned char or unsigned short data (see each mapper header file to determine functionality). If IndependentComponents is Off, then you must have either 2 or 4 component data. For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first scalar opacity (and gradient opacity) transfer function. Normals will be generated off of the second component. When using gradient based opacity modulation, the gradients are computed off of the second component. For 4 component data, the first three will directly represent RGB (no lookup table). The fourth component will be passed through the first scalar opacity transfer function for opacity and first gradient opacity transfer function for gradient based opacity modulation. Normals will be generated from the fourth component. When using gradient based opacity modulation, the gradients are computed off of the fourth component.
|
virtual |
Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded.
Some volume Mappers can handle 1 to 4 component unsigned char or unsigned short data (see each mapper header file to determine functionality). If IndependentComponents is Off, then you must have either 2 or 4 component data. For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first scalar opacity (and gradient opacity) transfer function. Normals will be generated off of the second component. When using gradient based opacity modulation, the gradients are computed off of the second component. For 4 component data, the first three will directly represent RGB (no lookup table). The fourth component will be passed through the first scalar opacity transfer function for opacity and first gradient opacity transfer function for gradient based opacity modulation. Normals will be generated from the fourth component. When using gradient based opacity modulation, the gradients are computed off of the fourth component.
|
virtual |
Does the data have independent components, or do some define color only? If IndependentComponents is On (the default) then each component will be independently passed through a lookup table to determine RGBA, shaded.
Some volume Mappers can handle 1 to 4 component unsigned char or unsigned short data (see each mapper header file to determine functionality). If IndependentComponents is Off, then you must have either 2 or 4 component data. For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first scalar opacity (and gradient opacity) transfer function. Normals will be generated off of the second component. When using gradient based opacity modulation, the gradients are computed off of the second component. For 4 component data, the first three will directly represent RGB (no lookup table). The fourth component will be passed through the first scalar opacity transfer function for opacity and first gradient opacity transfer function for gradient based opacity modulation. Normals will be generated from the fourth component. When using gradient based opacity modulation, the gradients are computed off of the fourth component.
|
virtual |
Set the interpolation type for sampling a volume.
Initial value is VTK_NEAREST_INTERPOLATION.
|
virtual |
Set the interpolation type for sampling a volume.
Initial value is VTK_NEAREST_INTERPOLATION.
|
inline |
Set the interpolation type for sampling a volume.
Initial value is VTK_NEAREST_INTERPOLATION.
Definition at line 221 of file vtkVolumeProperty.h.
|
inline |
Set the interpolation type for sampling a volume.
Initial value is VTK_NEAREST_INTERPOLATION.
Definition at line 222 of file vtkVolumeProperty.h.
|
inline |
Return the interpolation type as a descriptive character string.
Definition at line 682 of file vtkVolumeProperty.h.
|
virtual |
Set/Get the scalar component weights.
Clamped between the range of (0.0, 1.0)
|
virtual |
Set/Get the scalar component weights.
Clamped between the range of (0.0, 1.0)
void vtkVolumeProperty::SetColor | ( | int | index, |
vtkPiecewiseFunction * | function | ||
) |
Set the color of a volume to a gray level transfer function for the component indicated by index.
This will set the color channels for this component to 1.
|
inline |
Definition at line 241 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetColor | ( | int | index, |
vtkColorTransferFunction * | function | ||
) |
Set the color of a volume to an RGB transfer function for the component indicated by index.
This will set the color channels for this component to 3. This will also recompute the color channels
|
inline |
Definition at line 250 of file vtkVolumeProperty.h.
int vtkVolumeProperty::GetColorChannels | ( | int | index | ) |
Get the number of color channels in the transfer function for the given component.
|
inline |
Definition at line 257 of file vtkVolumeProperty.h.
vtkPiecewiseFunction * vtkVolumeProperty::GetGrayTransferFunction | ( | int | index | ) |
Get the gray transfer function.
If no transfer function has been set for this component, a default one is created and returned.
|
inline |
Definition at line 265 of file vtkVolumeProperty.h.
vtkColorTransferFunction * vtkVolumeProperty::GetRGBTransferFunction | ( | int | index | ) |
Get the RGB transfer function for the given component.
If no transfer function has been set for this component, a default one is created and returned.
|
inline |
Definition at line 273 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetScalarOpacity | ( | int | index, |
vtkPiecewiseFunction * | function | ||
) |
Set the opacity of a volume to an opacity transfer function based on scalar value for the component indicated by index.
|
inline |
Definition at line 280 of file vtkVolumeProperty.h.
vtkPiecewiseFunction * vtkVolumeProperty::GetScalarOpacity | ( | int | index | ) |
Get the scalar opacity transfer function for the given component.
If no transfer function has been set for this component, a default one is created and returned.
|
inline |
Definition at line 288 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetScalarOpacityUnitDistance | ( | int | index, |
double | distance | ||
) |
Set/Get the unit distance on which the scalar opacity transfer function is defined.
By default this is 1.0, meaning that over a distance of 1.0 units, a given opacity (from the transfer function) is accumulated. This is adjusted for the actual sampling distance during rendering.
|
inline |
Set/Get the unit distance on which the scalar opacity transfer function is defined.
By default this is 1.0, meaning that over a distance of 1.0 units, a given opacity (from the transfer function) is accumulated. This is adjusted for the actual sampling distance during rendering.
Definition at line 298 of file vtkVolumeProperty.h.
double vtkVolumeProperty::GetScalarOpacityUnitDistance | ( | int | index | ) |
Set/Get the unit distance on which the scalar opacity transfer function is defined.
By default this is 1.0, meaning that over a distance of 1.0 units, a given opacity (from the transfer function) is accumulated. This is adjusted for the actual sampling distance during rendering.
|
inline |
Set/Get the unit distance on which the scalar opacity transfer function is defined.
By default this is 1.0, meaning that over a distance of 1.0 units, a given opacity (from the transfer function) is accumulated. This is adjusted for the actual sampling distance during rendering.
Definition at line 303 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetGradientOpacity | ( | int | index, |
vtkPiecewiseFunction * | function | ||
) |
Set the opacity of a volume to an opacity transfer function based on gradient magnitude for the given component.
|
inline |
Definition at line 311 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetTransferFunction2D | ( | int | index, |
vtkImageData * | function | ||
) |
Set/Get a 2D transfer function.
Volume mappers interpret the x-axis of of this transfer function as scalar value and the y-axis as gradient magnitude. The value at (X, Y) corresponds to the color and opacity for a salar value of X and a gradient magnitude of Y.
|
inline |
Color-opacity transfer function mode.
TF_1D is its default value.
Definition at line 321 of file vtkVolumeProperty.h.
vtkImageData * vtkVolumeProperty::GetTransferFunction2D | ( | int | index | ) |
Color-opacity transfer function mode.
TF_1D is its default value.
|
inline |
Color-opacity transfer function mode.
TF_1D is its default value.
Definition at line 324 of file vtkVolumeProperty.h.
|
virtual |
Color-opacity transfer function mode.
TF_1D is its default value.
|
virtual |
Color-opacity transfer function mode.
TF_1D is its default value.
vtkPiecewiseFunction * vtkVolumeProperty::GetGradientOpacity | ( | int | index | ) |
Get the gradient magnitude opacity transfer function for the given component.
If no transfer function has been set for this component, a default one is created and returned. This default function is always returned if DisableGradientOpacity is On for that component.
|
inline |
Definition at line 352 of file vtkVolumeProperty.h.
|
virtual |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
|
inlinevirtual |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
Definition at line 363 of file vtkVolumeProperty.h.
|
inlinevirtual |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
Definition at line 364 of file vtkVolumeProperty.h.
|
inlinevirtual |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
Definition at line 365 of file vtkVolumeProperty.h.
|
inlinevirtual |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
Definition at line 366 of file vtkVolumeProperty.h.
|
inlinevirtual |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
Definition at line 367 of file vtkVolumeProperty.h.
|
virtual |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
|
inlinevirtual |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
Definition at line 369 of file vtkVolumeProperty.h.
vtkPiecewiseFunction * vtkVolumeProperty::GetStoredGradientOpacity | ( | int | index | ) |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
|
inline |
Enable/Disable the gradient opacity function for the given component.
If set to true, any call to GetGradientOpacity() will return a default function for this component. Note that the gradient opacity function is still stored, it is not set or reset and can be retrieved using GetStoredGradientOpacity().
Definition at line 371 of file vtkVolumeProperty.h.
|
inline |
Check whether or not we have the gradient opacity.
Checking gradient opacity via GetDisableGradientOpacity or GetGradientOpacity will not work as in the former case, GetDisableGradientOpacity returns false by default and in the later case, a default gradient opacity will be created.
Definition at line 380 of file vtkVolumeProperty.h.
|
inline |
Definition at line 395 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetShade | ( | int | index, |
int | value | ||
) |
Set/Get the shading of a volume.
If shading is turned off, then the mapper for the volume will not perform shading calculations. If shading is turned on, the mapper may perform shading calculations - in some cases shading does not apply (for example, in a maximum intensity projection) and therefore shading will not be performed even if this flag is on. For a compositing type of mapper, turning shading off is generally the same as setting ambient=1, diffuse=0, specular=0. Shading can be independently turned on/off per component.
|
inline |
Set/Get the shading of a volume.
If shading is turned off, then the mapper for the volume will not perform shading calculations. If shading is turned on, the mapper may perform shading calculations - in some cases shading does not apply (for example, in a maximum intensity projection) and therefore shading will not be performed even if this flag is on. For a compositing type of mapper, turning shading off is generally the same as setting ambient=1, diffuse=0, specular=0. Shading can be independently turned on/off per component.
Definition at line 419 of file vtkVolumeProperty.h.
int vtkVolumeProperty::GetShade | ( | int | index | ) |
Set/Get the shading of a volume.
If shading is turned off, then the mapper for the volume will not perform shading calculations. If shading is turned on, the mapper may perform shading calculations - in some cases shading does not apply (for example, in a maximum intensity projection) and therefore shading will not be performed even if this flag is on. For a compositing type of mapper, turning shading off is generally the same as setting ambient=1, diffuse=0, specular=0. Shading can be independently turned on/off per component.
|
inline |
Set/Get the shading of a volume.
If shading is turned off, then the mapper for the volume will not perform shading calculations. If shading is turned on, the mapper may perform shading calculations - in some cases shading does not apply (for example, in a maximum intensity projection) and therefore shading will not be performed even if this flag is on. For a compositing type of mapper, turning shading off is generally the same as setting ambient=1, diffuse=0, specular=0. Shading can be independently turned on/off per component.
Definition at line 421 of file vtkVolumeProperty.h.
void vtkVolumeProperty::ShadeOn | ( | int | index | ) |
Set/Get the shading of a volume.
If shading is turned off, then the mapper for the volume will not perform shading calculations. If shading is turned on, the mapper may perform shading calculations - in some cases shading does not apply (for example, in a maximum intensity projection) and therefore shading will not be performed even if this flag is on. For a compositing type of mapper, turning shading off is generally the same as setting ambient=1, diffuse=0, specular=0. Shading can be independently turned on/off per component.
|
inline |
Set/Get the shading of a volume.
If shading is turned off, then the mapper for the volume will not perform shading calculations. If shading is turned on, the mapper may perform shading calculations - in some cases shading does not apply (for example, in a maximum intensity projection) and therefore shading will not be performed even if this flag is on. For a compositing type of mapper, turning shading off is generally the same as setting ambient=1, diffuse=0, specular=0. Shading can be independently turned on/off per component.
Definition at line 423 of file vtkVolumeProperty.h.
void vtkVolumeProperty::ShadeOff | ( | int | index | ) |
Set/Get the shading of a volume.
If shading is turned off, then the mapper for the volume will not perform shading calculations. If shading is turned on, the mapper may perform shading calculations - in some cases shading does not apply (for example, in a maximum intensity projection) and therefore shading will not be performed even if this flag is on. For a compositing type of mapper, turning shading off is generally the same as setting ambient=1, diffuse=0, specular=0. Shading can be independently turned on/off per component.
|
inline |
Set/Get the shading of a volume.
If shading is turned off, then the mapper for the volume will not perform shading calculations. If shading is turned on, the mapper may perform shading calculations - in some cases shading does not apply (for example, in a maximum intensity projection) and therefore shading will not be performed even if this flag is on. For a compositing type of mapper, turning shading off is generally the same as setting ambient=1, diffuse=0, specular=0. Shading can be independently turned on/off per component.
Definition at line 425 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetAmbient | ( | int | index, |
double | value | ||
) |
Set/Get the ambient lighting coefficient.
|
inline |
Set/Get the ambient lighting coefficient.
Definition at line 433 of file vtkVolumeProperty.h.
double vtkVolumeProperty::GetAmbient | ( | int | index | ) |
Set/Get the ambient lighting coefficient.
|
inline |
Set/Get the ambient lighting coefficient.
Definition at line 435 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetDiffuse | ( | int | index, |
double | value | ||
) |
Set/Get the diffuse lighting coefficient.
|
inline |
Set/Get the diffuse lighting coefficient.
Definition at line 443 of file vtkVolumeProperty.h.
double vtkVolumeProperty::GetDiffuse | ( | int | index | ) |
Set/Get the diffuse lighting coefficient.
|
inline |
Set/Get the diffuse lighting coefficient.
Definition at line 445 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetSpecular | ( | int | index, |
double | value | ||
) |
Set/Get the specular lighting coefficient.
|
inline |
Set/Get the specular lighting coefficient.
Definition at line 453 of file vtkVolumeProperty.h.
double vtkVolumeProperty::GetSpecular | ( | int | index | ) |
Set/Get the specular lighting coefficient.
|
inline |
Set/Get the specular lighting coefficient.
Definition at line 455 of file vtkVolumeProperty.h.
void vtkVolumeProperty::SetSpecularPower | ( | int | index, |
double | value | ||
) |
Set/Get the specular power.
|
inline |
Set/Get the specular power.
Definition at line 463 of file vtkVolumeProperty.h.
double vtkVolumeProperty::GetSpecularPower | ( | int | index | ) |
Set/Get the specular power.
|
inline |
Set/Get the specular power.
Definition at line 465 of file vtkVolumeProperty.h.
vtkContourValues * vtkVolumeProperty::GetIsoSurfaceValues | ( | ) |
Get contour values for isosurface blending mode.
Do not affect other blending modes.
vtkVolumeProperty::vtkSetSmartPointerMacro | ( | SliceFunction | , |
vtkImplicitFunction | |||
) |
Get/Set the function used for slicing.
Currently, only vtkPlane is supported.
vtkVolumeProperty::vtkGetSmartPointerMacro | ( | SliceFunction | , |
vtkImplicitFunction | |||
) |
Get/Set the function used for slicing.
Currently, only vtkPlane is supported.
void vtkVolumeProperty::UpdateMTimes | ( | ) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE UpdateMTimes performs a Modified() on all TimeStamps.
This is used by vtkVolume when the property is set, so that any other object that might have been caching information for the property will rebuild.
vtkTimeStamp vtkVolumeProperty::GetGradientOpacityMTime | ( | int | index | ) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the gradient opacity transfer function was set.
|
inline |
Definition at line 497 of file vtkVolumeProperty.h.
vtkTimeStamp vtkVolumeProperty::GetScalarOpacityMTime | ( | int | index | ) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the scalar opacity transfer function was set.
|
inline |
Definition at line 504 of file vtkVolumeProperty.h.
vtkTimeStamp vtkVolumeProperty::GetRGBTransferFunctionMTime | ( | int | index | ) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the RGBTransferFunction was set.
|
inline |
Definition at line 511 of file vtkVolumeProperty.h.
vtkTimeStamp vtkVolumeProperty::GetGrayTransferFunctionMTime | ( | int | index | ) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the GrayTransferFunction was set.
|
inline |
Definition at line 518 of file vtkVolumeProperty.h.
|
virtual |
Set/Get whether to use a fixed intensity value for voxels in the clipped space for gradient calculations.
When UseClippedVoxelIntensity is enabled, the ClippedVoxelIntensity value will be used as intensity of clipped voxels. By default, this is false.
|
virtual |
Set/Get whether to use a fixed intensity value for voxels in the clipped space for gradient calculations.
When UseClippedVoxelIntensity is enabled, the ClippedVoxelIntensity value will be used as intensity of clipped voxels. By default, this is false.
|
virtual |
Set/Get whether to use a fixed intensity value for voxels in the clipped space for gradient calculations.
When UseClippedVoxelIntensity is enabled, the ClippedVoxelIntensity value will be used as intensity of clipped voxels. By default, this is false.
|
virtual |
Set/Get whether to use a fixed intensity value for voxels in the clipped space for gradient calculations.
When UseClippedVoxelIntensity is enabled, the ClippedVoxelIntensity value will be used as intensity of clipped voxels. By default, this is false.
|
virtual |
Set/Get the intensity value for voxels in the clipped space for gradient computations (for shading and gradient based opacity modulation).
By default, this is set to VTK_DOUBLE_MIN.
|
virtual |
Set/Get the intensity value for voxels in the clipped space for gradient computations (for shading and gradient based opacity modulation).
By default, this is set to VTK_DOUBLE_MIN.
void vtkVolumeProperty::SetLabelColor | ( | int | label, |
vtkColorTransferFunction * | function | ||
) |
Set/Get the color transfer function for a label in the label map.
vtkColorTransferFunction * vtkVolumeProperty::GetLabelColor | ( | int | label | ) |
Set/Get the color transfer function for a label in the label map.
void vtkVolumeProperty::SetLabelScalarOpacity | ( | int | label, |
vtkPiecewiseFunction * | function | ||
) |
Set/Get the opacity transfer function for a label in the label map.
vtkPiecewiseFunction * vtkVolumeProperty::GetLabelScalarOpacity | ( | int | label | ) |
Set/Get the opacity transfer function for a label in the label map.
void vtkVolumeProperty::SetLabelGradientOpacity | ( | int | label, |
vtkPiecewiseFunction * | function | ||
) |
Set/Get the gradient opacity function for a label in the label map.
vtkPiecewiseFunction * vtkVolumeProperty::GetLabelGradientOpacity | ( | int | label | ) |
Set/Get the gradient opacity function for a label in the label map.
|
virtual |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that label color transfer functions were set.
|
virtual |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that label scalar opacity transfer functions were set.
|
virtual |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that label gradient opacity transfer functions were set.
std::size_t vtkVolumeProperty::GetNumberOfLabels | ( | ) |
Get the number of labels that are provided with transfer functions using either SetLabelColor, SetLabelScalarOpacity or SetLabelGradientOpacity.
std::set< int > vtkVolumeProperty::GetLabelMapLabels | ( | ) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get access to the internal set that keeps track of labels.
|
protected |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time when the TransferFunction2D was set.
|
inlineprotected |
Definition at line 612 of file vtkVolumeProperty.h.
|
protectedvirtual |
|
protected |
Definition at line 616 of file vtkVolumeProperty.h.
|
protected |
Definition at line 617 of file vtkVolumeProperty.h.
|
protected |
Definition at line 619 of file vtkVolumeProperty.h.
|
protected |
Definition at line 621 of file vtkVolumeProperty.h.
|
protected |
Definition at line 623 of file vtkVolumeProperty.h.
|
protected |
Definition at line 624 of file vtkVolumeProperty.h.
|
protected |
Definition at line 626 of file vtkVolumeProperty.h.
|
protected |
Definition at line 627 of file vtkVolumeProperty.h.
|
protected |
Definition at line 629 of file vtkVolumeProperty.h.
|
protected |
Definition at line 630 of file vtkVolumeProperty.h.
|
protected |
Definition at line 631 of file vtkVolumeProperty.h.
|
protected |
Definition at line 633 of file vtkVolumeProperty.h.
|
protected |
Definition at line 634 of file vtkVolumeProperty.h.
|
protected |
Definition at line 636 of file vtkVolumeProperty.h.
|
protected |
Definition at line 637 of file vtkVolumeProperty.h.
|
protected |
Definition at line 639 of file vtkVolumeProperty.h.
|
protected |
Definition at line 640 of file vtkVolumeProperty.h.
|
protected |
Definition at line 641 of file vtkVolumeProperty.h.
|
protected |
Definition at line 643 of file vtkVolumeProperty.h.
|
protected |
Definition at line 644 of file vtkVolumeProperty.h.
|
protected |
Definition at line 645 of file vtkVolumeProperty.h.
|
protected |
Definition at line 647 of file vtkVolumeProperty.h.
|
protected |
Definition at line 648 of file vtkVolumeProperty.h.
|
protected |
Definition at line 649 of file vtkVolumeProperty.h.
|
protected |
Definition at line 650 of file vtkVolumeProperty.h.
|
protected |
Definition at line 651 of file vtkVolumeProperty.h.
|
protected |
Definition at line 653 of file vtkVolumeProperty.h.
|
protected |
Definition at line 654 of file vtkVolumeProperty.h.
|
protected |
Contour values for isosurface blend mode.
Definition at line 659 of file vtkVolumeProperty.h.
|
protected |
Function used for slice.
Definition at line 664 of file vtkVolumeProperty.h.
|
protected |
Label map transfer functions.
Definition at line 669 of file vtkVolumeProperty.h.
|
protected |
Definition at line 670 of file vtkVolumeProperty.h.
|
protected |
Definition at line 671 of file vtkVolumeProperty.h.
|
protected |
Definition at line 672 of file vtkVolumeProperty.h.