Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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-2014 UJF-Grenoble 1, 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 
34 class MonitoringDialog;
35 class MonitoringDriver;
43 class /* needed if you monitoringgui is compiled as shared: MML_MONITORING_GUI_API*/ MonitoringGuiManager : public QObject{
44 
45  Q_OBJECT
46 
47  public:
48 
51 
53  virtual ~MonitoringGuiManager();
54 
61 
63  bool loadMmlInFile(QString fileName);
65  bool saveMmlOutFile(QString fileName);
67  bool saveMmlInFile(QString fileName);
69  bool saveCsvFile(QString fileName);
70 
72  void updateDt(double dt);
74  void updateRefresh(double refresh);
76  void updatePml(QString fileName);
78  void updateLml(QString fileName);
79 
81  void pause();
83  void simulate();
85  void simulateOneStep();
87  void rewind();
88 
89  public slots:
90 
94  bool doOneStep();
96  void reload();
97 
98  signals:
100  void changed();
102  void reconnectPml();
103 
104  private :
105 
114 
115 
116 };
117 
118 #endif // MONITORINGGUIMANAGER_H
MonitoringDialog * dialog
the dialog box
Definition: MonitoringGuiManager.h:107
double lastRefreshTime
last refresh time
Definition: MonitoringGuiManager.h:113
void updateDt(double dt)
update dt
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.
void pause()
pause simulation
MonitoringManager * monitoringManager
Monitoring manager.
Definition: MonitoringGuiManager.h:111
A GUI to manipulate mml documents.
Definition: MonitoringGuiManager.h:43
void updatePml(QString fileName)
update pml
bool doOneStep()
do one step of simulation
bool loadMmlInFile(QString fileName)
Load a MMLIn file.
bool saveMmlInFile(QString fileName)
Save MMLIn file.
virtual ~MonitoringGuiManager()
destructor
TODO Comment class here.
Definition: MonitoringDriver.h:41
Manager of the benchmark tests.
Definition: MonitoringManager.h:50
void reload()
reload simulation with current parameters
void rewind()
rewind simulation
void updateLml(QString fileName)
update lml
bool saveMmlOutFile(QString fileName)
Save MMLout file.
TODO Comment class here.
Definition: MonitoringDialog.h:46
MonitoringDialog * getDialog()
get dialog
void simulateOneStep()
do one step of simulation
MonitoringGuiManager()
constructor
MonitoringDriver * driver
the simulation driver
Definition: MonitoringGuiManager.h:109
void updateRefresh(double refresh)
update refresh
MonitoringDriver * getDriver()
get driver
MonitoringManager * getMonitoringManager()
get Monitoring Manager
void simulate()
do simulation lopp