![]() |
Computer Assited Medical Intervention Tool Kit
|
This class describe what are the methods to implement in order to manage dynamic properties. More...
#include <InterfaceProperty.h>
Public Member Functions | |
virtual QStringList | getHierarchy ()=0 |
Get the inheritance hierachy of this Component instance as a list of QString. | |
virtual QObject * | getPropertyObject ()=0 |
get the property object that could be understood by PropertyEditor. | |
virtual QWidget * | getPropertyWidget (QWidget *parent=0)=0 |
get the property widget to display. | |
virtual bool | isInstanceOf (QString className)=0 |
Assert that a Component instance really inherits from a given className. | |
virtual void | updateProperty (QString name, QVariant value)=0 |
update property: if you override 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. | |
virtual | ~InterfaceProperty () |
empty virtual destructor, to avoid memory leak |
This class describe what are the methods to implement in order to manage dynamic properties.
|
inlinevirtual |
empty virtual destructor, to avoid memory leak
|
pure virtual |
Get the inheritance hierachy of this Component instance as a list of QString.
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 overide this method and return the corresponding instance.
Implemented in camitk::Component, StructuralComponentDC, AtomDC, ComponentDC, VtkMeshComponent, and CellDC.
|
pure virtual |
get the property widget to display.
(always return NULL, overwrite this method if you want to give here you own widget)
Implemented in camitk::Component, and AtomDC.
|
pure virtual |
Assert that a Component instance really inherits from a given className.
Implemented in camitk::Component.
|
pure virtual |
update property: if you override 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::Component, ComponentDC, and ObjComponent.