Package com.openinventor.volumeviz.nodes
Class SoVolumeRendering
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.volumeviz.nodes.SoVolumeRendering
-
public class SoVolumeRendering extends Inventor
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).
- Multi-thread rendering:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoVolumeRendering.HW_Features
Hardware Features Mode.static class
SoVolumeRendering.HW_SupportStatus
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
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
getDelayedRendering()
Deprecated.As of Open Inventor 9.0.0.0.static boolean
getReadAlternateRep()
Returns the readAlternateRep flag.static boolean
getWriteAlternateRep()
Returns the writeAlternateRep flag.static SoVolumeRendering.HW_SupportStatus
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 Detail
-
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(since="9.0.0.0") public static boolean 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
public static SoVolumeRendering.HW_SupportStatus isSupported(SoVolumeRendering.HW_Features feature)
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(since="9.0.0.0") public static void setDelayedRendering(boolean flag)
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.
-
-