QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Friends | List of all members
QgsGraphVertex Class Reference

This class implement a graph vertex. More...

#include <qgsgraph.h>

Public Member Functions

 QgsGraphVertex ()
 default constructor. More...
 
 QgsGraphVertex (const QgsPoint &point)
 This constructor initializes QgsGraphVertex object and associates a vertex with a point. More...
 
QgsGraphArcIdList inArc () const
 return incoming edges More...
 
QgsGraphArcIdList outArc () const
 return outgoing edges More...
 
QgsPoint point () const
 return vertex point More...
 

Friends

class QgsGraph
 

Detailed Description

This class implement a graph vertex.

Definition at line 88 of file qgsgraph.h.

Constructor & Destructor Documentation

◆ QgsGraphVertex() [1/2]

QgsGraphVertex::QgsGraphVertex ( )
inline

default constructor.

It need for QT's container, e.g. QVector

Definition at line 94 of file qgsgraph.h.

◆ QgsGraphVertex() [2/2]

QgsGraphVertex::QgsGraphVertex ( const QgsPoint point)

This constructor initializes QgsGraphVertex object and associates a vertex with a point.

Definition at line 105 of file qgsgraph.cpp.

Member Function Documentation

◆ inArc()

QgsGraphArcIdList QgsGraphVertex::inArc ( ) const

return incoming edges

Definition at line 116 of file qgsgraph.cpp.

◆ outArc()

QgsGraphArcIdList QgsGraphVertex::outArc ( ) const

return outgoing edges

Definition at line 111 of file qgsgraph.cpp.

◆ point()

QgsPoint QgsGraphVertex::point ( ) const

return vertex point

Definition at line 121 of file qgsgraph.cpp.

Friends And Related Function Documentation

◆ QgsGraph

friend class QgsGraph
friend

Definition at line 122 of file qgsgraph.h.


The documentation for this class was generated from the following files: