g2o
|
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_="") | |
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... | |
virtual | ~HyperGraphElementAction () |
destroyed actions release the memory More... | |
const std::string & | typeName () const |
returns the typeid name of the action More... | |
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... | |
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, HyperGraphElementAction*> g2o::HyperGraphElementAction::ActionMap |
Definition at line 79 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 63 of file hyper_graph_action.cpp.
|
virtual |
destroyed actions release the memory
Definition at line 84 of file hyper_graph_action.cpp.
|
inline |
returns the name of an action, e.g "draw"
Definition at line 97 of file hyper_graph_action.h.
Referenced by g2o::applyAction(), g2o::EdgeSE3WriteGnuplotAction::operator()(), g2o::EdgeSE2PointXYBearingWriteGnuplotAction::operator()(), g2o::EdgeSE2PointXYWriteGnuplotAction::operator()(), g2o::VertexPointXYWriteGnuplotAction::operator()(), g2o::VertexSE2WriteGnuplotAction::operator()(), g2o::VertexSegment2DWriteGnuplotAction::operator()(), g2o::EdgeSE2WriteGnuplotAction::operator()(), g2o::deprecated::VertexSE3WriteGnuplotAction::operator()(), g2o::deprecated::EdgeSE3WriteGnuplotAction::operator()(), g2o::VertexSE3WriteGnuplotAction::operator()(), g2o::HyperGraphElementActionCollection::registerAction(), and g2o::HyperGraphActionLibrary::registerAction().
|
virtual |
redefine this to do the action stuff. If successful, the action returns a pointer to itself
Reimplemented in g2o::VertexSE3WriteGnuplotAction, g2o::HyperGraphElementActionCollection, g2o::deprecated::EdgeSE3WriteGnuplotAction, g2o::deprecated::VertexSE3WriteGnuplotAction, g2o::EdgeSE2WriteGnuplotAction, g2o::VertexSegment2DWriteGnuplotAction, g2o::deprecated::VertexPointXYZWriteGnuplotAction, g2o::VertexPointXYWriteGnuplotAction, g2o::VertexSE2WriteGnuplotAction, g2o::VertexPointXYZWriteGnuplotAction, g2o::EdgeSE2PointXYWriteGnuplotAction, g2o::EdgeSE2PointXYBearingWriteGnuplotAction, and g2o::EdgeSE3WriteGnuplotAction.
Definition at line 74 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 79 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 68 of file hyper_graph_action.cpp.
Referenced by g2o::G2O_ATTRIBUTE_CONSTRUCTOR().
|
inline |
returns the typeid name of the action
Definition at line 94 of file hyper_graph_action.h.
Referenced by g2o::applyAction(), and g2o::HyperGraphElementActionCollection::registerAction().
|
protected |
Definition at line 104 of file hyper_graph_action.h.
Referenced by g2o::DrawAction::DrawAction(), and g2o::WriteGnuplotAction::WriteGnuplotAction().
|
protected |
Definition at line 103 of file hyper_graph_action.h.
Referenced by g2o::EdgeSE3WriteGnuplotAction::operator()(), g2o::EdgeSE2PointXYBearingWriteGnuplotAction::operator()(), g2o::EdgeSE2PointXYWriteGnuplotAction::operator()(), g2o::VertexPointXYZWriteGnuplotAction::operator()(), g2o::VertexPointXYWriteGnuplotAction::operator()(), g2o::VertexSE2WriteGnuplotAction::operator()(), g2o::deprecated::VertexPointXYZWriteGnuplotAction::operator()(), g2o::VertexSegment2DWriteGnuplotAction::operator()(), g2o::EdgeSE2WriteGnuplotAction::operator()(), g2o::deprecated::VertexSE3WriteGnuplotAction::operator()(), g2o::deprecated::EdgeSE3WriteGnuplotAction::operator()(), g2o::VertexSE3WriteGnuplotAction::operator()(), and g2o::DrawAction::refreshPropertyPtrs().