Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
mitkModelFitResultRelationRule.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITK_MODELFIT_RESULT_RELATION_RULE_H
14 #define MITK_MODELFIT_RESULT_RELATION_RULE_H
15 
17 
18 #include "MitkModelFitExports.h"
19 
20 namespace mitk
21 {
44  {
45  public:
47  itkNewMacro(Self);
48 
49  using RuleIDType = Superclass::RuleIDType;
50  using RelationUIDType = Superclass::RelationUIDType;
51  using RelationUIDVectorType = Superclass::RelationUIDVectorType;
52 
53  bool IsDestinationCandidate(const IPropertyProvider *owner) const override;
54 
55  protected:
57  ~ModelFitResultRelationRule() override = default;
58 
61 
62  using DataRelationUIDVectorType = Superclass::DataRelationUIDVectorType;
63  virtual DataRelationUIDVectorType GetRelationUIDs_DataLayer(const IPropertyProvider* source,
64  const IPropertyProvider* destination, const InstanceIDVectorType& instances_IDLayer) const override;
65 
66  void Disconnect_datalayer(IPropertyOwner *source, const RelationUIDType& relationUID) const override;
67 
68  itk::LightObject::Pointer InternalClone() const override;
69  };
70 
71 } // namespace mitk
72 
73 #endif
PropertyRelationRuleBase::InstanceIDType InstanceIDType
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKMODELFIT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
std::vector< RelationUIDType > RelationUIDVectorType
std::vector< std::pair< RelationUIDType, RuleIDType > > DataRelationUIDVectorType
PropertyRelationRuleBase::InstanceIDVectorType InstanceIDVectorType
std::vector< InstanceIDType > InstanceIDVectorType