Medical Imaging Interaction Toolkit
2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
|
#include <mitkModelFitResultRelationRule.h>
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
static Pointer | New (const RuleIDType &_arg) |
static Pointer | New (const RuleIDType &_arga, const std::string &_argb) |
static Pointer | New (const RuleIDType &_arga, const std::string &_argb, const std::string &_argc, const std::string &_argd) |
![]() | |
static const char * | GetStaticNameOfClass () |
static PropertyKeyPath | GetRootKeyPath () |
static PropertyKeyPath | GetRIIPropertyKeyPath (const std::string propName, const InstanceIDType &instanceID) |
static PropertyKeyPath | GetRIIRelationUIDPropertyKeyPath (const InstanceIDType &instanceID="") |
static PropertyKeyPath | GetRIIRuleIDPropertyKeyPath (const InstanceIDType &instanceID="") |
static PropertyKeyPath | GetRIIDestinationUIDPropertyKeyPath (const InstanceIDType &instanceID="") |
Protected Types | |
using | InstanceIDType = SourceImageRelationRule::InstanceIDType |
using | InstanceIDVectorType = SourceImageRelationRule::InstanceIDVectorType |
using | DataRelationUIDVectorType = Superclass::DataRelationUIDVectorType |
![]() | |
using | InstanceIDType = PropertyRelationRuleBase::InstanceIDType |
using | InstanceIDVectorType = PropertyRelationRuleBase::InstanceIDVectorType |
using | DataRelationUIDVectorType = PropertyRelationRuleBase::DataRelationUIDVectorType |
![]() | |
using | InstanceIDVectorType = std::vector< InstanceIDType > |
using | DataRelationUIDVectorType = std::vector< std::pair< RelationUIDType, RuleIDType > > |
Protected Member Functions | |
ModelFitResultRelationRule () | |
~ModelFitResultRelationRule () override=default | |
virtual DataRelationUIDVectorType | GetRelationUIDs_DataLayer (const IPropertyProvider *source, const IPropertyProvider *destination, const InstanceIDVectorType &instances_IDLayer) const override |
void | Disconnect_datalayer (IPropertyOwner *source, const RelationUIDType &relationUID) const override |
itk::LightObject::Pointer | InternalClone () const override |
![]() | |
SourceImageRelationRule () | |
SourceImageRelationRule (const RuleIDType &purposeTag) | |
SourceImageRelationRule (const RuleIDType &purposeTag, const std::string &displayName) | |
SourceImageRelationRule (const RuleIDType &purposeTag, const std::string &displayName, const std::string &sourceRole, const std::string &destinationRole) | |
~SourceImageRelationRule () override=default | |
std::vector< std::pair< size_t, std::string > > | GetReferenceSequenceIndices (const IPropertyProvider *source, const IPropertyProvider *destination=nullptr, InstanceIDVectorType ignoreInstances={}) const |
void | Connect_datalayer (IPropertyOwner *source, const IPropertyProvider *destination, const InstanceIDType &instanceID) const override |
bool | IsSupportedRuleID (const RuleIDType &ruleID) const override |
itk::LightObject::Pointer | InternalClone () const override |
PropertyKeyPath::ItemSelectionIndex | CreateNewSourceImageSequenceItem (IPropertyOwner *source) const |
std::string | GenerateRuleID (const std::string &purpose) const |
![]() | |
PropertyRelationRuleBase ()=default | |
~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 |
itk::LightObject::Pointer | InternalClone () const override |
const Identifiable * | CastProviderAsIdentifiable (const mitk::IPropertyProvider *provider) const |
Additional Inherited Members | |
![]() | |
static InstanceIDType | NULL_INSTANCE_ID () |
static InstanceIDType | GetInstanceIDByPropertyName (const std::string propName) |
static std::vector< std::string > | GetPropertyKeys (const IPropertyProvider *owner) |
This rule class can be used to represent the relation between an image generated by a model fit (rule source) and the image that was fitted (rule destination). The addition to the behavirID-layer is supported like for SourceImageRelationRule. In addition the rule uses the data-layer to deduce/define relations. For this layer it uses properties compliant to DICOM. Thus (1) the information is stored in a DICOM Source Image Sequence item (0x0008,0x2112) and (2) the destination must have properties DICOM SOP Instance UIDs (0x0008, 0x0018) and DICOM SOP Class UID (0x0008, 0x0016). If the destination does not have this properties, no connection can be made on the data-layer.
Definition at line 43 of file mitkModelFitResultRelationRule.h.
|
protected |
Definition at line 62 of file mitkModelFitResultRelationRule.h.
|
protected |
Definition at line 59 of file mitkModelFitResultRelationRule.h.
|
protected |
Definition at line 60 of file mitkModelFitResultRelationRule.h.
using mitk::ModelFitResultRelationRule::RelationUIDType = Superclass::RelationUIDType |
Definition at line 50 of file mitkModelFitResultRelationRule.h.
using mitk::ModelFitResultRelationRule::RelationUIDVectorType = Superclass::RelationUIDVectorType |
Definition at line 51 of file mitkModelFitResultRelationRule.h.
using mitk::ModelFitResultRelationRule::RuleIDType = Superclass::RuleIDType |
Definition at line 49 of file mitkModelFitResultRelationRule.h.
|
protected |
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
This method is called by Disconnect() to remove all properties of the relation from the source that are set by Connect_datalayer().
Reimplemented from mitk::SourceImageRelationRule.
|
overrideprotectedvirtual |
Returns the RelationUIDs of all relations that are defined by the data layer of source for this rule instance and, if defined, destination. If the passed source (and destination) instance has no relation on the data layer, an empty vector will be returned.
source | |
destination | Destination the find relations should point to. If destination is NULL any relation on the data layer for this rule and source are wanted. |
instances_IDLayer | List of relation instances that are already defined by the ID layer. The implementation of this function should only cover relations that are not already resembled in the passed relarions_IDLayer. |
Reimplemented from mitk::SourceImageRelationRule.
|
overrideprotected |
|
overridevirtual |
This method checks if owner is eligible to be a Destination for the rule. The default implementation returns a True for every valid IPropertyProvider (so only a null_ptr results into false). May be reimplement by derived rules if they have requirements on potential Sources).
Reimplemented from mitk::SourceImageRelationRule.
mitk::ModelFitResultRelationRule::mitkClassMacro | ( | ModelFitResultRelationRule | , |
SourceImageRelationRule | |||
) |
|
static |