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: 9.9.13.0 (9.9.13.0)
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 setRotationCenter() method. This method automatically calls the setRotationAxis() method with the axis defined by the 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 orbit() 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 setRotationCenter() with the value returned from getFocalPoint().

See Also