Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkPropertyFilters_h
18 #define mitkPropertyFilters_h
19 
20 #include <map>
21 #include <mitkIPropertyFilters.h>
22 
23 namespace mitk
24 {
26  {
27  public:
30 
31  bool AddFilter(const PropertyFilter &filter, const std::string &className, bool overwrite) override;
32  std::map<std::string, BaseProperty::Pointer> ApplyFilter(
33  const std::map<std::string, BaseProperty::Pointer> &propertyMap, const std::string &className) const override;
34  PropertyFilter GetFilter(const std::string &className) const override;
35  bool HasFilter(const std::string &className) const override;
36  void RemoveAllFilters() override;
37  void RemoveFilter(const std::string &className) override;
38 
39  private:
41  PropertyFilters &operator=(const PropertyFilters &);
42 
43  std::map<std::string, PropertyFilter> m_Filters;
44  };
45 }
46 
47 #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.
void RemoveFilter(const std::string &className) override
Remove property filter for a specific data node class name.
Consists of blacklist and whitelist entries.