Utility class to manipulate a camera.
Thetype exposes the following members.
Set the starting point for interactive orbiting.
Set the starting point for interactive panning.
Adjust near and far clipping planes to minimize clipping of objects in the scene.
Change camera's view volume.
Releases all resources used by SoDisposable.(Inherited from SoDisposable.)
Dolly - Makes the scene appear larger or smaller.
Moves the camera forward or backward along the view vector to view the region defined by the given corners in normalized screen coordinates.
Modifies the camera to ajust the view around the specified point.
Returns the associated camera.
Returns the direction vector of the camera.
Overrides(Inherited from . SoNetBase.)
Create an instance for the specified camera.
Gets the Type of the current instance.(Inherited from Object.)
|GetViewportCenter|| Obsolete. |
Returns the viewport center.
Returns the rotation needed to point a camera at position toward the given target point while keeping the "up" direction of the camera parallel to the specified up vector.
Orbit the camera by the specified rotation.
Orbit the camera based on offset from the previous screen position.
Pan the camera based on offset from starting point.
Pivot the camera.
Sets the orientation of the camera so that it points toward the given target point while keeping the "up" direction of the camera parallel to the positive world coordinate y-axis.
Restore saved camera.
Project specified 2D point on the plane parallel to the near plane that is at distFromEye units from the eye, see also SbViewVolume.getPlanePoint.
Map a 3D point in world coordinates to a 2D point in normalized screen coordinates (0 <= x,y <= 1), see also SbViewVolume.projectToScreen.
Save current camera.
Roll the camera.
Rotate the camera around the center specified by OIV.Inventor.ViewerComponents.SoCameraInteractor.SetRotationCenter(OIV.Inventor.SbVec3f) and the axis specified by OIV.Inventor.ViewerComponents.SoCameraInteractor.SetRotationAxis(OIV.Inventor.SbVec3f).
Rotate the camera.
Set the orientation of the camera.
Move camera to the specified position.
|SetPosition(SbVec2f, Single, SbViewportRegion)|
Move camera to the specified position.
Set the axis of rotation.
Set the center of rotation.
Copy field values from the specified camera to the camera of this interactor.
Tilt the camera.
Returns a string that represents the current object.(Inherited from Object.)
Move camera by the specified 3D displacement.
Move camera by the specified 2D displacement.
Move the camera to view the scene defined by the given node.
Move the camera to view the scene defined by the given path.
Moves and rotates the camera to be aligned with the given direction vector while keeping the up direction of the camera parallel to the specified up vector.
Move camera to the center of the specified box.
Move camera to the center of the scene defined by the specified node.
Move camera to the center of the scene defined by the specified path.
NOTE: The camera position is not changed, so the camera may not be looking toward the scene.
Rotate camera to look parallel to the Y axis with +Z up.
Rotate camera to look parallel to the Z axis with +Y up.
Zoom - Makes the scene appear larger or smaller.
Zooms to the region defined by the given corners in normalized screen coordinates.
ISafeDisposable interface implementation.(Inherited from SoDisposable.)
This class provides some useful algorithms to manipulate a camera (translation, rotation, zoom, etc).
This class is not, strictly speaking, a true interactor. It does not respond to input events. However it provides the camera manipulation algorithms you need to build an interactor that provides behavior similar to the Open Inventor viewer classes, for example OIV.Inventor.Win.Viewers.SoWinExaminerViewer. An interactor could handle system-dependent events or Open Inventor events (using OIV.Inventor.Nodes.SoEventCallback). It could also be triggered from the user interface (buttons, sliders, etc).
Start by creating an instance of OIV.Inventor.ViewerComponents.SoCameraInteractor.GetNewInstance(OIV.Inventor.Nodes.SoCamera) method. Then, for example, to provide examinerViewer-like rotation behavior:by giving the camera to be manipulated either to the constructor of or to the
On a mouse button down event, call OIV.Inventor.ViewerComponents.SoCameraInteractor.ActivateOrbiting(OIV.Inventor.SbVec2f).
On mouse move event, if button is down, call OIV.Inventor.ViewerComponents.SoCameraInteractor.Orbit(OIV.Inventor.SbRotation).
To provide the viewer's automatic adjustment of near and far clip planes behavior, call themethod before each render traversal.
To see an example "viewer" implemented using this class, please see the SceneExaminer class provided as source code in the Open Inventor SDK: