SoCameraInteractorActivateOrbiting Method |
Set the starting point for interactive orbiting.
Namespace: OIV.Inventor.ViewerComponents
starting position, 2D point in normalized screen coordinates (0 <= x,y <= 1). Typically this value is obtained from the OIV.Inventor.Events.SoEvent method getNormalizedPosition().
This method should be called when starting an interaction. Typically this is triggered by a mouse button or touch event. On subsequent mouse move or touch events, call the OIV.Inventor.ViewerComponents.SoCameraInteractor.Orbit(OIV.Inventor.SbRotation) method with the new cursor or touch position.
Orbit is often used in an "examiner" type of viewer to allow the user to rotate the camera around a point of interest in the scene. To implement orbit around the camera's "focal point", call OIV.Inventor.ViewerComponents.SoCameraInteractor.SetRotationCenter(OIV.Inventor.SbVec3f) with the value returned from OIV.Inventor.ViewerComponents.SoCameraInteractor.GetFocalPoint().