Medical Imaging Interaction Toolkit  2026.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 
40  class MITKRT_EXPORT IsoDoseLevel: public itk::Object
41  {
42  public:
44  typedef ::itk::RGBPixel<float> ColorType;
45 
48 
50  itkNewMacro(Self);
52 
58  bool operator> ( const IsoDoseLevel& right ) const;
59 
65  bool operator< ( const IsoDoseLevel& right ) const;
66 
72  bool operator == ( const IsoDoseLevel& right) const;
73 
75  itkSetMacro(DoseValue,DoseValueType);
77  itkGetConstMacro(DoseValue,DoseValueType);
78 
80  itkSetMacro(Color,ColorType);
82  itkGetConstMacro(Color,ColorType);
83 
85  itkSetMacro(VisibleIsoLine,bool);
87  itkGetConstMacro(VisibleIsoLine,bool);
89  itkBooleanMacro(VisibleIsoLine);
90 
92  itkSetMacro(VisibleColorWash,bool);
94  itkGetConstMacro(VisibleColorWash,bool);
96  itkBooleanMacro(VisibleColorWash);
97 
98  protected:
100  IsoDoseLevel(const IsoDoseLevel & other);
101  IsoDoseLevel(const DoseValueType & value, const ColorType& color, bool visibleIsoLine = true, bool visibleColorWash = true );
102  ~IsoDoseLevel() override;
103 
105 
106  void PrintSelf(std::ostream &os, itk::Indent indent) const override;
107 
108  private:
111  DoseValueType m_DoseValue;
112 
114  ColorType m_Color;
115 
118  bool m_VisibleIsoLine;
119 
121  bool m_VisibleColorWash;
122 
124  IsoDoseLevel& operator = (const IsoDoseLevel& source);
125  };
126 
127 } // namespace mitk
128 
129 #endif
#define MITKRT_EXPORT
Definition: MitkRTExports.h:15
Stores values needed for the representation/visualization of dose iso levels.
DoseValueRel DoseValueType
Type for the relative dose value of this iso level.
mitkCloneMacro(IsoDoseLevel)
IsoDoseLevel(const IsoDoseLevel &other)
mitkClassMacroItkParent(IsoDoseLevel, itk::Object)
::itk::RGBPixel< float > ColorType
RGB color type using float components in [0,1].
IsoDoseLevel(const DoseValueType &value, const ColorType &color, bool visibleIsoLine=true, bool visibleColorWash=true)
~IsoDoseLevel() override
void PrintSelf(std::ostream &os, itk::Indent indent) const override
mitkNewMacro4Param(Self, DoseValueType, ColorType, bool, bool)
bool operator<(const StaticParameterMap::ValueType &a, const StaticParameterMap::ValueType &b)
Compares two value lists by their first element.
Find image slices visible on a given plane.
itk::RGBPixel< float > Color
Standard RGB color typedef using float components.
double DoseValueRel
Represents relative dose values as a fraction (e.g. 0.95 = 95%).
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)