Computer Assited Medical Intervention Tool Kit  version 5.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-2021 Univ. Grenoble Alpes, CNRS, Grenoble INP, 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
35class QDockWidget;
36
37class MMLDisplay;
39class PMLComponent;
49 Q_OBJECT
50
51public:
52
56 MMLComponent(const QString&);
57
59 virtual ~MMLComponent();
60
63
67 bool save();
68
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
100private:
101
104
107
110
112 QString exportedMml;
113
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
MonitoringGuiManager * mmlGUI
the mml GUI class is used directly
Definition: MMLComponent.h:103
MMLDisplay * display
display manager
Definition: MMLComponent.h:109
bool neverSelected
the first selection should trigger the pml exporer action (default action)
Definition: MMLComponent.h:115
QString exportedMml
when a .scn is loaded, name of the automatically exported mml file (empty string otherwise)
Definition: MMLComponent.h:112
PMLComponent * pmlComponent
physical model manager
Definition: MMLComponent.h:106
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:302
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag.
Definition: sdk/libraries/core/component/Component.cpp:422
virtual bool getModified() const
set the modified flag
Definition: sdk/libraries/core/component/Component.h:948