Medical Imaging Interaction Toolkit  2024.06.00
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 mitkIsoDoseLevel_h
15 #define mitkIsoDoseLevel_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::IsoDoseLevel::DoseValueType
DoseValueRel DoseValueType
Definition: mitkIsoDoseLevel.h:40
mitk::DoseValueRel
double DoseValueRel
Represents relative dose values (in %).
Definition: mitkDoseValueType.h:28
mitk::modelFit::operator<
bool operator<(const StaticParameterMap::ValueType &a, const StaticParameterMap::ValueType &b)
Compares two var lists and returns true if the first list's first item is lower than the second one's...
Definition: mitkModelFitStaticParameterMap.h:139
mitk::Color
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Definition: mitkColorProperty.h:38
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MITKRT_EXPORT
#define MITKRT_EXPORT
Definition: MitkRTExports.h:15
mitk::IsoDoseLevel::ColorType
::itk::RGBPixel< float > ColorType
Definition: mitkIsoDoseLevel.h:39
mitkDoseValueType.h
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
operator>
bool operator>(const mitk::WeakPointer< T > &left, const mitk::WeakPointer< T > &right) noexcept
Definition: mitkWeakPointer.h:240
mitkCommon.h
mitkCloneMacro
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:154
mitk::IsoDoseLevel
Stores values needed for the representation/visualization of dose iso levels.
Definition: mitkIsoDoseLevel.h:36
mitkNewMacro4Param
#define mitkNewMacro4Param(classname, typea, typeb, typec, typed)
Definition: mitkCommon.h:107
MitkRTExports.h