Click or drag to resize
SoCameraInteractorDollyWithZoomCenter Method

Modifies the camera to ajust the view around the specified point.

Namespace: OIV.Inventor.ViewerComponents
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public void DollyWithZoomCenter(
	SbVec2f centerPos,
	float scaleFactor,
	SbViewportRegion vpRegion
)

Parameters

centerPos
Type: OIV.InventorSbVec2f

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

scaleFactor
Type: SystemSingle

zoom scale

vpRegion
Type: OIV.InventorSbViewportRegion

the actual viewport region

Remarks

The algorithm is the same as the OIV.Inventor.ViewerComponents.SoCameraInteractor.Dolly(System.Single) method (for a perspective camera the position field is changed, for an orthographic camera the height field is changed) and the delta parameter is used the same way.

See Also