QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
This class implements a graph vertex. More...
#include <qgsgraph.h>
Public Member Functions | |
QgsGraphVertex ()=default | |
Default constructor. More... | |
QgsGraphVertex (const QgsPointXY &point) | |
This constructor initializes QgsGraphVertex object and associates a vertex with a point. More... | |
QgsGraphEdgeIds | incomingEdges () const |
Returns the incoming edge ids, i.e. More... | |
QgsGraphEdgeIds | outgoingEdges () const |
Returns outgoing edge ids, i.e. More... | |
QgsPointXY | point () const |
Returns point associated with graph vertex. More... | |
Friends | |
class | QgsGraph |
|
default |
Default constructor.
It is needed for Qt's container, e.g. QVector
QgsGraphVertex::QgsGraphVertex | ( | const QgsPointXY & | point | ) |
This constructor initializes QgsGraphVertex object and associates a vertex with a point.
Definition at line 189 of file qgsgraph.cpp.
QgsGraphEdgeIds QgsGraphVertex::incomingEdges | ( | ) | const |
Returns the incoming edge ids, i.e.
edges which end at this node.
Definition at line 195 of file qgsgraph.cpp.
QgsGraphEdgeIds QgsGraphVertex::outgoingEdges | ( | ) | const |
Returns outgoing edge ids, i.e.
edges which start at this node.
Definition at line 200 of file qgsgraph.cpp.
QgsPointXY QgsGraphVertex::point | ( | ) | const |
Returns point associated with graph vertex.
Definition at line 205 of file qgsgraph.cpp.
|
friend |
Definition at line 132 of file qgsgraph.h.