Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkLevelWindowProperty.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 #ifndef MITKLEVELWINDOWPROPERTY_H_HEADER_INCLUDED_C10EEAA8
13 #define MITKLEVELWINDOWPROPERTY_H_HEADER_INCLUDED_C10EEAA8
14 
15 #include "mitkBaseProperty.h"
16 #include "mitkLevelWindow.h"
17 
18 namespace mitk
19 {
20 #ifdef _MSC_VER
21 #pragma warning(push)
22 #pragma warning(disable : 4522)
23 #endif
24 
38  {
39  protected:
41 
43 
45 
47 
48  public:
50 
51  itkFactorylessNewMacro(Self) itkCloneMacro(Self) mitkNewMacro1Param(LevelWindowProperty, const mitk::LevelWindow &);
52 
53  typedef LevelWindow ValueType;
54 
55  ~LevelWindowProperty() override;
56 
57  const mitk::LevelWindow &GetLevelWindow() const;
58  const mitk::LevelWindow &GetValue() const;
59 
60  void SetLevelWindow(const LevelWindow &levWin);
61  void SetValue(const ValueType &levWin);
62 
63  std::string GetValueAsString() const override;
64 
65  using BaseProperty::operator=;
66 
67  private:
68  // purposely not implemented
69  LevelWindowProperty &operator=(const LevelWindowProperty &);
70 
71  itk::LightObject::Pointer InternalClone() const override;
72 
73  bool IsEqual(const BaseProperty &property) const override;
74  bool Assign(const BaseProperty &property) override;
75  };
76 
77 #ifdef _MSC_VER
78 #pragma warning(pop)
79 #endif
80 
81 } // namespace mitk
82 
83 #endif /* MITKLEVELWINDOWPROPERTY_H_HEADER_INCLUDED_C10EEAA8 */
#define MITKCORE_EXPORT
The LevelWindowProperty class Property for the mitk::LevelWindow.
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
DataCollection - Class to facilitate loading/accessing structured data.
The LevelWindow class Class to store level/window values.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40