Class RenderAreaExaminer
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.swt.widgets.Control
-
- org.eclipse.swt.widgets.Scrollable
-
- org.eclipse.swt.widgets.Composite
-
- org.eclipse.swt.widgets.Canvas
-
- com.jogamp.opengl.swt.GLCanvas
-
- com.openinventor.inventor.viewercomponents.swt.glcanvas.renderareas.RenderArea
-
- com.openinventor.inventor.viewercomponents.swt.glcanvas.renderareas.RenderAreaInteractive
-
- com.openinventor.inventor.viewercomponents.swt.glcanvas.renderareas.RenderAreaExaminer
-
- All Implemented Interfaces:
com.jogamp.nativewindow.NativeSurfaceHolder
,com.jogamp.opengl.GLAutoDrawable
,com.jogamp.opengl.GLDrawable
,com.jogamp.opengl.GLEventListener
,com.jogamp.opengl.GLSharedContextSetter
,java.util.EventListener
,org.eclipse.swt.events.KeyListener
,org.eclipse.swt.events.MouseListener
,org.eclipse.swt.events.MouseMoveListener
,org.eclipse.swt.events.MouseTrackListener
,org.eclipse.swt.events.MouseWheelListener
,org.eclipse.swt.graphics.Drawable
,org.eclipse.swt.internal.SWTEventListener
public class RenderAreaExaminer extends RenderAreaInteractive
Class to render an OpenInventor scene graph in a SWT 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.viewercomponents.swt.glcanvas.renderareas.RenderAreaInteractive
RenderAreaInteractive.ClippingPlanesAdjustMode
-
-
Constructor Summary
Constructors Constructor Description RenderAreaExaminer(org.eclipse.swt.widgets.Composite parent, int style)
RenderAreaExaminer(org.eclipse.swt.widgets.Composite parent, int style, com.jogamp.opengl.GLCapabilities caps)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addInteractionModeListener(SceneExaminer.InteractionModeListener listener)
SceneExaminer.InteractionMode
getInteractionMode()
SceneExaminer.NavigationMode
getNavigationMode()
SceneExaminer
getRootSceneGraph()
Deprecated.As of Open Inventor 10.5.0, usegetSceneInteractor()
instead.SceneExaminer
getSceneInteractor()
void
init(com.jogamp.opengl.GLAutoDrawable drawable)
void
removeInteractionModeListener(SceneExaminer.InteractionModeListener listener)
void
setNavigationMode(SceneExaminer.NavigationMode mode)
void
setSeekMode(boolean onOrOff)
-
Methods inherited from class com.openinventor.inventor.viewercomponents.swt.glcanvas.renderareas.RenderAreaInteractive
activateStereo, getClippingPlanesAdjustMode, isStereoSupported, keyPressed, keyReleased, mouseDoubleClick, mouseDown, mouseEnter, mouseExit, mouseHover, mouseMove, mouseScrolled, mouseUp, restoreCamera, saveCamera, setCameraType, setClippingPlanesAdjustMode, setSceneGraph, setStereoCameraBalance, setStereoCameraOffset, viewAll, viewAxis
-
Methods inherited from class com.openinventor.inventor.viewercomponents.swt.glcanvas.renderareas.RenderArea
display, dispose, getAntialiasingMode, getAntialiasingQuality, getGLRenderAction, getStillSuperSamplingDelay, getStillSuperSamplingQuality, isRawStereoAvailable, reshape, scheduleRedraw, setAntialiasingMode, setAntialiasingQuality, setGLRenderAction, setStillSuperSamplingDelay, setStillSuperSamplingQuality
-
Methods inherited from class com.jogamp.opengl.swt.GLCanvas
addGLEventListener, addGLEventListener, areAllGLEventListenerInitialized, create, createContext, destroy, display, dispose, disposeGLEventListener, flushGLRunnables, getAnimator, getAutoSwapBufferMode, getChosenGLCapabilities, getContext, getContextCreationFlags, getDelegatedDrawable, getExclusiveContextThread, getFactory, getGL, getGLEventListener, getGLEventListenerCount, getGLEventListenerInitState, getGLProfile, getHandle, getNativeSurface, getRequestedGLCapabilities, getSurfaceHeight, getSurfaceWidth, getUpstreamLock, getUpstreamWidget, invoke, invoke, isGLOriented, isRealized, isThreadGLCapable, main, removeGLEventListener, setAnimator, setAutoSwapBufferMode, setContext, setContextCreationFlags, setExclusiveContextThread, setGL, setGLEventListenerInitState, setRealized, setSharedAutoDrawable, setSharedContext, swapBuffers, toString, update
-
Methods inherited from class org.eclipse.swt.widgets.Canvas
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
-
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
-
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
-
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse
-
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData
-
-
-
-
Method Detail
-
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)
-
setNavigationMode
public void setNavigationMode(SceneExaminer.NavigationMode mode)
-
getNavigationMode
public SceneExaminer.NavigationMode getNavigationMode()
-
getInteractionMode
public SceneExaminer.InteractionMode getInteractionMode()
-
addInteractionModeListener
public void addInteractionModeListener(SceneExaminer.InteractionModeListener listener)
-
removeInteractionModeListener
public void removeInteractionModeListener(SceneExaminer.InteractionModeListener listener)
-
getRootSceneGraph
@Deprecated public SceneExaminer getRootSceneGraph()
Deprecated.As of Open Inventor 10.5.0, usegetSceneInteractor()
instead.- Overrides:
getRootSceneGraph
in classRenderAreaInteractive
-
getSceneInteractor
public SceneExaminer getSceneInteractor()
- Overrides:
getSceneInteractor
in classRenderAreaInteractive
-
-