![]() |
anatomist
5.0.5
3D neuroimaging data viewer
|
Handles creation of various fusion objects. More...
#include <anatomist/fusion/fusionFactory.h>
Public Member Functions | |
FusionFactory () | |
virtual | ~FusionFactory () |
virtual FusionMethod * | chooseMethod (const std::set< AObject *> &) |
Chooses one method which can fusion these objects. More... | |
virtual FusionMethod * | chooseMethod (std::vector< AObject *> &, bool allowreorder=false) |
virtual std::multimap< int, std::string > | allowedMethods (const std::set< AObject *> &) const |
lists all possible fusions on the given objects, classed with a priority More... | |
virtual FusionMethod * | method (const std::string &name) const |
Selects the method with ID name (if any) More... | |
Static Public Member Functions | |
static FusionFactory * | factory () |
static bool | registerMethod (FusionMethod *method) |
returns false if the method was already registered More... | |
static bool | canFusion (const std::set< AObject *> &) |
is there at least one method which can actually make a fusion with these objects ? More... | |
static std::set< std::string > | methods () |
Static Protected Attributes | |
static FusionFactory * | _theFactory |
static std::set< FusionMethod * > | _methods |
Handles creation of various fusion objects.
This is an "open" mechanism with registration procedure to allow new types of fusion
Definition at line 79 of file fusionFactory.h.
anatomist::FusionFactory::FusionFactory | ( | ) |
|
virtual |
|
virtual |
lists all possible fusions on the given objects, classed with a priority
|
static |
is there at least one method which can actually make a fusion with these objects ?
|
virtual |
Chooses one method which can fusion these objects.
The default factory only takes the first found (random!...)
|
virtual |
|
inlinestatic |
Definition at line 100 of file fusionFactory.h.
References anatomist::FusionMethod::canFusion().
|
virtual |
Selects the method with ID name (if any)
|
static |
|
static |
returns false if the method was already registered
|
staticprotected |
Definition at line 110 of file fusionFactory.h.
|
staticprotected |
Definition at line 109 of file fusionFactory.h.