Implements the object selection logic for edit tools.
More...
#include <object_selector.h>
Implements the object selection logic for edit tools.
◆ ObjectSelector()
OpenOrienteering::ObjectSelector::ObjectSelector |
( |
Map * |
map | ) |
|
Creates a selector for the given map.
◆ selectAt()
bool OpenOrienteering::ObjectSelector::selectAt |
( |
const MapCoordF & |
position, |
|
|
double |
tolerance, |
|
|
bool |
toggle |
|
) |
| |
Selects an object at the given position.
If there is already an object selected at this position, switches through the available objects.
- Parameters
-
tolerance | maximum, normal selection distance in map units. It is enlarged by 1.5 if no objects are found with the normal distance. |
toggle | corresponds to the shift key modifier. |
- Returns
- true if the selection has changed.
◆ selectBox()
Applies box selection.
- Parameters
-
toggle | corresponds to the shift key modifier. |
- Returns
- true if the selection has changed.
◆ sortObjects()
bool OpenOrienteering::ObjectSelector::sortObjects |
( |
const std::pair< int, Object *> & |
a, |
|
|
const std::pair< int, Object *> & |
b |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: