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: 9.9.13.0 (9.9.13.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 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 pan() method with the new cursor or touch position.

See Also