Computer Assited Medical Intervention Tool Kit  version 4.0
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-2016 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  virtual ~MonitoringGuiManager();
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:214
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:200
MonitoringDriver * getDriver()
get driver
Definition: MonitoringGuiManager.cpp:70
void pause()
pause simulation
Definition: MonitoringGuiManager.cpp:154
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:224
bool doOneStep()
do one step of simulation
Definition: MonitoringGuiManager.cpp:81
bool loadMmlInFile(QString fileName)
Load a MMLIn file.
Definition: MonitoringGuiManager.cpp:179
bool saveMmlInFile(QString fileName)
Save MMLIn file.
Definition: MonitoringGuiManager.cpp:207
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:75
void reload()
reload simulation with current parameters
Definition: MonitoringGuiManager.cpp:168
void rewind()
rewind simulation
Definition: MonitoringGuiManager.cpp:159
void updateLml(QString fileName)
update lml
Definition: MonitoringGuiManager.cpp:229
bool saveMmlOutFile(QString fileName)
Save MMLout file.
Definition: MonitoringGuiManager.cpp:194
MonitoringDialog * getDialog()
get dialog
Definition: MonitoringGuiManager.cpp:65
TODO Comment class here.
Definition: MonitoringDialog.h:50
void simulateOneStep()
do one step of simulation
Definition: MonitoringGuiManager.cpp:143
MonitoringGuiManager()
constructor
Definition: MonitoringGuiManager.cpp:36
MonitoringDriver * driver
the simulation driver
Definition: MonitoringGuiManager.h:111
virtual ~MonitoringGuiManager()
destructor
Definition: MonitoringGuiManager.cpp:48
void updateRefresh(double refresh)
update refresh
Definition: MonitoringGuiManager.cpp:219
void simulate()
do simulation lopp
Definition: MonitoringGuiManager.cpp:132