Click or drag to resize
SoCameraInteractorPan Method

Pan the camera based on offset from starting point.

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

Parameters

newPos
Type: OIV.InventorSbVec2f

new 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 can be used to implement an interactive panning operation in response to move move or touch events. The OIV.Inventor.ViewerComponents.SoCameraInteractor.ActivatePanning(OIV.Inventor.SbVec2f, OIV.Inventor.SbViewportRegion) method should be called at the start of the operation.

See Also