Medical Imaging Interaction Toolkit  2018.4.99-dfa0c14e
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #include "mitkIsoLevelsGenerator.h"
15 
16 mitk::IsoDoseLevelSet::Pointer mitk::GenerateIsoLevels_Virtuos()
17 {
18  mitk::IsoDoseLevelSet::Pointer levelSet = mitk::IsoDoseLevelSet::New();
19 
21  color[0] = 0.0;
22  color[1] = 0.0;
23  color[2] = 0.4;
24  mitk::IsoDoseLevel::Pointer level = mitk::IsoDoseLevel::New(0.01,color,true,true);
25  levelSet->SetIsoDoseLevel(level);
26 
27  color[0] = 0.0;
28  color[1] = 0.2;
29  color[2] = 0.8;
30  level = mitk::IsoDoseLevel::New(0.1,color,true,true);
31  levelSet->SetIsoDoseLevel(level);
32 
33  color[0] = 0.0;
34  color[1] = 0.4;
35  color[2] = 1.0;
36  level = mitk::IsoDoseLevel::New(0.2,color,true,true);
37  levelSet->SetIsoDoseLevel(level);
38 
39  color[0] = 0.0;
40  color[1] = 0.7;
41  color[2] = 1.0;
42  level = mitk::IsoDoseLevel::New(0.3,color,true,true);
43  levelSet->SetIsoDoseLevel(level);
44 
45  color[0] = 0.0;
46  color[1] = 0.7;
47  color[2] = 0.6;
48  level = mitk::IsoDoseLevel::New(0.4,color,true,true);
49  levelSet->SetIsoDoseLevel(level);
50 
51  color[0] = 0.0;
52  color[1] = 1.0;
53  color[2] = 0.3;
54  level = mitk::IsoDoseLevel::New(0.5,color,true,true);
55  levelSet->SetIsoDoseLevel(level);
56 
57  color[0] = 1.0;
58  color[1] = 1.0;
59  color[2] = 0.6;
60  level = mitk::IsoDoseLevel::New(0.6,color,true,true);
61  levelSet->SetIsoDoseLevel(level);
62 
63  color[0] = 1.0;
64  color[1] = 1.0;
65  color[2] = 0.0;
66  level = mitk::IsoDoseLevel::New(0.7,color,true,true);
67  levelSet->SetIsoDoseLevel(level);
68 
69  color[0] = 1.0;
70  color[1] = 0.8;
71  color[2] = 0.0;
72  level = mitk::IsoDoseLevel::New(0.8,color,true,true);
73  levelSet->SetIsoDoseLevel(level);
74 
75  color[0] = 1.0;
76  color[1] = 0.5;
77  color[2] = 0.0;
78  level = mitk::IsoDoseLevel::New(0.9,color,true,true);
79  levelSet->SetIsoDoseLevel(level);
80 
81  color[0] = 1.0;
82  color[1] = 0.4;
83  color[2] = 0.0;
84  level = mitk::IsoDoseLevel::New(0.95,color,true,true);
85  levelSet->SetIsoDoseLevel(level);
86 
87  color[0] = 1.0;
88  color[1] = 0.2;
89  color[2] = 0.0;
90  level = mitk::IsoDoseLevel::New(1.0,color,true,true);
91  levelSet->SetIsoDoseLevel(level);
92 
93  color[0] = 1.0;
94  color[1] = 0.0;
95  color[2] = 0.3;
96  level = mitk::IsoDoseLevel::New(1.07,color,true,true);
97  levelSet->SetIsoDoseLevel(level);
98 
99  color[0] = 1.0;
100  color[1] = 0.0;
101  color[2] = 0.4;
102  level = mitk::IsoDoseLevel::New(1.1,color,true,true);
103  levelSet->SetIsoDoseLevel(level);
104 
105  color[0] = 1.0;
106  color[1] = 0.4;
107  color[2] = 0.4;
108  level = mitk::IsoDoseLevel::New(1.2,color,true,true);
109  levelSet->SetIsoDoseLevel(level);
110 
111  color[0] = 1.0;
112  color[1] = 0.7;
113  color[2] = 0.7;
114  level = mitk::IsoDoseLevel::New(1.3,color,true,true);
115  levelSet->SetIsoDoseLevel(level);
116 
117  color[0] = 0.8;
118  color[1] = 0.6;
119  color[2] = 0.6;
120  level = mitk::IsoDoseLevel::New(1.4,color,true,true);
121  levelSet->SetIsoDoseLevel(level);
122 
123  color[0] = 0.65;
124  color[1] = 0.4;
125  color[2] = 0.4;
126  level = mitk::IsoDoseLevel::New(1.5,color,true,true);
127  levelSet->SetIsoDoseLevel(level);
128 
129  return levelSet;
130 }
static Pointer New()
::itk::RGBPixel< float > ColorType
IsoDoseLevelSet::Pointer MITKRT_EXPORT GenerateIsoLevels_Virtuos()
static Pointer New()