Package com.openinventor.volumeviz.nodes
Class SoVolumeDataDrawStyle
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.nodes.SoNode
com.openinventor.volumeviz.nodes.SoVolumeDataDrawStyle
- All Implemented Interfaces:
SafeDisposable
Volume draw style.
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:
- Draw style only applies to
SoVolumeRendernodes. - See
SoVolumeMaskfor discussion of how draw styles are associated with mask regions. - When not using volume masks, the draw style node must be traversed before the
SoVolumeDatanode. - The MASK_BOUNDARY style is ignored if not using volume masks.
- The ISOSURFACE style is functionally equivalent to using an
SoVolumeIsosurfacenode, but provides more options. The benefit of using anSoVolumeDataDrawStyleis the ability to combine different display styles (e.g. ISOSURFACE and MASK_BOUNDARY).
The isosurface displays the boundary between 2 different values, similar to the marching cubes algorithms. In other words, a voxel is part of the isosurface if the ray entry and exit values for the voxel are different and include the specified isosurface value in their range. If you render, for example, the isosurface 100 of a volume data containing the value 100 everywhere, nothing will be rendered.
File format/default:
VolumeMask {
| style | VOLUME_RENDER |
| boundaryMaterial | NULL |
| isosurfacesMaterial | NULL |
| isovalues | [] |
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVolume rendering style.Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFMaterialMaterial used to render the mask boundary.final SoSFMaterialMaterial used to render isosurfaces.final SoMFFloatValues of isosurfaces to display.Set the draw style used for a volume or mask: .Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
ConstructorsConstructorDescriptionCreates a volume draw style node with default settings. -
Method Summary
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
style
Set the draw style used for a volume or mask: . -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
isovaluesfield.Modes can be combined.
-
boundaryMaterial
Material used to render the mask boundary. Default is none. -
isovalues
Values of isosurfaces to display. Default is none. -
isosurfacesMaterial
Material used to render isosurfaces.
If this field is empty, the current or defaultSoMaterialis used.
-
-
Constructor Details
-
SoVolumeDataDrawStyle
public SoVolumeDataDrawStyle()Creates a volume draw style node with default settings.
-