Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::IPropertyExtensions Class Referenceabstract

Interface of property extensions service. More...

#include <mitkIPropertyExtensions.h>

Inheritance diagram for mitk::IPropertyExtensions:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

mitk::IPropertyExtensions::~IPropertyExtensions ( )
virtual

Definition at line 19 of file mitkIPropertyExtensions.cpp.

Member Function Documentation

virtual bool mitk::IPropertyExtensions::AddExtension ( const std::string &  propertyName,
PropertyExtension::Pointer  extension,
const std::string &  className = "",
bool  overwrite = false 
)
pure virtual

Add an extension to a specific property.

Parameters
[in]propertyNameName of the property.
[in]extensionProperty extension.
[in]classNameOptional data node class name to which the property extension is restricted.
[in]overwriteOverwrite already existing property extension.
Returns
True if extension was added successfully.

Implemented in mitk::PropertyExtensions.

Referenced by mitkPropertyExtensionsTest().

virtual PropertyExtension::Pointer mitk::IPropertyExtensions::GetExtension ( const std::string &  propertyName,
const std::string &  className = "" 
)
pure virtual

Get the extension of a specific property.

Parameters
[in]propertyNameName of the property.
[in]classNameOptional data node class name to which the returned property extension is restricted.
Returns
Property extension or null pointer if no extension was found.

Implemented in mitk::PropertyExtensions.

Referenced by QmitkPropertyItemDelegate::createEditor(), and mitkPropertyExtensionsTest().

virtual bool mitk::IPropertyExtensions::HasExtension ( const std::string &  propertyName,
const std::string &  className = "" 
)
pure virtual

Check if a specific property has an extension.

Parameters
[in]propertyNameName of the property.
[in]classNameOptional data node class name to which the property extension is restricted.
Returns
True if the property has an extension, false otherwise.

Implemented in mitk::PropertyExtensions.

Referenced by QmitkPropertyItemDelegate::createEditor().

virtual void mitk::IPropertyExtensions::RemoveAllExtensions ( const std::string &  className = "")
pure virtual

Remove all property extensions.

Parameters
[in]classNameOptional data node class name to which the property extension is restricted.

Implemented in mitk::PropertyExtensions.

virtual void mitk::IPropertyExtensions::RemoveExtension ( const std::string &  propertyName,
const std::string &  className = "" 
)
pure virtual

Remove extension of a specific property.

Parameters
[in]propertyNameName of the property.
[in]classNameOptional data node class name to which the property extension is restricted.

Implemented in mitk::PropertyExtensions.


The documentation for this class was generated from the following files: