SoCameraInteractorZoomInWindow Method |
Zooms to the region defined by the given corners in normalized screen coordinates.
Namespace: OIV.Inventor.ViewerComponents
public void ZoomInWindow( SbVec2f topLeftCorner, SbVec2f bottomRightCorner, SbViewportRegion vpRegion )
top left corner in normalized screen coordinates (0 <= x,y <= 1)
bottom right corner in normalized screen coordinates (0 <= x,y <= 1)
the actual viewport region
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.