MEPP2 Project
|
SimpleWindow is a specialization of QMainWindow. This class the Main Window. More...
#include <SimpleWindow.h>
Public Slots | |
void | onModificationParam (std::string _pluginName, BasePlugin *_plugin) |
void | onApplyButton () |
void | on_actionOpen_triggered () |
Public Member Functions | |
SimpleWindow (QWidget *_parent=0, Qt::WindowFlags _flags=Qt::Window) | |
~SimpleWindow () | |
void | attach (Adapter *_adapter) override |
void | attach (AdapterQt *_adapter, const bool _useMdiWindows=false) |
void | attachPlugin (Plugin *_plugin) override |
void | init () override |
void | init (const bool _test, const int _width=1024, const int _height=768) |
void | notify () override |
void | setParam (std::string _name, int *_value, std::string _pluginName, Plugin *_plugin) override |
void | setParam (std::string _name, double *_value, std::string _pluginName, Plugin *_plugin) override |
void | setParam (std::string _name, float *_value, std::string _pluginName, Plugin *_plugin) override |
void | setParam (std::string _name, bool *_value, std::string _pluginName, Plugin *_plugin) override |
void | setParam (std::string _name, std::string *_value, std::string _pluginName, Plugin *_plugin) override |
std::vector< Adapter * > | getSelectedAdapters () override |
std::vector< Adapter::Viewer * > | getSelectedViewers () override |
void | loadQtPlugins () |
MdiArea * | getMdiArea () |
void | sortModelList () |
void | update (bool pick=false) |
void | enableSpaceTimeMenus () |
void | updateActiveChildTitle () |
template<typename MeshT > | |
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 | activate_time_mode () |
void | activate_space_mode () |
void | writeHG (FEVV::SimpleViewer *viewer) |
void | actionHG (FEVV::SimpleViewer *viewer, char t, char t2) |
void | centerHG (FEVV::SimpleViewer *viewer) |
QWidget * | activeMdiChild () |
template<typename HalfedgeGraph > | |
void | open_SPACE_TIME (FEVV::SimpleViewer *viewer, const std::vector< std::string > &filenames) |
Open meshes in a viewer with datastructure HalfedgeGraph. More... | |
Public Member Functions inherited from FEVV::BaseWindowQt | |
BaseWindowQt (QWidget *_parent=0, Qt::WindowFlags _flags=Qt::Window) | |
virtual | ~BaseWindowQt () |
virtual bool | isInit () const |
virtual bool | isValid () const |
Public Member Functions inherited from FEVV::BaseWindow | |
BaseWindow () | |
virtual | ~BaseWindow () |
virtual bool | isInit () const |
virtual bool | isValid () const |
virtual std::vector< Adapter * > * | getAdapters () |
virtual Adapter * | getAdapter (unsigned int _pos) |
Public Attributes | |
QStringList | drag_files |
bool | drag = false |
bool | shift_drag = false |
bool | alt_drag = false |
bool | ctrl_drag = false |
bool | recent = false |
Protected Types | |
enum | { MaxRecentFiles = 9 } |
Protected Member Functions | |
void | updateModelList (bool pick) |
void | populateMenus (QObject *plugin) |
void | addToMenu (QObject *plugin, const QStringList &texts, QMenu *menu, const char *member, QActionGroup *actionGroup=0) |
void | closeEvent (QCloseEvent *event) override |
template<typename HalfedgeGraph > | |
void | on_actionOpen_SPACE_TIME (FEVV::SimpleViewer *viewer) |
Open button/menu callback function. More... | |
FEVV::SimpleViewer * | createNewViewer (void) |
Create a new empty viewer. More... | |
void | readSettings () |
Read settings: folder locations (tree/open/save), mainwindow (pos, size, state), recent files list... (init). More... | |
void | writeSettings () |
Write settings: folder locations (tree/open/save), mainwindow (pos, size, state), recent files list... (exit). More... | |
void | setCurrentFile (const QString &fileName) |
Set a mesh filename in recent files list. More... | |
QString | strippedName (const QString &fullFileName) |
Return the filename of a mesh without path. More... | |
void | updateRecentFileActions () |
Update Mepp recent files list. More... | |
Protected Attributes | |
QTimer | timerQuit |
QDir | pluginsDir |
QStringList | pluginFileNames |
QMenu * | menuPlugins |
MdiArea * | mdiArea = nullptr |
QDockWidget * | dockDirView |
QFileSystemModel * | model |
QSortFilterProxyModel * | proxyModel |
QTreeView * | tree |
QString | treeLocation |
QString | openLocation |
QString | saveLocation |
int | m_dockDirView_MinimumWidth |
QAction * | separatorAct_menuFile |
separator in file menu More... | |
QAction * | recentFileActs [MaxRecentFiles] |
tab of mesh files recent list More... | |
bool | useMdiWindows = false |
bool | open_only_pts_mode = false |
bool | ctrl_pressed = false |
Ui::MainWindow | ui |
Protected Attributes inherited from FEVV::BaseWindow | |
std::vector< Adapter * > | adapters |
std::map< std::string, Plugin * > | stackPlugins |
bool | bIsInit = false |
Private Attributes | |
bool | clean_closure = false |
osg::Matrix | matrixVP |
Additional Inherited Members | |
Public Types inherited from FEVV::BaseWindowQt | |
using | AdapterQt = BaseAdapterVisuQt |
Public Types inherited from FEVV::BaseWindow | |
using | Adapter = BaseAdapterVisu |
using | Plugin = BasePlugin |
SimpleWindow is a specialization of QMainWindow. This class the Main Window.
Definition at line 79 of file SimpleWindow.h.
|
protected |
Enumerator | |
---|---|
MaxRecentFiles |
Definition at line 370 of file SimpleWindow.h.
|
inline |
Constructor.
[in] | _parent | Pointer to the QWidget parent of this QWidget (used by Qt) (Default value = 0). |
[in] | _flags | Windows flags (used by Qt) (Default value = Qt::Window). |
Definition at line 76 of file SimpleWindow.inl.
|
inline |
Destructor.
Definition at line 91 of file SimpleWindow.inl.
|
inlineprotectedslot |
Definition at line 649 of file SimpleWindow.inl.
|
inline |
|
inline |
Definition at line 1461 of file SimpleWindow.inl.
|
inline |
Definition at line 1442 of file SimpleWindow.inl.
|
inline |
Definition at line 2439 of file SimpleWindow.inl.
|
inlineprotected |
Definition at line 615 of file SimpleWindow.inl.
|
inlineprotectedslot |
|
inlineoverridevirtual |
Attach a visualization adapter to the current Window.
[in] | _adapter | Pointer to an adapter (with the scene, see BaseAdapterVisu). |
Implements FEVV::BaseWindow.
Definition at line 119 of file SimpleWindow.inl.
|
inline |
Attach a visualization adapter to the current Window.
[in] | _adapter | Pointer to a Qt adapter (with the scene, see BaseAdapterVisuQt). |
[in] | _useMdiWindows | display MDI window instead of fullscreen widgets (Default value = false). |
Definition at line 135 of file SimpleWindow.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseWindow.
Definition at line 188 of file SimpleWindow.inl.
|
inline |
Definition at line 2039 of file SimpleWindow.inl.
|
inlineoverrideprotected |
Definition at line 1293 of file SimpleWindow.inl.
|
inlineprotected |
Create a new empty viewer.
Definition at line 2416 of file SimpleWindow.inl.
void FEVV::SimpleWindow::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. |
||
) |
|
inline |
Definition at line 682 of file SimpleWindow.inl.
|
inline |
Definition at line 169 of file SimpleWindow.h.
|
inlineoverridevirtual |
Implements FEVV::BaseWindow.
Definition at line 2387 of file SimpleWindow.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseWindow.
Definition at line 2401 of file SimpleWindow.inl.
|
inlineoverridevirtual |
initialize the window.
Implements FEVV::BaseWindow.
Definition at line 194 of file SimpleWindow.inl.
|
inline |
initialize the window.
[in] | _test | boolean to enable test mode (will close the window after 10 sec. This mode is useful for Travis/AppVeyor) (Default value = false). |
[in] | _width | Minimum width of the window (Default value = 1024). |
[in] | _height | Minimum heigth of the window (Default value = 768). |
Definition at line 200 of file SimpleWindow.inl.
|
inline |
Definition at line 547 of file SimpleWindow.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseWindow.
Definition at line 663 of file SimpleWindow.inl.
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
Definition at line 1334 of file SimpleWindow.inl.
|
inlineprotectedslot |
Definition at line 1279 of file SimpleWindow.inl.
|
inlineprotectedslot |
Definition at line 1328 of file SimpleWindow.inl.
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotected |
Open button/menu callback function.
Definition at line 815 of file SimpleWindow.inl.
|
inlineslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
Definition at line 1286 of file SimpleWindow.inl.
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineprotectedslot |
|
inlineslot |
|
inlineprotectedslot |
Definition at line 1525 of file SimpleWindow.inl.
|
inlineprotectedslot |
removing old selected item
adding new selected item
Definition at line 2318 of file SimpleWindow.inl.
|
inlineslot |
|
inline |
Open meshes in a viewer with datastructure HalfedgeGraph.
viewer | viewer to open the meshes into ; if nullptr is passed, a new viewer is opened |
filenames | list of mesh file names to open |
Definition at line 897 of file SimpleWindow.inl.
|
inlineprotectedslot |
Open a recent file (from menu).
Definition at line 1045 of file SimpleWindow.inl.
|
inlineprotected |
|
inlineprotectedslot |
Definition at line 1830 of file SimpleWindow.inl.
|
inlineprotected |
Read settings: folder locations (tree/open/save), mainwindow (pos, size, state), recent files list... (init).
Definition at line 2489 of file SimpleWindow.inl.
|
inlineprotected |
Set a mesh filename in recent files list.
fileName | filename of the mesh. |
Definition at line 1062 of file SimpleWindow.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseWindow.
Definition at line 452 of file SimpleWindow.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseWindow.
Definition at line 400 of file SimpleWindow.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseWindow.
Definition at line 426 of file SimpleWindow.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseWindow.
Definition at line 371 of file SimpleWindow.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseWindow.
Definition at line 479 of file SimpleWindow.inl.
|
inline |
Definition at line 657 of file SimpleWindow.inl.
|
inlineprotected |
Return the filename of a mesh without path.
fullFileName | filename of the mesh. |
Definition at line 1080 of file SimpleWindow.inl.
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
Update Mepp recent files list.
Definition at line 1086 of file SimpleWindow.inl.
|
inline |
|
inlineprotected |
Write settings: folder locations (tree/open/save), mainwindow (pos, size, state), recent files list... (exit).
Definition at line 2463 of file SimpleWindow.inl.
bool FEVV::SimpleWindow::alt_drag = false |
Definition at line 388 of file SimpleWindow.h.
|
private |
Definition at line 394 of file SimpleWindow.h.
bool FEVV::SimpleWindow::ctrl_drag = false |
Definition at line 389 of file SimpleWindow.h.
|
protected |
Definition at line 379 of file SimpleWindow.h.
|
protected |
Definition at line 337 of file SimpleWindow.h.
bool FEVV::SimpleWindow::drag = false |
Definition at line 386 of file SimpleWindow.h.
QStringList FEVV::SimpleWindow::drag_files |
Definition at line 384 of file SimpleWindow.h.
|
protected |
Definition at line 343 of file SimpleWindow.h.
|
private |
Definition at line 396 of file SimpleWindow.h.
|
protected |
Definition at line 334 of file SimpleWindow.h.
|
protected |
Definition at line 332 of file SimpleWindow.h.
|
protected |
Definition at line 338 of file SimpleWindow.h.
|
protected |
Definition at line 377 of file SimpleWindow.h.
|
protected |
Definition at line 342 of file SimpleWindow.h.
|
protected |
Definition at line 331 of file SimpleWindow.h.
|
protected |
Definition at line 330 of file SimpleWindow.h.
|
protected |
Definition at line 339 of file SimpleWindow.h.
bool FEVV::SimpleWindow::recent = false |
Definition at line 391 of file SimpleWindow.h.
|
protected |
tab of mesh files recent list
Definition at line 371 of file SimpleWindow.h.
|
protected |
Definition at line 342 of file SimpleWindow.h.
|
protected |
separator in file menu
Definition at line 369 of file SimpleWindow.h.
bool FEVV::SimpleWindow::shift_drag = false |
Definition at line 387 of file SimpleWindow.h.
|
protected |
Definition at line 327 of file SimpleWindow.h.
|
protected |
Definition at line 340 of file SimpleWindow.h.
|
protected |
Definition at line 342 of file SimpleWindow.h.
|
protected |
Definition at line 381 of file SimpleWindow.h.
|
protected |
Definition at line 375 of file SimpleWindow.h.