comparison Framework/Toolbox/Slice.h @ 118:a4d0b6c82b29 wasm

using Orthanc::DicomMap instead of OrthancPlugins::DicomDatasetReader
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Oct 2017 14:31:26 +0200
parents 42c05a3baee3
children ba83e38cf3ff
comparison
equal deleted inserted replaced
117:42c05a3baee3 118:a4d0b6c82b29
22 #pragma once 22 #pragma once
23 23
24 #include "CoordinateSystem3D.h" 24 #include "CoordinateSystem3D.h"
25 #include "DicomFrameConverter.h" 25 #include "DicomFrameConverter.h"
26 26
27 #include <Core/DicomFormat/DicomMap.h>
28
27 namespace OrthancStone 29 namespace OrthancStone
28 { 30 {
29 class Slice 31 class Slice
30 { 32 {
31 private: 33 private:
36 Type_OrthancDecodableFrame, 38 Type_OrthancDecodableFrame,
37 Type_OrthancRawFrame 39 Type_OrthancRawFrame
38 // TODO A slice could come from some DICOM file (URL) 40 // TODO A slice could come from some DICOM file (URL)
39 }; 41 };
40 42
41 bool ComputeRTDoseGeometry(const OrthancPlugins::DicomDatasetReader& reader, 43 bool ComputeRTDoseGeometry(const Orthanc::DicomMap& dataset,
42 unsigned int frame); 44 unsigned int frame);
43 45
44 Type type_; 46 Type type_;
45 std::string orthancInstanceId_; 47 std::string orthancInstanceId_;
46 std::string sopClassUid_; 48 std::string sopClassUid_;
97 bool IsValid() const 99 bool IsValid() const
98 { 100 {
99 return type_ != Type_Invalid; 101 return type_ != Type_Invalid;
100 } 102 }
101 103
102 bool ParseOrthancFrame(const OrthancPlugins::IDicomDataset& dataset, 104 bool ParseOrthancFrame(const Orthanc::DicomMap& dataset,
103 const std::string& instanceId, 105 const std::string& instanceId,
104 unsigned int frame); 106 unsigned int frame);
105 107
106 bool HasOrthancDecoding() const 108 bool HasOrthancDecoding() const
107 { 109 {