Click or drag to resize
SoCameraInteractorActivateOrbiting Method

Set the starting point for interactive orbiting.

Namespace: OIV.Inventor.ViewerComponents
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public void ActivateOrbiting(
	SbVec2f startPos
)

Parameters

startPos
Type: OIV.InventorSbVec2f

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().

Remarks

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().

See Also