Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDICOMGenericTagCache.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
18 #include "mitkDICOMEnums.h"
20 
22 {
23 }
24 
26 {
27 }
28 
30 {
31  auto findings = GetTagValue(frame, DICOMTagPath(tag));
32 
33  DICOMDatasetFinding result;
34  if (!findings.empty())
35  {
36  result = findings.front();
37  }
38  return result;
39 }
40 
43 {
44  FindingsListType result;
45 
46  for (auto info : m_ScanResult)
47  {
48  if (info == frame)
49  {
50  result = info->GetTagValueAsString(path);
51  }
52  }
53  return result;
54 }
55 
57 {
58  return m_ScanResult;
59 }
60 
61 void
63 {
64  m_ScanResult.push_back(info);
65 };
66 
67 void
69 {
70  m_ScanResult.clear();
71 };
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:37
virtual DICOMDatasetAccessingImageFrameList GetFrameInfoList() const override
Retrieve a result list for file-by-file tag access.
static void info(const char *fmt,...)
Definition: svm.cpp:100
Describes a frame within a DICOM file.
std::list< DICOMDatasetFinding > FindingsListType
Defines an abstract base class for DICOM image frame infos with data access.
virtual DICOMDatasetFinding GetTagValue(DICOMImageFrameInfo *frame, const DICOMTag &tag) const override
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList
std::list< DICOMDatasetFinding > FindingsListType
void AddFrameInfo(DICOMDatasetAccessingImageFrameInfo *info)