Open CASCADE Technology 6.6.0
Public Member Functions
SelectBasics_SortAlgo Class Reference

Quickly selection of a rectangle in a set of rectangles

#include <SelectBasics_SortAlgo.hxx>

Public Member Functions

 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 ( )
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 
)
void SelectBasics_SortAlgo::InitSelect ( const Standard_Real  x,
const Standard_Real  y 
)
void SelectBasics_SortAlgo::InitSelect ( const Bnd_Box2d rect)
Standard_Boolean SelectBasics_SortAlgo::More ( ) const
void SelectBasics_SortAlgo::Next ( )
Standard_Integer SelectBasics_SortAlgo::Value ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines