comparison Framework/Messaging/MessagingToolbox.h @ 31:9aace933cb64

sharing code with the Orthanc core
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Dec 2016 15:41:20 +0100
parents ff1e935768e7
children a865c7992a87
comparison
equal deleted inserted replaced
30:1099a148f7e5 31:9aace933cb64
30 **/ 30 **/
31 31
32 32
33 #pragma once 33 #pragma once
34 34
35 #include "IOrthancConnection.h" 35 #include "../../Resources/Orthanc/Plugins/Samples/Common/IOrthancConnection.h"
36 36
37 #include "../Enumerations.h" 37 #include "../Enumerations.h"
38 #include "../../Resources/Orthanc/Core/Images/ImageAccessor.h" 38 #include "../../Resources/Orthanc/Core/Images/ImageAccessor.h"
39 39
40 #include <json/value.h> 40 #include <json/value.h>
71 71
72 void ParseJson(Json::Value& target, 72 void ParseJson(Json::Value& target,
73 const std::string& source); 73 const std::string& source);
74 74
75 void RestApiGet(Json::Value& target, 75 void RestApiGet(Json::Value& target,
76 IOrthancConnection& orthanc, 76 OrthancPlugins::IOrthancConnection& orthanc,
77 const std::string& uri); 77 const std::string& uri);
78 78
79 bool HasWebViewerInstalled(IOrthancConnection& orthanc); 79 bool HasWebViewerInstalled(OrthancPlugins::IOrthancConnection& orthanc);
80 80
81 bool CheckOrthancVersion(IOrthancConnection& orthanc); 81 bool CheckOrthancVersion(OrthancPlugins::IOrthancConnection& orthanc);
82 82
83 // This downloads the image from Orthanc and keeps its pixel 83 // This downloads the image from Orthanc and keeps its pixel
84 // format unchanged (will be either Grayscale8, Grayscale16, 84 // format unchanged (will be either Grayscale8, Grayscale16,
85 // SignedGrayscale16, or RGB24) 85 // SignedGrayscale16, or RGB24)
86 Orthanc::ImageAccessor* DecodeFrame(IOrthancConnection& orthanc, 86 Orthanc::ImageAccessor* DecodeFrame(OrthancPlugins::IOrthancConnection& orthanc,
87 const std::string& instance, 87 const std::string& instance,
88 unsigned int frame, 88 unsigned int frame,
89 Orthanc::PixelFormat targetFormat); 89 Orthanc::PixelFormat targetFormat);
90 90
91 Orthanc::ImageAccessor* DecodeJpegFrame(IOrthancConnection& orthanc, 91 Orthanc::ImageAccessor* DecodeJpegFrame(OrthancPlugins::IOrthancConnection& orthanc,
92 const std::string& instance, 92 const std::string& instance,
93 unsigned int frame, 93 unsigned int frame,
94 unsigned int quality, 94 unsigned int quality,
95 Orthanc::PixelFormat targetFormat); 95 Orthanc::PixelFormat targetFormat);
96 } 96 }