Computer Assited Medical Intervention Tool Kit  version 4.0
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-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 
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 
54  MMLComponent(const QString &) throw(camitk::AbortException);
55 
57  virtual ~MMLComponent();
58 
61 
65  bool save();
66 
68  void initRepresentation() {};
69 
76  virtual void setSelected(const bool b, const bool recursive = true);
77 
79 
81  MonitoringGuiManager* getMonitoringGuiManager();
82 
84  PMLComponent* getPMLComponent();
85 
87  MMLDisplay* getDisplay();
88 
90  void connectPml();
91 
93  void saveMML();
94 
96  virtual bool getModified() const;
97 
98 private:
99 
102 
105 
108 
110  QString exportedMml;
111 
114 
115 };
116 
117 
118 #endif
#define MMLCOMPONENT_API
Definition: MMLComponentAPI.h:54
Exception class to handle abortion in component instanciation.
Definition: AbortException.h:43
TODO Describe the class here.
Definition: MMLDisplay.h:47
This class manage an MML monitoring document ".mml".
Definition: MMLComponent.h:48
A GUI to manipulate mml documents.
Definition: MonitoringGuiManager.h:45
void initRepresentation()
init the representation (nothing to do, every 3D representation is managed by the PMLComponent) ...
Definition: MMLComponent.h:68
QString exportedMml
when a .scn is loaded, name of the automatically exported mml file (empty string otherwise) ...
Definition: MMLComponent.h:110
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
This class manages a physical model (PML) CamiTK component.
Definition: PMLComponent.h:99
MonitoringGuiManager * mmlGUI
the mml GUI class is used directly
Definition: MMLComponent.h:101
bool neverSelected
the first selection should trigger the pml exporer action (default action)
Definition: MMLComponent.h:113
virtual bool getModified() const
set the modified flag
Definition: sdk/libraries/core/component/Component.h:971
PMLComponent * pmlComponent
physical model manager
Definition: MMLComponent.h:104
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag.
Definition: sdk/libraries/core/component/Component.cpp:592
MMLDisplay * display
display manager
Definition: MMLComponent.h:107