MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / addModel

Method addModel

apps/cloud_composer/src/cloud_viewer.cpp:13–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void
14pcl::cloud_composer::CloudViewer::addModel(ProjectModel* new_model)
15{
16 CloudView* new_view = new CloudView(new_model);
17 connect(new_model->getSelectionModel(),
18 SIGNAL(selectionChanged(QItemSelection, QItemSelection)),
19 new_view,
20 SLOT(selectedItemChanged(QItemSelection, QItemSelection)));
21 new_model->setCloudView(new_view);
22
23 QStandardItem* title = new_model->horizontalHeaderItem(0);
24 this->addTab(new_view, title->text());
25
26 model_view_map_.insert(new_model, new_view);
27
28 setCurrentWidget(model_view_map_.value(new_model));
29 // Refresh the view
30 new_view->refresh();
31}
32
33pcl::cloud_composer::ProjectModel*
34pcl::cloud_composer::CloudViewer::getModel() const

Callers 4

runFunction · 0.45
mainFunction · 0.45
runFunction · 0.45
runFunction · 0.45

Calls 5

getSelectionModelMethod · 0.80
setCloudViewMethod · 0.80
valueMethod · 0.80
insertMethod · 0.45
refreshMethod · 0.45

Tested by

no test coverage detected