Interface IRenderAreaInteractive
-
- All Superinterfaces:
IRenderArea
- All Known Subinterfaces:
IRenderAreaExaminer
- All Known Implementing Classes:
RenderAreaExaminer
,RenderAreaExaminer
,RenderAreaInteractive
,RenderAreaInteractive
,RenderAreaOrbiter
,RenderAreaOrbiter
public interface IRenderAreaInteractive extends IRenderArea
Interface for interactive render area.
An interactive render area has aSceneInteractor
node as root of the scene graph.- See Also:
SceneInteractor
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IRenderAreaInteractive.ClippingPlanesAdjustMode
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IRenderAreaInteractive.ClippingPlanesAdjustMode
getClippingPlanesAdjustMode()
Get the camera clipping planes adjustment mode.SceneInteractor
getRootSceneGraph()
Deprecated.As of Open Inventor 10.5.0, usegetSceneInteractor()
instead.SceneInteractor
getSceneInteractor()
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.-
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 Detail
-
getClippingPlanesAdjustMode
IRenderAreaInteractive.ClippingPlanesAdjustMode getClippingPlanesAdjustMode()
Get the camera clipping planes adjustment mode.
-
setClippingPlanesAdjustMode
void setClippingPlanesAdjustMode(IRenderAreaInteractive.ClippingPlanesAdjustMode mode)
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 SceneInteractor 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
void viewAll(SbViewportRegion viewport)
Set the camera to view all the scene.- Parameters:
viewport
- the viewport region used to compute the bounding box of the scene.
-
viewAxis
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.- 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
void setCameraType(SceneInteractor.CameraMode mode)
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
-
-