Fit/Zoom to a defined rectangle (rubber band)

Hi guys,

I would like the V3d_View to zoom or fit to a defined rectangle (the rubber band), there a V3d_View->FitAll method supplied with theMinXv, theMinYv, theMaxXv, theMaxYv but it doesn't look like what I'm looking for. Please help.

Thank you.

Kirill Gavrilov's picture

There is V3d_View::WindowFitAll() for this purpose. If you are using AIS_ViewController, then you may use AIS_MouseGesture_ZoomWindow gesture for performing a zoom on a rectangular rubber-band selection.

Hoong Dang's picture

Hi Kirill,
That's what I'm looking for. Thanks for your help.