|
g2o
|
create robust kernels based on their human readable name More...
#include <robust_kernel_factory.h>
Public Member Functions | |
| RobustKernelFactory (RobustKernelFactory const &)=delete | |
| RobustKernelFactory & | operator= (RobustKernelFactory const &)=delete |
| void | registerRobustKernel (const std::string &tag, const AbstractRobustKernelCreator::Ptr &c) |
| void | unregisterType (const std::string &tag) |
| RobustKernel * | construct (const std::string &tag) const |
| AbstractRobustKernelCreator * | creator (const std::string &tag) const |
| void | fillKnownKernels (std::vector< std::string > &types) const |
Static Public Member Functions | |
| static RobustKernelFactory * | instance () |
| return the instance | |
| static void | destroy () |
| free the instance | |
Protected Types | |
| typedef std::map< std::string, AbstractRobustKernelCreator::Ptr > | CreatorMap |
Protected Member Functions | |
| RobustKernelFactory ()=default | |
Protected Attributes | |
| CreatorMap | _creator |
| look-up map for the existing creators | |
Static Private Attributes | |
| static std::unique_ptr< RobustKernelFactory > | factoryInstance |
create robust kernels based on their human readable name
Definition at line 68 of file robust_kernel_factory.h.
|
protected |
Definition at line 106 of file robust_kernel_factory.h.
|
delete |
|
protecteddefault |
| RobustKernel * g2o::RobustKernelFactory::construct | ( | const std::string & | tag | ) | const |
construct a robust kernel based on its tag
Definition at line 66 of file robust_kernel_factory.cpp.
References _creator.
| AbstractRobustKernelCreator * g2o::RobustKernelFactory::creator | ( | const std::string & | tag | ) | const |
return the creator for a specific tag
Definition at line 74 of file robust_kernel_factory.cpp.
References _creator.
Referenced by main(), and MainWindow::setRobustKernel().
|
static |
free the instance
Definition at line 91 of file robust_kernel_factory.cpp.
References factoryInstance.
| void g2o::RobustKernelFactory::fillKnownKernels | ( | std::vector< std::string > & | types | ) | const |
get a list of all known robust kernels
Definition at line 83 of file robust_kernel_factory.cpp.
References _creator.
Referenced by main(), and MainWindow::updateRobustKernels().
|
static |
return the instance
Definition at line 39 of file robust_kernel_factory.cpp.
References factoryInstance.
Referenced by main(), g2o::RegisterRobustKernelProxy< T >::RegisterRobustKernelProxy(), MainWindow::setRobustKernel(), and MainWindow::updateRobustKernels().
|
delete |
| void g2o::RobustKernelFactory::registerRobustKernel | ( | const std::string & | tag, |
| const AbstractRobustKernelCreator::Ptr & | c | ||
| ) |
register a tag for a specific creator
Definition at line 47 of file robust_kernel_factory.cpp.
References _creator, and G2O_WARN.
Referenced by g2o::RegisterRobustKernelProxy< T >::RegisterRobustKernelProxy().
| void g2o::RobustKernelFactory::unregisterType | ( | const std::string & | tag | ) |
|
protected |
look-up map for the existing creators
Definition at line 109 of file robust_kernel_factory.h.
Referenced by construct(), creator(), fillKnownKernels(), registerRobustKernel(), and unregisterType().
|
staticprivate |
Definition at line 112 of file robust_kernel_factory.h.
Referenced by destroy(), and instance().