Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
mitkIPropertyFilters.h
mitk::IPropertyFilters
Interface of property filters service.
Definition: mitkIPropertyFilters.h:34
mitk::PropertyFilters::RemoveFilter
void RemoveFilter(const std::string &className) override
Remove property filter for a specific data node class name.
mitk::PropertyFilters::HasFilter
bool HasFilter(const std::string &className) const override
Check if a specific data node class name has a property filter.
mitk::PropertyFilters::PropertyFilters
PropertyFilters()
mitk::PropertyFilters
Definition: mitkPropertyFilters.h:21
mitk::PropertyFilters::RemoveAllFilters
void RemoveAllFilters() override
Remove all property filters.
mitk::PropertyFilters::AddFilter
bool AddFilter(const PropertyFilter &filter, const std::string &className, bool overwrite) override
Add a property filter.
mitk::PropertyFilters::~PropertyFilters
~PropertyFilters() override
mitk::PropertyFilter
Consists of blacklist and whitelist entries.
Definition: mitkPropertyFilter.h:30
mitk::PropertyFilters::GetFilter
PropertyFilter GetFilter(const std::string &className) const override
Get the current property filter.
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PropertyFilters::ApplyFilter
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.