Computer Assited Medical Intervention Tool Kit  version 4.1
MonitoringGuiManager.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2018 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef MONITORINGGUIMANAGER_H
27 #define MONITORINGGUIMANAGER_H
28 
29 #include "MMLMonitoringGUIAPI.h"
30 
31 #include <QObject>
32 
33 // Monitor includes
35 
36 class MonitoringDialog;
37 class MonitoringDriver;
45 class /* needed if you monitoringgui is compiled as shared: MML_MONITORING_GUI_API*/ MonitoringGuiManager : public QObject {
46 
47  Q_OBJECT
48 
49 public:
50 
53 
55  ~MonitoringGuiManager() override;
56 
63 
65  bool loadMmlInFile(QString fileName);
67  bool saveMmlOutFile(QString fileName);
69  bool saveMmlInFile(QString fileName);
71  bool saveCsvFile(QString fileName);
72 
74  void updateDt(double dt);
76  void updateRefresh(double refresh);
78  void updatePml(QString fileName);
80  void updateLml(QString fileName);
81 
83  void pause();
85  void simulate();
87  void simulateOneStep();
89  void rewind();
90 
91 public slots:
92 
96  bool doOneStep();
98  void reload();
99 
100 signals:
102  void changed();
104  void reconnectPml();
105 
106 private :
107 
116 
117 
118 };
119 
120 #endif // MONITORINGGUIMANAGER_H
MonitoringDialog * dialog
the dialog box
Definition: MonitoringGuiManager.h:109
double lastRefreshTime
last refresh time
Definition: MonitoringGuiManager.h:115
void updateDt(double dt)
update dt
Definition: MonitoringGuiManager.cpp:218
void changed()
emitted when one step of simulation is done, there was changes, so maybe there are some display to up...
bool saveCsvFile(QString fileName)
Save csv file.
Definition: MonitoringGuiManager.cpp:204
MonitoringDriver * getDriver()
get driver
Definition: MonitoringGuiManager.cpp:69
~MonitoringGuiManager() override
destructor
Definition: MonitoringGuiManager.cpp:47
void pause()
pause simulation
Definition: MonitoringGuiManager.cpp:156
MonitoringManager * monitoringManager
Monitoring manager.
Definition: MonitoringGuiManager.h:113
A GUI to manipulate mml documents.
Definition: MonitoringGuiManager.h:45
void updatePml(QString fileName)
update pml
Definition: MonitoringGuiManager.cpp:228
bool doOneStep()
do one step of simulation
Definition: MonitoringGuiManager.cpp:80
bool loadMmlInFile(QString fileName)
Load a MMLIn file.
Definition: MonitoringGuiManager.cpp:181
bool saveMmlInFile(QString fileName)
Save MMLIn file.
Definition: MonitoringGuiManager.cpp:211
TODO Comment class here.
Definition: MonitoringDriver.h:41
Manager of the benchmark tests.
Definition: MonitoringManager.h:50
MonitoringManager * getMonitoringManager()
get Monitoring Manager
Definition: MonitoringGuiManager.cpp:74
void reload()
reload simulation with current parameters
Definition: MonitoringGuiManager.cpp:170
void rewind()
rewind simulation
Definition: MonitoringGuiManager.cpp:161
void updateLml(QString fileName)
update lml
Definition: MonitoringGuiManager.cpp:233
bool saveMmlOutFile(QString fileName)
Save MMLout file.
Definition: MonitoringGuiManager.cpp:198
MonitoringDialog * getDialog()
get dialog
Definition: MonitoringGuiManager.cpp:64
TODO Comment class here.
Definition: MonitoringDialog.h:50
void simulateOneStep()
do one step of simulation
Definition: MonitoringGuiManager.cpp:144
MonitoringGuiManager()
constructor
Definition: MonitoringGuiManager.cpp:35
MonitoringDriver * driver
the simulation driver
Definition: MonitoringGuiManager.h:111
void updateRefresh(double refresh)
update refresh
Definition: MonitoringGuiManager.cpp:223
void simulate()
do simulation lopp
Definition: MonitoringGuiManager.cpp:132