Main Page Class Hierarchy Alphabetical List Compound List Compound Members Related Pages
vtkVolumeProperty Class Reference
represents the common properties for rendering a volume.
More...
#include <vtkVolumeProperty.h>
Inheritance diagram for vtkVolumeProperty:
[legend]Collaboration diagram for vtkVolumeProperty:
[legend]List of all members.
Detailed Description
represents the common properties for rendering a volume.
-
Date:
-
2000/12/10 20:08:58
-
Revision:
-
1.28
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 both 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.
-
See also:
-
vtkPiecewiseFunction vtkColorTransferFunction
-
Examples:
-
vtkVolumeProperty (examples)
Member Function Documentation
virtual const char* vtkVolumeProperty::GetClassName |
( |
|
) |
[virtual] |
|
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject. |
virtual int vtkVolumeProperty::GetColorChannels |
( |
|
) |
[virtual] |
|
|
Get the number of color channels in the transfer function |
|
Get the gradient magnitude opacity transfer function. |
virtual vtkTimeStamp vtkVolumeProperty::GetGradientOpacityMTime |
( |
|
) |
[virtual] |
|
|
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the gradient opacity transfer function was set |
|
Get the gray transfer function. |
virtual vtkTimeStamp vtkVolumeProperty::GetGrayTransferFunctionMTime |
( |
|
) |
[virtual] |
|
|
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the GrayTransferFunction was set |
const char * vtkVolumeProperty::GetInterpolationTypeAsString |
( |
void |
|
) |
[inline] |
|
|
Return the interpolation type as a descriptive character string. |
unsigned long vtkVolumeProperty::GetMTime |
( |
|
) |
[virtual] |
|
|
Get the modified time for this object (or the properties registered with this object).
Reimplemented from vtkObject. |
|
Get the RGB transfer function. |
virtual vtkTimeStamp vtkVolumeProperty::GetRGBTransferFunctionMTime |
( |
|
) |
[virtual] |
|
|
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the RGBTransferFunction was set |
|
Get the scalar opacity transfer function. |
virtual vtkTimeStamp vtkVolumeProperty::GetScalarOpacityMTime |
( |
|
) |
[virtual] |
|
|
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the time that the scalar opacity transfer function was set. |
virtual int vtkVolumeProperty::IsA |
( |
const char * |
type |
) |
[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 vtkObject. |
int vtkVolumeProperty::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
Return 1 if this class type 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 vtkObject. |
vtkVolumeProperty* vtkVolumeProperty::New |
( |
|
) |
[static] |
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject. |
void vtkVolumeProperty::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkObject. |
vtkVolumeProperty* vtkVolumeProperty::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject. |
virtual void vtkVolumeProperty::SetAmbient |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the ambient lighting coefficient. |
|
Set the color of a volume to an RGB transfer function. This will also set the ColorChannels to 3. |
|
Set the color of a volume to a gray level transfer function. This will also set the ColorChannels to 1. |
virtual void vtkVolumeProperty::SetDiffuse |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the diffuse lighting coefficient. |
|
Set the opacity of a volume to an opacity transfer function based on gradient magnitude. |
virtual void vtkVolumeProperty::SetInterpolationType |
( |
int |
|
) |
[virtual] |
|
|
Set the interpolation type for sampling a volume. |
virtual void vtkVolumeProperty::SetRGBTextureCoefficient |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the texture coefficient. This controls how much of the color comes from the color transfer function and how much comes from the RGB texture, with RGBTextureCoefficient used for the texture and (1 - RGBTextureCoefficient) used for the transfer function. |
|
Set the opacity of a volume to an opacity transfer function based on scalar value. |
virtual void vtkVolumeProperty::SetShade |
( |
int |
|
) |
[virtual] |
|
|
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. |
virtual void vtkVolumeProperty::SetSpecular |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the specular lighting coefficient. |
virtual void vtkVolumeProperty::SetSpecularPower |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the specular power. |
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. |
The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:34:35 2002 for VTK by
1.2.14 written by Dimitri van Heesch,
© 1997-2002