14 #ifndef _SCL_SECURE_NO_WARNINGS
15 #define _SCL_SECURE_NO_WARNINGS
21 #include <QStringList>
24 #ifndef Q_MOC_RUN // MT : very important to avoid the error : ' Parse error at
41 #endif // FEVV_USE_CGAL
42 #ifdef FEVV_USE_OPENMESH
44 #endif // FEVV_USE_OPENMESH
47 #endif // FEVV_USE_AIF
51 #endif // FEVV_USE_PCL
62 #if(FEVV_USE_QT5) // see at the end of .cpp for QT4
63 Q_PLUGIN_METADATA(IID
"CopyGraphPlugin")
91 std::cerr <<
"BaseWindow is null or not initialized." << std::endl;
96 template<
typename HalfedgeGraphS,
97 typename HalfedgeGraphT >
101 std::cout <<
"Asking to CopyGraph mesh ! " << std::endl;
104 HalfedgeGraphT *output_mesh =
new HalfedgeGraphT;
116 template<
typename HalfedgeGraphS,
117 typename HalfedgeGraphT >
119 HalfedgeGraphS *_mesh,
132 process< HalfedgeGraphS, HalfedgeGraphT >(_mesh, pmaps_bag);
162 #ifdef FEVV_USE_OPENMESH
167 apply_choose_output< MeshOpenMesh >(_adapter, _mesh, pmaps_bag);
172 void apply(BaseAdapterVisu *_adapter,
176 apply_choose_output< MeshLCC >(_adapter, _mesh, pmaps_bag);
179 void apply(BaseAdapterVisu *_adapter,
183 apply_choose_output< MeshSurface >(_adapter, _mesh, pmaps_bag);
186 void apply(BaseAdapterVisu *_adapter,
190 apply_choose_output< MeshPolyhedron >(_adapter, _mesh, pmaps_bag);
193 void apply(BaseAdapterVisu *_adapter,
197 apply_choose_output< CGALPointSet >(_adapter, _mesh, pmaps_bag);
202 void apply(BaseAdapterVisu *_adapter,
206 apply_choose_output< MeshAIF >(_adapter, _mesh, pmaps_bag);
211 void apply(BaseAdapterVisu *_adapter,
215 apply_choose_output< PCLPointCloud >(_adapter, _mesh, pmaps_bag);
220 template<
typename MeshT >
227 if(mesh_type ==
"NONE")
236 else if(mesh_type ==
"POLYHEDRON")
238 applyHG< MeshT, MeshPolyhedron >(_adapter, _mesh, pmaps_bag);
240 else if(mesh_type ==
"SURFACEMESH")
242 applyHG< MeshT, MeshSurface >(_adapter, _mesh, pmaps_bag);
244 else if(mesh_type ==
"LCC")
246 applyHG< MeshT, MeshLCC >(_adapter, _mesh, pmaps_bag);
248 else if(mesh_type ==
"CGALPOINTSET")
250 applyHG< MeshT, CGALPointSet >(_adapter, _mesh, pmaps_bag);
253 #ifdef FEVV_USE_OPENMESH
254 else if(mesh_type ==
"OPENMESH")
256 applyHG< MeshT, MeshOpenMesh >(_adapter, _mesh, pmaps_bag);
260 else if(mesh_type ==
"AIF")
262 applyHG< MeshT, MeshAIF >(_adapter, _mesh, pmaps_bag);
266 else if(mesh_type ==
"PCLPOINTCLOUD")
268 applyHG< MeshT, PCLPointCloud >(_adapter, _mesh, pmaps_bag);
273 QMessageBox::information(0,
276 "with the datastructure you have "
284 return QStringList() <<
"CopyGraphPlugin";