![]() |
SIMVoleon
2.1.0
Coin3D volume rendering library
|
Render a slice of the volume data, with any orientation. More...
#include <VolumeViz/nodes/SoObliqueSlice.h>
Public Types | |
| enum | AlphaUse { ALPHA_AS_IS , ALPHA_OPAQUE , ALPHA_BINARY } |
| enum | Interpolation { NEAREST , LINEAR } |
Static Public Member Functions | |
| static void | initClass (void) |
Public Attributes | |
| SoSFEnum | alphaUse |
| SoSFNode | alternateRep |
| SoSFEnum | interpolation |
| SoSFPlane | plane |
Render a slice of the volume data, with any orientation.
Insert a node of this type after an SoVolumeData node in the scene graph to render a single slice from the full volume data set. The slice is specified as a plane with an orientation and position within the volume.
Here is a simple example, in the form of an iv-file:
#Inventor V2.1 ascii
SoVolumeData { fileName "ENGINE.VOL" }
Separator {
SoTransferFunction { }
DEF clipper ClipPlaneManip { }
SoVolumeRender { }
}
Separator {
SoTransferFunction { predefColorMap GLOW }
SoObliqueSlice {
interpolation LINEAR
alphaUse ALPHA_AS_IS
plane = USE clipper . plane
}
}
Please note that SoObliqueSlice will not work with older OpenGL drivers as they usually lack 3D-texture support. OpenGL drivers of version 1.2 and onwards supports 3D-texturing, as does older OpenGL drivers with the GL_EXT_texture3D extension. If none of these are available, a warning message will be printed using Coin's SoDebugError::postWarning().
Enumeration of available types of voxel color interpolation.
| SoSFEnum SoObliqueSlice::alphaUse |
How the alpha channel should be treated during rendering. See SoObliqueSlice::AlphaUse.
Default value is SoObliqueSlice::ALPHA_AS_IS
| SoSFNode SoObliqueSlice::alternateRep |
NOTE: support for this field not yet implemented in SIM Voleon.
| SoSFEnum SoObliqueSlice::interpolation |
How to interpolate color values when rendering "in between" voxels. See SoObliqueSlice::Interpolation.
Default value is SoObliqueSlice::LINEAR.
| SoSFPlane SoObliqueSlice::plane |
The plane defining the slice.
Default value is an XY plane.