Medical Imaging Interaction Toolkit  2023.04.00
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
13 #define mitkLookupTableProperty_h
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
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:35
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
itk::SmartPointer< Self >
mitk::LookupTable
The LookupTable class mitk wrapper for a vtkLookupTable.
Definition: mitkLookupTable.h:42
mitk::LookupTableProperty::m_LookupTable
LookupTable::Pointer m_LookupTable
Definition: mitkLookupTableProperty.h:41
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitkLookupTable.h
MitkCoreExports.h
mitk::LookupTableProperty::ValueType
LookupTable::Pointer ValueType
Definition: mitkLookupTableProperty.h:50
mitk::LookupTableProperty
The LookupTableProperty class Property to associate mitk::LookupTable to an mitk::DataNode.
Definition: mitkLookupTableProperty.h:38
itk
SET FUNCTIONS.
Definition: itkIntelligentBinaryClosingFilter.h:30
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitkBaseProperty.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15