Volume draw style. More...
#include <VolumeViz/nodes/SoVolumeDataDrawStyle.h>
Public Types | |
enum | DrawStyle { NONE = 0, VOLUME_RENDER = 1, MASK_BOUNDARY = 1 << 1, ISOSURFACE = 1 << 2 } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVolumeDataDrawStyle () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFBitMask | style |
SoSFMaterial | boundaryMaterial |
SoMFFloat | isovalues |
SoSFMaterial | isosurfacesMaterial |
This node specifies the volume rendering style for a volume or for one of the voxel regions of a volume defined by SoVolumeMask nodes. The available draw styles are hidden (not rendered), direct volume rendering, isosurface(s) rendering and the boundary surface rendering according to the style field. Volume rendering always uses the current transfer function and material in the scene graph. Isosurfaces and boundary surfaces use the current material by default, but can optionally be rendered using materials specified in the isosurfacesMaterial or boundaryMaterial fields.
Notes:
style | VOLUME_RENDER |
boundaryMaterial | NULL |
isosurfacesMaterial | NULL |
isovalues | [] |
SoVolumeData, SoVolumeRender, SoVolumeMask, SoVolumeMaskGroup, SoMultiDataSeparator, SoTransferFunction
Volume rendering style.
These values may be combined and are used in the style field.
NONE |
Display nothing. |
VOLUME_RENDER |
Display the volume mask using the associated transfer function. (Default) |
MASK_BOUNDARY |
Display only the mask boundary, using boundaryMaterial. |
ISOSURFACE |
Display isosurfaces using isovalues and isosurfacesMaterial. Note: The isosurfaces are always lighted, regardless of the value of the SoVolumeRenderingQuality lighting and deferredLighting fields. |
SoVolumeDataDrawStyle::SoVolumeDataDrawStyle | ( | ) |
Creates a volume draw style node with default settings.
static SoType SoVolumeDataDrawStyle::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
virtual SoType SoVolumeDataDrawStyle::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
Material used to render the mask boundary.
Default is none.
Material used to render isosurfaces.
If this field is empty, the current or default SoMaterial is used.
Values of isosurfaces to display.
Default is none.
Set the draw style used for a volume or mask: Use enum DrawStyle.
-NONE: Display nothing
-VOLUME_RENDER: Display the volume using the associated transfer function. This is the default value.
-MASK_BOUNDARY: Display only the mask boundary, don't render the masked volume.
-ISOSURFACE: Display the set of isosurfaces defined in isovalues field.
Modes can be combined.