collection of actions More...
#include <hyper_graph_action.h>
Public Member Functions | |
ActionMap & | actionMap () |
HyperGraphElementActionCollection (const std::string &name_) | |
constructor. name_ is the name of the action e.g.draw). More... | |
virtual HyperGraphElementAction * | operator() (HyperGraph::HyperGraphElement *element, Parameters *parameters) |
virtual HyperGraphElementAction * | operator() (const HyperGraph::HyperGraphElement *element, Parameters *parameters) |
redefine this to do the action stuff. If successful, the action returns a pointer to itself More... | |
bool | registerAction (HyperGraphElementAction *action) |
bool | unregisterAction (HyperGraphElementAction *action) |
virtual | ~HyperGraphElementActionCollection () |
destructor: it deletes all actions in the pool. More... | |
Public Member Functions inherited from g2o::HyperGraphElementAction | |
HyperGraphElementAction (const std::string &typeName_="") | |
const std::string & | name () const |
returns the name of an action, e.g "draw" More... | |
void | setTypeName (const std::string &typeName_) |
sets the type on which an action has to operate More... | |
const std::string & | typeName () const |
returns the typeid name of the action More... | |
virtual | ~HyperGraphElementAction () |
destroyed actions release the memory More... | |
Protected Attributes | |
ActionMap | _actionMap |
Protected Attributes inherited from g2o::HyperGraphElementAction | |
std::string | _name |
std::string | _typeName |
Additional Inherited Members | |
Public Types inherited from g2o::HyperGraphElementAction | |
typedef std::map< std::string, HyperGraphElementAction * > | ActionMap |
collection of actions
collection of actions calls contains homogeneous actions operating on different types all collected actions have the same name and should have the same functionality
Definition at line 111 of file hyper_graph_action.h.
g2o::HyperGraphElementActionCollection::HyperGraphElementActionCollection | ( | const std::string & | name_ | ) |
constructor. name_ is the name of the action e.g.draw).
Definition at line 87 of file hyper_graph_action.cpp.
|
virtual |
destructor: it deletes all actions in the pool.
Definition at line 92 of file hyper_graph_action.cpp.
|
inline |
Definition at line 121 of file hyper_graph_action.h.
|
virtual |
calling functions, they return a pointer to the instance of action in actionMap that was active on element
Reimplemented from g2o::HyperGraphElementAction.
Definition at line 99 of file hyper_graph_action.cpp.
|
virtual |
redefine this to do the action stuff. If successful, the action returns a pointer to itself
Reimplemented from g2o::HyperGraphElementAction.
Definition at line 109 of file hyper_graph_action.cpp.
bool g2o::HyperGraphElementActionCollection::registerAction | ( | HyperGraphElementAction * | action | ) |
inserts an action in the pool. The action should have the same name of the container. returns false on failure (the container has a different name than the action);
Definition at line 118 of file hyper_graph_action.cpp.
bool g2o::HyperGraphElementActionCollection::unregisterAction | ( | HyperGraphElementAction * | action | ) |
Definition at line 130 of file hyper_graph_action.cpp.
|
protected |
Definition at line 127 of file hyper_graph_action.h.