Go to the documentation of this file.
16 #pragma warning(disable : 4267) // for VS-2015 // MANDATORY when PCL is ON !!!
21 #include <QMainWindow>
26 #include <QActionGroup>
28 #include <QMdiSubWindow>
34 #ifndef Q_MOC_RUN // MT : very important to avoid the error : ' Parse error at
44 #include "ui_SimpleWindow.h"
52 #include <QFileSystemModel>
53 #include <QSortFilterProxyModel>
55 #include <boost/assert.hpp>
58 #include <QPluginLoader>
91 SimpleWindow(QWidget *_parent = 0, Qt::WindowFlags _flags = Qt::Window);
121 void init()
override;
135 void init(
const bool _test,
const int _width = 1024,
const int _height = 768);
141 std::string _pluginName,
142 Plugin *_plugin)
override;
146 std::string _pluginName,
147 Plugin *_plugin)
override;
151 std::string _pluginName,
152 Plugin *_plugin)
override;
156 std::string _pluginName,
157 Plugin *_plugin)
override;
161 std::string _pluginName,
162 Plugin *_plugin)
override;
173 void update(
bool pick =
false);
180 template<
typename MeshT >
184 bool _redraw =
false,
185 bool _recomputeNT_if_redraw =
false,
186 std::string _mesh_filename = std::string(
""),
187 bool _recreateOSGobj_if_redraw =
true,
201 #if 0 //TODO-elo-rm-?-ask_MTO
202 template<
typename HalfedgeGraph >
212 const QStringList &texts,
215 QActionGroup *actionGroup = 0);
223 template<
typename HalfedgeGraph >
251 template<
typename HalfedgeGraph >
253 const std::vector< std::string >& filenames);
294 #if 0 //TODO-elo-rm-?-ask_MTO
295 void on_actionShow_Selected_triggered();
307 void onItemChanged(QListWidgetItem *_item, QListWidgetItem *_item_old);
void on_actionChange_MDI_view_mode_triggered()
std::vector< Adapter * > getSelectedAdapters() override
void updateModelList(bool pick)
void draw_or_redraw_mesh(MeshT *mesh, FEVV::PMapsContainer *pmaps_bag, FEVV::SimpleViewer *viewer, bool _redraw=false, bool _recomputeNT_if_redraw=false, std::string _mesh_filename=std::string(""), bool _recreateOSGobj_if_redraw=true, float _step=0.)
void addToMenu(QObject *plugin, const QStringList &texts, QMenu *menu, const char *member, QActionGroup *actionGroup=0)
SimpleWindow(QWidget *_parent=0, Qt::WindowFlags _flags=Qt::Window)
void attachPlugin(Plugin *_plugin) override
QDockWidget * dockDirView
void on_actionShow_Entire_Mesh_triggered()
void on_actionOpen_triggered()
void writeHG(FEVV::SimpleViewer *viewer)
void on_actionRender_Point_triggered()
void attach(Adapter *_adapter) override
void on_actionQuit_triggered()
void on_actionSuperimpose_Edges_triggered()
SimpleWindow is a specialization of QMainWindow. This class the Main Window.
void updateRecentFileActions()
Update Mepp recent files list.
void on_actionClose_all_triggered()
std::map< std::string, boost::any > PMapsContainer
int m_dockDirView_MinimumWidth
void on_actionRender_Line_triggered()
void on_actionLighting_triggered()
void on_actionRender_Mode_triggered()
void onItemChanged(QListWidgetItem *_item, QListWidgetItem *_item_old)
SimpleViewer is a specialization of osgViewer::CompositeViewer. This class is a widget where we are a...
void on_actionCopy_Viewpoint_triggered()
QStringList pluginFileNames
void on_actionClose_window_triggered()
void onModificationParam(std::string _pluginName, BasePlugin *_plugin)
void on_actionShow_CustomVectors_Vertices_triggered()
Interfaces for plugins These interfaces will be used for different plugins.
void setParam(std::string _name, int *_value, std::string _pluginName, Plugin *_plugin) override
void activate_space_mode()
void on_actionChange_viewer_mode_triggered()
void populateMenus(QObject *plugin)
FEVV::SimpleViewer * createNewViewer(void)
Create a new empty viewer.
void updateActiveChildTitle()
void openRecentFile()
Open a recent file (from menu).
void pre_actionHG(Adapter::Viewer *viewer, char t='D', char t2='_')
void on_actionShow_Axis_triggered()
QAction * separatorAct_menuFile
separator in file menu
void enableSpaceTimeMenus()
void on_actionNew_triggered()
void on_actionFace_Color_triggered()
void on_actionSmoothFlat_Shading_triggered()
void writeSettings()
Write settings: folder locations (tree/open/save), mainwindow (pos, size, state), recent files list....
void on_actionTexture_Mode_triggered()
void open_SPACE_TIME(FEVV::SimpleViewer *viewer, const std::vector< std::string > &filenames)
Open meshes in a viewer with datastructure HalfedgeGraph.
void on_actionSuperimpose_Vertices_bigger_triggered()
QWidget * activeMdiChild()
void on_actionPaste_Viewpoint_triggered()
void on_actionClose_triggered()
void readSettings()
Read settings: folder locations (tree/open/save), mainwindow (pos, size, state), recent files list....
void on_actionDyn_Last_triggered()
void on_actionVertex_Color_triggered()
void centerHG(FEVV::SimpleViewer *viewer)
QAction * recentFileActs[MaxRecentFiles]
tab of mesh files recent list
QSortFilterProxyModel * proxyModel
void closeEvent(QCloseEvent *event) override
void setCurrentFile(const QString &fileName)
Set a mesh filename in recent files list.
This class represents an AIF structure. AIF structure can deal with both manifold and non-manifold su...
void on_actionSuperimpose_Vertices_triggered()
void on_actionShow_Translation_Draggers_triggered()
void on_actionDyn_First_triggered()
void on_actionDyn_Previous_triggered()
QString strippedName(const QString &fullFileName)
Return the filename of a mesh without path.
void on_actionOpen_SPACE_TIME(FEVV::SimpleViewer *viewer)
Open button/menu callback function.
void on_actionAbout_MEPP_Help_triggered()
void actionHG(FEVV::SimpleViewer *viewer, char t, char t2)
std::vector< Adapter::Viewer * > getSelectedViewers() override
void on_actionShow_Grid_triggered()
void on_actionSaveAs_triggered()
void activate_time_mode()
void on_actionShow_Vertex_Normals_triggered()
void update(bool pick=false)
void on_actionDyn_Next_triggered()
void on_actionShow_Rotation_Draggers_triggered()
void on_actionRender_Fill_triggered()