Class RenderAreaExaminer
java.lang.Object
java.awt.Component
java.awt.Canvas
com.jogamp.opengl.awt.GLCanvas
com.openinventor.inventor.viewercomponents.awt.glcanvas.renderareas.RenderArea
com.openinventor.inventor.viewercomponents.awt.glcanvas.renderareas.RenderAreaInteractive
com.openinventor.inventor.viewercomponents.awt.glcanvas.renderareas.RenderAreaExaminer
- All Implemented Interfaces:
com.jogamp.nativewindow.awt.AWTPrintLifecycle
,com.jogamp.nativewindow.NativeSurfaceHolder
,com.jogamp.nativewindow.OffscreenLayerOption
,com.jogamp.nativewindow.ScalableSurface
,com.jogamp.nativewindow.WindowClosingProtocol
,com.jogamp.opengl.awt.AWTGLAutoDrawable
,com.jogamp.opengl.awt.ComponentEvents
,com.jogamp.opengl.GLAutoDrawable
,com.jogamp.opengl.GLDrawable
,com.jogamp.opengl.GLEventListener
,com.jogamp.opengl.GLSharedContextSetter
,IRenderArea
,IRenderAreaExaminer
,IRenderAreaInteractive
,KeyListener
,MouseListener
,MouseMotionListener
,MouseWheelListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
Class to render an OpenInventor scene graph in an AWT GLCanvas.
This class extends RenderAreaInteractive to add examiner viewer behaviors.
Note: When using this component, the automatic interactive mode is disabled,
see
SoSceneManager.setAutoInteractiveMode(boolean)
for more details. Interactive mode is managed by the SceneExaminer node.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
Nested classes/interfaces inherited from interface com.jogamp.nativewindow.awt.AWTPrintLifecycle
com.jogamp.nativewindow.awt.AWTPrintLifecycle.Context
Nested classes/interfaces inherited from interface com.openinventor.inventor.viewercomponents.awt.IRenderAreaInteractive
IRenderAreaInteractive.ClippingPlanesAdjustMode
Nested classes/interfaces inherited from interface com.jogamp.nativewindow.WindowClosingProtocol
com.jogamp.nativewindow.WindowClosingProtocol.WindowClosingMode
-
Field Summary
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface com.jogamp.nativewindow.awt.AWTPrintLifecycle
DEFAULT_PRINT_TILE_SIZE
Fields inherited from interface com.jogamp.opengl.GLAutoDrawable
SCREEN_CHANGE_ACTION_ENABLED
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface com.jogamp.nativewindow.ScalableSurface
AUTOMAX_PIXELSCALE, IDENTITY_PIXELSCALE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified listener to receive notifications of interaction mode changes.Gets the current interaction mode.Gets the current navigation mode.Deprecated.Gets the root scene graph of this render area.void
init
(com.jogamp.opengl.GLAutoDrawable drawable) void
Removes the specified listener so that it no longer receives notifications of interaction mode changes.void
Set interaction mode to navigation or selection.void
Sets the navigation mode to orbit or plane.void
setSeekMode
(boolean onOrOff) Sets the interaction into or out off seek mode (default is off).Methods inherited from class com.openinventor.inventor.viewercomponents.awt.glcanvas.renderareas.RenderAreaInteractive
activateStereo, getClippingPlanesAdjustMode, isStereoSupported, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, restoreCamera, saveCamera, setCameraType, setClippingPlanesAdjustMode, setSceneGraph, setStereoCameraBalance, setStereoCameraOffset, viewAll, viewAxis
Methods inherited from class com.openinventor.inventor.viewercomponents.awt.glcanvas.renderareas.RenderArea
display, dispose, dispose, getAntialiasingMode, getAntialiasingQuality, getComponent, getGLRenderAction, getStillSuperSamplingDelay, getStillSuperSamplingQuality, getTransparencyType, isRawStereoAvailable, reshape, scheduleRedraw, setAntialiasingMode, setAntialiasingQuality, setGLRenderAction, setStillSuperSamplingDelay, setStillSuperSamplingQuality, setTransparencyType
Methods inherited from class com.jogamp.opengl.awt.GLCanvas
addGLEventListener, addGLEventListener, addNotify, areAllGLEventListenerInitialized, canSetSurfaceScale, createContext, destroy, display, disposeGLEventListener, flushGLRunnables, getAnimator, getAutoSwapBufferMode, getChosenGLCapabilities, getContext, getContextCreationFlags, getCurrentSurfaceScale, getDefaultCloseOperation, getDelegatedDrawable, getExclusiveContextThread, getFactory, getGL, getGLEventListener, getGLEventListenerCount, getGLEventListenerInitState, getGLProfile, getGraphicsConfiguration, getHandle, getMaximumSurfaceScale, getMinimumSurfaceScale, getNativeSurface, getRequestedGLCapabilities, getRequestedSurfaceScale, getShallUseOffscreenLayer, getSurfaceHeight, getSurfaceWidth, getUpstreamLock, getUpstreamWidget, invoke, invoke, isGLOriented, isOffscreenLayerSurfaceEnabled, isRealized, isThreadGLCapable, main, paint, print, releasePrint, removeGLEventListener, removeNotify, reshape, setAnimator, setAutoSwapBufferMode, setContext, setContextCreationFlags, setDefaultCloseOperation, setExclusiveContextThread, setGL, setGLEventListenerInitState, setRealized, setShallUseOffscreenLayer, setSharedAutoDrawable, setSharedContext, setSurfaceScale, setupPrint, swapBuffers, toString, update
Methods inherited from class java.awt.Canvas
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.jogamp.opengl.awt.AWTGLAutoDrawable
repaint, setSize
Methods inherited from interface com.jogamp.opengl.awt.ComponentEvents
addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.openinventor.inventor.viewercomponents.awt.IRenderArea
activateStereo, dispose, getAntialiasingMode, getAntialiasingQuality, getComponent, getGLRenderAction, getStillSuperSamplingDelay, getStillSuperSamplingQuality, getTransparencyType, isRawStereoAvailable, scheduleRedraw, setAntialiasingMode, setAntialiasingQuality, setGLRenderAction, setSceneGraph, setStillSuperSamplingDelay, setStillSuperSamplingQuality, setTransparencyType
Methods inherited from interface com.openinventor.inventor.viewercomponents.awt.IRenderAreaInteractive
getClippingPlanesAdjustMode, isStereoSupported, restoreCamera, saveCamera, setCameraType, setClippingPlanesAdjustMode, setStereoCameraBalance, setStereoCameraOffset, viewAll, viewAxis
-
Constructor Details
-
RenderAreaExaminer
public RenderAreaExaminer() -
RenderAreaExaminer
public RenderAreaExaminer(com.jogamp.opengl.GLCapabilities caps)
-
-
Method Details
-
init
public void init(com.jogamp.opengl.GLAutoDrawable drawable) - Specified by:
init
in interfacecom.jogamp.opengl.GLEventListener
- Overrides:
init
in classRenderAreaInteractive
-
setSeekMode
public void setSeekMode(boolean onOrOff) Description copied from interface:IRenderAreaExaminer
Sets the interaction into or out off seek mode (default is off).- Specified by:
setSeekMode
in interfaceIRenderAreaExaminer
- Parameters:
onOrOff
- true to activate seek mode
-
setInteractionMode
Description copied from interface:IRenderAreaExaminer
Set interaction mode to navigation or selection.- Specified by:
setInteractionMode
in interfaceIRenderAreaExaminer
- Parameters:
mode
- the new interaction mode
-
getInteractionMode
Description copied from interface:IRenderAreaExaminer
Gets the current interaction mode.- Specified by:
getInteractionMode
in interfaceIRenderAreaExaminer
- Returns:
- the current interaction mode
-
addInteractionModeListener
Description copied from interface:IRenderAreaExaminer
Adds the specified listener to receive notifications of interaction mode changes.- Specified by:
addInteractionModeListener
in interfaceIRenderAreaExaminer
- Parameters:
listener
- the interaction mode listener to add
-
removeInteractionModeListener
Description copied from interface:IRenderAreaExaminer
Removes the specified listener so that it no longer receives notifications of interaction mode changes.- Specified by:
removeInteractionModeListener
in interfaceIRenderAreaExaminer
- Parameters:
listener
- the interaction mode listener to remove
-
getRootSceneGraph
Deprecated.As of Open Inventor 10.5.0, usegetSceneInteractor()
instead.Description copied from interface:IRenderAreaInteractive
Gets the root scene graph of this render area.- Specified by:
getRootSceneGraph
in interfaceIRenderAreaExaminer
- Specified by:
getRootSceneGraph
in interfaceIRenderAreaInteractive
- Overrides:
getRootSceneGraph
in classRenderAreaInteractive
- Returns:
- the root scene graph
-
getSceneInteractor
Description copied from interface:IRenderAreaInteractive
Gets the root scene graph of this render area.- Specified by:
getSceneInteractor
in interfaceIRenderAreaExaminer
- Specified by:
getSceneInteractor
in interfaceIRenderAreaInteractive
- Overrides:
getSceneInteractor
in classRenderAreaInteractive
- Returns:
- the root scene graph
-
getSceneInteractor()
instead.