Computer Assisted Medical Intervention Tool Kit  version 5.2
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-2024 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
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 
109  MonitoringDialog* dialog;
111  MonitoringDriver* driver;
113  MonitoringManager* monitoringManager;
115  double lastRefreshTime;
116 
117 
118 };
119 
120 #endif // MONITORINGGUIMANAGER_H
TODO Comment class here.
Definition: MonitoringDialog.h:50
TODO Comment class here.
Definition: MonitoringDriver.h:41
A GUI to manipulate mml documents.
Definition: MonitoringGuiManager.h:45
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...
void simulate()
do simulation lopp
Definition: MonitoringGuiManager.cpp:132
~MonitoringGuiManager() override
destructor
Definition: MonitoringGuiManager.cpp:47
MonitoringDriver * getDriver()
get driver
Definition: MonitoringGuiManager.cpp:69
void simulateOneStep()
do one step of simulation
Definition: MonitoringGuiManager.cpp:144
bool loadMmlInFile(QString fileName)
Load a MMLIn file.
Definition: MonitoringGuiManager.cpp:181
bool saveMmlInFile(QString fileName)
Save MMLIn file.
Definition: MonitoringGuiManager.cpp:211
bool saveCsvFile(QString fileName)
Save csv file.
Definition: MonitoringGuiManager.cpp:204
MonitoringDialog * getDialog()
get dialog
Definition: MonitoringGuiManager.cpp:64
void reload()
reload simulation with current parameters
Definition: MonitoringGuiManager.cpp:170
MonitoringGuiManager()
constructor
Definition: MonitoringGuiManager.cpp:35
void updatePml(QString fileName)
update pml
Definition: MonitoringGuiManager.cpp:228
bool doOneStep()
do one step of simulation
Definition: MonitoringGuiManager.cpp:80
void updateLml(QString fileName)
update lml
Definition: MonitoringGuiManager.cpp:233
void rewind()
rewind simulation
Definition: MonitoringGuiManager.cpp:161
void pause()
pause simulation
Definition: MonitoringGuiManager.cpp:156
MonitoringManager * getMonitoringManager()
get Monitoring Manager
Definition: MonitoringGuiManager.cpp:74
bool saveMmlOutFile(QString fileName)
Save MMLout file.
Definition: MonitoringGuiManager.cpp:198
void updateRefresh(double refresh)
update refresh
Definition: MonitoringGuiManager.cpp:223
Manager of the benchmark tests.
Definition: MonitoringManager.h:50
void refresh()
refresh the display