Public Member Functions |
| virtual void | Convert (const Handle< SelectMgr_Selection > &aSelection) |
| | to be redefined if conversion is necessary for SensitiveEntities...
|
| void | Clear () |
| | Empties all the tables, removes all selections...
|
| void | UpdateConversion () |
| | converts all the sensitive entities ;
|
| void | SetSensitivity (const Standard_Real aTol) |
| | changes the Sensitivity of picking
Input value is Real.
|
| void | SetClipping (const Standard_Real Xc, const Standard_Real Yc, const Standard_Real Height, const Standard_Real Width) |
| | sets the clipping limits of dynamic picking
input value are Real
|
| void | SetClipping (const Bnd_Box2d &aRectangle) |
| | sets the clipping limits of dynamic picking
input value are Real
|
| void | InitSelect (const Standard_Real Xr, const Standard_Real Yr) |
| | Performs a pick action. Xr, Yr are the real 2D mouse
coordinates in the view. The selector looks for areas
and owners that are touched.
|
| void | InitSelect (const Bnd_Box2d &aRect) |
| | Performs a pick action. aRect is a Box2d (real
coordinates) for the selection. The selector looks for
areas and owners that are touched.
|
| void | InitSelect (const Standard_Real Xmin, const Standard_Real Ymin, const Standard_Real Xmax, const Standard_Real Ymax) |
| | Performs a pick action
- Xmin, Ymin define the coordinates of the minimum
point in the lower left hand corner of the selection
box, and XMax, YMax define the coordinates of
the maximum point in the upper right hand corner
of the selection box. The selector looks for areas
and owners that are touched.
|
| void | InitSelect (const TColgp_Array1OfPnt2d &Polyline) |
| | pick action - input values of a polyline selection for selection.
|
| virtual void | SortResult () |
| | Sorts the detected entites by priority and distance.
to be redefined if other criterion are used...
|
| void | Init () |
| | Begins an iteration scanning for the owners detected at a position in the view.
|
| Standard_Boolean | More () |
| | Continues the interation scanning for the owners
detected at a position in the view, or
- continues the iteration scanning for the owner
closest to the position in the view.
|
| void | Next () |
| | Returns the next owner found in the iteration. This is
a scan for the owners detected at a position in the view.
|
| Handle_SelectMgr_EntityOwner | Picked () const |
| | Returns the current selected entity detected by the selector;
|
| Handle_SelectMgr_EntityOwner | OnePicked () |
| | Returns the picked element with the highest priority,
and which is the closest to the last successful mouse position.
|
| void | SetPickClosest (const Standard_Boolean preferClosest) |
| | Set preference of selecting one object for OnePicked() method:
- If True, objects with less depth (distance fron the view plane) are
preferred regardless of priority (priority is used then to choose among
objects with similar depth),
- If False, objects with higher priority are preferred regardless of the
depth which is used to choose among objects of the same priority.
|
| Standard_Integer | NbPicked () const |
| | Returns the number of owners found at a position in
the view by the Init - More - Next - Picked iteration.
|
| Handle_SelectMgr_EntityOwner | Picked (const Standard_Integer aRank) const |
| | Returns the entity which is at rank <aRank>
in the list of stored ones.
|
| Standard_Boolean | HasStored () |
| | Returns True if a successful pick was stored,
i.e. LastPosition method means something...
|
| void | LastPosition (Standard_Real &Xr, Standard_Real &Yr) const |
| | Gives the last successful pick position;
is useful to get objects really picked
|
| Standard_Boolean | Contains (const Handle< SelectMgr_SelectableObject > &aSelectableObject) const |
| Standard_Boolean | Modes (const Handle< SelectMgr_SelectableObject > &aSelectableObject, TColStd_ListOfInteger &ModeList, const SelectMgr_StateOfSelection WantedState=SelectMgr_SOS_Any) const |
| | Returns the list of selection modes ModeList found in
this selector for the selectable object aSelectableObject.
Returns true if aSelectableObject is referenced inside
this selector; returns false if the object is not present
in this selector.
|
| Standard_Boolean | IsActive (const Handle< SelectMgr_SelectableObject > &aSelectableObject, const Standard_Integer aMode) const |
| | Returns true if the selectable object
aSelectableObject having the selection mode aMode
is active in this selector.
|
| Standard_Boolean | IsInside (const Handle< SelectMgr_SelectableObject > &aSelectableObject, const Standard_Integer aMode) const |
| | Returns true if the selectable object
aSelectableObject having the selection mode aMode
is in this selector.
|
| SelectMgr_StateOfSelection | Status (const Handle< SelectMgr_Selection > &aSelection) const |
| | Returns the selection status Status of the selection aSelection.
|
| void | Dump (Standard_OStream &S) const |
| TCollection_AsciiString | Status (const Handle< SelectMgr_SelectableObject > &aSelectableObject) const |
| TCollection_AsciiString | Status () const |
| | gives general information about the Selector
|
| void | UpdateSort () |
| Handle_SelectBasics_SensitiveEntity | Primitive (const Standard_Integer Rank) const |
const
SelectMgr_DataMapOfIntegerSensitive & | Primitives () const |
| void | SetUpdateSortPossible (const Standard_Boolean possible) |
| Standard_Boolean | IsUpdateSortPossible () const |
Protected Member Functions |
| | SelectMgr_ViewerSelector () |
| virtual void | LoadResult () |
| virtual void | LoadResult (const Bnd_Box2d &aBox) |
| virtual void | LoadResult (const TColgp_Array1OfPnt2d &Polyline) |
Protected Attributes |
| SelectMgr_DataMapOfIntegerSensitive | myentities |
| SelectMgr_DataMapOfSelectionActivation | myselections |
| Standard_Boolean | toupdate |
| Standard_Boolean | tosort |
| Standard_Boolean | preferclosest |
| Standard_Real | mytolerance |
| SelectBasics_SortAlgo | myselector |
| Bnd_Box2d | myclip |
| SelectMgr_IndexedDataMapOfOwnerCriterion | mystored |