Mercurial > hg > orthanc
annotate Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h @ 2154:5d8e6fab98dd
increased timeout for buildbot
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Nov 2016 12:34:15 +0100 |
parents | b1291df2f780 |
children | a3a65de1840f |
rev | line source |
---|---|
1834 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
1900 | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
1834 | 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 } |