![]() |
NDEVR
API Documentation
|
Abstract Edge class. More...
Public Member Functions | |
| HGEdge (int id=-1) | |
| creates and empty edge with no vertices | |
| int | id () const |
| returns the id of this edge | |
| void | setId (int id) |
| sets the id of this edge | |
| virtual void | setVertex (uint04 i, HGVertex *v)=0 |
| Sets the i-th vertex of this edge. | |
| virtual const HGVertex * | vertex (uint04 i) const =0 |
| Returns a const pointer to the i-th vertex. | |
| virtual HGVertex * | vertex (uint04 i)=0 |
| Returns a mutable pointer to the i-th vertex. | |
| virtual uint04 | vertexCount () const =0 |
| Returns the number of vertices connected by this edge. | |
Protected Attributes | |
| int | _id |
| unique id | |
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 53 of file hyper_graph.h.
Sets the i-th vertex of this edge.
| [in] | i | The vertex index. |
| [in] | v | The vertex to assign. |
Implemented in BaseBinaryEdge< D, E, VertexXi, VertexXj >, BaseBinaryEdge< 3, Vector3< g_type >, VertexSBAPointXYZ, VertexSE3Expmap >, BaseBinaryEdge< 6, SE3Quat, VertexSE3Expmap, VertexSE3Expmap >, BaseBinaryEdge< 6, vector6d, VertexPose4DoF, VertexPose4DoF >, BaseBinaryEdge< 7, Sim3, VertexSim3Expmap, VertexSim3Expmap >, BaseMultiEdge< t_dims, E >, BaseMultiEdge< 15, vector15d >, BaseMultiEdge< 9, vector9d >, BaseUnaryEdge< t_dims, E, VertexXi >, and BaseUnaryEdge< 3, Vector3< g_type >, VertexSE3Expmap >.
Returns a const pointer to the i-th vertex.
| [in] | i | The vertex index. |
Implemented in BaseBinaryEdge< D, E, VertexXi, VertexXj >, BaseBinaryEdge< 3, Vector3< g_type >, VertexSBAPointXYZ, VertexSE3Expmap >, BaseBinaryEdge< 6, SE3Quat, VertexSE3Expmap, VertexSE3Expmap >, BaseBinaryEdge< 6, vector6d, VertexPose4DoF, VertexPose4DoF >, BaseBinaryEdge< 7, Sim3, VertexSim3Expmap, VertexSim3Expmap >, BaseMultiEdge< t_dims, E >, BaseMultiEdge< 15, vector15d >, BaseMultiEdge< 9, vector9d >, BaseUnaryEdge< t_dims, E, VertexXi >, and BaseUnaryEdge< 3, Vector3< g_type >, VertexSE3Expmap >.
Referenced by HyperGraph::addEdge(), BlockSolver< Traits >::buildStructure(), SparseOptimizer::initializeOptimization(), SparseOptimizer::initializeOptimization(), and BlockSolver< Traits >::updateStructure().
Returns a mutable pointer to the i-th vertex.
| [in] | i | The vertex index. |
Implemented in BaseBinaryEdge< D, E, VertexXi, VertexXj >, BaseMultiEdge< t_dims, E >, and BaseUnaryEdge< t_dims, E, VertexXi >.