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

Method slotSavePointCloud

apps/modeler/src/scene_tree.cpp:218–239  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

216
217//////////////////////////////////////////////////////////////////////////////////////////////
218void
219pcl::modeler::SceneTree::slotSavePointCloud()
220{
221 MainWindow* main_window = &MainWindow::getInstance();
222
223 if (selectedTypeItems<CloudMeshItem>().empty()) {
224 QMessageBox::warning(main_window,
225 tr("Failed to Save Point Cloud"),
226 tr("Please specify the point cloud(s) you want to save"));
227 return;
228 }
229
230 QString filename = QFileDialog::getSaveFileName(main_window,
231 tr("Save Point Cloud"),
232 main_window->getRecentFolder(),
233 tr("Save Cloud(*.pcd)\n"));
234
235 if (filename.isEmpty())
236 return;
237
238 savePointCloud(filename);
239}
240
241//////////////////////////////////////////////////////////////////////////////////////////////
242void

Callers

nothing calls this directly

Calls 6

getInstanceFunction · 0.85
savePointCloudFunction · 0.85
getRecentFolderMethod · 0.80
trFunction · 0.50
emptyMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected