Medical Imaging Interaction Toolkit  2026.06.00
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 {
31  {
32  public:
34  itkFactorylessNewMacro(Self);
35  itkCloneMacro(Self);
36 
45  bool ToJSON(nlohmann::json& j) const override;
46 
55  bool FromJSON(const nlohmann::json& j) override;
56 
57  using BaseProperty::operator=;
58 
59  protected:
62 
64 
65  private:
66  // purposely not implemented
67  GroupTagProperty &operator=(const GroupTagProperty &);
68 
69  bool IsEqual(const BaseProperty &property) const override;
70  bool Assign(const BaseProperty &property) override;
71  };
72 
73 
74 } // namespace mitk
75 
76 #endif
#define MITKCORE_EXPORT
Abstract base class for properties.
Property class that carries no value, used as a tag for group membership.
mitkCloneMacro(GroupTagProperty)
bool ToJSON(nlohmann::json &j) const override
Serialize the group tag to JSON.
mitkClassMacro(GroupTagProperty, BaseProperty)
GroupTagProperty(const GroupTagProperty &)
bool FromJSON(const nlohmann::json &j) override
Deserialize the group tag from JSON.
nlohmann::json json
Find image slices visible on a given plane.