Mercurial > hg > orthanc-stone
comparison Framework/Oracle/ParseDicomFromWadoCommand.h @ 1484:121d01aa328e
SeriesThumbnailsLoader working on raw dicom files
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 22 Jun 2020 17:46:40 +0200 |
parents | c38c89684d83 |
children |
comparison
equal
deleted
inserted
replaced
1483:6abd819aa534 | 1484:121d01aa328e |
---|---|
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "OracleCommandBase.h" | 24 #include "OracleCommandBase.h" |
25 #include "../Loaders/DicomSource.h" | |
26 | |
27 #include <Enumerations.h> | |
25 | 28 |
26 #include <string> | 29 #include <string> |
27 | 30 |
28 namespace OrthancStone | 31 namespace OrthancStone |
29 { | 32 { |
30 class ParseDicomFromWadoCommand : public OracleCommandBase | 33 class ParseDicomFromWadoCommand : public OracleCommandBase |
31 { | 34 { |
32 private: | 35 private: |
33 std::string sopInstanceUid_; | 36 DicomSource source_; |
37 std::string sopInstanceUid_; | |
34 std::unique_ptr<IOracleCommand> restCommand_; | 38 std::unique_ptr<IOracleCommand> restCommand_; |
35 | 39 |
36 public: | 40 public: |
37 ParseDicomFromWadoCommand(const std::string& sopInstanceUid, | 41 ParseDicomFromWadoCommand(const DicomSource& source, |
42 const std::string& sopInstanceUid, | |
38 IOracleCommand* restCommand); | 43 IOracleCommand* restCommand); |
39 | 44 |
40 virtual Type GetType() const | 45 virtual Type GetType() const |
41 { | 46 { |
42 return Type_ParseDicomFromWado; | 47 return Type_ParseDicomFromWado; |
43 } | 48 } |
44 | 49 |
45 virtual IOracleCommand* Clone() const; | 50 virtual IOracleCommand* Clone() const; |
46 | 51 |
52 const DicomSource& GetSource() const | |
53 { | |
54 return source_; | |
55 } | |
56 | |
47 const std::string& GetSopInstanceUid() const | 57 const std::string& GetSopInstanceUid() const |
48 { | 58 { |
49 return sopInstanceUid_; | 59 return sopInstanceUid_; |
50 } | 60 } |
51 | 61 |
52 const IOracleCommand& GetRestCommand() const; | 62 const IOracleCommand& GetRestCommand() const; |
63 | |
64 static ParseDicomFromWadoCommand* Create(const DicomSource& source, | |
65 const std::string& studyInstanceUid, | |
66 const std::string& seriesInstanceUid, | |
67 const std::string& sopInstanceUid, | |
68 bool transcode, | |
69 Orthanc::DicomTransferSyntax transferSyntax, | |
70 Orthanc::IDynamicObject* payload); | |
53 }; | 71 }; |
54 } | 72 } |