| 39 | } |
| 40 | |
| 41 | void |
| 42 | pcl::cloud_composer::CloudViewer::addNewProject(ProjectModel* new_model) |
| 43 | { |
| 44 | // If we're already there, abort |
| 45 | if (new_model == getModel()) |
| 46 | return; |
| 47 | // Check whether we've seen the model yet |
| 48 | if (!model_view_map_.contains(new_model)) { |
| 49 | addModel(new_model); |
| 50 | } |
| 51 | else { |
| 52 | setCurrentWidget(model_view_map_.value(new_model)); |
| 53 | // Refresh the view |
| 54 | model_view_map_.value(new_model)->refresh(); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | void |
| 59 | pcl::cloud_composer::CloudViewer::modelChanged(int) |
no test coverage detected