Relation rule for ID-only relations between IIdentifiable property providers.
More...
|
| | mitkClassMacro (GenericIDRelationRule, PropertyRelationRuleBase) |
| |
| Pointer | Clone () const |
| |
| | mitkNewMacro1Param (Self, const RuleIDType &) |
| |
| | mitkNewMacro2Param (Self, const RuleIDType &, const std::string &) |
| |
| | mitkNewMacro4Param (Self, const RuleIDType &, const std::string &, const std::string &, const std::string &) |
| |
| RuleIDType | GetRuleID () const override |
| | Get the rule ID string ("IDRelation_<ruleIDTag>"). More...
|
| |
| bool | IsAbstract () const override |
| | Check whether this rule instance is abstract. More...
|
| |
| std::string | GetDisplayName () const override |
| | Get a human-readable display name for the rule. More...
|
| |
| std::string | GetSourceRoleName () const override |
| | Get a human-readable description of the source role. More...
|
| |
| std::string | GetDestinationRoleName () const override |
| | Get a human-readable description of the destination role. More...
|
| |
| RelationUIDType | Connect (IPropertyOwner *source, const IPropertyProvider *destination) const |
| | Connect two property providers with an ID-based relation. More...
|
| |
| | mitkClassMacroItkParent (PropertyRelationRuleBase, itk::Object) |
| |
| Pointer | Clone () const |
| |
| | itkCreateAnotherMacro (Self) |
| |
| virtual bool | IsSourceCandidate (const IPropertyProvider *owner) const |
| |
| virtual bool | IsDestinationCandidate (const IPropertyProvider *owner) const |
| |
| bool | IsSource (const IPropertyProvider *owner) const |
| |
| RelationVectorType | GetRelationTypes (const IPropertyProvider *source, const IPropertyProvider *destination) const |
| |
| bool | HasRelation (const IPropertyProvider *source, const IPropertyProvider *destination, RelationType requiredRelation=RelationType::None) const |
| |
| RelationUIDVectorType | GetExistingRelations (const IPropertyProvider *source, RelationType layer=RelationType::None) const |
| |
| RelationUIDVectorType | GetRelationUIDs (const IPropertyProvider *source, const IPropertyProvider *destination) const |
| |
| RelationUIDType | GetRelationUID (const IPropertyProvider *source, const IPropertyProvider *destination) const |
| |
| NodePredicateBase::ConstPointer | GetSourceCandidateIndicator () const |
| |
| NodePredicateBase::ConstPointer | GetDestinationCandidateIndicator () const |
| |
| NodePredicateBase::ConstPointer | GetConnectedSourcesDetector () const |
| |
| NodePredicateBase::ConstPointer | GetSourcesDetector (const IPropertyProvider *destination, RelationType exclusiveRelation=RelationType::None) const |
| |
| NodePredicateBase::ConstPointer | GetDestinationsDetector (const IPropertyProvider *source, RelationType exclusiveRelation=RelationType::None) const |
| |
| NodePredicateBase::ConstPointer | GetDestinationDetector (const IPropertyProvider *source, RelationUIDType relationUID) const |
| |
| void | Disconnect (IPropertyOwner *source, const IPropertyProvider *destination, RelationType layer=RelationType::Complete) const |
| |
| void | Disconnect (IPropertyOwner *source, RelationUIDType relationUID, RelationType layer=RelationType::Complete) const |
| |
| std::vector< PropertyKeyPath > | GetRelationPropertyPaths (const IPropertyProvider *source, RelationUIDType relationUID, RelationType layer=RelationType::Data) const |
| | Get all property key paths relevant for a given relation. More...
|
| |
|
| | GenericIDRelationRule (const RuleIDType &ruleIDTag) |
| |
| | GenericIDRelationRule (const RuleIDType &ruleIDTag, const std::string &displayName) |
| |
| | GenericIDRelationRule (const RuleIDType &ruleIDTag, const std::string &displayName, const std::string &sourceRole, const std::string &destinationRole) |
| |
| | ~GenericIDRelationRule () override=default |
| |
| DataRelationUIDVectorType | GetRelationUIDs_DataLayer (const IPropertyProvider *source, const IPropertyProvider *destination, const InstanceIDVectorType &instances_IDLayer) const override |
| |
| void | Connect_datalayer (IPropertyOwner *source, const IPropertyProvider *destination, const InstanceIDType &instanceID) const override |
| |
| void | Disconnect_datalayer (IPropertyOwner *source, const RelationUIDType &relationUID) const override |
| |
| bool | IsSupportedRuleID (const RuleIDType &ruleID) const override |
| |
| | GenericIDRelationRule (const GenericIDRelationRule &other) |
| |
| | mitkCloneMacro (Self) |
| |
| | PropertyRelationRuleBase ()=default |
| |
| | PropertyRelationRuleBase (const PropertyRelationRuleBase &) |
| |
| | ~PropertyRelationRuleBase () override=default |
| |
| InstanceIDVectorType | GetInstanceID_IDLayer (const IPropertyProvider *source, const IPropertyProvider *destination) const |
| |
| RelationUIDType | GetRelationUIDByInstanceID (const IPropertyProvider *source, const InstanceIDType &instanceID) const |
| |
| InstanceIDType | GetInstanceIDByRelationUID (const IPropertyProvider *source, const RelationUIDType &relationUID) const |
| |
| RelationUIDType | Connect (IPropertyOwner *source, const IPropertyProvider *destination) const |
| |
| std::string | GetRIIPropertyRegEx (const std::string propName="", const InstanceIDType &instanceID="") const |
| |
| RuleIDType | GetRuleIDByInstanceID (const IPropertyProvider *source, const InstanceIDType &instanceID) const |
| |
| std::string | GetDestinationUIDByInstanceID (const IPropertyProvider *source, const InstanceIDType &instanceID) const |
| |
| const Identifiable * | CastProviderAsIdentifiable (const mitk::IPropertyProvider *provider) const |
| |
Relation rule for ID-only relations between IIdentifiable property providers.
This rule class is used for relations that are defined solely on the ID-layer, with no connection on the Data-layer. It works for all ID-based relations between PropertyProviders that implement the IIdentifiable interface.
The ruleIDTag parameter, specified at construction time, serves as a suffix for the rule ID ("IDRelation_<ruleIDTag>") and allows creating distinguishable rule instances. When ruleIDTag is empty, the rule is abstract and can detect any generic ID relation but cannot create new connections.
Default role names (when not specified):
- Display name: "<ruleIDTag> relation"
- Source role: "source of <ruleIDTag> relation"
- Destination role: "destination of <ruleIDTag> relation"
- See also
- PropertyRelationRuleBase
-
SourceImageRelationRule
Definition at line 40 of file mitkGenericIDRelationRule.h.