SoCameraInteractorDollyWithZoomCenter Method |
Modifies the camera to ajust the view around the specified point.
Namespace: OIV.Inventor.ViewerComponents
public void DollyWithZoomCenter( SbVec2f centerPos, float scaleFactor, SbViewportRegion vpRegion )
zoom center in normalized screen coordinates (0 <= x,y <= 1). Typically this value is obtained from the OIV.Inventor.Events.SoEvent method getNormalizedPosition().
zoom scale
the actual viewport region
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.