Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIsoLevelsGenerator.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #include "mitkIsoLevelsGenerator.h"
19 
21 {
23 
25  color[0] = 0.0;
26  color[1] = 0.0;
27  color[2] = 0.4;
28  mitk::IsoDoseLevel::Pointer level = mitk::IsoDoseLevel::New(0.01,color,true,true);
29  levelSet->SetIsoDoseLevel(level);
30 
31  color[0] = 0.0;
32  color[1] = 0.2;
33  color[2] = 0.8;
34  level = mitk::IsoDoseLevel::New(0.1,color,true,true);
35  levelSet->SetIsoDoseLevel(level);
36 
37  color[0] = 0.0;
38  color[1] = 0.4;
39  color[2] = 1.0;
40  level = mitk::IsoDoseLevel::New(0.2,color,true,true);
41  levelSet->SetIsoDoseLevel(level);
42 
43  color[0] = 0.0;
44  color[1] = 0.7;
45  color[2] = 1.0;
46  level = mitk::IsoDoseLevel::New(0.3,color,true,true);
47  levelSet->SetIsoDoseLevel(level);
48 
49  color[0] = 0.0;
50  color[1] = 0.7;
51  color[2] = 0.6;
52  level = mitk::IsoDoseLevel::New(0.4,color,true,true);
53  levelSet->SetIsoDoseLevel(level);
54 
55  color[0] = 0.0;
56  color[1] = 1.0;
57  color[2] = 0.3;
58  level = mitk::IsoDoseLevel::New(0.5,color,true,true);
59  levelSet->SetIsoDoseLevel(level);
60 
61  color[0] = 1.0;
62  color[1] = 1.0;
63  color[2] = 0.6;
64  level = mitk::IsoDoseLevel::New(0.6,color,true,true);
65  levelSet->SetIsoDoseLevel(level);
66 
67  color[0] = 1.0;
68  color[1] = 1.0;
69  color[2] = 0.0;
70  level = mitk::IsoDoseLevel::New(0.7,color,true,true);
71  levelSet->SetIsoDoseLevel(level);
72 
73  color[0] = 1.0;
74  color[1] = 0.8;
75  color[2] = 0.0;
76  level = mitk::IsoDoseLevel::New(0.8,color,true,true);
77  levelSet->SetIsoDoseLevel(level);
78 
79  color[0] = 1.0;
80  color[1] = 0.5;
81  color[2] = 0.0;
82  level = mitk::IsoDoseLevel::New(0.9,color,true,true);
83  levelSet->SetIsoDoseLevel(level);
84 
85  color[0] = 1.0;
86  color[1] = 0.4;
87  color[2] = 0.0;
88  level = mitk::IsoDoseLevel::New(0.95,color,true,true);
89  levelSet->SetIsoDoseLevel(level);
90 
91  color[0] = 1.0;
92  color[1] = 0.2;
93  color[2] = 0.0;
94  level = mitk::IsoDoseLevel::New(1.0,color,true,true);
95  levelSet->SetIsoDoseLevel(level);
96 
97  color[0] = 1.0;
98  color[1] = 0.0;
99  color[2] = 0.3;
100  level = mitk::IsoDoseLevel::New(1.07,color,true,true);
101  levelSet->SetIsoDoseLevel(level);
102 
103  color[0] = 1.0;
104  color[1] = 0.0;
105  color[2] = 0.4;
106  level = mitk::IsoDoseLevel::New(1.1,color,true,true);
107  levelSet->SetIsoDoseLevel(level);
108 
109  color[0] = 1.0;
110  color[1] = 0.4;
111  color[2] = 0.4;
112  level = mitk::IsoDoseLevel::New(1.2,color,true,true);
113  levelSet->SetIsoDoseLevel(level);
114 
115  color[0] = 1.0;
116  color[1] = 0.7;
117  color[2] = 0.7;
118  level = mitk::IsoDoseLevel::New(1.3,color,true,true);
119  levelSet->SetIsoDoseLevel(level);
120 
121  color[0] = 0.8;
122  color[1] = 0.6;
123  color[2] = 0.6;
124  level = mitk::IsoDoseLevel::New(1.4,color,true,true);
125  levelSet->SetIsoDoseLevel(level);
126 
127  color[0] = 0.65;
128  color[1] = 0.4;
129  color[2] = 0.4;
130  level = mitk::IsoDoseLevel::New(1.5,color,true,true);
131  levelSet->SetIsoDoseLevel(level);
132 
133  return levelSet;
134 }
itk::SmartPointer< Self > Pointer
static Pointer New()
::itk::RGBPixel< float > ColorType
IsoDoseLevelSet::Pointer MITKDICOMRT_EXPORT GeneratIsoLevels_Virtuos()
static Pointer New()