Click or drag to resize
SoCameraInteractorOrbit Method (SbRotation)

Orbit the camera by the specified rotation.

Namespace: OIV.Inventor.ViewerComponents
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public void Orbit(
	SbRotation rotation
)

Parameters

rotation
Type: OIV.InventorSbRotation

Incremental rotation, i.e. this rotation is multiplied with the current camera orientation.

Remarks

"Orbit" means to rotate the camera around a fixed point in 3D space. The rotation point is specified using the OIV.Inventor.ViewerComponents.SoCameraInteractor.SetRotationCenter(OIV.Inventor.SbVec3f) method. This method automatically calls the OIV.Inventor.ViewerComponents.SoCameraInteractor.SetRotationAxis(OIV.Inventor.SbVec3f) method with the axis defined by the OIV.Inventor.SbRotation parameter.

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. Orbit based on mouse or touch events can be implemented using the OIV.Inventor.ViewerComponents.SoCameraInteractor.Orbit(OIV.Inventor.SbRotation) method. This method can be used, for example, to animate the camera to a new viewpoint. 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().

See Also