Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
Medical Imaging Interaction Toolkit
mitkSemanticRelationsDataStorageAccess.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 MITKSEMANTICRELATIONSDATASTORAGEACCESS_H
14 #define MITKSEMANTICRELATIONSDATASTORAGEACCESS_H
15 
17 
18 // semantic relations module
19 #include "mitkSemanticTypes.h"
20 
21 // mitk core
22 #include <mitkDataStorage.h>
23 #include <mitkWeakPointer.h>
24 
25 namespace mitk
26 {
40  {
41  public:
42 
43  using DataNodeVector = std::vector<DataNode::Pointer>;
44 
46 
47  /************************************************************************/
48  /* functions to get instances / attributes */
49  /************************************************************************/
62  DataNodeVector GetAllSegmentationsOfCase(const SemanticTypes::CaseID& caseID) const;
77  DataNodeVector GetAllSegmentationsOfLesion(const SemanticTypes::CaseID& caseID, const SemanticTypes::Lesion& lesion) const;
88  DataNodeVector GetAllImagesOfCase(const SemanticTypes::CaseID& caseID) const;
99  DataNodeVector GetAllImagesByID(const SemanticTypes::IDVector& imageIDs) const;
112  DataNodeVector GetAllImagesOfLesion(const SemanticTypes::CaseID& caseID, const SemanticTypes::Lesion& lesion) const;
127  DataNodeVector GetAllSpecificImages(const SemanticTypes::CaseID& caseID, const SemanticTypes::ControlPoint& controlPoint, const SemanticTypes::InformationType& informationType) const;
139  DataNodeVector GetAllSpecificImages(const SemanticTypes::CaseID& caseID, const SemanticTypes::InformationType& informationType, const SemanticTypes::ExaminationPeriod& examinationPeriod) const;
155  DataNodeVector GetAllSpecificSegmentations(const SemanticTypes::CaseID& caseID, const SemanticTypes::ControlPoint& controlPoint, const SemanticTypes::InformationType& informationType) const;
174  DataNode::Pointer GetSpecificSegmentation(const SemanticTypes::CaseID& caseID, const SemanticTypes::ControlPoint& controlPoint,
175  const SemanticTypes::InformationType& informationType, const SemanticTypes::Lesion& lesion) const;
176 
177  private:
178 
179  WeakPointer<DataStorage> m_DataStorage;
180 
181  };
182 } // namespace mitk
183 
184 #endif // MITKSEMANTICRELATIONSDATASTORAGEACCESS_H
Data management class that handles &#39;was created by&#39; relations.
std::vector< ID > IDVector
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKSEMANTICRELATIONS_EXPORT
The concept of an examination period. An examination period holds a vector of control point UIDs...
std::string InformationType
The API provides functions to query and manipulate image relations and instances, that are helpful du...