Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPropertyFilters.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 mitkPropertyFilters_h
14 #define mitkPropertyFilters_h
15 
16 #include <map>
17 #include <mitkIPropertyFilters.h>
18 
19 namespace mitk
20 {
30  {
31  public:
33  ~PropertyFilters() override;
34 
36  bool AddFilter(const PropertyFilter &filter, const std::string &className, bool overwrite) override;
38  std::map<std::string, BaseProperty::Pointer> ApplyFilter(
39  const std::map<std::string, BaseProperty::Pointer> &propertyMap, const std::string &className) const override;
41  PropertyFilter GetFilter(const std::string &className) const override;
43  bool HasFilter(const std::string &className) const override;
45  void RemoveAllFilters() override;
47  void RemoveFilter(const std::string &className) override;
48 
49  private:
51  PropertyFilters &operator=(const PropertyFilters &);
52 
53  std::map<std::string, PropertyFilter> m_Filters;
54  };
55 }
56 
57 #endif
Interface of property filters service.
Consists of blacklist and whitelist entries.
Implementation of the IPropertyFilters service interface.
bool AddFilter(const PropertyFilter &filter, const std::string &className, bool overwrite) override
Add a property filter.
bool HasFilter(const std::string &className) const override
Check if a specific data node class name has a property filter.
PropertyFilter GetFilter(const std::string &className) const override
Get the current property filter.
void RemoveFilter(const std::string &className) override
Remove property filter for a specific data node class name.
std::map< std::string, BaseProperty::Pointer > ApplyFilter(const std::map< std::string, BaseProperty::Pointer > &propertyMap, const std::string &className) const override
Apply property filter to property list.
void RemoveAllFilters() override
Remove all property filters.
~PropertyFilters() override
Find image slices visible on a given plane.