Computer Assisted Medical Intervention Tool Kit  version 5.2
MMLComponent.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 
27 #ifndef MMLCOMPONENT_H
28 #define MMLCOMPONENT_H
29 
30 #include <camitkcore/Component.h> // Nico: do not remove the camitkcore/ prefix
31 
32 #include <QObject>
33 #include "MMLComponentAPI.h"
34 
35 class QDockWidget;
36 
37 class MMLDisplay;
39 class PMLComponent;
49  Q_OBJECT
50 
51 public:
52 
56  MMLComponent(const QString&);
57 
59  virtual ~MMLComponent();
60 
63 
67  bool save();
68 
70  void initRepresentation() {};
71 
78  virtual void setSelected(const bool b, const bool recursive = true);
79 
81 
83  MonitoringGuiManager* getMonitoringGuiManager();
84 
86  PMLComponent* getPMLComponent();
87 
89  MMLDisplay* getDisplay();
90 
92  void connectPml();
93 
95  void saveMML();
96 
98  virtual bool getModified() const;
99 
100 private:
101 
103  MonitoringGuiManager* mmlGUI;
104 
106  PMLComponent* pmlComponent;
107 
109  MMLDisplay* display;
110 
112  QString exportedMml;
113 
115  bool neverSelected;
116 
117 };
118 
119 
120 #endif
#define MMLCOMPONENT_API
Definition: MMLComponentAPI.h:54
This class manage an MML monitoring document ".mml".
Definition: MMLComponent.h:48
void initRepresentation()
init the representation (nothing to do, every 3D representation is managed by the PMLComponent)
Definition: MMLComponent.h:70
bool save()
save the current mml in the current file name.
TODO Describe the class here.
Definition: MMLDisplay.h:47
A GUI to manipulate mml documents.
Definition: MonitoringGuiManager.h:45
This class manages a physical model (PML) CamiTK component.
Definition: PMLComponent.h:103
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:303
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag.
Definition: sdk/libraries/core/component/Component.cpp:424
virtual bool getModified() const
set the modified flag
Definition: sdk/libraries/core/component/Component.h:972