![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
This class describes a property object. More...
#include <PropertyObject.h>
Inherits QObject.
Public Member Functions | |
virtual bool | addProperty (Property *) |
Tag a new CamiTK property to this object. More... | |
virtual Q_INVOKABLE Property * | getProperty (QString name) |
Get a Property given its name. More... | |
PropertyObject (QString name) | |
Default constructor. More... | |
virtual void | removeProperty (Property *) |
Remove a CamiTK property of this object. More... | |
virtual | ~PropertyObject () |
Destructor. More... | |
Private Attributes | |
Property management | |
list of CamiTK properties decorating the object | |
QMap< QString, Property * > | propertiesMap |
This class describes a property object.
A property object is simply a QObject tagged with some CamiTK Properties The idea is to have an object which implements all the necessary methods to take advantages of the CamiTK Properties within the ObjectController
camitk::PropertyObject::PropertyObject | ( | QString | name | ) |
Default constructor.
name | The name of the PropertyObject instance. This one would be displayed in any SettingsDialog entries. |
|
virtual |
Destructor.
References propertiesMap.
|
virtual |
Tag a new CamiTK property to this object.
If the property already exist, it will just change its value.
References camitk::Property::getInitialValue(), camitk::Property::getName(), and propertiesMap.
Referenced by camitk::Application::createProperties(), and camitk::InteractiveViewer::createProperties().
|
virtual |
Get a Property given its name.
name | the property name |
References propertiesMap.
|
virtual |
Remove a CamiTK property of this object.
References camitk::Property::getName().
|
private |
Referenced by addProperty(), getProperty(), and ~PropertyObject().