Medical Imaging Interaction Toolkit  2023.12.99-63768887
Medical Imaging Interaction Toolkit
mitkPropertyFilter.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 mitkPropertyFilter_h
14 #define mitkPropertyFilter_h
15 
16 #include <MitkCoreExports.h>
17 #include <map>
18 #include <mitkBaseProperty.h>
19 #include <string>
20 
21 namespace mitk
22 {
31  {
32  public:
35  enum List
36  {
38  Whitelist
39  };
40 
42  ~PropertyFilter();
43 
44  PropertyFilter(const PropertyFilter &other);
45  PropertyFilter &operator=(PropertyFilter other);
46 
52  void AddEntry(const std::string &propertyName, List list);
53 
59  std::map<std::string, BaseProperty::Pointer> Apply(
60  const std::map<std::string, BaseProperty::Pointer> &propertyMap) const;
61 
68  bool HasEntry(const std::string &propertyName, List list) const;
69 
74  bool IsEmpty() const;
75 
80  void RemoveAllEntries(List list);
81 
87  void RemoveEntry(const std::string &propertyName, List list);
88 
89  private:
90  class Impl;
91  Impl *m_Impl;
92  };
93 }
94 
95 #endif
mitk::PropertyFilter::Blacklist
@ Blacklist
Definition: mitkPropertyFilter.h:37
mitk::PropertyFilter
Consists of blacklist and whitelist entries.
Definition: mitkPropertyFilter.h:30
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkCoreExports.h
mitk::PropertyFilter::List
List
Specifies the type of a filter entry.
Definition: mitkPropertyFilter.h:35
mitkBaseProperty.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15