Mercurial > hg > orthanc-stone
annotate Framework/Deprecated/Layers/RenderStyle.h @ 1302:d6d56df61715 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 18:30:04 +0100 |
parents | 2d8ab34c8c91 |
children |
rev | line source |
---|---|
0 | 1 /** |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
1270
2d8ab34c8c91
upgrade to year 2020
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
734
diff
changeset
|
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium |
0 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
47 | 8 * modify it under the terms of the GNU Affero General Public License |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
0 | 11 * |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
47 | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
0 | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | |
20 | |
21 | |
22 #pragma once | |
23 | |
732
c35e98d22764
move Deprecated classes to a separate folder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
726
diff
changeset
|
24 #include "../../StoneEnumerations.h" |
734
be3671662eec
moved FitWindowingToRange() from ImageBuffer3D to RenderStyle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
732
diff
changeset
|
25 #include "../../Volumes/ImageBuffer3D.h" |
be3671662eec
moved FitWindowingToRange() from ImageBuffer3D to RenderStyle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
732
diff
changeset
|
26 #include "../Toolbox/DicomFrameConverter.h" |
0 | 27 |
28 #include <EmbeddedResources.h> | |
29 | |
30 #include <stdint.h> | |
31 | |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
439
diff
changeset
|
32 namespace Deprecated |
0 | 33 { |
34 struct RenderStyle | |
35 { | |
36 bool visible_; | |
37 bool reverse_; | |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
439
diff
changeset
|
38 OrthancStone::ImageWindowing windowing_; |
0 | 39 float alpha_; // In [0,1] |
40 bool applyLut_; | |
41 Orthanc::EmbeddedResources::FileResourceId lut_; | |
42 bool drawGrid_; | |
43 uint8_t drawColor_[3]; | |
44 float customWindowCenter_; | |
45 float customWindowWidth_; | |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
439
diff
changeset
|
46 OrthancStone::ImageInterpolation interpolation_; |
0 | 47 unsigned int fontSize_; |
48 | |
49 RenderStyle(); | |
50 | |
51 void ComputeWindowing(float& targetCenter, | |
52 float& targetWidth, | |
53 float defaultCenter, | |
54 float defaultWidth) const; | |
55 | |
56 void SetColor(uint8_t red, | |
57 uint8_t green, | |
58 uint8_t blue); | |
734
be3671662eec
moved FitWindowingToRange() from ImageBuffer3D to RenderStyle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
732
diff
changeset
|
59 |
be3671662eec
moved FitWindowingToRange() from ImageBuffer3D to RenderStyle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
732
diff
changeset
|
60 bool FitRange(const OrthancStone::ImageBuffer3D& image, |
be3671662eec
moved FitWindowingToRange() from ImageBuffer3D to RenderStyle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
732
diff
changeset
|
61 const DicomFrameConverter& converter); |
0 | 62 }; |
63 } |