|
Quantum GIS API Documentation
1.8
|
This class implement a graph vertex. More...
#include <qgsgraph.h>

Public Member Functions | |
| QgsGraphVertex () | |
| default constructor. | |
| QgsGraphVertex (const QgsPoint &point) | |
| This constructor initializes QgsGraphVertex object and associates a vertex with a point. | |
| QgsGraphArcIdList | outArc () const |
| return outgoing edges | |
| QgsGraphArcIdList | inArc () const |
| return incoming edges | |
| QgsPoint | point () const |
| return vertex point | |
Private Attributes | |
| QgsPoint | mCoordinate |
| QgsGraphArcIdList | mOutArc |
| QgsGraphArcIdList | mInArc |
Friends | |
| class | QgsGraph |
This class implement a graph vertex.
Definition at line 88 of file qgsgraph.h.
| QgsGraphVertex::QgsGraphVertex | ( | ) | [inline] |
default constructor.
It need for QT's container, e.g. QVector
Definition at line 94 of file qgsgraph.h.
| QgsGraphVertex::QgsGraphVertex | ( | const QgsPoint & | point | ) |
This constructor initializes QgsGraphVertex object and associates a vertex with a point.
Definition at line 110 of file qgsgraph.cpp.
| QgsGraphArcIdList QgsGraphVertex::inArc | ( | ) | const |
| QgsGraphArcIdList QgsGraphVertex::outArc | ( | ) | const |
return outgoing edges
Definition at line 116 of file qgsgraph.cpp.
References mOutArc.
Referenced by QgsGraphAnalyzer::dijkstra().
| QgsPoint QgsGraphVertex::point | ( | ) | const |
return vertex point
Definition at line 126 of file qgsgraph.cpp.
References mCoordinate.
Referenced by QgsGraphAnalyzer::shortestTree().
friend class QgsGraph [friend] |
Definition at line 122 of file qgsgraph.h.
QgsPoint QgsGraphVertex::mCoordinate [private] |
Definition at line 118 of file qgsgraph.h.
Referenced by point().
QgsGraphArcIdList QgsGraphVertex::mInArc [private] |
Definition at line 120 of file qgsgraph.h.
Referenced by inArc().
QgsGraphArcIdList QgsGraphVertex::mOutArc [private] |
Definition at line 119 of file qgsgraph.h.
Referenced by outArc().
1.7.6.1