13 #ifndef mitkGenericIDRelationRule_h
14 #define mitkGenericIDRelationRule_h
108 const std::string &displayName,
109 const std::string &sourceRole,
110 const std::string &destinationRole);
134 std::string m_DisplayName;
135 std::string m_SourceRole;
136 std::string m_DestinationRole;
Relation rule for ID-only relations between IIdentifiable property providers.
PropertyRelationRuleBase::DataRelationUIDVectorType DataRelationUIDVectorType
DataRelationUIDVectorType GetRelationUIDs_DataLayer(const IPropertyProvider *source, const IPropertyProvider *destination, const InstanceIDVectorType &instances_IDLayer) const override
PropertyRelationRuleBase::InstanceIDVectorType InstanceIDVectorType
std::string GetDestinationRoleName() const override
Get a human-readable description of the destination role.
PropertyRelationRuleBase::RelationUIDType RelationUIDType
mitkNewMacro1Param(Self, const RuleIDType &)
void Disconnect_datalayer(IPropertyOwner *source, const RelationUIDType &relationUID) const override
GenericIDRelationRule(const GenericIDRelationRule &other)
PropertyRelationRuleBase::InstanceIDType InstanceIDType
bool IsAbstract() const override
Check whether this rule instance is abstract.
GenericIDRelationRule(const RuleIDType &ruleIDTag, const std::string &displayName)
GenericIDRelationRule(const RuleIDType &ruleIDTag)
mitkNewMacro2Param(Self, const RuleIDType &, const std::string &)
mitkClassMacro(GenericIDRelationRule, PropertyRelationRuleBase)
PropertyRelationRuleBase::RelationUIDVectorType RelationUIDVectorType
RelationUIDType Connect(IPropertyOwner *source, const IPropertyProvider *destination) const
Connect two property providers with an ID-based relation.
~GenericIDRelationRule() override=default
std::string GetDisplayName() const override
Get a human-readable display name for the rule.
PropertyRelationRuleBase::RuleIDType RuleIDType
GenericIDRelationRule(const RuleIDType &ruleIDTag, const std::string &displayName, const std::string &sourceRole, const std::string &destinationRole)
mitkNewMacro4Param(Self, const RuleIDType &, const std::string &, const std::string &, const std::string &)
bool IsSupportedRuleID(const RuleIDType &ruleID) const override
std::string GetSourceRoleName() const override
Get a human-readable description of the source role.
void Connect_datalayer(IPropertyOwner *source, const IPropertyProvider *destination, const InstanceIDType &instanceID) const override
RuleIDType GetRuleID() const override
Get the rule ID string ("IDRelation_<ruleIDTag>").
Interface implemented by classes that provide write/read access to property information.
Interface implemented by classes that provide access to property information.
Base class for defining and detecting property-based relations between data objects.
Identifiable::UIDType RelationUIDType
std::vector< RelationUIDType > RelationUIDVectorType
std::vector< std::pair< RelationUIDType, RuleIDType > > DataRelationUIDVectorType
std::vector< InstanceIDType > InstanceIDVectorType
std::string InstanceIDType
Find image slices visible on a given plane.