Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkIsoDoseLevel.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 "mitkIsoDoseLevel.h"
15 
17 m_DoseValue (0.0),
18  m_VisibleIsoLine ( true ),
19  m_VisibleColorWash (true)
20 {
21  m_Color.Fill(0);
22 }
23 
25  : itk::Object()
26 {
27  if (&other != this)
28  {
29  this->m_Color = other.m_Color;
30  this->m_DoseValue = other.m_DoseValue;
31  this->m_VisibleColorWash = other.m_VisibleColorWash;
32  this->m_VisibleIsoLine = other.m_VisibleIsoLine;
33  }
34 }
35 
36 mitk::IsoDoseLevel::IsoDoseLevel(const DoseValueType & value, const ColorType& color, bool visibleIsoLine, bool visibleColorWash):
37  m_DoseValue (value),
38  m_Color (color),
39  m_VisibleIsoLine ( visibleIsoLine ),
40  m_VisibleColorWash ( visibleColorWash )
41 {
42 };
43 
45 {
46 }
47 
49 {
50  bool result = this->m_DoseValue == right.m_DoseValue;
51 
52  result = result && (this->m_Color == right.m_Color);
53  result = result && (this->m_VisibleColorWash == right.m_VisibleColorWash);
54  result = result && (this->m_VisibleIsoLine == right.m_VisibleIsoLine);
55 
56  return result;
57 }
58 
60 {
61  return this->m_DoseValue < right.m_DoseValue;
62 }
63 
65 {
66  return this->m_DoseValue > right.m_DoseValue;
67 }
68 
69 void mitk::IsoDoseLevel::PrintSelf(std::ostream &os, itk::Indent indent) const
70 {
71  Superclass::PrintSelf(os,indent);
72  os<<indent<< "DoseValue: " << m_DoseValue<< std::endl;
73  os<<indent<< "Color: " << m_Color<< std::endl;
74  os<<indent<< "VisibleIsoLine: " << m_VisibleIsoLine<< std::endl;
75  os<<indent<< "VisibleColorWash: " << m_VisibleColorWash<< std::endl;
76 };
bool operator<(const IsoDoseLevel &right) const
bool operator==(const IsoDoseLevel &right) const
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Stores values needed for the representation/visualization of dose iso levels.
::itk::RGBPixel< float > ColorType
DoseValueRel DoseValueType
bool operator>(const IsoDoseLevel &right) const