Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPropertyExtensions.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 mitkPropertyExtensions_h
14 #define mitkPropertyExtensions_h
15 
16 #include <map>
18 
19 namespace mitk
20 {
29  {
30  public:
32  ~PropertyExtensions() override;
33 
35  bool AddExtension(const std::string &propertyName,
36  PropertyExtension::Pointer extension,
37  const std::string &className,
38  bool overwrite) override;
40  PropertyExtension::Pointer GetExtension(const std::string &propertyName, const std::string &className) override;
42  bool HasExtension(const std::string &propertyName, const std::string &className) override;
44  void RemoveAllExtensions(const std::string &className) override;
46  void RemoveExtension(const std::string &propertyName, const std::string &className) override;
47 
48  private:
49  typedef std::map<std::string, PropertyExtension::Pointer> ExtensionMap;
50  typedef ExtensionMap::const_iterator ExtensionMapConstIterator;
51  typedef ExtensionMap::iterator ExtensionMapIterator;
52 
54  PropertyExtensions &operator=(const PropertyExtensions &);
55 
56  std::map<std::string, ExtensionMap> m_Extensions;
57  };
58 }
59 
60 #endif
Interface of property extensions service.
Implementation of the IPropertyExtensions service interface.
~PropertyExtensions() override
bool AddExtension(const std::string &propertyName, PropertyExtension::Pointer extension, const std::string &className, bool overwrite) override
Add an extension to a specific property.
PropertyExtension::Pointer GetExtension(const std::string &propertyName, const std::string &className) override
Get the extension of a specific property.
bool HasExtension(const std::string &propertyName, const std::string &className) override
Check if a specific property has an extension.
void RemoveExtension(const std::string &propertyName, const std::string &className) override
Remove extension of a specific property.
void RemoveAllExtensions(const std::string &className) override
Remove all property extensions.
Find image slices visible on a given plane.