Click or drag to resize
SoCameraInteractorZoomInWindow Method

Zooms to 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 ZoomInWindow(
	SbVec2f topLeftCorner,
	SbVec2f bottomRightCorner,
	SbViewportRegion vpRegion
)

Parameters

topLeftCorner
Type: OIV.InventorSbVec2f

top left corner in normalized screen coordinates (0 <= x,y <= 1)

bottomRightCorner
Type: OIV.InventorSbVec2f

bottom right corner in normalized screen coordinates (0 <= x,y <= 1)

vpRegion
Type: OIV.InventorSbViewportRegion

the actual viewport region

Remarks

  • Perspective camera: This method modifies the heightAngle field. Modifying the heightAngle field changes the projection, similar to changing the focal length of a camera. Making the heightAngle very small or very large may cause rendering artifacts. Therefore the OIV.Inventor.ViewerComponents.SoCameraInteractor.DollyInWindow(OIV.Inventor.SbVec2f, OIV.Inventor.SbVec2f, OIV.Inventor.SbViewportRegion) method is recommended when using a perspective camera.

  • Orthographic camera: This method modifies the height field.

See Also