Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Consists of blacklist and whitelist entries. More...
#include <mitkPropertyFilter.h>
Public Types | |
enum | List { Blacklist, Whitelist } |
Specifies the type of a filter entry. More... | |
Public Member Functions | |
PropertyFilter () | |
~PropertyFilter () | |
PropertyFilter (const PropertyFilter &other) | |
PropertyFilter & | operator= (PropertyFilter other) |
void | AddEntry (const std::string &propertyName, List list) |
Add a filter entry for a specific property. More... | |
std::map< std::string, BaseProperty::Pointer > | Apply (const std::map< std::string, BaseProperty::Pointer > &propertyMap) const |
Apply the filter to a property list. More... | |
bool | HasEntry (const std::string &propertyName, List list) const |
Check if filter has specific entry. More... | |
bool | IsEmpty () const |
Check if filter is empty. More... | |
void | RemoveAllEntries (List list) |
Remove all entries from property filter. More... | |
void | RemoveEntry (const std::string &propertyName, List list) |
Remove specific entry from property filter. More... | |
Consists of blacklist and whitelist entries.
Blacklist filtering is less restrictive than whitelist filtering since you can filter out individual property names. If whitelist entries were added, all other property names are filtered out. In addition, whitelist entries are reduced by blacklist entries.
Definition at line 34 of file mitkPropertyFilter.h.
Specifies the type of a filter entry.
Enumerator | |
---|---|
Blacklist |
Blacklisted filter entries are filtered out. |
Whitelist |
Whitelisted filter entries are the only entries that remain after filtering. |
Definition at line 39 of file mitkPropertyFilter.h.
mitk::PropertyFilter::PropertyFilter | ( | ) |
Definition at line 125 of file mitkPropertyFilter.cpp.
mitk::PropertyFilter::~PropertyFilter | ( | ) |
Definition at line 129 of file mitkPropertyFilter.cpp.
References mitk::m_Impl.
mitk::PropertyFilter::PropertyFilter | ( | const PropertyFilter & | other | ) |
Definition at line 134 of file mitkPropertyFilter.cpp.
void mitk::PropertyFilter::AddEntry | ( | const std::string & | propertyName, |
List | list | ||
) |
Add a filter entry for a specific property.
[in] | propertyName | Name of the property. |
[in] | list | Type of the filter entry. |
Definition at line 144 of file mitkPropertyFilter.cpp.
References mitk::m_Impl.
Referenced by mitkPropertyFiltersTest(), and mitk::MultilabelObjectFactory::SetDefaultProperties().
std::map< std::string, mitk::BaseProperty::Pointer > mitk::PropertyFilter::Apply | ( | const std::map< std::string, BaseProperty::Pointer > & | propertyMap | ) | const |
Apply the filter to a property list.
[in] | propertyMap | Property list to which the filter is applied. |
Definition at line 150 of file mitkPropertyFilter.cpp.
References mitk::m_Impl.
Referenced by mitk::PropertyFilters::ApplyFilter().
bool mitk::PropertyFilter::HasEntry | ( | const std::string & | propertyName, |
List | list | ||
) | const |
Check if filter has specific entry.
[in] | propertyName | Name of the property. |
[in] | list | Type of the filter entry. |
Definition at line 156 of file mitkPropertyFilter.cpp.
References mitk::m_Impl.
bool mitk::PropertyFilter::IsEmpty | ( | ) | const |
Check if filter is empty.
Definition at line 161 of file mitkPropertyFilter.cpp.
References mitk::m_Impl.
Referenced by mitk::PropertyFilters::AddFilter(), and mitk::PropertyFilters::ApplyFilter().
mitk::PropertyFilter & mitk::PropertyFilter::operator= | ( | mitk::PropertyFilter | other | ) |
Definition at line 138 of file mitkPropertyFilter.cpp.
References mitk::m_Impl, and swap().
void mitk::PropertyFilter::RemoveAllEntries | ( | List | list | ) |
Remove all entries from property filter.
[in] | list | Filter list from which all entries are removed. |
Definition at line 166 of file mitkPropertyFilter.cpp.
References mitk::m_Impl.
void mitk::PropertyFilter::RemoveEntry | ( | const std::string & | propertyName, |
List | list | ||
) |
Remove specific entry from property filter.
[in] | propertyName | Name of property. |
[in] | list | Filter list from which the entry is removed. |
Definition at line 171 of file mitkPropertyFilter.cpp.
References mitk::m_Impl.