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" | |
| virtual HyperGraphElementAction * | operator() (HyperGraph::HyperGraphElement *element, Parameters *parameters) |
| redefine this to do the action stuff. If successful, the action returns a pointer to itself | |
| 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 | |
| const std::string & | typeName () const |
| returns the typeid name of the action | |
| virtual | ~HyperGraphElementAction () |
| destroyed actions release the memory | |
Protected Attributes | |
| std::string | _name |
| std::string | _typeName |
Abstract action that operates on a graph entity.
Definition at line 56 of file hyper_graph_action.h.
| typedef std::map<std::string, HyperGraphElementAction*> g2o::HyperGraphElementAction::ActionMap |
Definition at line 61 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 49 of file hyper_graph_action.cpp.
| g2o::HyperGraphElementAction::~HyperGraphElementAction | ( | ) | [virtual] |
destroyed actions release the memory
Definition at line 64 of file hyper_graph_action.cpp.
| const std::string& g2o::HyperGraphElementAction::name | ( | void | ) | const [inline] |
returns the name of an action, e.g "draw"
Definition at line 79 of file hyper_graph_action.h.
| HyperGraphElementAction * g2o::HyperGraphElementAction::operator() | ( | HyperGraph::HyperGraphElement * | element, |
| HyperGraphElementAction::Parameters * | parameters | ||
| ) | [virtual] |
redefine this to do the action stuff. If successful, the action returns a pointer to itself
Reimplemented in g2o::HyperGraphElementActionCollection, g2o::EdgeSE3WriteGnuplotAction, g2o::VertexSE3WriteGnuplotAction, g2o::EdgeSE2DrawAction, g2o::EdgeSE2WriteGnuplotAction, g2o::VertexPointXYWriteGnuplotAction, g2o::VertexSE2WriteGnuplotAction, g2o::EdgeSE2PointXYWriteGnuplotAction, and g2o::EdgeSE2PointXYBearingWriteGnuplotAction.
Definition at line 54 of file hyper_graph_action.cpp.
| HyperGraphElementAction * g2o::HyperGraphElementAction::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 in g2o::HyperGraphElementActionCollection.
Definition at line 59 of file hyper_graph_action.cpp.
| const std::string& g2o::HyperGraphElementAction::typeName | ( | ) | const [inline] |
returns the typeid name of the action
Definition at line 76 of file hyper_graph_action.h.
std::string g2o::HyperGraphElementAction::_name [protected] |
Definition at line 82 of file hyper_graph_action.h.
std::string g2o::HyperGraphElementAction::_typeName [protected] |
Definition at line 81 of file hyper_graph_action.h.