MEPP2 Project
Public Slots | Public Member Functions | Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
FEVV::SimpleWindow Class Reference

SimpleWindow is a specialization of QMainWindow. This class the Main Window. More...

#include <SimpleWindow.h>

Inheritance diagram for FEVV::SimpleWindow:
Inheritance graph
Collaboration diagram for FEVV::SimpleWindow:
Collaboration graph

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 ()
 
MdiAreagetMdiArea ()
 
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 AdaptergetAdapter (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 Slots

void on_actionNew_triggered ()
 
void on_actionSaveAs_triggered ()
 
void on_actionClose_triggered ()
 
void on_actionQuit_triggered ()
 
void on_actionClose_window_triggered ()
 
void on_actionClose_all_triggered ()
 
void on_actionChange_MDI_view_mode_triggered ()
 
void on_actionChange_viewer_mode_triggered ()
 
void on_actionAbout_MEPP_Help_triggered ()
 
void onGrab ()
 
void pre_actionHG (Adapter::Viewer *viewer, char t='D', char t2='_')
 
void on_actionRender_Point_triggered ()
 
void on_actionRender_Line_triggered ()
 
void on_actionRender_Fill_triggered ()
 
void on_actionSuperimpose_Vertices_triggered ()
 
void on_actionSuperimpose_Vertices_bigger_triggered ()
 
void on_actionSuperimpose_Edges_triggered ()
 
void on_actionVertex_Color_triggered ()
 
void on_actionFace_Color_triggered ()
 
void on_actionTexture_Mode_triggered ()
 
void on_actionLighting_triggered ()
 
void on_actionSmoothFlat_Shading_triggered ()
 
void on_actionRender_Mode_triggered ()
 
void on_actionShow_Entire_Mesh_triggered ()
 
void on_actionCopy_Viewpoint_triggered ()
 
void on_actionPaste_Viewpoint_triggered ()
 
void on_actionShow_Axis_triggered ()
 
void on_actionShow_Grid_triggered ()
 
void on_actionShow_Vertex_Normals_triggered ()
 
void on_actionShow_CustomVectors_Vertices_triggered ()
 
void on_actionShow_Translation_Draggers_triggered ()
 
void on_actionShow_Rotation_Draggers_triggered ()
 
void on_actionDyn_First_triggered ()
 
void on_actionDyn_Previous_triggered ()
 
void on_actionDyn_Next_triggered ()
 
void on_actionDyn_Last_triggered ()
 
void onAddBall ()
 
void onItemChanged (QListWidgetItem *_item, QListWidgetItem *_item_old)
 
void applyPlugin ()
 
void aboutPlugins ()
 
void openRecentFile ()
 Open a recent file (from menu). More...
 

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::SimpleViewercreateNewViewer (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
 
MdiAreamdiArea = 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
 

Detailed Description

SimpleWindow is a specialization of QMainWindow. This class the Main Window.

See also
testViewer.cpp

Definition at line 79 of file SimpleWindow.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
MaxRecentFiles 

Definition at line 370 of file SimpleWindow.h.

Constructor & Destructor Documentation

◆ SimpleWindow()

FEVV::SimpleWindow::SimpleWindow ( QWidget *  _parent = 0,
Qt::WindowFlags  _flags = Qt::Window 
)
inline

Constructor.

Parameters
[in]_parentPointer to the QWidget parent of this QWidget (used by Qt) (Default value = 0).
[in]_flagsWindows flags (used by Qt) (Default value = Qt::Window).

Definition at line 76 of file SimpleWindow.inl.

◆ ~SimpleWindow()

FEVV::SimpleWindow::~SimpleWindow ( )
inline

Destructor.

Definition at line 91 of file SimpleWindow.inl.

Member Function Documentation

◆ aboutPlugins

void FEVV::SimpleWindow::aboutPlugins ( )
inlineprotectedslot

Definition at line 649 of file SimpleWindow.inl.

◆ actionHG()

void FEVV::SimpleWindow::actionHG ( FEVV::SimpleViewer viewer,
char  t,
char  t2 
)
inline

Definition at line 1536 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ activate_space_mode()

void FEVV::SimpleWindow::activate_space_mode ( )
inline

Definition at line 1461 of file SimpleWindow.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ activate_time_mode()

void FEVV::SimpleWindow::activate_time_mode ( )
inline

Definition at line 1442 of file SimpleWindow.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ activeMdiChild()

QWidget * FEVV::SimpleWindow::activeMdiChild ( )
inline

Definition at line 2439 of file SimpleWindow.inl.

◆ addToMenu()

void FEVV::SimpleWindow::addToMenu ( QObject *  plugin,
const QStringList &  texts,
QMenu *  menu,
const char *  member,
QActionGroup *  actionGroup = 0 
)
inlineprotected

Definition at line 615 of file SimpleWindow.inl.

◆ applyPlugin

void FEVV::SimpleWindow::applyPlugin ( )
inlineprotectedslot

Definition at line 636 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ attach() [1/2]

void FEVV::SimpleWindow::attach ( Adapter _adapter)
inlineoverridevirtual

Attach a visualization adapter to the current Window.

Parameters
[in]_adapterPointer to an adapter (with the scene, see BaseAdapterVisu).

Implements FEVV::BaseWindow.

Definition at line 119 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ attach() [2/2]

void FEVV::SimpleWindow::attach ( AdapterQt _adapter,
const bool  _useMdiWindows = false 
)
inline

Attach a visualization adapter to the current Window.

Parameters
[in]_adapterPointer to a Qt adapter (with the scene, see BaseAdapterVisuQt).
[in]_useMdiWindowsdisplay MDI window instead of fullscreen widgets (Default value = false).

Definition at line 135 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ attachPlugin()

void FEVV::SimpleWindow::attachPlugin ( Plugin _plugin)
inlineoverridevirtual

Implements FEVV::BaseWindow.

Definition at line 188 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ centerHG()

void FEVV::SimpleWindow::centerHG ( FEVV::SimpleViewer viewer)
inline

Definition at line 2039 of file SimpleWindow.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeEvent()

void FEVV::SimpleWindow::closeEvent ( QCloseEvent *  event)
inlineoverrideprotected

Definition at line 1293 of file SimpleWindow.inl.

◆ createNewViewer()

FEVV::SimpleViewer * FEVV::SimpleWindow::createNewViewer ( void  )
inlineprotected

Create a new empty viewer.

Definition at line 2416 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ draw_or_redraw_mesh()

template<typename MeshT >
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. 
)

Definition at line 785 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ enableSpaceTimeMenus()

void FEVV::SimpleWindow::enableSpaceTimeMenus ( )
inline

Definition at line 682 of file SimpleWindow.inl.

◆ getMdiArea()

MdiArea* FEVV::SimpleWindow::getMdiArea ( )
inline

Definition at line 169 of file SimpleWindow.h.

◆ getSelectedAdapters()

std::vector< FEVV::SimpleWindow::Adapter * > FEVV::SimpleWindow::getSelectedAdapters ( )
inlineoverridevirtual

Implements FEVV::BaseWindow.

Definition at line 2387 of file SimpleWindow.inl.

◆ getSelectedViewers()

std::vector< FEVV::SimpleWindow::Adapter::Viewer * > FEVV::SimpleWindow::getSelectedViewers ( )
inlineoverridevirtual

Implements FEVV::BaseWindow.

Definition at line 2401 of file SimpleWindow.inl.

◆ init() [1/2]

void FEVV::SimpleWindow::init ( )
inlineoverridevirtual

initialize the window.

Implements FEVV::BaseWindow.

Definition at line 194 of file SimpleWindow.inl.

Here is the caller graph for this function:

◆ init() [2/2]

void FEVV::SimpleWindow::init ( const bool  _test,
const int  _width = 1024,
const int  _height = 768 
)
inline

initialize the window.

Parameters
[in]_testboolean to enable test mode (will close the window after 10 sec. This mode is useful for Travis/AppVeyor) (Default value = false).
[in]_widthMinimum width of the window (Default value = 1024).
[in]_heightMinimum heigth of the window (Default value = 768).

Definition at line 200 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ loadQtPlugins()

void FEVV::SimpleWindow::loadQtPlugins ( )
inline

Definition at line 547 of file SimpleWindow.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ notify()

void FEVV::SimpleWindow::notify ( )
inlineoverridevirtual

Implements FEVV::BaseWindow.

Definition at line 663 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionAbout_MEPP_Help_triggered

void FEVV::SimpleWindow::on_actionAbout_MEPP_Help_triggered ( )
inlineprotectedslot

Definition at line 1480 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionChange_MDI_view_mode_triggered

void FEVV::SimpleWindow::on_actionChange_MDI_view_mode_triggered ( )
inlineprotectedslot

Definition at line 1375 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionChange_viewer_mode_triggered

void FEVV::SimpleWindow::on_actionChange_viewer_mode_triggered ( )
inlineprotectedslot

Definition at line 1395 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionClose_all_triggered

void FEVV::SimpleWindow::on_actionClose_all_triggered ( )
inlineprotectedslot

Definition at line 1334 of file SimpleWindow.inl.

◆ on_actionClose_triggered

void FEVV::SimpleWindow::on_actionClose_triggered ( )
inlineprotectedslot

Definition at line 1279 of file SimpleWindow.inl.

◆ on_actionClose_window_triggered

void FEVV::SimpleWindow::on_actionClose_window_triggered ( )
inlineprotectedslot

Definition at line 1328 of file SimpleWindow.inl.

◆ on_actionCopy_Viewpoint_triggered

void FEVV::SimpleWindow::on_actionCopy_Viewpoint_triggered ( )
inlineprotectedslot

Definition at line 2069 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionDyn_First_triggered

void FEVV::SimpleWindow::on_actionDyn_First_triggered ( )
inlineprotectedslot

Definition at line 2231 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionDyn_Last_triggered

void FEVV::SimpleWindow::on_actionDyn_Last_triggered ( )
inlineprotectedslot

Definition at line 2273 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionDyn_Next_triggered

void FEVV::SimpleWindow::on_actionDyn_Next_triggered ( )
inlineprotectedslot

Definition at line 2259 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionDyn_Previous_triggered

void FEVV::SimpleWindow::on_actionDyn_Previous_triggered ( )
inlineprotectedslot

Definition at line 2245 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionFace_Color_triggered

void FEVV::SimpleWindow::on_actionFace_Color_triggered ( )
inlineprotectedslot

Definition at line 1946 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionLighting_triggered

void FEVV::SimpleWindow::on_actionLighting_triggered ( )
inlineprotectedslot

Definition at line 1976 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionNew_triggered

void FEVV::SimpleWindow::on_actionNew_triggered ( )
inlineprotectedslot

Definition at line 807 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionOpen_SPACE_TIME()

template<typename HalfedgeGraph >
void FEVV::SimpleWindow::on_actionOpen_SPACE_TIME ( FEVV::SimpleViewer viewer)
inlineprotected

Open button/menu callback function.

Definition at line 815 of file SimpleWindow.inl.

◆ on_actionOpen_triggered

void FEVV::SimpleWindow::on_actionOpen_triggered ( )
inlineslot

Definition at line 961 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionPaste_Viewpoint_triggered

void FEVV::SimpleWindow::on_actionPaste_Viewpoint_triggered ( )
inlineprotectedslot

Definition at line 2081 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionQuit_triggered

void FEVV::SimpleWindow::on_actionQuit_triggered ( )
inlineprotectedslot

Definition at line 1286 of file SimpleWindow.inl.

◆ on_actionRender_Fill_triggered

void FEVV::SimpleWindow::on_actionRender_Fill_triggered ( )
inlineprotectedslot

Definition at line 1868 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionRender_Line_triggered

void FEVV::SimpleWindow::on_actionRender_Line_triggered ( )
inlineprotectedslot

Definition at line 1853 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionRender_Mode_triggered

void FEVV::SimpleWindow::on_actionRender_Mode_triggered ( )
inlineprotectedslot

Definition at line 2007 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionRender_Point_triggered

void FEVV::SimpleWindow::on_actionRender_Point_triggered ( )
inlineprotectedslot

Definition at line 1838 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionSaveAs_triggered

void FEVV::SimpleWindow::on_actionSaveAs_triggered ( )
inlineprotectedslot

Definition at line 1264 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionShow_Axis_triggered

void FEVV::SimpleWindow::on_actionShow_Axis_triggered ( )
inlineprotectedslot

Definition at line 2094 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionShow_CustomVectors_Vertices_triggered

void FEVV::SimpleWindow::on_actionShow_CustomVectors_Vertices_triggered ( )
inlineprotectedslot

Definition at line 2136 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionShow_Entire_Mesh_triggered

void FEVV::SimpleWindow::on_actionShow_Entire_Mesh_triggered ( )
inlineprotectedslot

Definition at line 2054 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionShow_Grid_triggered

void FEVV::SimpleWindow::on_actionShow_Grid_triggered ( )
inlineprotectedslot

Definition at line 2107 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionShow_Rotation_Draggers_triggered

void FEVV::SimpleWindow::on_actionShow_Rotation_Draggers_triggered ( )
inlineprotectedslot

Definition at line 2217 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionShow_Translation_Draggers_triggered

void FEVV::SimpleWindow::on_actionShow_Translation_Draggers_triggered ( )
inlineprotectedslot

Definition at line 2203 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionShow_Vertex_Normals_triggered

void FEVV::SimpleWindow::on_actionShow_Vertex_Normals_triggered ( )
inlineprotectedslot

Definition at line 2120 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionSmoothFlat_Shading_triggered

void FEVV::SimpleWindow::on_actionSmoothFlat_Shading_triggered ( )
inlineprotectedslot

Definition at line 1991 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionSuperimpose_Edges_triggered

void FEVV::SimpleWindow::on_actionSuperimpose_Edges_triggered ( )
inlineprotectedslot

Definition at line 1915 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionSuperimpose_Vertices_bigger_triggered

void FEVV::SimpleWindow::on_actionSuperimpose_Vertices_bigger_triggered ( )
inlineprotectedslot

Definition at line 1899 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionSuperimpose_Vertices_triggered

void FEVV::SimpleWindow::on_actionSuperimpose_Vertices_triggered ( )
inlineprotectedslot

Definition at line 1883 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionTexture_Mode_triggered

void FEVV::SimpleWindow::on_actionTexture_Mode_triggered ( )
inlineprotectedslot

Definition at line 1961 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ on_actionVertex_Color_triggered

void FEVV::SimpleWindow::on_actionVertex_Color_triggered ( )
inlineprotectedslot

Definition at line 1931 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ onAddBall

void FEVV::SimpleWindow::onAddBall ( )
inlineprotectedslot

Definition at line 2287 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ onApplyButton

void FEVV::SimpleWindow::onApplyButton ( )
inlineslot

Definition at line 525 of file SimpleWindow.inl.

Here is the caller graph for this function:

◆ onGrab

void FEVV::SimpleWindow::onGrab ( )
inlineprotectedslot

Definition at line 1525 of file SimpleWindow.inl.

◆ onItemChanged

void FEVV::SimpleWindow::onItemChanged ( QListWidgetItem *  _item,
QListWidgetItem *  _item_old 
)
inlineprotectedslot

removing old selected item

adding new selected item

Definition at line 2318 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ onModificationParam

void FEVV::SimpleWindow::onModificationParam ( std::string  _pluginName,
BasePlugin _plugin 
)
inlineslot

Definition at line 505 of file SimpleWindow.inl.

Here is the caller graph for this function:

◆ open_SPACE_TIME()

template<typename HalfedgeGraph >
void FEVV::SimpleWindow::open_SPACE_TIME ( FEVV::SimpleViewer viewer,
const std::vector< std::string > &  filenames 
)
inline

Open meshes in a viewer with datastructure HalfedgeGraph.

Parameters
viewerviewer to open the meshes into ; if nullptr is passed, a new viewer is opened
filenameslist of mesh file names to open

Definition at line 897 of file SimpleWindow.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ openRecentFile

void FEVV::SimpleWindow::openRecentFile ( )
inlineprotectedslot

Open a recent file (from menu).

Definition at line 1045 of file SimpleWindow.inl.

◆ populateMenus()

void FEVV::SimpleWindow::populateMenus ( QObject *  plugin)
inlineprotected

Definition at line 601 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ pre_actionHG

void FEVV::SimpleWindow::pre_actionHG ( Adapter::Viewer viewer,
char  t = 'D',
char  t2 = '_' 
)
inlineprotectedslot

Definition at line 1830 of file SimpleWindow.inl.

◆ readSettings()

void FEVV::SimpleWindow::readSettings ( )
inlineprotected

Read settings: folder locations (tree/open/save), mainwindow (pos, size, state), recent files list... (init).

Definition at line 2489 of file SimpleWindow.inl.

◆ setCurrentFile()

void FEVV::SimpleWindow::setCurrentFile ( const QString &  fileName)
inlineprotected

Set a mesh filename in recent files list.

Parameters
fileNamefilename of the mesh.

Definition at line 1062 of file SimpleWindow.inl.

◆ setParam() [1/5]

void FEVV::SimpleWindow::setParam ( std::string  _name,
bool *  _value,
std::string  _pluginName,
Plugin _plugin 
)
inlineoverridevirtual

Implements FEVV::BaseWindow.

Definition at line 452 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ setParam() [2/5]

void FEVV::SimpleWindow::setParam ( std::string  _name,
double *  _value,
std::string  _pluginName,
Plugin _plugin 
)
inlineoverridevirtual

Implements FEVV::BaseWindow.

Definition at line 400 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ setParam() [3/5]

void FEVV::SimpleWindow::setParam ( std::string  _name,
float *  _value,
std::string  _pluginName,
Plugin _plugin 
)
inlineoverridevirtual

Implements FEVV::BaseWindow.

Definition at line 426 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ setParam() [4/5]

void FEVV::SimpleWindow::setParam ( std::string  _name,
int *  _value,
std::string  _pluginName,
Plugin _plugin 
)
inlineoverridevirtual

Implements FEVV::BaseWindow.

Definition at line 371 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ setParam() [5/5]

void FEVV::SimpleWindow::setParam ( std::string  _name,
std::string *  _value,
std::string  _pluginName,
Plugin _plugin 
)
inlineoverridevirtual

Implements FEVV::BaseWindow.

Definition at line 479 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ sortModelList()

void FEVV::SimpleWindow::sortModelList ( )
inline

Definition at line 657 of file SimpleWindow.inl.

◆ strippedName()

QString FEVV::SimpleWindow::strippedName ( const QString &  fullFileName)
inlineprotected

Return the filename of a mesh without path.

Parameters
fullFileNamefilename of the mesh.
Returns
QString.

Definition at line 1080 of file SimpleWindow.inl.

◆ update()

void FEVV::SimpleWindow::update ( bool  pick = false)
inline

Definition at line 676 of file SimpleWindow.inl.

Here is the caller graph for this function:

◆ updateActiveChildTitle()

void FEVV::SimpleWindow::updateActiveChildTitle ( )
inline

Definition at line 1341 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ updateModelList()

void FEVV::SimpleWindow::updateModelList ( bool  pick)
inlineprotected

Definition at line 692 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ updateRecentFileActions()

void FEVV::SimpleWindow::updateRecentFileActions ( )
inlineprotected

Update Mepp recent files list.

Definition at line 1086 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ writeHG()

void FEVV::SimpleWindow::writeHG ( FEVV::SimpleViewer viewer)
inline

Definition at line 1108 of file SimpleWindow.inl.

Here is the call graph for this function:

◆ writeSettings()

void FEVV::SimpleWindow::writeSettings ( )
inlineprotected

Write settings: folder locations (tree/open/save), mainwindow (pos, size, state), recent files list... (exit).

Definition at line 2463 of file SimpleWindow.inl.

Member Data Documentation

◆ alt_drag

bool FEVV::SimpleWindow::alt_drag = false

Definition at line 388 of file SimpleWindow.h.

◆ clean_closure

bool FEVV::SimpleWindow::clean_closure = false
private

Definition at line 394 of file SimpleWindow.h.

◆ ctrl_drag

bool FEVV::SimpleWindow::ctrl_drag = false

Definition at line 389 of file SimpleWindow.h.

◆ ctrl_pressed

bool FEVV::SimpleWindow::ctrl_pressed = false
protected

Definition at line 379 of file SimpleWindow.h.

◆ dockDirView

QDockWidget* FEVV::SimpleWindow::dockDirView
protected

Definition at line 337 of file SimpleWindow.h.

◆ drag

bool FEVV::SimpleWindow::drag = false

Definition at line 386 of file SimpleWindow.h.

◆ drag_files

QStringList FEVV::SimpleWindow::drag_files

Definition at line 384 of file SimpleWindow.h.

◆ m_dockDirView_MinimumWidth

int FEVV::SimpleWindow::m_dockDirView_MinimumWidth
protected

Definition at line 343 of file SimpleWindow.h.

◆ matrixVP

osg::Matrix FEVV::SimpleWindow::matrixVP
private

Definition at line 396 of file SimpleWindow.h.

◆ mdiArea

MdiArea* FEVV::SimpleWindow::mdiArea = nullptr
protected

Definition at line 334 of file SimpleWindow.h.

◆ menuPlugins

QMenu* FEVV::SimpleWindow::menuPlugins
protected

Definition at line 332 of file SimpleWindow.h.

◆ model

QFileSystemModel* FEVV::SimpleWindow::model
protected

Definition at line 338 of file SimpleWindow.h.

◆ open_only_pts_mode

bool FEVV::SimpleWindow::open_only_pts_mode = false
protected

Definition at line 377 of file SimpleWindow.h.

◆ openLocation

QString FEVV::SimpleWindow::openLocation
protected

Definition at line 342 of file SimpleWindow.h.

◆ pluginFileNames

QStringList FEVV::SimpleWindow::pluginFileNames
protected

Definition at line 331 of file SimpleWindow.h.

◆ pluginsDir

QDir FEVV::SimpleWindow::pluginsDir
protected

Definition at line 330 of file SimpleWindow.h.

◆ proxyModel

QSortFilterProxyModel* FEVV::SimpleWindow::proxyModel
protected

Definition at line 339 of file SimpleWindow.h.

◆ recent

bool FEVV::SimpleWindow::recent = false

Definition at line 391 of file SimpleWindow.h.

◆ recentFileActs

QAction* FEVV::SimpleWindow::recentFileActs[MaxRecentFiles]
protected

tab of mesh files recent list

Definition at line 371 of file SimpleWindow.h.

◆ saveLocation

QString FEVV::SimpleWindow::saveLocation
protected

Definition at line 342 of file SimpleWindow.h.

◆ separatorAct_menuFile

QAction* FEVV::SimpleWindow::separatorAct_menuFile
protected

separator in file menu

Definition at line 369 of file SimpleWindow.h.

◆ shift_drag

bool FEVV::SimpleWindow::shift_drag = false

Definition at line 387 of file SimpleWindow.h.

◆ timerQuit

QTimer FEVV::SimpleWindow::timerQuit
protected

Definition at line 327 of file SimpleWindow.h.

◆ tree

QTreeView* FEVV::SimpleWindow::tree
protected

Definition at line 340 of file SimpleWindow.h.

◆ treeLocation

QString FEVV::SimpleWindow::treeLocation
protected

Definition at line 342 of file SimpleWindow.h.

◆ ui

Ui::MainWindow FEVV::SimpleWindow::ui
protected

Definition at line 381 of file SimpleWindow.h.

◆ useMdiWindows

bool FEVV::SimpleWindow::useMdiWindows = false
protected

Definition at line 375 of file SimpleWindow.h.


The documentation for this class was generated from the following files: