diff 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
line wrap: on
line diff
--- a/Plugin/ViewerToolbox.cpp	Thu Aug 24 19:49:20 2017 +0200
+++ b/Plugin/ViewerToolbox.cpp	Tue Oct 10 12:53:46 2017 +0200
@@ -24,6 +24,9 @@
 #include "../Orthanc/Core/OrthancException.h"
 #include "../Orthanc/Core/Toolbox.h"
 
+// Gain access to ORTHANC_PLUGINS_VERSION_IS_ABOVE if Orthanc SDK <= 1.3.0
+#include "../Orthanc/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.h"
+
 #include <json/reader.h>
 #include <stdexcept>
 #include <boost/lexical_cast.hpp>
@@ -283,6 +286,11 @@
       case Orthanc::PixelFormat_RGB24:
         return OrthancPluginPixelFormat_RGB24;
 
+#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 3, 1)
+      case Orthanc::PixelFormat_RGB48:
+        return OrthancPluginPixelFormat_RGB48;
+#endif
+
       case Orthanc::PixelFormat_RGBA32:
         return OrthancPluginPixelFormat_RGBA32;
 
@@ -308,6 +316,11 @@
       case OrthancPluginPixelFormat_RGB24:
         return Orthanc::PixelFormat_RGB24;
 
+#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 3, 1)
+      case OrthancPluginPixelFormat_RGB48:
+        return Orthanc::PixelFormat_RGB48;
+#endif
+
       case OrthancPluginPixelFormat_RGBA32:
         return Orthanc::PixelFormat_RGBA32;