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
public void DollyInWindow( SbVec2f topLeftCorner, SbVec2f bottomRightCorner, SbViewportRegion vpRegion )
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.