Medical Imaging Interaction Toolkit  2018.4.99-c7ee88da
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);
55 
56  itkCloneMacro(Self)
58 
59  itkGetObjectMacro(LookupTable, LookupTable);
60  ValueType GetValue() const;
61 
62  void SetLookupTable(const mitk::LookupTable::Pointer aLookupTable);
63  void SetValue(const ValueType &);
64 
65  std::string GetValueAsString() const override;
66 
67  using BaseProperty::operator=;
68 
69  private:
70  // purposely not implemented
71  LookupTableProperty &operator=(const LookupTableProperty &);
72 
73  itk::LightObject::Pointer InternalClone() const override;
74 
75  bool IsEqual(const BaseProperty &property) const override;
76  bool Assign(const BaseProperty &property) override;
77  };
78 
79 #ifdef _MSC_VER
80 #pragma warning(pop)
81 #endif
82 } // namespace mitk
83 
84 #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 ...