Abstract action that operates on a graph entity. More...
#include <hyper_graph_action.h>
Classes | |
struct | Parameters |
Public Types | |
typedef std::map< std::string, HyperGraphElementAction * > | ActionMap |
Public Member Functions | |
HyperGraphElementAction (const std::string &typeName_="") | |
const std::string & | name () const |
returns the name of an action, e.g "draw" More... | |
virtual HyperGraphElementAction * | operator() (HyperGraph::HyperGraphElement *element, Parameters *parameters) |
redefine this to do the action stuff. If successful, the action returns a pointer to itself More... | |
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... | |
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 | |
std::string | _name |
std::string | _typeName |
Abstract action that operates on a graph entity.
Definition at line 72 of file hyper_graph_action.h.
typedef std::map<std::string, HyperGraphElementAction*> g2o::HyperGraphElementAction::ActionMap |
Definition at line 77 of file hyper_graph_action.h.
g2o::HyperGraphElementAction::HyperGraphElementAction | ( | const std::string & | typeName_ = "" | ) |
an action should be instantiated with the typeid.name of the graph element on which it operates
Definition at line 62 of file hyper_graph_action.cpp.
|
virtual |
destroyed actions release the memory
Definition at line 83 of file hyper_graph_action.cpp.
|
inline |
returns the name of an action, e.g "draw"
Definition at line 95 of file hyper_graph_action.h.
|
virtual |
redefine this to do the action stuff. If successful, the action returns a pointer to itself
Reimplemented in g2o::HyperGraphElementActionCollection.
Definition at line 73 of file hyper_graph_action.cpp.
|
virtual |
redefine this to do the action stuff. If successful, the action returns a pointer to itself
Reimplemented in g2o::HyperGraphElementActionCollection.
Definition at line 78 of file hyper_graph_action.cpp.
void g2o::HyperGraphElementAction::setTypeName | ( | const std::string & | typeName_ | ) |
sets the type on which an action has to operate
Definition at line 67 of file hyper_graph_action.cpp.
|
inline |
returns the typeid name of the action
Definition at line 92 of file hyper_graph_action.h.
|
protected |
Definition at line 102 of file hyper_graph_action.h.
|
protected |
Definition at line 101 of file hyper_graph_action.h.