Interface IRenderAreaInteractive
- All Superinterfaces:
IRenderArea
- All Known Subinterfaces:
IRenderAreaExaminer
- All Known Implementing Classes:
RenderAreaExaminer
,RenderAreaExaminer
,RenderAreaInteractive
,RenderAreaInteractive
,RenderAreaOrbiter
,RenderAreaOrbiter
Interface for interactive render area.
An interactive render area has a
An interactive render area has a
SceneInteractor
node as root of the
scene graph.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Camera clipping planes adjustment mode.
When adjustment mode is set toAUTO
, 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 toMANUAL
, the user is expected to manually set the camera near and far planes. -
Method Summary
Modifier and TypeMethodDescriptionGet the camera clipping planes adjustment mode.Deprecated.Gets the root scene graph of this render area.boolean
Gets stereo support.void
Restore saved camera.void
Save current camera.void
Set camera mode to perspective or orthographic.void
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
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.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
-
Method Details
-
getClippingPlanesAdjustMode
IRenderAreaInteractive.ClippingPlanesAdjustMode getClippingPlanesAdjustMode()Get the camera clipping planes adjustment mode. -
setClippingPlanesAdjustMode
Set the camera clipping planes adjustment mode.
When adjustment mode is set toAUTO
, 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 toMANUAL
, 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.
Default isAUTO
. -
getRootSceneGraph
Deprecated.As of Open Inventor 10.5.0, usegetSceneInteractor()
instead.Gets the root scene graph of this render area.- Returns:
- the root scene graph
-
getSceneInteractor
SceneInteractor getSceneInteractor()Gets the root scene graph of this render area.- Returns:
- the root scene graph
-
viewAll
Set the camera to view all the scene.- Parameters:
viewport
- the viewport region used to compute the bounding box of the scene.
-
viewAxis
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.- Parameters:
direction
- the new view direction vectorup
- the new "up" direction
-
saveCamera
void saveCamera()Save current camera. The values of the camera fields are saved and can be restored by callingrestoreCamera()
. -
restoreCamera
void restoreCamera()Restore saved camera. The values of the camera fields are restored to the last saved values. -
setCameraType
Set camera mode to perspective or orthographic.- Parameters:
mode
- the camera mode: perspective or orthographic
-
isStereoSupported
boolean isStereoSupported()Gets stereo support.- Returns:
- true if stereo is supported
-
setStereoCameraOffset
void setStereoCameraOffset(float offset) Sets the stereo offset (the distance of each eye from the camera position). The right eye is moved plus offset and the left eye is moved minus offset.- Parameters:
offset
- the stereo offset
-
setStereoCameraBalance
void setStereoCameraBalance(float balance) Sets the stereo balance (the position of the zero parallax plane).- Parameters:
balance
- the stereo balance
-
getSceneInteractor()
instead.