Computer Assited Medical Intervention Tool Kit  version 4.0
PropertyObject.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 #ifndef PROPERTYOBJECT_H
27 #define PROPERTYOBJECT_H
28 
29 // Qt includes
30 #include <QObject>
31 
32 // CamiTK includes
33 #include "CamiTKAPI.h"
34 #include "Property.h"
35 
36 namespace camitk {
37 
50 class CAMITK_API PropertyObject : public QObject {
51 
52  Q_OBJECT
53 
54 public:
59  PropertyObject(QString name);
60 
62  virtual ~PropertyObject();
63 
74  virtual bool addProperty(Property*);
75 
86  Q_INVOKABLE virtual Property* getProperty(QString name);
87 
91  virtual void removeProperty(Property*);
92 
93 private:
97  QMap<QString, Property*> propertiesMap;
99 };
100 
101 }
102 
103 #endif // PROPERTYOBJECT_H
QMap< QString, Property * > propertiesMap
Definition: PropertyObject.h:97
Definition: Action.cpp:40
#define CAMITK_API
Definition: CamiTKAPI.h:49
This class describes a property object.
Definition: PropertyObject.h:50
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:260