This class holds a list of CamiTK Properties and can be used as an editable QObject for the ObjectControler widget.
More...
#include <CamiTKPropertyList.h>
This class holds a list of CamiTK Properties and can be used as an editable QObject for the ObjectControler widget.
◆ ~CamiTKPropertyList()
| CamiTKPropertyList::~CamiTKPropertyList |
( |
| ) |
|
|
override |
◆ addProperty()
Add a new CamiTK property to the component.
If the property already exist, it will just change its value.
- Note
- The component takes ownership of the Property instance.
- Returns
- false if the Qt Meta Object property was added by this method (otherwise the property was already defined and true is returned if it was successfully updated)
Referenced by PMLExplorerWidget::createNewProperty().
◆ getNumberOfProperties()
| unsigned int CamiTKPropertyList::getNumberOfProperties |
( |
| ) |
const |
|
virtual |
get the number of properties
◆ getProperty() [1/2]
| Property * CamiTKPropertyList::getProperty |
( |
QString |
name | ) |
|
|
virtual |
Get a Property given its name.
- Parameters
-
- Returns
- nullptr if the name does not match any property name
- See also
- Property
Referenced by getProperty().
◆ getProperty() [2/2]
| Property * CamiTKPropertyList::getProperty |
( |
unsigned int |
index | ) |
|
|
virtual |
get the property stored at the given index
References getProperty().
The documentation for this class was generated from the following files: