Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkPropertyRelations_h
14 #define mitkPropertyRelations_h
50 using RuleMap = std::map<const std::string, PropertyRelationRuleBase::ConstPointer>;
void RemoveAllRules() override
Remove all relation rules.
PropertyRelationRuleBase::ConstPointer GetRule(const RuleIDType &ruleID) const override
Get the relation rule that has the specified ruleID.
std::list< PropertyRelationRuleBase::ConstPointer > RuleResultVectorType
RuleResultVectorType GetRulesForSourceCandidate(const IPropertyProvider *sourceCandidate) const override
Get all relation rules that would accept the passed IPropertOwner as source.
MITKCORE_EXPORT IPropertyRelations * CreateTestInstancePropertyRelations()
std::vector< RuleIDType > RuleIDVectorType
Find image slices visible on a given plane.
bool AddRule(const PropertyRelationRuleBase *rule, bool overwrite=false) override
Add rule for a specific relation. If there is already a property rule instance it won't be added....
void RemoveRule(const RuleIDType &ruleID) override
Remove relation rule instance with the passed ID. If rule does not exist nothing happens.
PropertyRelationRuleBase::RuleIDType RuleIDType
Interface of property relations service.
RuleIDVectorType GetRuleIDs() const override
Get all IDs of registered rules.
bool HasRuleForSource(const IPropertyProvider *source) const override
Check if a passed instance has defined relation covered by the registered rules.
~PropertyRelations() override
RuleResultVectorType GetRulesForDestinationCandidate(const IPropertyProvider *destCandidate) const override
Get all relation rules that would accept the passed IPropertOwner as destination.
RuleResultVectorType GetRulesForSource(const IPropertyProvider *source) const override
Get all relation rules the passed source is really a source of. (PropertyRelationRuleBase::IsSource()...