public interface IRenderAreaInteractive extends IRenderArea
SceneInteractor
node as root of the
scene graph.SceneInteractor
Modifier and Type | Interface and Description |
---|---|
static class |
IRenderAreaInteractive.ClippingPlanesAdjustMode
Camera clipping planes adjustment mode.
When adjustment mode is set to 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.When adjustment mode is set to MANUAL , the user is expected to
manually set the camera near and far planes. |
Modifier and Type | Method and Description |
---|---|
IRenderAreaInteractive.ClippingPlanesAdjustMode |
getClippingPlanesAdjustMode()
Get the camera clipping planes adjustment mode.
|
SceneInteractor |
getRootSceneGraph()
Gets the root scene graph of this render area.
|
boolean |
isStereoSupported()
Gets stereo support.
|
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 |
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.
|
activateStereo, dispose, getComponent, getGLRenderAction, getTransparencyType, isRawStereoAvailable, scheduleRedraw, setGLRenderAction, setSceneGraph, setTransparencyType
IRenderAreaInteractive.ClippingPlanesAdjustMode getClippingPlanesAdjustMode()
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
.SceneInteractor getRootSceneGraph()
void viewAll(SbViewportRegion viewport)
viewport
- the viewport region used to compute the bounding box of the scene.void viewAxis(SbVec3f direction, SbVec3f up)
direction
- the new view direction vectorup
- the new "up" directionvoid saveCamera()
restoreCamera()
.void restoreCamera()
void setCameraType(SceneInteractor.CameraMode mode)
mode
- the camera mode: perspective or orthographicboolean isStereoSupported()
void setStereoCameraOffset(float offset)
offset
- the stereo offsetvoid setStereoCameraBalance(float balance)
balance
- the stereo balanceGenerated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com