public abstract class SoSlice extends SoVolumeShape
SoOrthoSlice
, SoObliqueSlice
, SoFenceSlice
, SoVolumeSkin
and SoHeightFieldRender
nodes.
The alphaUse
field controls how the voxel's alpha component is used when drawing the slice.
The enableBumpMapping
and bumpScale
fields control a rendering effect called bump mapping that simulates displacement of the slice surface using the gradient vectors (computed on the GPU) as normal vectors.
The largeSliceSupport
field enables direct loading of full resolution slice data from the volume reader, without (necessarily) loading complete tiles.
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoSlice.AlphaUses
Alpha component usage mode Used in the
alphaUse field. |
SoVolumeShape.Compositions, SoVolumeShape.Interpolations
SoShape.ShapeTypes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
ALPHA_AS_IS
Deprecated.
Use
SoSlice.AlphaUses.ALPHA_AS_IS instead. |
static int |
ALPHA_BINARY
Deprecated.
Use
SoSlice.AlphaUses.ALPHA_BINARY instead. |
static int |
ALPHA_OPAQUE
Deprecated.
Use
SoSlice.AlphaUses.ALPHA_OPAQUE instead. |
SoSFEnum<SoSlice.AlphaUses> |
alphaUse
Specifies how to use the alpha component of each voxel's RGBA value.
|
SoSFNode |
alternateRep
This field optionally holds a subgraph containing only core Open Inventor nodes that can be used for rendering when VolumeViz is not available.
|
SoSFFloat |
bumpScale
Specifies the intensity of the bump mapping effect.
|
SoSFBool |
enableBumpMapping
Specifies if a bump mapping effect will be applied to the slice.
|
SoSFBool |
largeSliceSupport
Activate/deactivate direct loading of full resolution slice data.
|
SoSFBool |
useRGBA
Specifies whether to create RGBA textures.
|
ALPHA_BLENDING, composition, COMPOSITION_LAST, CUBIC, interpolation, LINEAR, MAX_INTENSITY, MIN_INTENSITY, MULTISAMPLE_12, NEAREST, SUM_INTENSITY, TRILINEAR
boundingBoxIgnoring, LINES, POINTS, POLYGONS, TEXT
VERBOSE_LEVEL, ZeroHandle
intersect
getShapeType, isPrimitiveRestartAvailable, isPrimitiveRestartAvailable
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int ALPHA_AS_IS
SoSlice.AlphaUses.ALPHA_AS_IS
instead.@Deprecated public static final int ALPHA_OPAQUE
SoSlice.AlphaUses.ALPHA_OPAQUE
instead.@Deprecated public static final int ALPHA_BINARY
SoSlice.AlphaUses.ALPHA_BINARY
instead.public final SoSFBool enableBumpMapping
This mode requires a graphics card supporting the OpenGL GLSL shading language. If your graphics card does not have the necessary support, the slice will be rendered without bump mapping.
Bump mapping is not available for the SoHeightFieldRender
node.
public final SoSFFloat bumpScale
public final SoSFNode alternateRep
SoOrthoSlice
could be a small scene graph containing an SoTexture2
and an SoIndexedFaceSet
. Such a scene graph could be converted and exported as a PDF3D file or an X3D/VRML file. Default is NULL. But an alternateRep scene graph is automatically created during a write action if SoVolumeRendering.setWriteAlternateRep(true) was called.
public final SoSFEnum<SoSlice.AlphaUses> alphaUse
The following table shows how the alpha value is computed according to this field and the incoming voxel alpha values:
When alphaUse field is: | ALPHA_BINARY | ALPHA_OPAQUE | ALPHA_AS_IS |
Incoming Alpha value | Alpha Value Actually Used | ||
= 0 | 0 (Invisible) | 1 (Opaque) | 0 (Invisible) |
> 0 | 1 (Opaque) | 1 (Opaque) | same as incoming |
Note that this field only affects alpha values coming from the transfer function or RGBA volume. Global transparency assigned by an SoMaterial
node is not affected.
public final SoSFBool useRGBA
<font color="#0000FF">NOTE:</font> If the dataSet is RGBA then this field is ignored and RGBA textures are used.
public final SoSFBool largeSliceSupport
SoOrthoSlice
from an 8-bit dataset with 128x128x128 tiles would normally require loading 1024x1024x128 bytes of data (as complete tiles). With largeSliceSupport enabled, only 1024x1024 bytes (maximum) of data need to be loaded (in the worst case where no high resolution data is currently in memory).
SoOrthoSlice
and SoVolumeSkin
.
SoVRLdmFileReader
.
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com