Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkDICOMDatasetAccess.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 mitkDICOMDatasetAccess_h
14 #define mitkDICOMDatasetAccess_h
15 
16 #include "mitkDICOMTag.h"
17 #include "mitkDICOMTagPath.h"
18 
19 #include "MitkDICOMExports.h"
20 
21 namespace mitk
22 {
27  {
29  bool isValid;
31  std::string value;
34 
35  DICOMDatasetFinding(bool valid = false, const std::string& aValue = "", const DICOMTagPath& aPath = DICOMTagPath()) : isValid(valid), value(aValue), path(aPath)
36  {};
37  };
38 
46 {
47  public:
48  typedef std::list<DICOMDatasetFinding> FindingsListType;
49 
52  virtual std::string GetFilenameIfAvailable() const = 0;
53 
58  virtual DICOMDatasetFinding GetTagValueAsString(const DICOMTag& tag) const = 0;
59 
64  virtual FindingsListType GetTagValueAsString(const DICOMTagPath& path) const = 0;
65 
66  virtual ~DICOMDatasetAccess() {};
67 };
68 
69 
70 typedef std::vector<DICOMDatasetAccess*> DICOMDatasetList;
71 
72 }
73 
74 #endif
mitk::DICOMDatasetAccess::~DICOMDatasetAccess
virtual ~DICOMDatasetAccess()
Definition: mitkDICOMDatasetAccess.h:66
mitk::DICOMDatasetAccess
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
Definition: mitkDICOMDatasetAccess.h:45
MitkDICOMExports.h
mitk::DICOMTag
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:32
mitk::DICOMDatasetFinding::value
std::string value
Definition: mitkDICOMDatasetAccess.h:31
mitk::DICOMDatasetFinding
Definition: mitkDICOMDatasetAccess.h:26
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::DICOMDatasetFinding::path
DICOMTagPath path
Definition: mitkDICOMDatasetAccess.h:33
mitk::DICOMDatasetFinding::isValid
bool isValid
Definition: mitkDICOMDatasetAccess.h:29
mitk::DICOMDatasetFinding::DICOMDatasetFinding
DICOMDatasetFinding(bool valid=false, const std::string &aValue="", const DICOMTagPath &aPath=DICOMTagPath())
Definition: mitkDICOMDatasetAccess.h:35
mitkDICOMTag.h
mitk::DICOMDatasetAccess::FindingsListType
std::list< DICOMDatasetFinding > FindingsListType
Definition: mitkDICOMDatasetAccess.h:48
mitkDICOMTagPath.h
MITKDICOM_EXPORT
#define MITKDICOM_EXPORT
Definition: MitkDICOMExports.h:15
mitk::DICOMTagPath
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag,...
Definition: mitkDICOMTagPath.h:34
mitk::DICOMDatasetList
std::vector< DICOMDatasetAccess * > DICOMDatasetList
Definition: mitkDICOMDatasetAccess.h:70