Medical Imaging Interaction Toolkit  2018.4.99-701c8286
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 (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 #ifndef _MITK_DOSE_ISO_LEVEL_H_
15 #define _MITK_DOSE_ISO_LEVEL_H_
16 
17 #include <itkRGBPixel.h>
18 #include <itkObject.h>
19 #include <itkObjectFactory.h>
20 
21 #include "mitkCommon.h"
22 #include "mitkDoseValueType.h"
23 #include "MitkRTExports.h"
24 
25 namespace mitk
26 {
27 
36  class MITKRT_EXPORT IsoDoseLevel: public itk::Object
37  {
38  public:
39  typedef ::itk::RGBPixel<float> ColorType;
41 
43  itkNewMacro(Self);
44  mitkNewMacro4Param(Self,DoseValueType, ColorType, bool, bool);
45 
48  bool operator> ( const IsoDoseLevel& right ) const;
51  bool operator< ( const IsoDoseLevel& right ) const;
52 
53  bool operator == ( const IsoDoseLevel& right) const;
54 
55  itkSetMacro(DoseValue,DoseValueType);
56  itkGetConstMacro(DoseValue,DoseValueType);
57 
58  itkSetMacro(Color,ColorType);
59  itkGetConstMacro(Color,ColorType);
60 
61  itkSetMacro(VisibleIsoLine,bool);
62  itkGetConstMacro(VisibleIsoLine,bool);
63  itkBooleanMacro(VisibleIsoLine);
64 
65  itkSetMacro(VisibleColorWash,bool);
66  itkGetConstMacro(VisibleColorWash,bool);
67  itkBooleanMacro(VisibleColorWash);
68 
69  protected:
70  IsoDoseLevel();
71  IsoDoseLevel(const IsoDoseLevel & other);
72  IsoDoseLevel(const DoseValueType & value, const ColorType& color, bool visibleIsoLine = true, bool visibleColorWash = true );
73  ~IsoDoseLevel() override;
74 
76 
77  void PrintSelf(std::ostream &os, itk::Indent indent) const override;
78 
79  private:
82  DoseValueType m_DoseValue;
83 
85  ColorType m_Color;
86 
89  bool m_VisibleIsoLine;
90 
92  bool m_VisibleColorWash;
93 
95  IsoDoseLevel& operator = (const IsoDoseLevel& source);
96  };
97 
98 } // namespace mitk
99 
100 #endif //_MITK_DOSE_ISO_LEVEL_H_
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
bool operator>(const mitk::WeakPointer< T > &left, const mitk::WeakPointer< T > &right) noexcept
bool operator<(const StaticParameterMap::ValueType &a, const StaticParameterMap::ValueType &b)
Compares two var lists and returns true if the first list&#39;s first item is lower than the second one&#39;s...
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro4Param(classname, typea, typeb, typec, typed)
Definition: mitkCommon.h:111
Stores values needed for the representation/visualization of dose iso levels.
#define MITKRT_EXPORT
Definition: MitkRTExports.h:15
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
::itk::RGBPixel< float > ColorType
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:158
DoseValueRel DoseValueType
double DoseValueRel
Represents relative dose values (in %).