Medical Imaging Interaction Toolkit  2021.02.99-89548602
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 {
22  {
23  public:
25  ~PropertyFilters() override;
26 
27  bool AddFilter(const PropertyFilter &filter, const std::string &className, bool overwrite) override;
28  std::map<std::string, BaseProperty::Pointer> ApplyFilter(
29  const std::map<std::string, BaseProperty::Pointer> &propertyMap, const std::string &className) const override;
30  PropertyFilter GetFilter(const std::string &className) const override;
31  bool HasFilter(const std::string &className) const override;
32  void RemoveAllFilters() override;
33  void RemoveFilter(const std::string &className) override;
34 
35  private:
37  PropertyFilters &operator=(const PropertyFilters &);
38 
39  std::map<std::string, PropertyFilter> m_Filters;
40  };
41 }
42 
43 #endif
PropertyFilter GetFilter(const std::string &className) const override
Get the current property filter.
DataCollection - Class to facilitate loading/accessing structured data.
void RemoveAllFilters() override
Remove all property filters.
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.
bool HasFilter(const std::string &className) const override
Check if a specific data node class name has a property filter.
bool AddFilter(const PropertyFilter &filter, const std::string &className, bool overwrite) override
Add a property filter.
Interface of property filters service.
~PropertyFilters() override
void RemoveFilter(const std::string &className) override
Remove property filter for a specific data node class name.
Consists of blacklist and whitelist entries.