Mercurial > hg > orthanc-client
comparison CppClient/Instance.h @ 7:39730d6727f3
public enumerations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jun 2015 10:34:41 +0200 |
parents | 798076adf9e9 |
children | e59bf2554e59 |
comparison
equal
deleted
inserted
replaced
6:c584c25a74fd | 7:39730d6727f3 |
---|---|
33 #pragma once | 33 #pragma once |
34 | 34 |
35 #include <string> | 35 #include <string> |
36 #include <json/value.h> | 36 #include <json/value.h> |
37 | 37 |
38 #include "PublicEnumerations.h" | |
38 #include "OrthancClientException.h" | 39 #include "OrthancClientException.h" |
39 #include "../Orthanc/Core/IDynamicObject.h" | 40 #include "../Orthanc/Core/IDynamicObject.h" |
40 #include "../Orthanc/Core/ImageFormats/PngReader.h" | 41 #include "../Orthanc/Core/ImageFormats/PngReader.h" |
41 | 42 |
42 namespace OrthancClient | 43 namespace OrthancClient |
53 private: | 54 private: |
54 const OrthancConnection& connection_; | 55 const OrthancConnection& connection_; |
55 std::string id_; | 56 std::string id_; |
56 Json::Value tags_; | 57 Json::Value tags_; |
57 std::auto_ptr<Orthanc::PngReader> reader_; | 58 std::auto_ptr<Orthanc::PngReader> reader_; |
58 Orthanc::ImageExtractionMode mode_; | 59 ImageExtractionMode mode_; |
59 std::auto_ptr<std::string> dicom_; | 60 std::auto_ptr<std::string> dicom_; |
60 std::string content_; | 61 std::string content_; |
61 | 62 |
62 void DownloadImage(); | 63 void DownloadImage(); |
63 | 64 |
85 | 86 |
86 /** | 87 /** |
87 * {summary}{Set the extraction mode for the 2D image corresponding to this instance.} | 88 * {summary}{Set the extraction mode for the 2D image corresponding to this instance.} |
88 * {param}{mode The extraction mode.} | 89 * {param}{mode The extraction mode.} |
89 **/ | 90 **/ |
90 void SetImageExtractionMode(Orthanc::ImageExtractionMode mode); | 91 void SetImageExtractionMode(ImageExtractionMode mode); |
91 | 92 |
92 /** | 93 /** |
93 * {summary}{Get the extraction mode for the 2D image corresponding to this instance.} | 94 * {summary}{Get the extraction mode for the 2D image corresponding to this instance.} |
94 * {returns}{The extraction mode.} | 95 * {returns}{The extraction mode.} |
95 **/ | 96 **/ |
96 Orthanc::ImageExtractionMode GetImageExtractionMode() const | 97 ImageExtractionMode GetImageExtractionMode() const |
97 { | 98 { |
98 return mode_; | 99 return mode_; |
99 } | 100 } |
100 | 101 |
101 | 102 |
145 /** | 146 /** |
146 * {summary}{Get the format of the pixels of the 2D image.} | 147 * {summary}{Get the format of the pixels of the 2D image.} |
147 * {description}{Return the memory layout that is used for the 2D image that is encoded by this DICOM instance. This value depends on the extraction mode for the image.} | 148 * {description}{Return the memory layout that is used for the 2D image that is encoded by this DICOM instance. This value depends on the extraction mode for the image.} |
148 * {returns}{The pixel format.} | 149 * {returns}{The pixel format.} |
149 **/ | 150 **/ |
150 Orthanc::PixelFormat GetPixelFormat(); | 151 PixelFormat GetPixelFormat(); |
151 | 152 |
152 /** | 153 /** |
153 * {summary}{Access the memory buffer in which the raw pixels of the 2D image are stored.} | 154 * {summary}{Access the memory buffer in which the raw pixels of the 2D image are stored.} |
154 * {returns}{A pointer to the memory buffer.} | 155 * {returns}{A pointer to the memory buffer.} |
155 **/ | 156 **/ |