This class describe what are the methods to implement in order to manage dynamic properties. More...
#include <InterfaceProperty.h>
Public Member Functions | |
virtual bool | addProperty (Property *)=0 |
Add a new CamiTK property to the component. More... | |
virtual QStringList | getHierarchy () const =0 |
Get the inheritance hierachy of this Component instance as a list of QString. More... | |
virtual unsigned int | getIndexOfPropertyExplorerTab ()=0 |
Get the index of the tab in the PropertyExplorer to select for display. More... | |
virtual unsigned int | getNumberOfPropertyWidget ()=0 |
get the number of alternative property widgets More... | |
virtual Q_INVOKABLE camitk::Property * | getProperty (QString name)=0 |
Get a Property given its name. More... | |
virtual const QObject * | getPropertyObject () const =0 |
virtual QObject * | getPropertyObject ()=0 |
get the property object that could be understood by PropertyEditor. More... | |
virtual QWidget * | getPropertyWidgetAt (unsigned int i)=0 |
get the ith alternative property widget override this method and use the method setObjectName of QWidget if you want alternative widgets More... | |
virtual bool | isInstanceOf (QString className) const =0 |
Assert that a Component instance really inherits from a given className. More... | |
virtual void | setIndexOfPropertyExplorerTab (unsigned int index)=0 |
Set the index of the tab in the PropertyExplorer to select for display. More... | |
virtual void | updateProperty (QString name, QVariant value)=0 |
update property: if you this method, do not forget to call the superclass method for the property not managed locally in order to properly manage all inherited dynamic properties. More... | |
~InterfaceProperty ()=default | |
empty virtual destructor, to avoid memory leak More... | |
This class describe what are the methods to implement in order to manage dynamic properties.
InterfaceProperty is one of the interfaces implemented by the Component class.
|
default |
empty virtual destructor, to avoid memory leak
|
pure virtual |
Add a new CamiTK property to the component.
If the property already exist, it will just change its value.
Implemented in camitk::SimplisticComponent, and camitk::Component.
|
pure virtual |
Get the inheritance hierachy of this Component instance as a list of QString.
Implemented in camitk::Component.
|
pure virtual |
Get the index of the tab in the PropertyExplorer to select for display.
The PropertyExplorer may feature several tabs of widget. This method allows to get the selected tab to display in a given context.
Implemented in camitk::Component.
|
pure virtual |
get the number of alternative property widgets
Implemented in camitk::MeshComponent, camitk::ImageComponent, and camitk::Component.
|
pure virtual |
Get a Property given its name.
name | the property name |
Implemented in camitk::Component.
|
pure virtual |
Implemented in camitk::Component.
|
pure virtual |
get the property object that could be understood by PropertyEditor.
Returns this as any Component instance can manage its list of dynamic properties (and Component inherits from InterfaceProperty aka QObject). You can also have a separate class to manage your Component properties. In this case, just override this method and return the corresponding instance.
Implemented in camitk::Component.
|
pure virtual |
get the ith alternative property widget override this method and use the method setObjectName of QWidget if you want alternative widgets
Implemented in camitk::Component, camitk::MeshComponent, and camitk::ImageComponent.
|
pure virtual |
Assert that a Component instance really inherits from a given className.
className | the name of the class to compare to |
Implemented in camitk::Component.
|
pure virtual |
Set the index of the tab in the PropertyExplorer to select for display.
The PropertyExplorer may feature several tabs of widget. This method allows to select the tab to display in a given context.
Implemented in camitk::Component.
|
pure virtual |
update property: if you this method, do not forget to call the superclass method for the property not managed locally in order to properly manage all inherited dynamic properties.
This method is called when a dynamic property has to be udpated
name | the name of the dynamic property |
value | the new value to take into account |
Implemented in camitk::MeshComponent, camitk::ImageComponent, camitk::Component, VtkMeshComponent, and PMLComponent.