| 288 | |
| 289 | template<class FeatureType> |
| 290 | void VisualTool<FeatureType>::SetSelection(FeatureType *feat, bool clear) { |
| 291 | if (clear) |
| 292 | sel_features.clear(); |
| 293 | |
| 294 | if (sel_features.insert(feat).second && feat->line) { |
| 295 | Selection sel; |
| 296 | if (!clear) |
| 297 | sel = c->selectionController->GetSelectedSet(); |
| 298 | if (sel.insert(feat->line).second) |
| 299 | c->selectionController->SetSelectedSet(std::move(sel)); |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | template<class FeatureType> |
| 304 | void VisualTool<FeatureType>::RemoveSelection(FeatureType *feat) { |
no test coverage detected