Medical Imaging Interaction Toolkit  2023.04.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 {
20 #ifdef _MSC_VER
21 #pragma warning(push)
22 #pragma warning(disable : 4522)
23 #endif
24 
92  {
93  public:
95 
96  itkFactorylessNewMacro(Self);
97 
98  itkCloneMacro(Self);
99 
101 
103 
104  // Never (!) change this without adaptation of mitkLevelWindowManagerTest::VerifyRenderingModes and
105  // mitkLevelWindowManagerTest::TestLevelWindowSliderVisibility !
107  {
108  // 0 used to be LEVELWINDOW_COLOR which is deprecated now and will be mapped to LOOKUPTABLE_LEVELWINDOW_COLOR.
109  // Our default lookup table property is the GRAYSCALE type which represents the
110  // former LEVELWINDOW_COLOR mode.
111  LOOKUPTABLE_LEVELWINDOW_COLOR = 1,
112  COLORTRANSFERFUNCTION_LEVELWINDOW_COLOR = 2,
113  LOOKUPTABLE_COLOR = 3,
114  COLORTRANSFERFUNCTION_COLOR = 4
115  // Default = LOOKUPTABLE_LEVELWINDOW_COLOR;
116  };
117 
121  virtual int GetRenderingMode();
122 
123  using BaseProperty::operator=;
124 
125  protected:
129 
133  RenderingModeProperty(const IdType &value);
134 
138  RenderingModeProperty(const std::string &value);
139 
144  bool AddEnum(const std::string &name, const IdType &id) override;
145 
149  virtual void AddRenderingModes();
150 
151  private:
152  // purposely not implemented
153  RenderingModeProperty &operator=(const RenderingModeProperty &);
154 
155  itk::LightObject::Pointer InternalClone() const override;
156  };
157 
158 #ifdef _MSC_VER
159 #pragma warning(pop)
160 #endif
161 
162 } // end of namespace mitk
163 
164 #endif
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:35
mitk::EnumerationProperty
Definition: mitkEnumerationProperty.h:43
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::EnumerationProperty::IdType
unsigned int IdType
Definition: mitkEnumerationProperty.h:48
mitkEnumerationProperty.h
mitk::RenderingModeProperty::ImageRenderingMode
ImageRenderingMode
Definition: mitkRenderingModeProperty.h:106
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitk::RenderingModeProperty
Definition: mitkRenderingModeProperty.h:91