Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkLookupTableProperty.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 MITKLookupTablePROPERTY_H_HEADER_INCLUDED_C10EEAA8
17 #define MITKLookupTablePROPERTY_H_HEADER_INCLUDED_C10EEAA8
18 
19 #include "mitkBaseProperty.h"
20 #include "mitkLookupTable.h"
21 #include <MitkCoreExports.h>
22 
23 namespace mitk
24 {
25 #ifdef _MSC_VER
26 #pragma warning(push)
27 #pragma warning(disable : 4522)
28 #endif
29 
43  {
44  protected:
46 
48 
50 
52 
53  public:
55 
57 
58  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
60 
61  itkGetObjectMacro(LookupTable, LookupTable);
62  ValueType GetValue() const;
63 
64  void SetLookupTable(const mitk::LookupTable::Pointer aLookupTable);
65  void SetValue(const ValueType &);
66 
67  virtual std::string GetValueAsString() const override;
68 
69  using BaseProperty::operator=;
70 
71  private:
72  // purposely not implemented
73  LookupTableProperty &operator=(const LookupTableProperty &);
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 } // namespace mitk
85 
86 #endif /* MITKLookupTablePROPERTY_H_HEADER_INCLUDED_C10EEAA8 */
#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.
The LookupTableProperty class Property to associate mitk::LookupTable to an mitk::DataNode.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
LookupTable::Pointer m_LookupTable
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a ...