comparison CppClient/Series.h @ 6:c584c25a74fd

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jun 2015 10:22:49 +0200
parents 798076adf9e9
children 39730d6727f3
comparison
equal deleted inserted replaced
5:798076adf9e9 6:c584c25a74fd
44 * {description}{This class encapsulates a connection to a series 44 * {description}{This class encapsulates a connection to a series
45 * from a remote instance of %Orthanc.} 45 * from a remote instance of %Orthanc.}
46 **/ 46 **/
47 class LAAW_API Series : 47 class LAAW_API Series :
48 public Orthanc::IDynamicObject, 48 public Orthanc::IDynamicObject,
49 private Orthanc::ArrayFilledByThreads::IFiller 49 private ArrayFilledByThreads::IFiller
50 { 50 {
51 private: 51 private:
52 enum Status3DImage 52 enum Status3DImage
53 { 53 {
54 Status3DImage_NotTested, 54 Status3DImage_NotTested,
57 }; 57 };
58 58
59 const OrthancConnection& connection_; 59 const OrthancConnection& connection_;
60 std::string id_, url_; 60 std::string id_, url_;
61 Json::Value series_; 61 Json::Value series_;
62 Orthanc::ArrayFilledByThreads instances_; 62 ArrayFilledByThreads instances_;
63 Status3DImage status_; 63 Status3DImage status_;
64 64
65 float voxelSizeX_; 65 float voxelSizeX_;
66 float voxelSizeY_; 66 float voxelSizeY_;
67 float voxelSizeZ_; 67 float voxelSizeZ_;
82 82
83 void Load3DImageInternal(void* target, 83 void Load3DImageInternal(void* target,
84 Orthanc::PixelFormat format, 84 Orthanc::PixelFormat format,
85 size_t lineStride, 85 size_t lineStride,
86 size_t stackStride, 86 size_t stackStride,
87 Orthanc::ThreadedCommandProcessor::IListener* listener); 87 ThreadedCommandProcessor::IListener* listener);
88 88
89 public: 89 public:
90 /** 90 /**
91 * {summary}{Create a connection to some series.} 91 * {summary}{Create a connection to some series.}
92 * {param}{connection The remote instance of %Orthanc.} 92 * {param}{connection The remote instance of %Orthanc.}
196 196
197 LAAW_API_INTERNAL void Load3DImage(void* target, 197 LAAW_API_INTERNAL void Load3DImage(void* target,
198 Orthanc::PixelFormat format, 198 Orthanc::PixelFormat format,
199 int64_t lineStride, 199 int64_t lineStride,
200 int64_t stackStride, 200 int64_t stackStride,
201 Orthanc::ThreadedCommandProcessor::IListener& listener) 201 ThreadedCommandProcessor::IListener& listener)
202 { 202 {
203 Load3DImageInternal(target, format, static_cast<size_t>(lineStride), 203 Load3DImageInternal(target, format, static_cast<size_t>(lineStride),
204 static_cast<size_t>(stackStride), &listener); 204 static_cast<size_t>(stackStride), &listener);
205 } 205 }
206 206