comparison Plugin/ViewerToolbox.cpp @ 172:330ecfd96aec

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Oct 2017 12:53:46 +0200
parents 5dc54316d68b
children 81f16c5667ba
comparison
equal deleted inserted replaced
171:b6c55352818c 172:330ecfd96aec
22 #include "ViewerToolbox.h" 22 #include "ViewerToolbox.h"
23 23
24 #include "../Orthanc/Core/OrthancException.h" 24 #include "../Orthanc/Core/OrthancException.h"
25 #include "../Orthanc/Core/Toolbox.h" 25 #include "../Orthanc/Core/Toolbox.h"
26 26
27 // Gain access to ORTHANC_PLUGINS_VERSION_IS_ABOVE if Orthanc SDK <= 1.3.0
28 #include "../Orthanc/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.h"
29
27 #include <json/reader.h> 30 #include <json/reader.h>
28 #include <stdexcept> 31 #include <stdexcept>
29 #include <boost/lexical_cast.hpp> 32 #include <boost/lexical_cast.hpp>
30 #include <sys/stat.h> 33 #include <sys/stat.h>
31 34
281 return OrthancPluginPixelFormat_Grayscale8; 284 return OrthancPluginPixelFormat_Grayscale8;
282 285
283 case Orthanc::PixelFormat_RGB24: 286 case Orthanc::PixelFormat_RGB24:
284 return OrthancPluginPixelFormat_RGB24; 287 return OrthancPluginPixelFormat_RGB24;
285 288
289 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 3, 1)
290 case Orthanc::PixelFormat_RGB48:
291 return OrthancPluginPixelFormat_RGB48;
292 #endif
293
286 case Orthanc::PixelFormat_RGBA32: 294 case Orthanc::PixelFormat_RGBA32:
287 return OrthancPluginPixelFormat_RGBA32; 295 return OrthancPluginPixelFormat_RGBA32;
288 296
289 case Orthanc::PixelFormat_SignedGrayscale16: 297 case Orthanc::PixelFormat_SignedGrayscale16:
290 return OrthancPluginPixelFormat_SignedGrayscale16; 298 return OrthancPluginPixelFormat_SignedGrayscale16;
305 case OrthancPluginPixelFormat_Grayscale8: 313 case OrthancPluginPixelFormat_Grayscale8:
306 return Orthanc::PixelFormat_Grayscale8; 314 return Orthanc::PixelFormat_Grayscale8;
307 315
308 case OrthancPluginPixelFormat_RGB24: 316 case OrthancPluginPixelFormat_RGB24:
309 return Orthanc::PixelFormat_RGB24; 317 return Orthanc::PixelFormat_RGB24;
318
319 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 3, 1)
320 case OrthancPluginPixelFormat_RGB48:
321 return Orthanc::PixelFormat_RGB48;
322 #endif
310 323
311 case OrthancPluginPixelFormat_RGBA32: 324 case OrthancPluginPixelFormat_RGBA32:
312 return Orthanc::PixelFormat_RGBA32; 325 return Orthanc::PixelFormat_RGBA32;
313 326
314 case OrthancPluginPixelFormat_SignedGrayscale16: 327 case OrthancPluginPixelFormat_SignedGrayscale16: