diff ViewerPlugin/Plugin.cpp @ 196:b0bd22077cd8

sharing code with orthanc-stone
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2020 17:57:38 +0200
parents e57e6ca5303d
children a1c265cb2174
line wrap: on
line diff
--- a/ViewerPlugin/Plugin.cpp	Tue Jun 30 18:11:30 2020 +0200
+++ b/ViewerPlugin/Plugin.cpp	Wed Jul 01 17:57:38 2020 +0200
@@ -21,9 +21,9 @@
 
 #include "../Framework/PrecompiledHeadersWSI.h"
 
+#include "../Framework/Jpeg2000Reader.h"
 #include "DicomPyramidCache.h"
-#include "../Framework/Jpeg2000Reader.h"
-#include "../Framework/Inputs/Orthanc/OrthancPluginConnection.h"
+#include "OrthancPluginConnection.h"
 
 #include <Logging.h>
 #include <Images/ImageProcessing.h>
@@ -38,9 +38,9 @@
 
 #include <cassert>
 
-std::auto_ptr<OrthancPlugins::OrthancPluginConnection>  orthanc_;
-std::auto_ptr<OrthancWSI::DicomPyramidCache>            cache_;
-std::auto_ptr<Orthanc::Semaphore>                       transcoderSemaphore_;
+std::auto_ptr<OrthancWSI::OrthancPluginConnection>  orthanc_;
+std::auto_ptr<OrthancWSI::DicomPyramidCache>        cache_;
+std::auto_ptr<Orthanc::Semaphore>                   transcoderSemaphore_;
 
 
 static void AnswerSparseTile(OrthancPluginRestOutput* output,
@@ -329,7 +329,7 @@
 
     OrthancPluginSetDescription(context, "Provides a Web viewer of whole-slide microscopic images within Orthanc.");
 
-    orthanc_.reset(new OrthancPlugins::OrthancPluginConnection);
+    orthanc_.reset(new OrthancWSI::OrthancPluginConnection);
     cache_.reset(new OrthancWSI::DicomPyramidCache(*orthanc_, 10 /* Number of pyramids to be cached - TODO parameter */));
 
     OrthancPluginRegisterOnChangeCallback(OrthancPlugins::GetGlobalContext(), OnChangeCallback);