Initializes the VolumeViz module database. More...
#include <VolumeViz/nodes/SoVolumeRendering.h>
Public Types | |
enum | HW_Feature { HW_3DTEXMAP = SoHardwareQuery::HW_3DTEXMAP, HW_TEXCOLORMAP = SoHardwareQuery::HW_TEXCOLORMAP, HW_TEXCOMPRESSION = SoHardwareQuery::HW_TEXCOMPRESSION } |
enum | HW_SupportStatus { NO = SoHardwareQuery::NO, YES, UNKNOWN } |
Static Public Member Functions | |
static void | init () |
static void | finish () |
static bool | isInitialized () |
static void | setWriteAlternateRep (SbBool flag) |
static SbBool | getWriteAlternateRep () |
static void | setReadAlternateRep (SbBool flag) |
static SbBool | getReadAlternateRep () |
static HW_SupportStatus | isSupported (HW_Feature feature) |
Deprecated | |
| |
static SoDEPRECATED void | setDelayedRendering (SbBool flag) |
static SoDEPRECATED SbBool | getDelayedRendering () |
This abstract class is the base class for all volume rendering modules. It is used only for initializing the VolumeViz extension and setting some global parameters.
The init() method must be called before creating any VolumeViz nodes. The finish() method should be called when the application is shutting down.
Limitations:
SoVolumeData, SoTransferFunction, SoVolumeRender, SoOrthoSlice, SoObliqueSlice, SoROI, SoVolumeReader, SoLDMGlobalResourceParameters
Medical2DTransferFunction, TransferFunction2D, HorizonGpuCompose, SegY2D, VolRend, VolumeGeometry, VolumeSkin, VVIZ-Template-SG
Hardware Features Mode.
static void SoVolumeRendering::finish | ( | ) | [static] |
Shuts down the VolumeViz module, which includes freeing any internal static memory that it allocated.
Finish methods must be called in the reverse order of the init method calls:
SoVolumeRendering::finish(); SoXt::finish(); ...
static SoDEPRECATED SbBool SoVolumeRendering::getDelayedRendering | ( | ) | [static] |
Returns the delayedRendering flag.
static SbBool SoVolumeRendering::getReadAlternateRep | ( | ) | [static] |
Returns the readAlternateRep flag.
static SbBool SoVolumeRendering::getWriteAlternateRep | ( | ) | [static] |
Returns the writeAlternateRep flag.
static void SoVolumeRendering::init | ( | ) | [static] |
Initializes the VolumeViz module database.
This must be called before the construction of any VolumeViz nodes.
Generally this method should be called immediately after initializing Open Inventor. In other words just after SoXt::init(), SoWin::init(), etc.
Starting with Open Inventor version 8.5, this method must called before any instances of SoSceneManager are created. When using the Open Inventor viewer classes, an SoSceneManager is created automatically when the viewer is created. So this method should be called before creating the viewer.
SoXt::init(); SoVolumeRendering::init(); ...
static bool SoVolumeRendering::isInitialized | ( | ) | [static] |
Returns TRUE if module is currently initialized.
static HW_SupportStatus SoVolumeRendering::isSupported | ( | HW_Feature | feature | ) | [static] |
Returns information about hardware support for various volume rendering features.
This query is only valid after SoVolumeRendering::init has been called. Otherwise the return value will be UNKNOWN.
When using a debug build of Open Inventor, some "no context available" warning messages may be generated. You can ignore them or see SoGLExtension for an example of using SoGLContext to avoid them.
static SoDEPRECATED void SoVolumeRendering::setDelayedRendering | ( | SbBool | flag | ) | [static] |
Sets the delayedRendering flag.
Default is FALSE.
When this flag is TRUE , VolumeViz drawing nodes (e.g., SoOrthoSlice) are rendered in a delayed pass (until after all opaque objects) and/or sorted according to the current transparency type (see SoGLRenderAction). This may result in a more correct image if there is opaque geometry intersecting the volume. However delayed/sorted rendering may slightly decrease performance. This flag may also be set using the IVVR_DELAY_RENDER environment variable.
static void SoVolumeRendering::setReadAlternateRep | ( | SbBool | flag | ) | [static] |
Sets the readAlternateRep flag.
When this flag is TRUE while reading an Open Inventor file, any alternateRep subgraphs attached to VolumeViz nodes are read and added to the scene graph. Otherwise, alternateRep subgraphs are discarded and the alternateRep field is set to NULL. The default is FALSE.
static void SoVolumeRendering::setWriteAlternateRep | ( | SbBool | flag | ) | [static] |
Sets the writeAlternateRep flag.
When this flag is TRUE during an SoWriteAction traversal, some VolumeViz nodes will write an alternateRep subgraph containing only standard Open Inventor nodes that can be rendered even without VolumeViz. For example, SoOrthoSlice will write an SoTexture2 node and an SoFaceSet node. The default is FALSE.