Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIPropertyFilters.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 mitkIPropertyFilters_h
18 #define mitkIPropertyFilters_h
19 
20 #include <MitkCoreExports.h>
21 #include <map>
22 #include <mitkBaseProperty.h>
23 #include <mitkServiceInterface.h>
24 #include <string>
25 
26 namespace mitk
27 {
28  class PropertyFilter;
29 
39  {
40  public:
41  virtual ~IPropertyFilters();
42 
50  virtual bool AddFilter(const PropertyFilter &filter, const std::string &className = "", bool overwrite = false) = 0;
51 
58  virtual std::map<std::string, BaseProperty::Pointer> ApplyFilter(
59  const std::map<std::string, BaseProperty::Pointer> &propertyMap, const std::string &className = "") const = 0;
60 
66  virtual PropertyFilter GetFilter(const std::string &className = "") const = 0;
67 
73  virtual bool HasFilter(const std::string &className = "") const = 0;
74 
77  virtual void RemoveAllFilters() = 0;
78 
83  virtual void RemoveFilter(const std::string &className = "") = 0;
84  };
85 }
86 
87 MITK_DECLARE_SERVICE_INTERFACE(mitk::IPropertyFilters, "org.mitk.IPropertyFilters")
88 
89 #endif
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Interface of property filters service.
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")
Consists of blacklist and whitelist entries.