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). | |
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 | |
bool | registerAction (HyperGraphElementAction *action) |
virtual | ~HyperGraphElementActionCollection () |
destructor: it deletes all actions in the pool. | |
Protected Attributes | |
ActionMap | _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 91 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 68 of file hyper_graph_action.cpp.
destructor: it deletes all actions in the pool.
Definition at line 73 of file hyper_graph_action.cpp.
ActionMap& g2o::HyperGraphElementActionCollection::actionMap | ( | ) | [inline] |
Definition at line 101 of file hyper_graph_action.h.
HyperGraphElementAction * g2o::HyperGraphElementActionCollection::operator() | ( | HyperGraph::HyperGraphElement * | element, |
HyperGraphElementAction::Parameters * | params | ||
) | [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 78 of file hyper_graph_action.cpp.
HyperGraphElementAction * g2o::HyperGraphElementActionCollection::operator() | ( | const HyperGraph::HyperGraphElement * | element, |
HyperGraphElementAction::Parameters * | parameters | ||
) | [virtual] |
redefine this to do the action stuff. If successful, the action returns a pointer to itself
Reimplemented from g2o::HyperGraphElementAction.
Definition at line 88 of file hyper_graph_action.cpp.
inserts an action in the pool. The action should have the same name of the container. returns falseon failure (the container has a different name than the action);
Definition at line 97 of file hyper_graph_action.cpp.
Definition at line 106 of file hyper_graph_action.h.