changeset 75:f0dd03210372 wasm

put SingleFrameRendererFactory back
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 May 2017 12:35:07 +0200
parents 6546dbcc0a7d
children 0aef120d7e1c
files Framework/Layers/SingleFrameRendererFactory.h
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Layers/SingleFrameRendererFactory.h	Wed May 24 12:08:08 2017 +0200
+++ b/Framework/Layers/SingleFrameRendererFactory.h	Wed May 24 12:35:07 2017 +0200
@@ -22,16 +22,19 @@
 #pragma once
 
 #include "ILayerRendererFactory.h"
-#include "../Toolbox/OrthancSlicesLoader.h"
+#include "../../Resources/Orthanc/Plugins/Samples/Common/IOrthancConnection.h"
 
 namespace OrthancStone
 {
-  class SingleFrameRendererFactory :
-    public ILayerRendererFactory,
-    public OrthancSlicesLoader::ICallback   // TODO PImpl
+  class SingleFrameRendererFactory : public ILayerRendererFactory
   {
   private:
-    OrthancSlicesLoader   loader_;
+    OrthancPlugins::IOrthancConnection&           orthanc_;
+    std::auto_ptr<OrthancPlugins::IDicomDataset>  dicom_;
+
+    std::string           instance_;
+    unsigned int          frame_;
+    Orthanc::PixelFormat  format_;
 
   public:
     SingleFrameRendererFactory(OrthancPlugins::IOrthancConnection& orthanc,