Open CASCADE Technology
6.5.4
|
Quickly selection of a rectangle in a set of rectangles
#include <SelectBasics_SortAlgo.hxx>
Public Member Functions | |
DEFINE_STANDARD_ALLOC | SelectBasics_SortAlgo () |
Empty rectangle selector. | |
SelectBasics_SortAlgo (const Bnd_Box2d &ClippingRectangle, const Standard_Real sizeOfSensitiveArea, const Handle< Bnd_HArray1OfBox2d > &theRectangles) | |
Creates a initialized selector. | |
void | Initialize (const Bnd_Box2d &ClippingRectangle, const Standard_Real sizeOfSensitiveArea, const Handle< Bnd_HArray1OfBox2d > &theRectangles) |
Clears and initializes the selector. | |
void | InitSelect (const Standard_Real x, const Standard_Real y) |
Searchs the items on this position. | |
void | InitSelect (const Bnd_Box2d &rect) |
Searchs the items in this rectangle. | |
Standard_Boolean | More () const |
Returns true if there is something selected. | |
void | Next () |
Sets value on the next selected item. | |
Standard_Integer | Value () const |
Returns the index of the selected rectangle. |
SelectBasics_SortAlgo::SelectBasics_SortAlgo | ( | const Bnd_Box2d & | ClippingRectangle, |
const Standard_Real | sizeOfSensitiveArea, | ||
const Handle< Bnd_HArray1OfBox2d > & | theRectangles | ||
) |
void SelectBasics_SortAlgo::Initialize | ( | const Bnd_Box2d & | ClippingRectangle, |
const Standard_Real | sizeOfSensitiveArea, | ||
const Handle< Bnd_HArray1OfBox2d > & | theRectangles | ||
) |
void SelectBasics_SortAlgo::InitSelect | ( | const Bnd_Box2d & | rect | ) |
Standard_Boolean SelectBasics_SortAlgo::More | ( | ) | const |
Standard_Integer SelectBasics_SortAlgo::Value | ( | ) | const |