Mercurial > hg > orthanc
annotate Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h @ 1849:6394a2f8f1e1
test main dicom tags at series level
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 01 Dec 2015 13:41:48 +0100 |
parents | 859224214616 |
children | b1291df2f780 |
rev | line source |
---|---|
1834 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
5 * | |
6 * This program is free software: you can redistribute it and/or | |
7 * modify it under the terms of the GNU General Public License as | |
8 * published by the Free Software Foundation, either version 3 of the | |
9 * License, or (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, but | |
12 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 * General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 **/ | |
19 | |
20 | |
21 #pragma once | |
22 | |
23 #include <orthanc/OrthancCPlugin.h> | |
24 | |
1836 | 25 #include "GdcmImageDecoder.h" |
26 | |
1834 | 27 namespace OrthancPlugins |
28 { | |
29 class OrthancImageWrapper | |
30 { | |
31 private: | |
32 OrthancPluginContext* context_; | |
33 OrthancPluginImage* image_; | |
34 | |
35 public: | |
36 OrthancImageWrapper(OrthancPluginContext* context, | |
37 OrthancPluginPixelFormat format, | |
38 uint32_t width, | |
39 uint32_t height); | |
40 | |
41 OrthancImageWrapper(OrthancPluginContext* context, | |
1840
859224214616
simplification of the sample plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1839
diff
changeset
|
42 OrthancPluginImage* image); // Takes ownership |
1834 | 43 |
44 ~OrthancImageWrapper(); | |
45 | |
1839
7f68b04c79e8
getter for context
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1838
diff
changeset
|
46 OrthancPluginContext* GetContext() |
7f68b04c79e8
getter for context
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1838
diff
changeset
|
47 { |
7f68b04c79e8
getter for context
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1838
diff
changeset
|
48 return context_; |
7f68b04c79e8
getter for context
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1838
diff
changeset
|
49 } |
7f68b04c79e8
getter for context
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1838
diff
changeset
|
50 |
1834 | 51 OrthancPluginImage* Release(); |
52 | |
53 uint32_t GetWidth(); | |
54 | |
55 uint32_t GetHeight(); | |
56 | |
57 uint32_t GetPitch(); | |
58 | |
59 OrthancPluginPixelFormat GetFormat(); | |
60 | |
61 char* GetBuffer(); | |
62 }; | |
63 } |