#include <hyper_graph.h>
Public Member Functions | |
Edge (int id=-1) | |
creates and empty edge with no vertices More... | |
virtual HyperGraphElementType | elementType () const |
int | id () const |
virtual void | resize (size_t size) |
void | setId (int id) |
void | setVertex (size_t i, Vertex *v) |
const Vertex * | vertex (size_t i) const |
Vertex * | vertex (size_t i) |
const VertexContainer & | vertices () const |
VertexContainer & | vertices () |
virtual | ~Edge () |
Public Member Functions inherited from g2o::HyperGraph::HyperGraphElement | |
virtual | ~HyperGraphElement () |
Protected Attributes | |
int | _id |
unique id More... | |
VertexContainer | _vertices |
Abstract Edge class. Your nice edge classes should inherit from that one. An hyper-edge has pointers to the vertices it connects and stores them in a vector.
Definition at line 119 of file hyper_graph.h.
|
explicit |
creates and empty edge with no vertices
Definition at line 42 of file hyper_graph.cpp.
|
virtual |
Reimplemented in g2o::OptimizableGraph::Edge.
Definition at line 46 of file hyper_graph.cpp.
|
inlinevirtual |
returns the type of the graph element, see HyperGraphElementType
Implements g2o::HyperGraph::HyperGraphElement.
Definition at line 152 of file hyper_graph.h.
|
inline |
Definition at line 150 of file hyper_graph.h.
|
virtual |
resizes the number of vertices connected by this edge
Reimplemented in g2o::BaseMultiEdge< D, E >, g2o::BaseBinaryEdge< D, E, VertexXi, VertexXj >, g2o::BaseBinaryEdge< 2, Vector2d, VertexSBAPointXYZ, VertexSim3Expmap >, g2o::BaseBinaryEdge< 7, Sim3, VertexSim3Expmap, VertexSim3Expmap >, g2o::BaseBinaryEdge< 2, Vector2d, VertexSBAPointXYZ, VertexSE3Expmap >, g2o::BaseBinaryEdge< 3, Vector3d, VertexSBAPointXYZ, VertexSE3Expmap >, g2o::BaseUnaryEdge< D, E, VertexXi >, g2o::BaseUnaryEdge< 2, Vector2d, VertexSE3Expmap >, and g2o::BaseUnaryEdge< 3, Vector3d, VertexSE3Expmap >.
Definition at line 50 of file hyper_graph.cpp.
void g2o::HyperGraph::Edge::setId | ( | int | id | ) |
Definition at line 55 of file hyper_graph.cpp.
|
inline |
set the ith vertex on the hyper-edge to the pointer supplied
Definition at line 148 of file hyper_graph.h.
|
inline |
returns the pointer to the ith vertex connected to the hyper-edge.
Definition at line 140 of file hyper_graph.h.
|
inline |
returns the pointer to the ith vertex connected to the hyper-edge.
Definition at line 144 of file hyper_graph.h.
|
inline |
returns the vector of pointers to the vertices connected by the hyper-edge.
Definition at line 132 of file hyper_graph.h.
|
inline |
returns the vector of pointers to the vertices connected by the hyper-edge.
Definition at line 136 of file hyper_graph.h.
|
protected |
unique id
Definition at line 155 of file hyper_graph.h.
|
protected |
Definition at line 154 of file hyper_graph.h.