Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::PropertyFilters Class Reference

#include <mitkPropertyFilters.h>

Inheritance diagram for mitk::PropertyFilters:
Collaboration diagram for mitk::PropertyFilters:

Public Member Functions

 PropertyFilters ()
 
 ~PropertyFilters () override
 
bool AddFilter (const PropertyFilter &filter, const std::string &className, bool overwrite) override
 Add a property filter. More...
 
std::map< std::string, BaseProperty::PointerApplyFilter (const std::map< std::string, BaseProperty::Pointer > &propertyMap, const std::string &className) const override
 Apply property filter to property list. More...
 
PropertyFilter GetFilter (const std::string &className) const override
 Get the current property filter. More...
 
bool HasFilter (const std::string &className) const override
 Check if a specific data node class name has a property filter. More...
 
void RemoveAllFilters () override
 Remove all property filters. More...
 
void RemoveFilter (const std::string &className) override
 Remove property filter for a specific data node class name. More...
 
- Public Member Functions inherited from mitk::IPropertyFilters
virtual ~IPropertyFilters ()
 

Detailed Description

Definition at line 21 of file mitkPropertyFilters.h.

Constructor & Destructor Documentation

◆ PropertyFilters()

mitk::PropertyFilters::PropertyFilters ( )

◆ ~PropertyFilters()

mitk::PropertyFilters::~PropertyFilters ( )
override

Member Function Documentation

◆ AddFilter()

bool mitk::PropertyFilters::AddFilter ( const PropertyFilter filter,
const std::string &  className,
bool  overwrite 
)
overridevirtual

Add a property filter.

Parameters
[in]filterThe property filter.
[in]classNameOptional data node class name to which the filter is restricted.
[in]overwriteOverwrite already existing filter.
Returns
True if filter was added auccessfully.

Implements mitk::IPropertyFilters.

◆ ApplyFilter()

std::map<std::string, BaseProperty::Pointer> mitk::PropertyFilters::ApplyFilter ( const std::map< std::string, BaseProperty::Pointer > &  propertyMap,
const std::string &  className 
) const
overridevirtual

Apply property filter to property list.

Parameters
[in]propertyMapProperty list to which the filter is applied.
[in]classNameOptional data node class name for which the filter is chosen.
Returns
Filtered property list.

Implements mitk::IPropertyFilters.

◆ GetFilter()

PropertyFilter mitk::PropertyFilters::GetFilter ( const std::string &  className) const
overridevirtual

Get the current property filter.

Parameters
[in]classNameOptional data node class name for which the filter is returned.
Returns
The current property filter.

Implements mitk::IPropertyFilters.

◆ HasFilter()

bool mitk::PropertyFilters::HasFilter ( const std::string &  className) const
overridevirtual

Check if a specific data node class name has a property filter.

Parameters
[in]classNameThe data node class name or empty string for global property filter.
Returns
True if data node class name has a filter, false otherwise.

Implements mitk::IPropertyFilters.

◆ RemoveAllFilters()

void mitk::PropertyFilters::RemoveAllFilters ( )
overridevirtual

Remove all property filters.

Implements mitk::IPropertyFilters.

◆ RemoveFilter()

void mitk::PropertyFilters::RemoveFilter ( const std::string &  className)
overridevirtual

Remove property filter for a specific data node class name.

Parameters
[in]classNameThe data node class name or empty string for global property filter.

Implements mitk::IPropertyFilters.


The documentation for this class was generated from the following file: