Package com.openinventor.volumeviz.nodes
Class SoVolumeRendering
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.volumeviz.nodes.SoVolumeRendering
Initializes the VolumeViz module database.
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.
Limitations:
- Multi-thread rendering:
Unlike most Open Inventor nodes, VolumeViz nodes do not support simultaneous rendering in multiple threads (even when Open Inventor is initialized using one of the initThread() methods).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Hardware Features Mode.static enum
Hardware Features support status.Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Deprecated.As of Open Inventor 9.0.0.0.static boolean
Returns the readAlternateRep flag.static boolean
Returns the writeAlternateRep flag.isSupported
(SoVolumeRendering.HW_Features feature) Returns information about hardware support for various volume rendering features.static void
setDelayedRendering
(boolean flag) Deprecated.As of Open Inventor 9.0.0.0.static void
setReadAlternateRep
(boolean flag) Sets the readAlternateRep flag.static void
setWriteAlternateRep
(boolean flag) Sets the writeAlternateRep flag.Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getReadAlternateRep
public static boolean getReadAlternateRep()Returns the readAlternateRep flag. -
getWriteAlternateRep
public static boolean getWriteAlternateRep()Returns the writeAlternateRep flag. -
setReadAlternateRep
public static void setReadAlternateRep(boolean flag) 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. -
getDelayedRendering
Deprecated.As of Open Inventor 9.0.0.0. No longer used.Returns the delayedRendering flag.Warning Deprecated since Open Inventor 9000. No longer used.
-
isSupported
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 usingSoGLContext
to avoid them. -
setDelayedRendering
Deprecated.As of Open Inventor 9.0.0.0. This is now automaticaly done only if necessary.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 (seeSoGLRenderAction
). 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.Warning Deprecated since Open Inventor 9000. This is now automaticaly done only if necessary.
-
setWriteAlternateRep
public static void setWriteAlternateRep(boolean flag) Sets the writeAlternateRep flag.
When this flag is true during anSoWriteAction
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 anSoTexture2
node and anSoFaceSet
node. The default is false.
-