Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkRelationStorage.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 mitkRelationStorage_h
14 #define mitkRelationStorage_h
15 
17 
18 // semantic relations module
19 #include "mitkSemanticTypes.h"
20 
21 namespace mitk
22 {
23  namespace RelationStorage
24  {
27 
30 
32 
35 
42 
44 
45  MITKSEMANTICRELATIONS_EXPORT std::vector<SemanticTypes::CaseID> GetAllCaseIDs();
47 
48  void AddCase(const SemanticTypes::CaseID& caseID);
49  void AddImage(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& imageID);
50  void RemoveImage(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& imageID);
51  void AddSegmentation(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& segmentationID, const SemanticTypes::ID& parentID);
52  void RemoveSegmentation(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& segmentationID);
53 
54  void AddLesion(const SemanticTypes::CaseID& caseID, const SemanticTypes::Lesion& lesion);
55  void OverwriteLesion(const SemanticTypes::CaseID& caseID, const SemanticTypes::Lesion& lesion);
56  void LinkSegmentationToLesion(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& segmentationID, const SemanticTypes::Lesion& lesion);
57  void UnlinkSegmentationFromLesion(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& segmentationID);
58  void RemoveLesion(const SemanticTypes::CaseID& caseID, const SemanticTypes::Lesion& lesion);
59  void RemoveLesionClass(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& lesionClassID);
60 
61  void AddControlPoint(const SemanticTypes::CaseID& caseID, const SemanticTypes::ControlPoint& controlPoint);
62  void LinkImageToControlPoint(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& imageID, const SemanticTypes::ControlPoint& controlPoint);
63  void UnlinkImageFromControlPoint(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& imageID);
64  void RemoveControlPoint(const SemanticTypes::CaseID& caseID, const SemanticTypes::ControlPoint& controlPoint);
65 
66  void AddExaminationPeriod(const SemanticTypes::CaseID& caseID, const SemanticTypes::ExaminationPeriod& examinationPeriod);
68  void AddControlPointToExaminationPeriod(const SemanticTypes::CaseID& caseID, const SemanticTypes::ControlPoint& controlPoint, const SemanticTypes::ExaminationPeriod& examinationPeriod);
70  void RemoveExaminationPeriod(const SemanticTypes::CaseID& caseID, const SemanticTypes::ExaminationPeriod& examinationPeriod);
71 
72  void AddInformationTypeToImage(const SemanticTypes::CaseID& caseID, const SemanticTypes::ID& imageID, const SemanticTypes::InformationType& informationType);
74  void RemoveInformationType(const SemanticTypes::CaseID& caseID, const SemanticTypes::InformationType& informationType);
75 
76  } // namespace RelationStorage
77 } // namespace mitk
78 
79 #endif
mitk::RelationStorage::GetImageIDOfSegmentation
SemanticTypes::ID GetImageIDOfSegmentation(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &segmentationID)
mitk::RelationStorage::RemoveLesion
void RemoveLesion(const SemanticTypes::CaseID &caseID, const SemanticTypes::Lesion &lesion)
mitk::RelationStorage::UnlinkSegmentationFromLesion
void UnlinkSegmentationFromLesion(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &segmentationID)
mitk::RelationStorage::RemoveControlPointFromExaminationPeriod
void RemoveControlPointFromExaminationPeriod(const SemanticTypes::CaseID &caseID, const SemanticTypes::ControlPoint &controlPoint, const SemanticTypes::ExaminationPeriod &examinationPeriod)
MitkSemanticRelationsExports.h
mitk::SemanticTypes::ControlPointVector
std::vector< ControlPoint > ControlPointVector
Definition: mitkSemanticTypes.h:118
mitk::RelationStorage::RemoveInformationType
void RemoveInformationType(const SemanticTypes::CaseID &caseID, const SemanticTypes::InformationType &informationType)
mitk::RelationStorage::AddExaminationPeriod
void AddExaminationPeriod(const SemanticTypes::CaseID &caseID, const SemanticTypes::ExaminationPeriod &examinationPeriod)
mitk::RelationStorage::RemoveControlPoint
void RemoveControlPoint(const SemanticTypes::CaseID &caseID, const SemanticTypes::ControlPoint &controlPoint)
mitk::RelationStorage::RemoveImage
void RemoveImage(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &imageID)
mitk::RelationStorage::AddImage
void AddImage(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &imageID)
mitk::RelationStorage::InstanceExists
MITKSEMANTICRELATIONS_EXPORT bool InstanceExists(const SemanticTypes::CaseID &caseID)
mitk::RelationStorage::AddLesion
void AddLesion(const SemanticTypes::CaseID &caseID, const SemanticTypes::Lesion &lesion)
mitk::RelationStorage::RemoveInformationTypeFromImage
void RemoveInformationTypeFromImage(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &imageID)
mitkSemanticTypes.h
mitk::SemanticTypes::IDVector
std::vector< ID > IDVector
Definition: mitkSemanticTypes.h:115
mitk::RelationStorage::GetLesionOfSegmentation
SemanticTypes::Lesion GetLesionOfSegmentation(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &segmentationID)
mitk::RelationStorage::LinkSegmentationToLesion
void LinkSegmentationToLesion(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &segmentationID, const SemanticTypes::Lesion &lesion)
mitk::RelationStorage::AddSegmentation
void AddSegmentation(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &segmentationID, const SemanticTypes::ID &parentID)
mitk::RelationStorage::GetAllControlPointsOfCase
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::ControlPointVector GetAllControlPointsOfCase(const SemanticTypes::CaseID &caseID)
MITKSEMANTICRELATIONS_EXPORT
#define MITKSEMANTICRELATIONS_EXPORT
Definition: MitkSemanticRelationsExports.h:15
mitk::RelationStorage::AddControlPoint
void AddControlPoint(const SemanticTypes::CaseID &caseID, const SemanticTypes::ControlPoint &controlPoint)
mitk::RelationStorage::UnlinkImageFromControlPoint
void UnlinkImageFromControlPoint(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &imageID)
mitk::SemanticTypes::ControlPoint
Definition: mitkSemanticTypes.h:40
mitk::RelationStorage::GetAllSegmentationIDsOfCase
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::IDVector GetAllSegmentationIDsOfCase(const SemanticTypes::CaseID &caseID)
mitk::SemanticTypes::Lesion
Definition: mitkSemanticTypes.h:108
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::RelationStorage::GetAllExaminationPeriodsOfCase
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::ExaminationPeriodVector GetAllExaminationPeriodsOfCase(const SemanticTypes::CaseID &caseID)
mitk::RelationStorage::GetAllLesionsOfCase
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::LesionVector GetAllLesionsOfCase(const SemanticTypes::CaseID &caseID)
mitk::RelationStorage::AddCase
void AddCase(const SemanticTypes::CaseID &caseID)
mitk::RelationStorage::RemoveLesionClass
void RemoveLesionClass(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &lesionClassID)
mitk::RelationStorage::AddInformationTypeToImage
void AddInformationTypeToImage(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &imageID, const SemanticTypes::InformationType &informationType)
mitk::RelationStorage::GetControlPointOfImage
SemanticTypes::ControlPoint GetControlPointOfImage(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &imageID)
mitk::RelationStorage::OverwriteLesion
void OverwriteLesion(const SemanticTypes::CaseID &caseID, const SemanticTypes::Lesion &lesion)
mitk::RelationStorage::RemoveExaminationPeriod
void RemoveExaminationPeriod(const SemanticTypes::CaseID &caseID, const SemanticTypes::ExaminationPeriod &examinationPeriod)
mitk::SemanticTypes::InformationTypeVector
std::vector< InformationType > InformationTypeVector
Definition: mitkSemanticTypes.h:120
mitk::SemanticTypes::ID
std::string ID
Definition: mitkSemanticTypes.h:33
mitk::RelationStorage::GetAllSegmentationIDsOfImage
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::IDVector GetAllSegmentationIDsOfImage(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &imageID)
mitk::SemanticTypes::CaseID
std::string CaseID
Definition: mitkSemanticTypes.h:34
mitk::RelationStorage::GetAllSegmentationIDsOfLesion
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::IDVector GetAllSegmentationIDsOfLesion(const SemanticTypes::CaseID &caseID, const SemanticTypes::Lesion &lesion)
mitk::RelationStorage::GetAllImageIDsOfControlPoint
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::IDVector GetAllImageIDsOfControlPoint(const SemanticTypes::CaseID &caseID, const SemanticTypes::ControlPoint &controlPoint)
mitk::RelationStorage::GetAllImageIDsOfCase
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::IDVector GetAllImageIDsOfCase(const SemanticTypes::CaseID &caseID)
mitk::RelationStorage::GetInformationTypeOfImage
SemanticTypes::InformationType GetInformationTypeOfImage(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &imageID)
mitk::RelationStorage::RenameExaminationPeriod
MITKSEMANTICRELATIONS_EXPORT void RenameExaminationPeriod(const SemanticTypes::CaseID &caseID, const SemanticTypes::ExaminationPeriod &examinationPeriod)
mitk::RelationStorage::GetAllInformationTypesOfCase
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::InformationTypeVector GetAllInformationTypesOfCase(const SemanticTypes::CaseID &caseID)
mitk::SemanticTypes::LesionVector
std::vector< Lesion > LesionVector
Definition: mitkSemanticTypes.h:116
mitk::RelationStorage::RemoveSegmentation
void RemoveSegmentation(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &segmentationID)
mitk::RelationStorage::GetAllImageIDsOfInformationType
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::IDVector GetAllImageIDsOfInformationType(const SemanticTypes::CaseID &caseID, const SemanticTypes::InformationType &informationType)
mitk::SemanticTypes::ExaminationPeriodVector
std::vector< ExaminationPeriod > ExaminationPeriodVector
Definition: mitkSemanticTypes.h:119
mitk::RelationStorage::LinkImageToControlPoint
void LinkImageToControlPoint(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &imageID, const SemanticTypes::ControlPoint &controlPoint)
mitk::SemanticTypes::ExaminationPeriod
The concept of an examination period. An examination period holds a vector of control point UIDs....
Definition: mitkSemanticTypes.h:89
mitk::SemanticTypes::InformationType
std::string InformationType
Definition: mitkSemanticTypes.h:35
mitk::RelationStorage::AddControlPointToExaminationPeriod
void AddControlPointToExaminationPeriod(const SemanticTypes::CaseID &caseID, const SemanticTypes::ControlPoint &controlPoint, const SemanticTypes::ExaminationPeriod &examinationPeriod)
mitk::RelationStorage::GetAllCaseIDs
MITKSEMANTICRELATIONS_EXPORT std::vector< SemanticTypes::CaseID > GetAllCaseIDs()