Click or drag to resize
SoCameraInteractorOrbit Method (SbVec2f)

Orbit the camera based on offset from the previous screen position.

Namespace: OIV.Inventor.ViewerComponents
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public void Orbit(
	SbVec2f newPos
)

Parameters

newPos
Type: OIV.InventorSbVec2f

new 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 can be used to implement an interactive orbit operation in response to mouse move or touch events. The OIV.Inventor.ViewerComponents.SoCameraInteractor.ActivateOrbiting(OIV.Inventor.SbVec2f) method should be called at the start of the operation. This method uses an OIV.Inventor.Projectors.SbSphereSheetProjector to compute a rotation value based on the specified point and the previously specified point.

See Also