Go to the documentation of this file.
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
40 #endif // FEVV_USE_CGAL
41 #ifdef FEVV_USE_OPENMESH
43 #endif // FEVV_USE_OPENMESH
46 #endif // FEVV_USE_AIF
57 #if(FEVV_USE_QT5) // see at the end of .cpp for QT4
58 Q_PLUGIN_METADATA(IID
"TextureImageDemoPlugin")
70 void init(
double ,
double ,
double )
91 std::cerr <<
"BaseWindow is null or not initialized." << std::endl;
96 template<
typename HalfedgeGraph >
99 std::cout <<
"Asking to TextureImageDemo mesh ! " << std::endl;
105 std::cout <<
"The mesh has no materials. Aborting." << std::endl;
109 std::cout <<
"retrieve existing mesh_materials property map" << std::endl;
116 std::cout <<
"TextureImageDemo successfully applied." << std::endl;
120 template<
typename HalfedgeGraph >
122 HalfedgeGraph *_mesh,
128 if(dialog.exec() == QDialog::Accepted)
153 #ifdef FEVV_USE_OPENMESH
158 applyHG< MeshOpenMesh >(_adapter, _mesh, pmaps_bag);
163 void apply(BaseAdapterVisu *_adapter,
167 applyHG< MeshLCC >(_adapter, _mesh, pmaps_bag);
170 void apply(BaseAdapterVisu *_adapter,
174 applyHG< MeshSurface >(_adapter, _mesh, pmaps_bag);
177 void apply(BaseAdapterVisu *_adapter,
181 applyHG< MeshPolyhedron >(_adapter, _mesh, pmaps_bag);
186 void apply(BaseAdapterVisu *_adapter,
190 applyHG< MeshAIF >(_adapter, _mesh, pmaps_bag);
197 return QStringList() <<
"TextureImageDemoPlugin";
virtual bool isInit() const
PMap_traits< PropertyT, MeshT >::pmap_type get_property_map(PropertyT p, const MeshT &, const PMapsContainer &pmaps)
void process(HalfedgeGraph *_mesh, FEVV::PMapsContainer *pmaps_bag)
bool Generic_plugin(const QString &) override
TextureImageDemoPlugin()=default
CGAL::Linear_cell_complex_for_combinatorial_map< 2, 3, CGALLCCTraits, CGALItem > MeshLCC
bool has_map(const PMapsContainer &pmaps, const std::string &map_name)
(refer to Property Maps API)
This class is intended to provide some standard message boxes to all plugins.
virtual Viewer * getViewer()
void init(double, double, double)
CGAL::Surface_mesh< CGALPoint > MeshSurface
SimpleWindow is a specialization of QMainWindow. This class the Main Window.
std::map< std::string, boost::any > PMapsContainer
void draw_or_redraw_mesh(HalfedgeGraph *_g, PMapsContainer *_pmaps, bool _redraw=false, bool _recomputeNT_if_redraw=false, std::string _mesh_filename=std::string(""), bool _recreateOSGobj_if_redraw=true, float _step=0.)
SimpleViewer is a specialization of osgViewer::CompositeViewer. This class is a widget where we are a...
void onModificationParam(std::string _pluginName, BasePlugin *_plugin)
Interfaces for plugins These interfaces will be used for different plugins.
void addParameters(BaseWindow *_window) override
~TextureImageDemoPlugin()=default
QStringList Generic_plugins() const override
void applyHG(BaseAdapterVisu *_adapter, HalfedgeGraph *_mesh, FEVV::PMapsContainer *pmaps_bag)
OpenMesh::PolyMesh_ArrayKernelT< MyTraits > MeshOpenMesh
void texture_image_demo_filter(const HalfedgeGraph &, MaterialMap &mtl_pm, const GeometryTraits &)
virtual void apply(BaseAdapterVisu *, void *, FEVV::PMapsContainer *) override
CGAL::Polyhedron_3< CGALKernel, CGAL::Polyhedron_items_with_id_3 > MeshPolyhedron
FEVV::DataStructures::AIF::AIFMesh MeshAIF