diff Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h @ 1840:859224214616

simplification of the sample plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2015 10:34:04 +0100
parents 7f68b04c79e8
children b1291df2f780
line wrap: on
line diff
--- a/Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h	Fri Nov 27 18:17:31 2015 +0100
+++ b/Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h	Mon Nov 30 10:34:04 2015 +0100
@@ -31,10 +31,6 @@
   private:
     OrthancPluginContext*  context_;
     OrthancPluginImage*    image_;
-    double                 slope_;
-    double                 intercept_;
-    double                 rowPixelSpacing_;
-    double                 columnPixelSpacing_;
 
   public:
     OrthancImageWrapper(OrthancPluginContext* context,
@@ -43,8 +39,7 @@
                         uint32_t height);
 
     OrthancImageWrapper(OrthancPluginContext* context,
-                        GdcmImageDecoder& decoder,
-                        unsigned int frameIndex);
+                        OrthancPluginImage* image);  // Takes ownership
 
     ~OrthancImageWrapper();
 
@@ -64,25 +59,5 @@
     OrthancPluginPixelFormat GetFormat();
 
     char* GetBuffer();
-
-    double GetSlope() const
-    {
-      return slope_;
-    }
-
-    double GetIntercept() const
-    {
-      return intercept_;
-    }
-
-    double GetRowPixelSpacing() const
-    {
-      return rowPixelSpacing_;
-    }
-
-    double GetColumnPixelSpacing() const
-    {
-      return columnPixelSpacing_;
-    }
   };
 }