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