Interface of property relations service.
More...
#include <mitkIPropertyRelations.h>
Interface of property relations service.
This service allows you to manage relations between property provider based on properties. Property relations are managed by rule classes derived from PropertyRelationRuleBase.
Definition at line 28 of file mitkIPropertyRelations.h.
◆ RuleIDType
◆ RuleIDVectorType
◆ RuleResultVectorType
◆ ~IPropertyRelations()
virtual mitk::IPropertyRelations::~IPropertyRelations |
( |
| ) |
|
|
virtual |
◆ AddRule()
Add rule for a specific relation. If there is already a property rule instance it won't be added. Rule instances are regarded equal, if the rule ID is equal. You may enforce to overwrite the old equal rule by the overwrite parameter.
- Parameters
-
[in] | rule | Relation rule of the property. |
[in] | overwrite | Overwrite already existing relation rule. |
- Returns
- True if relation rule was added successfully.
Implemented in mitk::PropertyRelations.
◆ GetRule()
Get the relation rule that has the specified ruleID.
- Returns
- Property relation rule or null pointer, if no relation rule is available.
Implemented in mitk::PropertyRelations.
◆ GetRuleIDs()
◆ GetRulesForDestinationCandidate()
Get all relation rules that would accept the passed IPropertOwner as destination.
- Parameters
-
[in] | destCandidate | Pointer to the instance that should be checked to be a suitable destination. |
- Returns
- Property relation rules or empty list if no relation rules are available.
Implemented in mitk::PropertyRelations.
◆ GetRulesForSource()
Get all relation rules the passed source is really a source of. (PropertyRelationRuleBase::IsSource() would return true)
- Parameters
-
[in] | source | Pointer to the instance that should be checked as source for the searched rules. |
- Returns
- Property relation rules or empty list if no relation rules are available.
Implemented in mitk::PropertyRelations.
◆ GetRulesForSourceCandidate()
Get all relation rules that would accept the passed IPropertOwner as source.
- Parameters
-
[in] | sourceCandidate | Pointer to the instance that should be checked to be a suitable source. |
- Returns
- Property relation rules or empty list if no relation rules are available.
Implemented in mitk::PropertyRelations.
◆ HasRuleForSource()
virtual bool mitk::IPropertyRelations::HasRuleForSource |
( |
const IPropertyProvider * |
source | ) |
const |
|
pure virtual |
Check if a passed instance has defined relation covered by the registered rules.
- Parameters
-
[in] | source | Pointer to the instance that should be checked as source for the searched rules. |
- Returns
- True if the property has relations of registered rules, false otherwise.
Implemented in mitk::PropertyRelations.
◆ RemoveAllRules()
virtual void mitk::IPropertyRelations::RemoveAllRules |
( |
| ) |
|
|
pure virtual |
◆ RemoveRule()
virtual void mitk::IPropertyRelations::RemoveRule |
( |
const RuleIDType & |
ruleID | ) |
|
|
pure virtual |
Remove relation rule instance with the passed ID. If rule does not exist nothing happens.
Implemented in mitk::PropertyRelations.
The documentation for this class was generated from the following file: