Medical Imaging Interaction Toolkit  2025.12.02
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
#define MITKCORE_EXPORT
Abstract base class for properties.
Property class that has no value.
bool ToJSON(nlohmann::json &j) const override
Serialize property value(s) to JSON.
mitkClassMacro(GroupTagProperty, BaseProperty)
GroupTagProperty(const GroupTagProperty &)
bool FromJSON(const nlohmann::json &j) override
Deserialize property value(s) from JSON.
nlohmann::json json
Find image slices visible on a given plane.