Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkGroupTagProperty.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 
13 #ifndef mitkGroupTagProperty_h
14 #define mitkGroupTagProperty_h
15 
16 #include <mitkBaseProperty.h>
17 
18 namespace mitk
19 {
20 #ifdef _MSC_VER
21 #pragma warning(push)
22 #pragma warning(disable : 4522)
23 #endif
24 
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
40  bool ToJSON(nlohmann::json& j) const override;
41  bool FromJSON(const nlohmann::json& j) override;
42 
43  using BaseProperty::operator=;
44 
45  protected:
48 
49  private:
50  // purposely not implemented
51  GroupTagProperty &operator=(const GroupTagProperty &);
52 
53  itk::LightObject::Pointer InternalClone() const override;
54 
55  bool IsEqual(const BaseProperty &property) const override;
56  bool Assign(const BaseProperty &property) override;
57  };
58 
59 #ifdef _MSC_VER
60 #pragma warning(pop)
61 #endif
62 
63 } // namespace mitk
64 
65 #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).
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
json
nlohmann::json json
Definition: mitkModelTestFixture.h:29
mitk::ToJSON
MITKCORE_EXPORT void ToJSON(nlohmann::json &j, AffineTransform3D::ConstPointer transform)
Write transform (4x4 matrix) as JSON array with 16 elements.
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::GroupTagProperty
Property class that has no value.
Definition: mitkGroupTagProperty.h:33
mitkBaseProperty.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15