Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Interface of property extensions service. More...
#include <mitkIPropertyExtensions.h>
Public Member Functions | |
virtual | ~IPropertyExtensions () |
virtual bool | AddExtension (const std::string &propertyName, PropertyExtension::Pointer extension, const std::string &className="", bool overwrite=false)=0 |
Add an extension to a specific property. More... | |
virtual PropertyExtension::Pointer | GetExtension (const std::string &propertyName, const std::string &className="")=0 |
Get the extension of a specific property. More... | |
virtual bool | HasExtension (const std::string &propertyName, const std::string &className="")=0 |
Check if a specific property has an extension. More... | |
virtual void | RemoveAllExtensions (const std::string &className="")=0 |
Remove all property extensions. More... | |
virtual void | RemoveExtension (const std::string &propertyName, const std::string &className="")=0 |
Remove extension of a specific property. More... | |
Interface of property extensions service.
This service allows you to manage extensions for properties. An extension is a class that derives from mitk::PropertyExtension. Use extensions to attach useful metadata to your properties, e.g. the allowed range of values. Note that you have to extend the property view if you want it to respect your custom metadata.
Definition at line 36 of file mitkIPropertyExtensions.h.
|
virtual |
Definition at line 19 of file mitkIPropertyExtensions.cpp.
|
pure virtual |
Add an extension to a specific property.
[in] | propertyName | Name of the property. |
[in] | extension | Property extension. |
[in] | className | Optional data node class name to which the property extension is restricted. |
[in] | overwrite | Overwrite already existing property extension. |
Implemented in mitk::PropertyExtensions.
Referenced by mitkPropertyExtensionsTest().
|
pure virtual |
Get the extension of a specific property.
[in] | propertyName | Name of the property. |
[in] | className | Optional data node class name to which the returned property extension is restricted. |
Implemented in mitk::PropertyExtensions.
Referenced by QmitkPropertyItemDelegate::createEditor(), and mitkPropertyExtensionsTest().
|
pure virtual |
Check if a specific property has an extension.
[in] | propertyName | Name of the property. |
[in] | className | Optional data node class name to which the property extension is restricted. |
Implemented in mitk::PropertyExtensions.
Referenced by QmitkPropertyItemDelegate::createEditor().
|
pure virtual |
Remove all property extensions.
[in] | className | Optional data node class name to which the property extension is restricted. |
Implemented in mitk::PropertyExtensions.
|
pure virtual |
Remove extension of a specific property.
[in] | propertyName | Name of the property. |
[in] | className | Optional data node class name to which the property extension is restricted. |
Implemented in mitk::PropertyExtensions.