Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkIPropertyOwner.h>
Public Member Functions | |
~IPropertyOwner () override | |
virtual BaseProperty * | GetNonConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true)=0 |
Get property by its key. More... | |
virtual void | SetProperty (const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false)=0 |
Add new or change existent property. More... | |
virtual void | RemoveProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=false)=0 |
Removes a property. If the property does not exist, nothing will be done. More... | |
![]() | |
virtual | ~IPropertyProvider () |
virtual BaseProperty::ConstPointer | GetConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const =0 |
Get property by its key. More... | |
virtual std::vector< std::string > | GetPropertyKeys (const std::string &contextName="", bool includeDefaultContext=false) const =0 |
Query keys of existing properties. More... | |
virtual std::vector< std::string > | GetPropertyContextNames () const =0 |
Query names of existing contexts. More... | |
Interface implemented by classes that provide write/read access to property information.
Definition at line 22 of file mitkIPropertyOwner.h.
|
override |
Definition at line 15 of file mitkIPropertyOwner.cpp.
|
pure virtual |
Get property by its key.
[in] | propertyKey | Key of property. |
[in] | contextName | Optional, default is empty string (default context). Search in specified context. |
[in] | fallBackOnDefaultContext | Optional, default is true. Also search in default context if property was not found in given context. |
Implemented in mitk::PropertyList, mitk::DataNode, and mitk::BaseData.
Referenced by mitk::SourceImageRelationRule::Disconnect_datalayer().
|
pure virtual |
Removes a property. If the property does not exist, nothing will be done.
[in] | propertyKey | Key of property. |
[in] | contextName | Optional, default is empty string (default context). Context in which the property is removed. |
[in] | fallBackOnDefaultContext | Optional, default is false. Remove property in default context if given context does not exist. |
Implemented in mitk::PropertyList, mitk::DataNode, and mitk::BaseData.
Referenced by mitk::PropertyRelationRuleBase::Disconnect(), and mitk::SourceImageRelationRule::Disconnect_datalayer().
|
pure virtual |
Add new or change existent property.
[in] | propertyKey | Key of property. |
[in] | property | The actual property. |
[in] | contextName | Optional, default is empty string (default context). Context in which the property is set. |
[in] | fallBackOnDefaultContext | Optional, default is false. Set property in default context if given context does not exist. |
Implemented in mitk::PropertyList, mitk::DataNode, mitk::Label, and mitk::BaseData.
Referenced by mitk::PropertyRelationRuleBase::Connect(), mitk::SourceImageRelationRule::Connect_datalayer(), mitk::SourceImageRelationRule::CreateNewSourceImageSequenceItem(), and mitk::SourceImageRelationRule::Disconnect_datalayer().