QGIS API Documentation
2.8.2-Wien
|
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. | |
virtual | ~QgsGraphBuilderInterface () |
Destructor. | |
virtual void | addArc (int pt1id, const QgsPoint &pt1, int pt2id, const QgsPoint &pt2, const QVector< QVariant > &properties) |
add arc | |
virtual void | addVertex (int id, const QgsPoint &pt) |
add vertex | |
bool | coordinateTransformationEnabled () |
get coordinate transformation enabled | |
QgsCoordinateReferenceSystem & | destinationCrs () |
get destinaltion Crs | |
QgsDistanceArea * | distanceArea () |
get measurement tool | |
double | topologyTolerance () |
get topology tolerance |
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 53 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 101 of file qgsgraphbuilderintr.h.
|
inlinevirtual |
add vertex
id | vertex identifier |
pt | vertex coordinate |
Reimplemented in QgsGraphBuilder.
Definition at line 86 of file qgsgraphbuilderintr.h.
|
inline |
get coordinate transformation enabled
Definition at line 63 of file qgsgraphbuilderintr.h.
|
inline |
get destinaltion Crs
Definition at line 57 of file qgsgraphbuilderintr.h.
|
inline |
get measurement tool
Definition at line 75 of file qgsgraphbuilderintr.h.
|
inline |
get topology tolerance
Definition at line 69 of file qgsgraphbuilderintr.h.