Medical Imaging Interaction Toolkit  2018.4.99-b5518f0d
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 _MITK_RENDERING_MODE_PROPERTY__H_
14 #define _MITK_RENDERING_MODE_PROPERTY__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
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40