open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Static Public Member Functions | List of all members
iAFilterRegistry Class Reference

Registry for image filters. More...

#include <iAFilterRegistry.h>

Static Public Member Functions

static void addFilterFactory (QSharedPointer< iAIFilterFactory > factory)
 Adds a given filter factory to the registry, which will be run with the default GUI runner. More...
 
static QSharedPointer< iAFilterfilter (QString const &name)
 Retrieve the filter with the given name. More...
 
static QVector< QSharedPointer< iAIFilterFactory > > const & filterFactories ()
 Retrieve a list of all currently registered filter (factories) More...
 
static int filterID (QString const &name)
 Retrieve the ID of the filter with the given name If there is no such filter, -1 is returned. More...
 

Detailed Description

Registry for image filters.

Use REGISTER_FILTER and REGISTER_FILTER_WITH_RUNNER macros add a filter to the list of filters in this class. All filters registered with these macros will be added to the Filter menu (in a submenu according to their Category(), the menu entry will have the filter name; the menu entry will be disabled until a dataset is loaded. When a dataset is loaded, clicking the menu entry will result in execution of the filter with the currently active window as input. The class is meant to be used statically (Follows the singleton pattern), the creation of objects of this class is thus prohibited.

Member Function Documentation

◆ addFilterFactory()

void iAFilterRegistry::addFilterFactory ( QSharedPointer< iAIFilterFactory factory)
static

Adds a given filter factory to the registry, which will be run with the default GUI runner.

REGISTER_FILTER provide simplified access to this method.

◆ filter()

QSharedPointer< iAFilter > iAFilterRegistry::filter ( QString const &  name)
static

Retrieve the filter with the given name.

If there is no such filter, a "null" shared pointer is returned

◆ filterFactories()

QVector< QSharedPointer< iAIFilterFactory > > const & iAFilterRegistry::filterFactories ( )
static

Retrieve a list of all currently registered filter (factories)

◆ filterID()

int iAFilterRegistry::filterID ( QString const &  name)
static

Retrieve the ID of the filter with the given name If there is no such filter, -1 is returned.


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