public class RenderAreaInteractive extends RenderArea implements com.jogamp.newt.event.MouseListener, com.jogamp.newt.event.KeyListener, IRenderAreaInteractive
java.awt.Component.BaselineResizeBehaviorIRenderAreaInteractive.ClippingPlanesAdjustModeBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
RenderAreaInteractive() |
RenderAreaInteractive(boolean enableStereo) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateStereo(boolean activated)
Activates or deactivates raw stereo.
|
IRenderAreaInteractive.ClippingPlanesAdjustMode |
getClippingPlanesAdjustMode()
Get the camera clipping planes adjustment mode.
|
SceneInteractor |
getRootSceneGraph()
Gets the root scene graph of this render area.
|
void |
init(com.jogamp.opengl.GLAutoDrawable drawable) |
boolean |
isStereoSupported()
Gets stereo support.
|
void |
keyPressed(com.jogamp.newt.event.KeyEvent e) |
void |
keyReleased(com.jogamp.newt.event.KeyEvent e) |
void |
mouseClicked(com.jogamp.newt.event.MouseEvent e) |
void |
mouseDragged(com.jogamp.newt.event.MouseEvent e) |
void |
mouseEntered(com.jogamp.newt.event.MouseEvent e) |
void |
mouseExited(com.jogamp.newt.event.MouseEvent e) |
void |
mouseMoved(com.jogamp.newt.event.MouseEvent e) |
void |
mousePressed(com.jogamp.newt.event.MouseEvent e) |
void |
mouseReleased(com.jogamp.newt.event.MouseEvent e) |
void |
mouseWheelMoved(com.jogamp.newt.event.MouseEvent e) |
void |
restoreCamera()
Restore saved camera.
|
void |
saveCamera()
Save current camera.
|
void |
setCameraType(SceneInteractor.CameraMode mode)
Set camera mode to perspective or orthographic.
|
void |
setClippingPlanesAdjustMode(IRenderAreaInteractive.ClippingPlanesAdjustMode mode)
Set the camera clipping planes adjustment mode.
|
void |
setSceneGraph(SoNode sceneGraph)
Sets the scene graph.
|
void |
setStereoCameraBalance(float balance)
Sets the stereo balance (the position of the zero parallax plane).
|
void |
setStereoCameraOffset(float offset)
Sets the stereo offset (the distance of each eye from the camera position).
|
void |
viewAll(SbViewportRegion viewport)
Set the camera to view all the scene.
|
void |
viewAxis(SbVec3f direction,
SbVec3f up)
Moves the camera to be aligned with the given direction vector while
keeping the "up" direction of the camera parallel to the specified up
vector.
|
display, dispose, dispose, getComponent, getGLRenderAction, getTransparencyType, isRawStereoAvailable, reshape, scheduleRedraw, setGLRenderAction, setTransparencyTypeaddNotify, destroy, getDefaultCloseOperation, getGraphicsConfiguration, getNativeWindow, getNEWTChild, getShallUseOffscreenLayer, getSkipJAWTDestroy, isApplet, isAWTEventPassThrough, isOffscreenLayerSurfaceEnabled, paint, print, releasePrint, removeNotify, reshape, setDefaultCloseOperation, setNEWTChild, setShallUseOffscreenLayer, setSkipJAWTDestroy, setupPrint, updatecreateBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategyaction, 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, getPeer, 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, requestFocusInWindow, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validateequals, getClass, hashCode, notify, notifyAll, wait, wait, waitdispose, getComponent, getGLRenderAction, getTransparencyType, isRawStereoAvailable, scheduleRedraw, setGLRenderAction, setTransparencyTypepublic RenderAreaInteractive()
public RenderAreaInteractive(boolean enableStereo)
public void setSceneGraph(SoNode sceneGraph)
IRenderAreasetSceneGraph in interface IRenderAreasetSceneGraph in class RenderAreasceneGraph - the scene graphpublic void init(com.jogamp.opengl.GLAutoDrawable drawable)
init in interface com.jogamp.opengl.GLEventListenerinit in class RenderAreapublic IRenderAreaInteractive.ClippingPlanesAdjustMode getClippingPlanesAdjustMode()
getClippingPlanesAdjustMode in interface IRenderAreaInteractivepublic void setClippingPlanesAdjustMode(IRenderAreaInteractive.ClippingPlanesAdjustMode mode)
AUTO, the camera near and far planes
are dynamically adjusted to be as tight as possible (least amount of stuff
is clipped) before each render traversal.MANUAL, the user is expected to
manually set those planes. Updating clipping planes after a camera move is
not enough, if a dragger or a rendered shape is moved, they can disappear
or become partially clipped.AUTO.setClippingPlanesAdjustMode in interface IRenderAreaInteractivepublic SceneInteractor getRootSceneGraph()
IRenderAreaInteractivegetRootSceneGraph in interface IRenderAreaInteractivepublic void viewAll(SbViewportRegion viewport)
IRenderAreaInteractiveviewAll in interface IRenderAreaInteractiveviewport - the viewport region used to compute the bounding box of the scene.public void viewAxis(SbVec3f direction, SbVec3f up)
IRenderAreaInteractiveviewAxis in interface IRenderAreaInteractivedirection - the new view direction vectorup - the new "up" directionpublic void saveCamera()
IRenderAreaInteractiveIRenderAreaInteractive.restoreCamera().saveCamera in interface IRenderAreaInteractivepublic void restoreCamera()
IRenderAreaInteractiverestoreCamera in interface IRenderAreaInteractivepublic void setCameraType(SceneInteractor.CameraMode mode)
IRenderAreaInteractivesetCameraType in interface IRenderAreaInteractivemode - the camera mode: perspective or orthographicpublic void activateStereo(boolean activated)
IRenderAreaactivateStereo in interface IRenderAreaactivateStereo in class RenderAreaactivated - true to activate raw stereopublic boolean isStereoSupported()
IRenderAreaInteractiveisStereoSupported in interface IRenderAreaInteractivepublic void setStereoCameraOffset(float offset)
IRenderAreaInteractivesetStereoCameraOffset in interface IRenderAreaInteractiveoffset - the stereo offsetpublic void setStereoCameraBalance(float balance)
IRenderAreaInteractivesetStereoCameraBalance in interface IRenderAreaInteractivebalance - the stereo balancepublic void mousePressed(com.jogamp.newt.event.MouseEvent e)
mousePressed in interface com.jogamp.newt.event.MouseListenerpublic void mouseWheelMoved(com.jogamp.newt.event.MouseEvent e)
mouseWheelMoved in interface com.jogamp.newt.event.MouseListenerpublic void mouseDragged(com.jogamp.newt.event.MouseEvent e)
mouseDragged in interface com.jogamp.newt.event.MouseListenerpublic void mouseMoved(com.jogamp.newt.event.MouseEvent e)
mouseMoved in interface com.jogamp.newt.event.MouseListenerpublic void mouseClicked(com.jogamp.newt.event.MouseEvent e)
mouseClicked in interface com.jogamp.newt.event.MouseListenerpublic void mouseReleased(com.jogamp.newt.event.MouseEvent e)
mouseReleased in interface com.jogamp.newt.event.MouseListenerpublic void mouseEntered(com.jogamp.newt.event.MouseEvent e)
mouseEntered in interface com.jogamp.newt.event.MouseListenerpublic void mouseExited(com.jogamp.newt.event.MouseEvent e)
mouseExited in interface com.jogamp.newt.event.MouseListenerpublic void keyPressed(com.jogamp.newt.event.KeyEvent e)
keyPressed in interface com.jogamp.newt.event.KeyListenerpublic void keyReleased(com.jogamp.newt.event.KeyEvent e)
keyReleased in interface com.jogamp.newt.event.KeyListenerGenerated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com