SoCameraInteractorGetFocalPoint Method |
Namespace: OIV.Inventor.ViewerComponents
Returns the camera's "focal point", located focalDistance units from the camera position along the view direction vector (defined by the camera's orientation field).
This is the reference point for some algorithms. For example, OIV.Inventor.ViewerComponents.SoCameraInteractor.Orbit(OIV.Inventor.SbRotation) 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 the OIV.Inventor.ViewerComponents.SoCameraInteractor.SetRotationCenter(OIV.Inventor.SbVec3f) method with the focal point before calling the OIV.Inventor.ViewerComponents.SoCameraInteractor.Orbit(OIV.Inventor.SbRotation) method.