SIMVoleon  2.1.0
Coin3D volume rendering library
Loading...
Searching...
No Matches
SoOrthoSlice Class Reference

Render one orthogonal slice of the volume data. More...

#include <VolumeViz/nodes/SoOrthoSlice.h>

Inheritance diagram for SoOrthoSlice:
SoShape

Public Types

enum  AlphaUse { ALPHA_AS_IS , ALPHA_OPAQUE , ALPHA_BINARY }
 
enum  Axis { X = 0 , Y , Z }
 
enum  ClippingSide { FRONT , BACK }
 
enum  Interpolation { NEAREST , LINEAR }
 

Public Member Functions

virtual SbBool affectsState (void) const
 

Static Public Member Functions

static void initClass (void)
 

Public Attributes

SoSFEnum alphaUse
 
SoSFNode alternateRep
 
SoSFEnum axis
 
SoSFBool clipping
 
SoSFEnum clippingSide
 
SoSFEnum interpolation
 
SoSFUInt32 sliceNumber
 

Protected Member Functions

virtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f &center)
 
virtual void doAction (SoAction *action)
 
virtual void generatePrimitives (SoAction *action)
 
virtual void GLRender (SoGLRenderAction *action)
 
virtual void rayPick (SoRayPickAction *action)
 
virtual SbBool readInstance (SoInput *in, unsigned short flags)
 
virtual void write (SoWriteAction *action)
 

Detailed Description

Render one orthogonal slice of the volume data.

Insert a node of this type after an SoVolumeData node in the scene graph to render a single, axis-aligned slice from the full volume data set.

Here is a simple example, in the form of an iv-file:

#Inventor V2.1 ascii

SoVolumeData { fileName "ENGINE.VOL" }
SoTransferFunction { predefColorMap TEMPERATURE }

SoOrthoSlice { sliceNumber 0 }

Translation { translation 5 0 0 }

SoOrthoSlice { sliceNumber 10 }

Which will produce something like this when loaded into an examiner viewer:

Rendering of two ortho slices
See also
SoVolumeRender

Member Data Documentation

◆ alphaUse

SoSFEnum SoOrthoSlice::alphaUse

Determines how to handle the alpha values of the slice. If set to SoOrthoSlice::ALPHA_AS_IS, slice will be rendered as a regular texture. When set to SoOrthoSlice::ALPHA_BINARY, all texels with alpha != 0 will become opaque. If set to SoOrthoSlice::ALPHA_OPAQUE, all texels will be opaque, independent of original alpha value.

Default value is SoOrthoSlice::ALPHA_BINARY.

◆ alternateRep

SoSFNode SoOrthoSlice::alternateRep

NOTE: support for this field not yet implemented in SIM Voleon.

Since
SIM Voleon 2.0

◆ axis

SoSFEnum SoOrthoSlice::axis

Determines which plane the orthonormal slice will show. The plane will be the one perpendicular to the axis, i.e. if this field is set to SoOrthoSlice::Z, the slice will lay in the X-Y plane.

Default value is SoOrthoSlice::Z.

◆ sliceNumber

SoSFUInt32 SoOrthoSlice::sliceNumber

Determines where the slice will be made through the volume.

Default value is 0.


The documentation for this class was generated from the following files: