16 #include <QMessageBox>
17 #include <QPushButton>
31 msgbox.setWindowTitle(
"Datastructure");
32 msgbox.setText(
"Choose a datastructure to store the mesh(es):");
33 msgbox.setIcon(QMessageBox::Question);
37 QPushButton *polyhedron_button =
38 msgbox.addButton(
"Polyhedron_3", QMessageBox::ResetRole);
39 QPushButton *surfacemesh_button =
40 msgbox.addButton(
"Surface_mesh", QMessageBox::ResetRole);
41 QPushButton *lcc_button =
42 msgbox.addButton(
"LCC", QMessageBox::ResetRole);
43 QPushButton *cgalpointset_button =
44 msgbox.addButton(
"CGALPointSet", QMessageBox::ResetRole);
47 #ifdef FEVV_USE_OPENMESH
48 QPushButton *openmesh_button =
49 msgbox.addButton(
"OpenMesh", QMessageBox::ResetRole);
53 QPushButton *aif_button = msgbox.addButton(
"AIF", QMessageBox::ResetRole);
57 QPushButton *pcl_button =
58 msgbox.addButton(
"PCLPointCloud", QMessageBox::ResetRole);
61 msgbox.addButton(QMessageBox::Cancel);
64 std::string choice(
"NONE");
67 if(msgbox.clickedButton() == polyhedron_button)
69 choice =
"POLYHEDRON";
71 else if(msgbox.clickedButton() == surfacemesh_button)
73 choice =
"SURFACEMESH";
75 else if(msgbox.clickedButton() == lcc_button)
79 else if(msgbox.clickedButton() == cgalpointset_button)
81 choice =
"CGALPOINTSET";
85 #ifdef FEVV_USE_OPENMESH
86 if(msgbox.clickedButton() == openmesh_button)
93 if(msgbox.clickedButton() == aif_button)
100 if(msgbox.clickedButton() == pcl_button)
102 choice =
"PCLPOINTCLOUD";