Click or drag to resize
SoCameraInteractorActivatePanning Method

Set the starting point for interactive panning.

Namespace: OIV.Inventor.ViewerComponents
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public void ActivatePanning(
	SbVec2f initPos,
	SbViewportRegion vpRegion
)

Parameters

initPos
Type: OIV.InventorSbVec2f

initial position in normalized screen coordinates (0 <= x,y <= 1). Typically this value is obtained from the OIV.Inventor.Events.SoEvent method getNormalizedPosition().

vpRegion
Type: OIV.InventorSbViewportRegion

the actual viewport region

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.Pan(OIV.Inventor.SbVec2f, OIV.Inventor.SbViewportRegion) method with the new cursor or touch position.

See Also