Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkRenderingModeProperty.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 #ifndef mitkRenderingModeProperty_h
14 #define mitkRenderingModeProperty_h
15 
17 
18 namespace mitk
19 {
88  {
89  public:
91 
92  itkFactorylessNewMacro(Self);
93 
94  itkCloneMacro(Self);
95 
97 
99 
107  {
108  LOOKUPTABLE_LEVELWINDOW_COLOR = 1,
109  COLORTRANSFERFUNCTION_LEVELWINDOW_COLOR = 2,
110  LOOKUPTABLE_COLOR = 3,
111  COLORTRANSFERFUNCTION_COLOR = 4
112  };
113 
119  virtual int GetRenderingMode();
120 
121  using BaseProperty::operator=;
122 
123  protected:
127 
132 
136  RenderingModeProperty(const std::string &value);
137 
139 
144  bool AddEnum(const std::string &name, const IdType &id) override;
145 
149  virtual void AddRenderingModes();
150 
152 
153  private:
154  // purposely not implemented
155  RenderingModeProperty &operator=(const RenderingModeProperty &);
156  };
157 
158 
159 } // end of namespace mitk
160 
161 #endif
#define MITKCORE_EXPORT
Property for storing enumeration-like values identified by id and name.
unsigned int IdType
Unsigned integer type used as unique enumeration value identifier.
RenderingModeProperty(const std::string &value)
mitkNewMacro1Param(RenderingModeProperty, const IdType &)
bool AddEnum(const std::string &name, const IdType &id) override
RenderingModeProperty(const IdType &value)
virtual int GetRenderingMode()
Returns the current rendering mode as an integer.
ImageRenderingMode
Enumeration of available image rendering modes.
virtual void AddRenderingModes()
mitkCloneMacro(RenderingModeProperty)
mitkClassMacro(RenderingModeProperty, EnumerationProperty)
mitkNewMacro1Param(RenderingModeProperty, const std::string &)
RenderingModeProperty(const RenderingModeProperty &other)
Find image slices visible on a given plane.