Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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  bool ToJSON(nlohmann::json& j) const override;
68  bool FromJSON(const nlohmann::json& j) override;
69 
70  using BaseProperty::operator=;
71 
72  private:
73  // purposely not implemented
74  LookupTableProperty &operator=(const LookupTableProperty &);
75 
76  itk::LightObject::Pointer InternalClone() const override;
77 
78  bool IsEqual(const BaseProperty &property) const override;
79  bool Assign(const BaseProperty &property) override;
80  };
81 
82 #ifdef _MSC_VER
83 #pragma warning(pop)
84 #endif
85 } // namespace mitk
86 
87 #endif
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitk::FromJSON
MITKCORE_EXPORT void FromJSON(const nlohmann::json &j, AffineTransform3D::Pointer transform)
Read transform from JSON array (16 elements, resp. 4x4 matrix).
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
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkLookupTable.h
json
nlohmann::json json
Definition: mitkModelTestFixture.h:29
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
mitk::ToJSON
MITKCORE_EXPORT void ToJSON(nlohmann::json &j, AffineTransform3D::ConstPointer transform)
Write transform (4x4 matrix) as JSON array with 16 elements.
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