Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
SelectBasics_SortAlgo Class Reference

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.


Constructor & Destructor Documentation

SelectBasics_SortAlgo::SelectBasics_SortAlgo ( const Bnd_Box2d ClippingRectangle,
const Standard_Real  sizeOfSensitiveArea,
const Handle< Bnd_HArray1OfBox2d > &  theRectangles 
)

Member Function Documentation

void SelectBasics_SortAlgo::Initialize ( const Bnd_Box2d ClippingRectangle,
const Standard_Real  sizeOfSensitiveArea,
const Handle< Bnd_HArray1OfBox2d > &  theRectangles 
)

The documentation for this class was generated from the following file: