Mercurial > hg > orthanc
comparison OrthancCppClient/Series.h @ 496:7f7a2d174acb laaw
preparing Laaw packaging
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Jul 2013 17:07:12 +0200 |
parents | 482cde3f3c14 |
children | ec19da4a1fe7 |
comparison
equal
deleted
inserted
replaced
494:012b63028085 | 496:7f7a2d174acb |
---|---|
37 #include "../Core/MultiThreading/ArrayFilledByThreads.h" | 37 #include "../Core/MultiThreading/ArrayFilledByThreads.h" |
38 #include "../Core/MultiThreading/ThreadedCommandProcessor.h" | 38 #include "../Core/MultiThreading/ThreadedCommandProcessor.h" |
39 | 39 |
40 namespace OrthancClient | 40 namespace OrthancClient |
41 { | 41 { |
42 class Series : | 42 class LAAW_API Series : |
43 public Orthanc::IDynamicObject, | 43 public Orthanc::IDynamicObject, |
44 private Orthanc::ArrayFilledByThreads::IFiller | 44 private Orthanc::ArrayFilledByThreads::IFiller |
45 { | 45 { |
46 private: | 46 private: |
47 enum Status3DImage | 47 enum Status3DImage |
76 size_t stackStride, | 76 size_t stackStride, |
77 Orthanc::ThreadedCommandProcessor::IListener* listener); | 77 Orthanc::ThreadedCommandProcessor::IListener* listener); |
78 | 78 |
79 public: | 79 public: |
80 Series(const OrthancConnection& connection, | 80 Series(const OrthancConnection& connection, |
81 const std::string& id); | 81 const char* id); |
82 | 82 |
83 void Reload() | 83 void Reload() |
84 { | 84 { |
85 instances_.Reload(); | 85 instances_.Reload(); |
86 } | 86 } |
87 | 87 |
88 bool Is3DImage(); | 88 bool Is3DImage(); |
89 | 89 |
90 unsigned int GetInstanceCount(); | 90 uint32_t GetInstanceCount(); |
91 | 91 |
92 Instance& GetInstance(unsigned int index); | 92 Instance& GetInstance(uint32_t index); |
93 | 93 |
94 const std::string& GetId() const | 94 const char* GetId() const |
95 { | 95 { |
96 return id_; | 96 return id_.c_str(); |
97 } | 97 } |
98 | 98 |
99 std::string GetUrl() const; | 99 std::string GetUrl() const; |
100 | 100 |
101 unsigned int GetWidth(); | 101 uint32_t GetWidth(); |
102 | 102 |
103 unsigned int GetHeight(); | 103 uint32_t GetHeight(); |
104 | 104 |
105 void GetVoxelSize(float& sizeX, float& sizeY, float& sizeZ); | 105 void GetVoxelSize(float& sizeX, float& sizeY, float& sizeZ); |
106 | 106 |
107 std::string GetMainDicomTag(const char* tag, | 107 std::string GetMainDicomTag(const char* tag, |
108 const char* defaultValue) const; | 108 const char* defaultValue) const; |
109 | 109 |
110 void Load3DImage(void* target, | 110 LAAW_API_INTERNAL void Load3DImage(void* target, |
111 Orthanc::PixelFormat format, | 111 Orthanc::PixelFormat format, |
112 size_t lineStride, | 112 int64_t lineStride, |
113 size_t stackStride, | 113 int64_t stackStride, |
114 Orthanc::ThreadedCommandProcessor::IListener& listener) | 114 Orthanc::ThreadedCommandProcessor::IListener& listener) |
115 { | 115 { |
116 Load3DImage(target, format, lineStride, stackStride, &listener); | 116 Load3DImage(target, format, lineStride, stackStride, &listener); |
117 } | 117 } |
118 | 118 |
119 void Load3DImage(void* target, | 119 void Load3DImage(void* target, |
120 Orthanc::PixelFormat format, | 120 Orthanc::PixelFormat format, |
121 size_t lineStride, | 121 int64_t lineStride, |
122 size_t stackStride) | 122 int64_t stackStride) |
123 { | 123 { |
124 Load3DImage(target, format, lineStride, stackStride, NULL); | 124 Load3DImage(target, format, lineStride, stackStride, NULL); |
125 } | 125 } |
126 }; | 126 }; |
127 } | 127 } |