Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _MITK_RENDERING_MODE_PROPERTY__H_
18 #define _MITK_RENDERING_MODE_PROPERTY__H_
19 
21 
22 namespace mitk
23 {
24 #ifdef _MSC_VER
25 #pragma warning(push)
26 #pragma warning(disable : 4522)
27 #endif
28 
96  {
97  public:
99 
100  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
101 
103 
104  mitkNewMacro1Param(RenderingModeProperty, const std::string &);
105 
106  // Never (!) change this without adaptation of mitkLevelWindowManagerTest::VerifyRenderingModes and
107  // mitkLevelWindowManagerTest::TestLevelWindowSliderVisibility !
109  {
110  // 0 used to be LEVELWINDOW_COLOR which is deprecated now and will be mapped to LOOKUPTABLE_LEVELWINDOW_COLOR.
111  // Our default lookup table property is the GRAYSCALE type which represents the
112  // former LEVELWINDOW_COLOR mode.
113  LOOKUPTABLE_LEVELWINDOW_COLOR = 1,
114  COLORTRANSFERFUNCTION_LEVELWINDOW_COLOR = 2,
115  LOOKUPTABLE_COLOR = 3,
116  COLORTRANSFERFUNCTION_COLOR = 4
117  // Default = LOOKUPTABLE_LEVELWINDOW_COLOR;
118  };
119 
123  virtual int GetRenderingMode();
124 
125  using BaseProperty::operator=;
126 
127  protected:
131 
135  RenderingModeProperty(const IdType &value);
136 
140  RenderingModeProperty(const std::string &value);
141 
146  virtual bool AddEnum(const std::string &name, const IdType &id) override;
147 
151  virtual void AddRenderingModes();
152 
153  private:
154  // purposely not implemented
155  RenderingModeProperty &operator=(const RenderingModeProperty &);
156 
157  virtual itk::LightObject::Pointer InternalClone() const override;
158  };
159 
160 #ifdef _MSC_VER
161 #pragma warning(pop)
162 #endif
163 
164 } // end of namespace mitk
165 
166 #endif
itk::SmartPointer< Self > Pointer
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44