Class Gnomon
- All Implemented Interfaces:
SafeDisposable
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 a medical specific "gnomon" (compass) on the screen that shows the user the current orientation of the volume in 3D space. Visibility of the gnomon is controlled by theisDisplayed field.
Position and size of the gnomon are specified in pixels using the position,
width and height fields.
File format/default:
Gnomon {
| isDisplayed | TRUE |
| position | 0 0 |
| width | 100 |
| height | 100 |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoSeparator
SoSeparator.Cachings, SoSeparator.FastEditings, SoSeparator.RenderUnitIdsNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionSpecifies the distance from the camera to the gnomon geometry.Specifies the height of the gnomon viewport in pixels (default is 100).Controls whether the gnomon is visible (default is true).Position of the gnomon viewport in pixels (default is 0,0).Specifies the width of the gnomon viewport in pixels (default is 100).Fields inherited from class com.openinventor.inventor.nodes.SoSeparator
boundingBoxCaching, fastEditing, pickCulling, renderCaching, renderCulling, renderUnitIdFields inherited from class com.openinventor.inventor.nodes.SoGroup
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the supported Render engine mode.voidsetGeometry(SoNode geometrySceneGraph) Replace the gnomon geometry (default is basic medical gnomon).voidScale the size of the gnomon (default is 1,1,1).Methods inherited from class com.openinventor.inventor.nodes.SoGroup
addChild, findChild, getChild, getNumChildren, insertChild, removeAllChildren, removeChild, removeChild, replaceChild, replaceChildMethods 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, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
isDisplayed
Controls whether the gnomon is visible (default is true). -
position
Position of the gnomon viewport in pixels (default is 0,0). -
width
Specifies the width of the gnomon viewport in pixels (default is 100). -
height
Specifies the height of the gnomon viewport in pixels (default is 100). -
cameraDistance
Specifies the distance from the camera to the gnomon geometry. Default is 3.5. Applications should not need to modify this value.
-
-
Constructor Details
-
Gnomon
public Gnomon()Constructor
-
-
Method Details
-
getRenderEngineMode
Description copied from class:SoNodeReturns 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:
getRenderEngineModein classSoNode- Returns:
- the supported Render engine mode for this node.
-
setScale
Scale the size of the gnomon (default is 1,1,1). -
setGeometry
Replace the gnomon geometry (default is basic medical gnomon). Gnomon geometry should have a 3D extent of -1 to 1.
-