Medical Imaging Interaction Toolkit  2016.11.0
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,
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 #ifndef MITKLEVELWINDOWPROPERTY_H_HEADER_INCLUDED_C10EEAA8
17 #define MITKLEVELWINDOWPROPERTY_H_HEADER_INCLUDED_C10EEAA8
18 
19 #include "mitkBaseProperty.h"
20 #include "mitkLevelWindow.h"
21 
22 namespace mitk
23 {
24 #ifdef _MSC_VER
25 #pragma warning(push)
26 #pragma warning(disable : 4522)
27 #endif
28 
42  {
43  protected:
45 
47 
49 
51 
52  public:
54 
55  itkFactorylessNewMacro(Self) itkCloneMacro(Self) mitkNewMacro1Param(LevelWindowProperty, const mitk::LevelWindow &);
56 
57  typedef LevelWindow ValueType;
58 
59  virtual ~LevelWindowProperty();
60 
61  const mitk::LevelWindow &GetLevelWindow() const;
62  const mitk::LevelWindow &GetValue() const;
63 
64  void SetLevelWindow(const LevelWindow &levWin);
65  void SetValue(const ValueType &levWin);
66 
67  virtual std::string GetValueAsString() const override;
68 
69  using BaseProperty::operator=;
70 
71  private:
72  // purposely not implemented
73  LevelWindowProperty &operator=(const LevelWindowProperty &);
74 
75  itk::LightObject::Pointer InternalClone() const override;
76 
77  virtual bool IsEqual(const BaseProperty &property) const override;
78  virtual bool Assign(const BaseProperty &property) override;
79  };
80 
81 #ifdef _MSC_VER
82 #pragma warning(pop)
83 #endif
84 
85 } // namespace mitk
86 
87 #endif /* MITKLEVELWINDOWPROPERTY_H_HEADER_INCLUDED_C10EEAA8 */
#define MITKCORE_EXPORT
The LevelWindowProperty class Property for the mitk::LevelWindow.
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
STL namespace.
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:44