Area Selection

Is it possible to select objects in an area created by dragging mouse? or any suggestions how to implement using current selection methods?


Paul Jimenez's picture

Sure, just use

AIS_StatusOfPick AIS_InteractiveContext::Select(const Standard_Integer XPMin, const Standard_Integer YPMin, const Standard_Integer XPMax, const Standard_Integer YPMax, const Handle(V3d_View)&aView, const Standard_Boolean updateviewer=Standard_True)

(XPMin, YPMin) -> (XPMax, YPMax) define your area.