#include <mitkPropertyRelations.h>
Definition at line 21 of file mitkPropertyRelations.h.
◆ RuleIDType
◆ RuleIDVectorType
◆ RuleResultVectorType
◆ PropertyRelations()
mitk::PropertyRelations::PropertyRelations |
( |
| ) |
|
◆ ~PropertyRelations()
mitk::PropertyRelations::~PropertyRelations |
( |
| ) |
|
|
override |
◆ 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.
Implements mitk::IPropertyRelations.
◆ GetRule()
Get the relation rule that has the specified ruleID.
- Returns
- Property relation rule or null pointer, if no relation rule is available.
Implements mitk::IPropertyRelations.
◆ 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.
Implements mitk::IPropertyRelations.
◆ 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.
Implements mitk::IPropertyRelations.
◆ 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.
Implements mitk::IPropertyRelations.
◆ HasRuleForSource()
bool mitk::PropertyRelations::HasRuleForSource |
( |
const IPropertyProvider * |
source | ) |
const |
|
overridevirtual |
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.
Implements mitk::IPropertyRelations.
◆ RemoveAllRules()
void mitk::PropertyRelations::RemoveAllRules |
( |
| ) |
|
|
overridevirtual |
◆ RemoveRule()
void mitk::PropertyRelations::RemoveRule |
( |
const RuleIDType & |
ruleID | ) |
|
|
overridevirtual |
Remove relation rule instance with the passed ID. If rule does not exist nothing happens.
Implements mitk::IPropertyRelations.
The documentation for this class was generated from the following file: