| 249 | } |
| 250 | |
| 251 | void MapPart::findObjectsAt( |
| 252 | const MapCoordF& coord, |
| 253 | qreal tolerance, |
| 254 | bool treat_areas_as_paths, |
| 255 | bool extended_selection, |
| 256 | bool include_hidden_objects, |
| 257 | bool include_protected_objects, |
| 258 | SelectionInfoVector& out ) const |
| 259 | { |
| 260 | for (Object* object : objects) |
| 261 | { |
| 262 | if (!include_hidden_objects && object->getSymbol()->isHidden()) |
| 263 | continue; |
| 264 | if (!include_protected_objects && object->getSymbol()->isProtected()) |
| 265 | continue; |
| 266 | |
| 267 | object->update(); |
| 268 | int selected_type = object->isPointOnObject(coord, tolerance, treat_areas_as_paths, extended_selection); |
| 269 | if (selected_type != (int)Symbol::NoSymbol) |
| 270 | out.emplace_back(selected_type, object); |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | void MapPart::findObjectsAtBox( |
| 275 | const MapCoordF& corner1, |
nothing calls this directly
no test coverage detected