VTK
|
represents the common properties for rendering a volume. More...
#include <vtkVolumeProperty.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkVolumeProperty * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
void | DeepCopy (vtkVolumeProperty *p) |
vtkMTimeType | GetMTime () |
Get the modified time for this object (or the properties registered with this object). More... | |
void | SetColor (int index, vtkPiecewiseFunction *function) |
Set the color of a volume to a gray level transfer function for the component indicated by index. More... | |
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. More... | |
void | SetColor (vtkColorTransferFunction *function) |
int | GetColorChannels (int index) |
Get the number of color channels in the transfer function for the given component. More... | |
int | GetColorChannels () |
vtkPiecewiseFunction * | GetGrayTransferFunction (int index) |
Get the gray transfer function. More... | |
vtkPiecewiseFunction * | GetGrayTransferFunction () |
vtkColorTransferFunction * | GetRGBTransferFunction (int index) |
Get the RGB transfer function for the given component. More... | |
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. More... | |
void | SetScalarOpacity (vtkPiecewiseFunction *function) |
vtkPiecewiseFunction * | GetScalarOpacity (int index) |
Get the scalar opacity transfer function for the given component. More... | |
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. More... | |
void | SetGradientOpacity (vtkPiecewiseFunction *function) |
vtkPiecewiseFunction * | GetGradientOpacity (int index) |
Get the gradient magnitude opacity transfer function for the given component. More... | |
vtkPiecewiseFunction * | GetGradientOpacity () |
bool | HasGradientOpacity (int index=0) |
Check whether or not we have the gradient opacity. More... | |
void | UpdateMTimes () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE UpdateMTimes performs a Modified() on all TimeStamps. More... | |
vtkTimeStamp | GetGradientOpacityMTime (int index) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the gradient opacity transfer function was set. More... | |
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. More... | |
vtkTimeStamp | GetScalarOpacityMTime () |
vtkTimeStamp | GetRGBTransferFunctionMTime (int index) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the RGBTransferFunction was set. More... | |
vtkTimeStamp | GetRGBTransferFunctionMTime () |
vtkTimeStamp | GetGrayTransferFunctionMTime (int index) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the GrayTransferFunction was set. More... | |
vtkTimeStamp | GetGrayTransferFunctionMTime () |
virtual void | SetIndependentComponents (int) |
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. More... | |
virtual int | 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. More... | |
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. More... | |
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. More... | |
virtual void | SetInterpolationType (int) |
Set the interpolation type for sampling a volume. More... | |
virtual int | GetInterpolationType () |
Set the interpolation type for sampling a volume. More... | |
void | SetInterpolationTypeToNearest () |
Set the interpolation type for sampling a volume. More... | |
void | SetInterpolationTypeToLinear () |
Set the interpolation type for sampling a volume. More... | |
const char * | GetInterpolationTypeAsString (void) |
Return the interpolation type as a descriptive character string. More... | |
virtual void | SetComponentWeight (int index, double value) |
Set/Get the scalar component weights. More... | |
virtual double | GetComponentWeight (int index) |
Set/Get the scalar component weights. More... | |
void | SetScalarOpacityUnitDistance (int index, double distance) |
Set/Get the unit distance on which the scalar opacity transfer function is defined. More... | |
void | SetScalarOpacityUnitDistance (double distance) |
Set/Get the unit distance on which the scalar opacity transfer function is defined. More... | |
double | GetScalarOpacityUnitDistance (int index) |
Set/Get the unit distance on which the scalar opacity transfer function is defined. More... | |
double | GetScalarOpacityUnitDistance () |
Set/Get the unit distance on which the scalar opacity transfer function is defined. More... | |
virtual void | SetDisableGradientOpacity (int index, int value) |
Enable/Disable the gradient opacity function for the given component. More... | |
virtual void | SetDisableGradientOpacity (int value) |
Enable/Disable the gradient opacity function for the given component. More... | |
virtual void | DisableGradientOpacityOn (int index) |
Enable/Disable the gradient opacity function for the given component. More... | |
virtual void | DisableGradientOpacityOn () |
Enable/Disable the gradient opacity function for the given component. More... | |
virtual void | DisableGradientOpacityOff (int index) |
Enable/Disable the gradient opacity function for the given component. More... | |
virtual void | DisableGradientOpacityOff () |
Enable/Disable the gradient opacity function for the given component. More... | |
virtual int | GetDisableGradientOpacity (int index) |
Enable/Disable the gradient opacity function for the given component. More... | |
virtual int | GetDisableGradientOpacity () |
Enable/Disable the gradient opacity function for the given component. More... | |
vtkPiecewiseFunction * | GetStoredGradientOpacity (int index) |
Enable/Disable the gradient opacity function for the given component. More... | |
vtkPiecewiseFunction * | GetStoredGradientOpacity () |
Enable/Disable the gradient opacity function for the given component. More... | |
void | SetShade (int index, int value) |
Set/Get the shading of a volume. More... | |
void | SetShade (int value) |
Set/Get the shading of a volume. More... | |
int | GetShade (int index) |
Set/Get the shading of a volume. More... | |
int | GetShade () |
Set/Get the shading of a volume. More... | |
void | ShadeOn (int index) |
Set/Get the shading of a volume. More... | |
void | ShadeOn () |
Set/Get the shading of a volume. More... | |
void | ShadeOff (int index) |
Set/Get the shading of a volume. More... | |
void | ShadeOff () |
Set/Get the shading of a volume. More... | |
void | SetAmbient (int index, double value) |
Set/Get the ambient lighting coefficient. More... | |
void | SetAmbient (double value) |
Set/Get the ambient lighting coefficient. More... | |
double | GetAmbient (int index) |
Set/Get the ambient lighting coefficient. More... | |
double | GetAmbient () |
Set/Get the ambient lighting coefficient. More... | |
void | SetDiffuse (int index, double value) |
Set/Get the diffuse lighting coefficient. More... | |
void | SetDiffuse (double value) |
Set/Get the diffuse lighting coefficient. More... | |
double | GetDiffuse (int index) |
Set/Get the diffuse lighting coefficient. More... | |
double | GetDiffuse () |
Set/Get the diffuse lighting coefficient. More... | |
void | SetSpecular (int index, double value) |
Set/Get the specular lighting coefficient. More... | |
void | SetSpecular (double value) |
Set/Get the specular lighting coefficient. More... | |
double | GetSpecular (int index) |
Set/Get the specular lighting coefficient. More... | |
double | GetSpecular () |
Set/Get the specular lighting coefficient. More... | |
void | SetSpecularPower (int index, double value) |
Set/Get the specular power. More... | |
void | SetSpecularPower (double value) |
Set/Get the specular power. More... | |
double | GetSpecularPower (int index) |
Set/Get the specular power. More... | |
double | GetSpecularPower () |
Set/Get the specular power. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. More... | |
virtual void | DebugOff () |
Turn debugging output off. More... | |
bool | GetDebug () |
Get the value of the debug flag. More... | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. More... | |
virtual void | Modified () |
Update the modification time for this object. More... | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | 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. More... | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
int | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
int | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
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. More... | |
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. More... | |
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. More... | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. More... | |
virtual void | Delete () |
Delete a VTK object. More... | |
virtual void | FastDelete () |
Delete a reference to this object. More... | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. More... | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
void | PrintRevisions (ostream &) |
Legacy. More... | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
Static Public Member Functions | |
static vtkVolumeProperty * | New () |
static int | 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. More... | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. More... | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
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. More... | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkVolumeProperty () | |
~vtkVolumeProperty () | |
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=NULL) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. More... | |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
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.
When the scalar opacity or the gradient opacity of a volume is not set, then the function is defined to be a constant value of 1.0. When a scalar and gradient opacity are both set simultaneously, then the opacity is defined to be the product of the scalar opacity and gradient opacity transfer functions.
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 60 of file vtkVolumeProperty.h.
Definition at line 64 of file vtkVolumeProperty.h.
|
protected |
|
protected |
|
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 |
|
virtual |
void vtkVolumeProperty::DeepCopy | ( | vtkVolumeProperty * | p | ) |
|
virtual |
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 109 of file vtkVolumeProperty.h.
|
inline |
Set the interpolation type for sampling a volume.
Initial value is VTK_NEAREST_INTERPOLATION.
Definition at line 111 of file vtkVolumeProperty.h.
|
inline |
Return the interpolation type as a descriptive character string.
Definition at line 427 of file vtkVolumeProperty.h.
Set/Get the scalar component weights.
Clamped between the range of (0.0, 1.0)
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 131 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 141 of file vtkVolumeProperty.h.
Get the number of color channels in the transfer function for the given component.
|
inline |
Definition at line 149 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 158 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 167 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 175 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 184 of file vtkVolumeProperty.h.
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 195 of file vtkVolumeProperty.h.
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 198 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 208 of file vtkVolumeProperty.h.
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 220 of file vtkVolumeProperty.h.
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 232 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 234 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 236 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 238 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 240 of file vtkVolumeProperty.h.
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 243 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 246 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 256 of file vtkVolumeProperty.h.
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 282 of file vtkVolumeProperty.h.
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 285 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 288 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 291 of file vtkVolumeProperty.h.
Set/Get the ambient lighting coefficient.
|
inline |
Set/Get the ambient lighting coefficient.
Definition at line 300 of file vtkVolumeProperty.h.
|
inline |
Set/Get the ambient lighting coefficient.
Definition at line 303 of file vtkVolumeProperty.h.
Set/Get the diffuse lighting coefficient.
|
inline |
Set/Get the diffuse lighting coefficient.
Definition at line 312 of file vtkVolumeProperty.h.
|
inline |
Set/Get the diffuse lighting coefficient.
Definition at line 315 of file vtkVolumeProperty.h.
Set/Get the specular lighting coefficient.
|
inline |
Set/Get the specular lighting coefficient.
Definition at line 324 of file vtkVolumeProperty.h.
|
inline |
Set/Get the specular lighting coefficient.
Definition at line 327 of file vtkVolumeProperty.h.
|
inline |
Set/Get the specular power.
Definition at line 336 of file vtkVolumeProperty.h.
|
inline |
Set/Get the specular power.
Definition at line 339 of file vtkVolumeProperty.h.
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 357 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 365 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 373 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 381 of file vtkVolumeProperty.h.
|
protectedvirtual |
|
protected |
Definition at line 388 of file vtkVolumeProperty.h.
|
protected |
Definition at line 389 of file vtkVolumeProperty.h.
|
protected |
Definition at line 391 of file vtkVolumeProperty.h.
|
protected |
Definition at line 393 of file vtkVolumeProperty.h.
|
protected |
Definition at line 395 of file vtkVolumeProperty.h.
|
protected |
Definition at line 396 of file vtkVolumeProperty.h.
|
protected |
Definition at line 398 of file vtkVolumeProperty.h.
|
protected |
Definition at line 399 of file vtkVolumeProperty.h.
|
protected |
Definition at line 401 of file vtkVolumeProperty.h.
|
protected |
Definition at line 402 of file vtkVolumeProperty.h.
|
protected |
Definition at line 403 of file vtkVolumeProperty.h.
|
protected |
Definition at line 405 of file vtkVolumeProperty.h.
|
protected |
Definition at line 406 of file vtkVolumeProperty.h.
|
protected |
Definition at line 407 of file vtkVolumeProperty.h.
|
protected |
Definition at line 408 of file vtkVolumeProperty.h.
|
protected |
Definition at line 410 of file vtkVolumeProperty.h.
|
protected |
Definition at line 411 of file vtkVolumeProperty.h.
|
protected |
Definition at line 412 of file vtkVolumeProperty.h.
|
protected |
Definition at line 413 of file vtkVolumeProperty.h.
|
protected |
Definition at line 414 of file vtkVolumeProperty.h.