|
g2o
|
Abstract action that operates on a graph entity. More...
#include <hyper_graph_action.h>

Classes | |
| struct | Parameters |
Public Types | |
| typedef std::shared_ptr< HyperGraphElementAction > | HyperGraphElementActionPtr |
| typedef std::map< std::string, HyperGraphElementActionPtr > | ActionMap |
Public Member Functions | |
| HyperGraphElementAction (const std::string &typeName_="") | |
| virtual HyperGraphElementAction * | operator() (HyperGraph::HyperGraphElement *element, Parameters *parameters) |
| virtual HyperGraphElementAction * | operator() (const HyperGraph::HyperGraphElement *element, Parameters *parameters) |
| virtual | ~HyperGraphElementAction () |
| const std::string & | typeName () const |
| returns the typeid name of the action | |
| const std::string & | name () const |
| returns the name of an action, e.g "draw" | |
| void | setTypeName (const std::string &typeName_) |
| sets the type on which an action has to operate | |
Protected Attributes | |
| std::string | _typeName |
| std::string | _name |
Abstract action that operates on a graph entity.
Definition at line 74 of file hyper_graph_action.h.
| typedef std::map<std::string, HyperGraphElementActionPtr> g2o::HyperGraphElementAction::ActionMap |
Definition at line 80 of file hyper_graph_action.h.
| typedef std::shared_ptr<HyperGraphElementAction> g2o::HyperGraphElementAction::HyperGraphElementActionPtr |
Definition at line 79 of file hyper_graph_action.h.
|
explicit |
an action should be instantiated with the typeid.name of the graph element on which it operates
Definition at line 56 of file hyper_graph_action.cpp.
|
virtual |
Definition at line 74 of file hyper_graph_action.cpp.
|
inline |
returns the name of an action, e.g "draw"
Definition at line 101 of file hyper_graph_action.h.
Referenced by g2o::HyperGraphElementActionCollection::registerAction().
|
virtual |
redefine this to do the action stuff. If successful, the action returns a pointer to itself
Reimplemented in g2o::HyperGraphElementActionCollection.
Definition at line 68 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::EdgeSE2WriteGnuplotAction, g2o::EdgeSE2PointXYWriteGnuplotAction, g2o::EdgeSE2PointXYBearingWriteGnuplotAction, g2o::VertexPointXYWriteGnuplotAction, g2o::VertexSE2WriteGnuplotAction, g2o::VertexSegment2DWriteGnuplotAction, g2o::EdgeSE3WriteGnuplotAction, g2o::VertexPointXYZWriteGnuplotAction, g2o::VertexSE3WriteGnuplotAction, and g2o::HyperGraphElementActionCollection.
Definition at line 63 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 59 of file hyper_graph_action.cpp.
References _typeName.
|
inline |
|
protected |
Definition at line 108 of file hyper_graph_action.h.
Referenced by g2o::DrawAction::DrawAction(), g2o::HyperGraphElementActionCollection::HyperGraphElementActionCollection(), and g2o::WriteGnuplotAction::WriteGnuplotAction().
|
protected |
Definition at line 107 of file hyper_graph_action.h.
Referenced by g2o::EdgeSE2WriteGnuplotAction::operator()(), g2o::EdgeSE2PointXYWriteGnuplotAction::operator()(), g2o::EdgeSE2PointXYBearingWriteGnuplotAction::operator()(), g2o::VertexPointXYWriteGnuplotAction::operator()(), g2o::VertexSE2WriteGnuplotAction::operator()(), g2o::VertexSegment2DWriteGnuplotAction::operator()(), g2o::EdgeSE3WriteGnuplotAction::operator()(), g2o::VertexPointXYZWriteGnuplotAction::operator()(), g2o::VertexSE3WriteGnuplotAction::operator()(), g2o::DrawAction::refreshPropertyPtrs(), and setTypeName().