Computer Assisted Medical Intervention Tool Kit  version 5.2
MonitoringDialog.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 MONITORINGDIALOG_H
27 #define MONITORINGDIALOG_H
28 
29 #include "MMLMonitoringGUIAPI.h"
30 
31 #include <QDialog>
32 class QTableWidget;
33 class QTreeWidgetItem;
34 
35 namespace Ui {
36 class MonitoringDialog;
37 }
38 
40 
41 class StoppingCriterion;
42 
50 class /* needed if you monitoringgui is compiled as shared: MML_MONITORING_GUI_API*/ MonitoringDialog : public QDialog {
51  Q_OBJECT
52 
53 public:
55  MonitoringDialog(MonitoringGuiManager* guiManager, QWidget* parent = nullptr);
57  ~MonitoringDialog() override;
58 
60  void init();
61 
63  void updateAll();
65  void updateMonitors();
69  void updateSimulation();
71  void updateSimulatorWidget();
73  QString getMmlInFileName();
75  QTableWidget* getMonitorsTableWidget();
76 
77 public slots:
79  void browseMmlIn();
81  void saveMmlOut();
83  void saveCsv();
85  void saveMmlIn();
87  void browsePml();
89  void browseLml();
91  void dtModified();
93  void refreshModified();
94 
99  void pause();
101  void simulate();
103  void simulateOneStep();
105  void rewind();
106 
107 signals:
110 
111 
112 private:
114  Ui::MonitoringDialog* ui;
115 
117  MonitoringGuiManager* guiManager;
118 
120  QColor bgColor;
121 
123  void enableButtons(bool enable);
124 
126  QTreeWidgetItem* createItem(StoppingCriterion* sc, QTreeWidgetItem* parent);
127 };
128 
129 #endif // MONITORINGDIALOG_H
TODO Comment class here.
Definition: MonitoringDialog.h:50
void updateSimulatorWidget()
update simulator specific widget
Definition: MonitoringDialog.cpp:314
~MonitoringDialog() override
Destructor.
Definition: MonitoringDialog.cpp:85
void updateMonitors()
update monitors tab
Definition: MonitoringDialog.cpp:257
void updateAll()
update all tabs
Definition: MonitoringDialog.cpp:225
void monitorsChanged()
emitted
void browseMmlIn()
Slot called when Browse MmlIn file is clicked.
Definition: MonitoringDialog.cpp:137
void browseLml()
Slot called when Browse Lml file is clicked.
Definition: MonitoringDialog.cpp:171
QTableWidget * getMonitorsTableWidget()
get the monitors table
Definition: MonitoringDialog.cpp:365
void saveCsv()
Slot called when save as csv file is clicked.
Definition: MonitoringDialog.cpp:154
void init()
initialize dialog
Definition: MonitoringDialog.cpp:99
QString getMmlInFileName()
get MmlIn file name
Definition: MonitoringDialog.cpp:351
MonitoringDialog(MonitoringGuiManager *guiManager, QWidget *parent=nullptr)
Default Constructor.
Definition: MonitoringDialog.cpp:44
void rewind()
Slot called when the button Rewind is clicked.
Definition: MonitoringDialog.cpp:209
void simulate()
Slot called when the button Play is clicked.
Definition: MonitoringDialog.cpp:218
void refreshModified()
Slot called after refresh editing.
Definition: MonitoringDialog.cpp:361
void updateStoppingCriteria()
update stopping criteria tab
Definition: MonitoringDialog.cpp:301
void saveMmlOut()
Slot called when save MmlOut file is clicked.
Definition: MonitoringDialog.cpp:146
void pause()
do one step of simulation
Definition: MonitoringDialog.cpp:204
void saveMmlIn()
Slot called when save MmlIn file is clicked.
Definition: MonitoringDialog.cpp:162
void simulateOneStep()
Slot called when the next step is clicked.
Definition: MonitoringDialog.cpp:199
void browsePml()
Slot called when Browse Pml file is clicked.
Definition: MonitoringDialog.cpp:185
void dtModified()
Slot called after dt editing.
Definition: MonitoringDialog.cpp:356
void updateSimulation()
update simulation tab
Definition: MonitoringDialog.cpp:288
A GUI to manipulate mml documents.
Definition: MonitoringGuiManager.h:45
class which represent the stopping criterion to check to stop simulation a StoppingCriterion is eithe...
Definition: StoppingCriterion.h:48
Definition: SettingsDialog.h:31