| 372 | } |
| 373 | |
| 374 | void ccSectionExtractionTool::removeAllEntities() |
| 375 | { |
| 376 | reset(false); |
| 377 | |
| 378 | //and we remove the remaining clouds (if any) |
| 379 | for (auto & cloud : m_clouds) |
| 380 | { |
| 381 | if (cloud.entity) |
| 382 | { |
| 383 | assert(cloud.isInDB); |
| 384 | //restore original display |
| 385 | cloud.entity->setDisplay(cloud.originalDisplay); |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | m_clouds.clear(); |
| 390 | m_cloudsBox.clear(); |
| 391 | } |
| 392 | |
| 393 | void ccSectionExtractionTool::undo() |
| 394 | { |
no test coverage detected