Medical Imaging Interaction Toolkit  2018.4.99-e1268d66
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 (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 MITKLookupTablePROPERTY_H_HEADER_INCLUDED_C10EEAA8
13 #define MITKLookupTablePROPERTY_H_HEADER_INCLUDED_C10EEAA8
14 
15 #include "mitkBaseProperty.h"
16 #include "mitkLookupTable.h"
17 #include <MitkCoreExports.h>
18 
19 namespace mitk
20 {
21 #ifdef _MSC_VER
22 #pragma warning(push)
23 #pragma warning(disable : 4522)
24 #endif
25 
39  {
40  protected:
42 
44 
46 
48 
49  public:
51 
53 
54  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
56 
57  itkGetObjectMacro(LookupTable, LookupTable);
58  ValueType GetValue() const;
59 
60  void SetLookupTable(const mitk::LookupTable::Pointer aLookupTable);
61  void SetValue(const ValueType &);
62 
63  std::string GetValueAsString() const override;
64 
65  using BaseProperty::operator=;
66 
67  private:
68  // purposely not implemented
69  LookupTableProperty &operator=(const LookupTableProperty &);
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 } // namespace mitk
81 
82 #endif /* MITKLookupTablePROPERTY_H_HEADER_INCLUDED_C10EEAA8 */
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
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:40
LookupTable::Pointer m_LookupTable
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a ...