comparison Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h @ 1836:2faa2abbf311

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Nov 2015 17:40:25 +0100
parents b1a6f49b21dd
children 2137df64a64c
comparison
equal deleted inserted replaced
1835:323dd6402933 1836:2faa2abbf311
20 20
21 #pragma once 21 #pragma once
22 22
23 #include <orthanc/OrthancCPlugin.h> 23 #include <orthanc/OrthancCPlugin.h>
24 24
25 #include "GdcmImageDecoder.h"
26
25 namespace OrthancPlugins 27 namespace OrthancPlugins
26 { 28 {
27 class OrthancImageWrapper 29 class OrthancImageWrapper
28 { 30 {
29 private: 31 private:
30 OrthancPluginContext* context_; 32 OrthancPluginContext* context_;
31 OrthancPluginImage* image_; 33 OrthancPluginImage* image_;
34 double slope_;
35 double intercept_;
36 double rowPixelSpacing_;
37 double columnPixelSpacing_;
32 38
33 public: 39 public:
34 OrthancImageWrapper(OrthancPluginContext* context, 40 OrthancImageWrapper(OrthancPluginContext* context,
35 OrthancPluginPixelFormat format, 41 OrthancPluginPixelFormat format,
36 uint32_t width, 42 uint32_t width,
37 uint32_t height); 43 uint32_t height);
38 44
39 // Takes the ownership
40 OrthancImageWrapper(OrthancPluginContext* context, 45 OrthancImageWrapper(OrthancPluginContext* context,
41 OrthancPluginImage* image) : 46 GdcmImageDecoder& decoder,
42 context_(context), 47 unsigned int frameIndex);
43 image_(image)
44 {
45 }
46 48
47 ~OrthancImageWrapper(); 49 ~OrthancImageWrapper();
48 50
49 OrthancPluginImage* Release(); 51 OrthancPluginImage* Release();
50 52