Computer Assited Medical Intervention Tool Kit  version 3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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-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 
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;
38 class MMLComponentPopup;
40 class PMManagerDC;
50  Q_OBJECT
51 
52 public:
53 
55  MMLComponent(const QString &) throw(camitk::AbortException);
56 
58  virtual ~MMLComponent();
59 
62 
66  bool save();
67 
68  void initRepresentation() {};
69 
71  MonitoringGuiManager* getMonitoringGuiManager();
73  PMManagerDC* getPMManager();
75  MMLDisplay* getDisplay();
77  void connectPml();
78 
80  virtual QMenu * getPopupMenu(QWidget* parent);
81 
83  bool isDockVisible();
85  QWidget * setDockVisible(bool visible);
86 
88  void saveMML();
89 
91  virtual bool getModified() const;
92 
93 private:
94 
97 
99  QDockWidget *mmlDock;
100 
103 
106 
108  QString exportedMml;
109 
112 };
113 
114 
115 #endif
MMLComponentPopup * myPopupMenu
the popup menu
Definition: MMLComponent.h:111
The manager of the physical model data.
Definition: PMManagerDC.h:97
#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:49
A GUI to manipulate mml documents.
Definition: MonitoringGuiManager.h:45
void initRepresentation()
Instanciate the concrete representation (either InterfaceGeometry or InterfaceBitMap) if needed...
Definition: MMLComponent.h:68
QString exportedMml
when a .scn is loaded, name of the automatically exported mml file (empty string otherwise) ...
Definition: MMLComponent.h:108
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
virtual QMenu * getPopupMenu(QWidget *parent=0)
get the popup menu to display (always return NULL, overwrite this method if you want to give here you...
Definition: sdk/libraries/core/component/Component.h:565
PMManagerDC * pmMgr
physical model manager
Definition: MMLComponent.h:102
MonitoringGuiManager * mmlGUI
the mml GUI class is used directly
Definition: MMLComponent.h:96
QDockWidget * mmlDock
to put the mmlGUI
Definition: MMLComponent.h:99
virtual bool getModified() const
set the modified flag
Definition: sdk/libraries/core/component/Component.h:959
A popup monu for MML component Acessible when rigth cliking on the component.
Definition: MMLComponentPopup.h:40
MMLDisplay * display
display manager
Definition: MMLComponent.h:105