comparison Plugins/Engine/OrthancPlugins.h @ 1826:ac5b0b4e2434

refactoring of DicomImageDecoder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Nov 2015 16:00:57 +0100
parents 580951a33583
children 4b6673e828f4
comparison
equal deleted inserted replaced
1825:f0f8a94c0858 1826:ac5b0b4e2434
48 #else 48 #else
49 49
50 #include "../../Core/FileStorage/IStorageArea.h" 50 #include "../../Core/FileStorage/IStorageArea.h"
51 #include "../../Core/HttpServer/IHttpHandler.h" 51 #include "../../Core/HttpServer/IHttpHandler.h"
52 #include "../../OrthancServer/IServerListener.h" 52 #include "../../OrthancServer/IServerListener.h"
53 #include "../../OrthancServer/IDicomImageDecoder.h"
53 #include "../../OrthancServer/DicomProtocol/IWorklistRequestHandlerFactory.h" 54 #include "../../OrthancServer/DicomProtocol/IWorklistRequestHandlerFactory.h"
54 #include "OrthancPluginDatabase.h" 55 #include "OrthancPluginDatabase.h"
55 #include "PluginsManager.h" 56 #include "PluginsManager.h"
56 57
57 #include <list> 58 #include <list>
63 64
64 class OrthancPlugins : 65 class OrthancPlugins :
65 public IHttpHandler, 66 public IHttpHandler,
66 public IPluginServiceProvider, 67 public IPluginServiceProvider,
67 public IServerListener, 68 public IServerListener,
68 public IWorklistRequestHandlerFactory 69 public IWorklistRequestHandlerFactory,
70 public IDicomImageDecoder
69 { 71 {
70 private: 72 private:
71 struct PImpl; 73 struct PImpl;
72 boost::shared_ptr<PImpl> pimpl_; 74 boost::shared_ptr<PImpl> pimpl_;
73 75
81 void RegisterOnStoredInstanceCallback(const void* parameters); 83 void RegisterOnStoredInstanceCallback(const void* parameters);
82 84
83 void RegisterOnChangeCallback(const void* parameters); 85 void RegisterOnChangeCallback(const void* parameters);
84 86
85 void RegisterWorklistCallback(const void* parameters); 87 void RegisterWorklistCallback(const void* parameters);
88
89 void RegisterDecodeImageCallback(const void* parameters);
86 90
87 void AnswerBuffer(const void* parameters); 91 void AnswerBuffer(const void* parameters);
88 92
89 void Redirect(const void* parameters); 93 void Redirect(const void* parameters);
90 94
215 } 219 }
216 220
217 bool HasWorklistHandler(); 221 bool HasWorklistHandler();
218 222
219 virtual IWorklistRequestHandler* ConstructWorklistRequestHandler(); 223 virtual IWorklistRequestHandler* ConstructWorklistRequestHandler();
224
225 virtual ImageAccessor* Decode(ParsedDicomFile& dicom,
226 unsigned int frame);
220 }; 227 };
221 } 228 }
222 229
223 #endif 230 #endif