QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Determine interface for creating a graph. More...
#include <qgsgraphbuilderintr.h>
Public Member Functions | |
QgsGraphBuilderInterface (const QgsCoordinateReferenceSystem &crs, bool ctfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84") | |
QgsGraphBuilderInterface constructor. More... | |
virtual | ~QgsGraphBuilderInterface () |
Destructor. More... | |
virtual void | addArc (int pt1id, const QgsPoint &pt1, int pt2id, const QgsPoint &pt2, const QVector< QVariant > &properties) |
add arc More... | |
virtual void | addVertex (int id, const QgsPoint &pt) |
add vertex More... | |
bool | coordinateTransformationEnabled () |
get coordinate transformation enabled More... | |
QgsCoordinateReferenceSystem & | destinationCrs () |
get destinaltion Crs More... | |
QgsDistanceArea * | distanceArea () |
get measurement tool More... | |
double | topologyTolerance () |
get topology tolerance More... | |
Determine interface for creating a graph.
Contains the settings of the graph. QgsGraphBuilder and QgsGraphDirector is a Builder pattern
Definition at line 34 of file qgsgraphbuilderintr.h.
|
inline |
QgsGraphBuilderInterface constructor.
crs | Coordinate reference system for new graph vertex |
ctfEnabled | enable coordinate transform from source graph CRS to CRS graph |
topologyTolerance | sqrt distance between source point as one graph vertex |
ellipsoidID | ellipsoid for edge measurement |
Definition at line 44 of file qgsgraphbuilderintr.h.
|
inlinevirtual |
Destructor.
Definition at line 55 of file qgsgraphbuilderintr.h.
|
inlinevirtual |
add arc
pt1id | first vertex identificator |
pt1 | first vertex coordinate |
pt2id | second vertex identificator |
pt2 | second vertex coordinate |
properties | arc properties |
Reimplemented in QgsGraphBuilder.
Definition at line 103 of file qgsgraphbuilderintr.h.
|
inlinevirtual |
add vertex
id | vertex identifier |
pt | vertex coordinate |
Reimplemented in QgsGraphBuilder.
Definition at line 88 of file qgsgraphbuilderintr.h.
|
inline |
get coordinate transformation enabled
Definition at line 65 of file qgsgraphbuilderintr.h.
|
inline |
get destinaltion Crs
Definition at line 59 of file qgsgraphbuilderintr.h.
|
inline |
get measurement tool
Definition at line 77 of file qgsgraphbuilderintr.h.
|
inline |
get topology tolerance
Definition at line 71 of file qgsgraphbuilderintr.h.