Class SliceOrientationMarkers
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodes.SoGroup
-
- com.openinventor.inventor.nodes.SoSeparator
-
- com.openinventor.inventor.nodes.SoAnnotation
-
- com.openinventor.medical.nodes.SliceOrientationMarkers
-
- All Implemented Interfaces:
SafeDisposable
public class SliceOrientationMarkers extends SoAnnotation
(Preview Feature) Shape node to display slice orientation markers in window coordinates.Preview Feature means this class is fully supported and can be used in Open Inventor applications. Being tagged as a Preview Feature just means that the implementation is still subject to API changes and adjustments based on feedback from early adopters. Please be also aware that source compatibility might be broken regardless of the Open Inventor compatibility changes policy due to our commitment to bring needed changes to be sure the specifications of this Preview Feature match the expectations of our customers.
This node displays slice orientation markers at a fixed location in the viewer window. Slice orientation markers are useful when viewing images in a "2D" mode. The orientation markers are a set of four letters. Each letter is displayed at the mid-point of one edge of the window and offset inward by the value specified in theoffset
field. The letters displayed depend on the value of theaxis
field and correspond to the DICOM radiological viewing convention. This node is intended to be used with SoOrthoSlice and a "plane" viewer.The application can connect the
axis
field from the 'axis' field of the SoOrthoSlice node and the correct orientation markers will be displayed automatically if the slice axis is changed.For:
- AXIAL display
- Left/Right: R(ight) / L(eft)
- Top/Bottom: A(nterior) / P(osterior)
- CORONAL display
- Left/Right: R(ight) / L(eft)
- Top/Bottom: S(uperior) / I(nferior)
- SAGITTAL display
- Left/Right: A(nterior) / P(osterior)
- Top/Bottom: S(uperior) / I(nferior)
File format/default:
SliceOrientationMarkers {
offset 0.05 axis AXIAL fontName Arial:Bold fontSize 17 - See Also:
DicomInfo
,Magnifier
,Gnomon
,SliceScaleBar
,TextBox
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoSeparator
SoSeparator.Cachings, SoSeparator.FastEditings, SoSeparator.RenderUnitIds
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFEnum<MedicalHelper.Axis>
axis
Axis (default is AXIAL).SoSFString
fontName
Specify the font name (default is "Arial:Bold").SoSFFloat
fontSize
Specify the font size in pixels (default is 17).SoSFFloat
offset
Distance from edge of window to letter.-
Fields inherited from class com.openinventor.inventor.nodes.SoSeparator
boundingBoxCaching, fastEditing, pickCulling, renderCaching, renderCulling, renderUnitId
-
Fields inherited from class com.openinventor.inventor.nodes.SoGroup
boundingBoxIgnoring
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SliceOrientationMarkers()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoNode.RenderModes
getRenderEngineMode()
Returns the supported Render engine mode.-
Methods inherited from class com.openinventor.inventor.nodes.SoGroup
addChild, findChild, getChild, getNumChildren, insertChild, removeAllChildren, removeChild, removeChild, replaceChild, replaceChild
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
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
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
axis
public SoSFEnum<MedicalHelper.Axis> axis
Axis (default is AXIAL). Use enum MedicalHelper.Axis. Determines which letters are displayed.
-
offset
public SoSFFloat offset
Distance from edge of window to letter. Specified in normalized screen coordinates (-1 to 1). Default is 0.05.
-
fontName
public SoSFString fontName
Specify the font name (default is "Arial:Bold"). See SoFont.name for details.
-
fontSize
public SoSFFloat fontSize
Specify the font size in pixels (default is 17).
-
-
Method Detail
-
getRenderEngineMode
public SoNode.RenderModes getRenderEngineMode()
Description copied from class:SoNode
Returns the supported Render engine mode.For custom node, this method returns by default
SoNode.RenderModes.OIV_UNKNOWN_RENDERING_MODE
, override this method to specify the Render engine mode supported by your custom node.- Overrides:
getRenderEngineMode
in classSoNode
- Returns:
- the supported Render engine mode for this node.
-
-