[PREVIEW] [Medical] Ortho slice shape node with border.
More...
#include <Medical/nodes/OrthoSliceBorder.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
OrthoSliceBorder () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static void | initClass () |
static void | exitClass () |
Public Attributes | |
SoSFBool | border |
SoSFColor | borderColor |
SoSFFloat | borderWidth |
SoSFBool | renderSlice |
This node is a subclass of SoOrthoSlice. It defines an ortho (axis aligned) slice along the X, Y, or Z axis of a volume defined by an SoVolumeData node.
In addition to the standard features of SoOrthoSlice, this node can render a border around the slice using the specified borderColor and borderWidth. See SoOrthoSlice for important details about slice rendering. Note that the SoOrthoSlice clipping feature does not affect rendering of the border.
The border color can be used, for example, to help the user see at a glance which axis each slice corresponds to. Another use is to change the border color when a slice is selected.
It is also possible to render only the border of the slice by setting the renderSlice field to false. This is useful if you want to display the slice image in a 2D view and also show the slice position in a 3D view (without the slice image). Create an SoOrthoSlice node in the 2D view. Then create an OrthoSliceBorder node in the 3D view, set its renderSlice field to false and connect its sliceNumber field to the sliceNumber field of the SoOrthoSlice node to keep the slices in sync.
sliceNumber | 0 |
axis | Z |
interpolation | LINEAR |
alphaUse | ALPHA_BINARY |
useRGBA | FALSE |
clipping | FALSE |
clippingSide | BACK |
alternateRep | NULL |
enableBumpMapping | FALSE |
bumpScale | 1.0 |
border | TRUE |
borderColor | 0.84, 0.43, 0.02 |
borderWidth | 3 |
renderSlice | TRUE |
InventorMedical, SoOrthoSlice, SoObliqueSlice, ObliqueSliceBorder
OrthoSliceBorder::OrthoSliceBorder | ( | ) |
Constructor.
static void OrthoSliceBorder::exitClass | ( | ) | [static] |
Finish using class (called automatically by InventorMedical::finish()).
Reimplemented from SoOrthoSlice.
static SoType OrthoSliceBorder::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoOrthoSlice.
virtual SoType OrthoSliceBorder::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoOrthoSlice.
static void OrthoSliceBorder::initClass | ( | ) | [static] |
Initialize class (called automatically by InventorMedical::init()).
Reimplemented from SoOrthoSlice.
Enable drawing the border.
Default is true.
Border color.
Default is [0.84, 0.43, 0.02] (orange luminance 55%).
Enable drawing the slice image.
Default is true. Note that setting this field to false makes the slice image invisible, but the slice is still detectable by picking. So, for example, an SoOrthoSliceDragger can still be used to interactively change the slice position.
NOTE: field available since Open Inventor 10.3