Class Magnifier
- java.lang.Object
-
- All Implemented Interfaces:
SafeDisposable
public class Magnifier extends SoTranslate2Dragger
(Preview Feature) Shape node to display a magnified view of a region of the screen.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 circular magnified (zoomed in) view of the screen region under the center of the circle. The magnifier is an SoTranslate2Dragger so the user can click and drag to move it around the screen.Limitations:
- Can only be used in a "2D" viewing environment using an
SoOrthographicCamera.
For example viewing a single slice of a medical volume. - Can only be used with the default camera orientation (looking toward -Z).
File format/default:
Magnifier {
sceneToMagnify NULL magnifierColor 0 0.6 0 magnifierFactor 50
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.draggers.SoDragger
SoDragger.TrackerDirectModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodekits.SoInteractionKit
SoInteractionKit.Cachings
-
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 SoSFColor
magnifierColor
Specifies the color of the border around the magnifier.SoSFFloat
magnifierFactor
Specifies the magnification factor.SoSFNode
sceneToMagnify
Specifies the root node of the scene that will be magnified.-
Fields inherited from class com.openinventor.inventor.draggers.SoTranslate2Dragger
translation
-
Fields inherited from class com.openinventor.inventor.draggers.SoDragger
enableCallbacks, isActive
-
Fields inherited from class com.openinventor.inventor.nodekits.SoInteractionKit
boundingBoxCaching, pickCulling, renderCaching, renderCulling
-
Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description Magnifier()
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.draggers.SoTranslate2Dragger
getClassNodekitCatalog
-
Methods inherited from class com.openinventor.inventor.draggers.SoDragger
addFinishCallback, addMotionCallback, addStartCallback, addValueChangedCallback, enableValueChangedCallbacks, getInitialTrackerDirectMode, getMinGesture, getMinGestureFloat, getMinScale, getMotionMatrix, getTrackerDirectMode, removeFinishCallback, removeMotionCallback, removeStartCallback, removeValueChangedCallback, setInitialTrackerDirectMode, setInitialTrackerDirectMode, setMinGesture, setMinGesture, setMinScale, setMotionMatrix, setTrackerDirectMode, setTrackerDirectMode
-
Methods inherited from class com.openinventor.inventor.nodekits.SoInteractionKit
setPartAsPath
-
Methods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
-
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, 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
-
sceneToMagnify
public SoSFNode sceneToMagnify
Specifies the root node of the scene that will be magnified. Default is null.
-
magnifierColor
public SoSFColor magnifierColor
Specifies the color of the border around the magnifier. Default is 0,0.6,0 (green).
-
magnifierFactor
public SoSFFloat magnifierFactor
Specifies the magnification factor. Default is 50. Technically speaking this field specifies the value to set in the height field of the magnifier's camera.
-
-
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.
-
-