Click or drag to resize
SoCameraInteractorDollyInWindow Method

Moves the camera forward or backward along the view vector to view the region defined by the given corners in normalized screen coordinates.

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

Parameters

topLeftCorner
Type: OIV.InventorSbVec2f
bottomRightCorner
Type: OIV.InventorSbVec2f
vpRegion
Type: OIV.InventorSbViewportRegion
Remarks

  • Perspective camera: The visual result is similar to OIV.Inventor.ViewerComponents.SoCameraInteractor.ZoomInWindow(OIV.Inventor.SbVec2f, OIV.Inventor.SbVec2f, OIV.Inventor.SbViewportRegion), but this method changes the camera position (closer or farther away) and focalDisance fields instead of changing the heightAngle. This is the recommended method when using a perspective camera, because it avoids the limitations of very small or very large heightAngle values.

  • Orthographic camera: This method does nothing because moving the camera closer or farther away does not change the visual result.

See Also