Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIsoDoseLevel.h
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 #ifndef _MITK_DOSE_ISO_LEVEL_H_
19 #define _MITK_DOSE_ISO_LEVEL_H_
20 
21 #include <itkRGBPixel.h>
22 #include <itkObject.h>
23 #include <itkObjectFactory.h>
24 
25 #include "mitkCommon.h"
26 #include "mitkDoseValueType.h"
27 #include "MitkDicomRTExports.h"
28 
29 namespace mitk
30 {
31 
40  class MITKDICOMRT_EXPORT IsoDoseLevel: public itk::Object
41  {
42  public:
43  typedef ::itk::RGBPixel<float> ColorType;
45 
47  itkNewMacro(Self);
48  mitkNewMacro4Param(Self,DoseValueType, ColorType, bool, bool);
49 
52  bool operator> ( const IsoDoseLevel& right ) const;
55  bool operator< ( const IsoDoseLevel& right ) const;
56 
57  bool operator == ( const IsoDoseLevel& right) const;
58 
59  itkSetMacro(DoseValue,DoseValueType);
60  itkGetConstMacro(DoseValue,DoseValueType);
61 
62  itkSetMacro(Color,ColorType);
63  itkGetConstMacro(Color,ColorType);
64 
65  itkSetMacro(VisibleIsoLine,bool);
66  itkGetConstMacro(VisibleIsoLine,bool);
67  itkBooleanMacro(VisibleIsoLine);
68 
69  itkSetMacro(VisibleColorWash,bool);
70  itkGetConstMacro(VisibleColorWash,bool);
71  itkBooleanMacro(VisibleColorWash);
72 
73  protected:
74  IsoDoseLevel();
75  IsoDoseLevel(const IsoDoseLevel & other);
76  IsoDoseLevel(const DoseValueType & value, const ColorType& color, bool visibleIsoLine = true, bool visibleColorWash = true );
77  virtual ~IsoDoseLevel();
78 
80 
81  void PrintSelf(std::ostream &os, itk::Indent indent) const override;
82 
83  private:
86  DoseValueType m_DoseValue;
87 
89  ColorType m_Color;
90 
93  bool m_VisibleIsoLine;
94 
96  bool m_VisibleColorWash;
97 
99  IsoDoseLevel& operator = (const IsoDoseLevel& source);
100  };
101 
102 } // namespace mitk
103 
104 #endif //_MITK_DOSE_ISO_LEVEL_H_
DataCollection - Class to facilitate loading/accessing structured data.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
#define MITKDICOMRT_EXPORT
#define mitkNewMacro4Param(classname, typea, typeb, typec, typed)
Definition: mitkCommon.h:115
Stores values needed for the representation/visualization of dose iso levels.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
::itk::RGBPixel< float > ColorType
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:162
DoseValueRel DoseValueType
double DoseValueRel
Represents relative dose values (in %).