This class making the QgsGraph object.
More...
#include <qgsgraphbuilder.h>
Public Member Functions |
| QgsGraphBuilder (const QgsCoordinateReferenceSystem &crs, bool otfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84") |
| default constructor
|
| ~QgsGraphBuilder () |
virtual void | addVertex (int id, const QgsPoint &pt) |
| add vertex
|
virtual void | addArc (int pt1id, const QgsPoint &pt1, int pt2id, const QgsPoint &pt2, const QVector< QVariant > &prop) |
| add arc
|
QgsGraph * | graph () |
| return QgsGraph result;
|
| QgsGraphBuilderInterface (const QgsCoordinateReferenceSystem &crs, bool ctfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84") |
| QgsGraphBuilderInterface constructor.
|
virtual | ~QgsGraphBuilderInterface () |
| Destructor.
|
QgsCoordinateReferenceSystem & | destinationCrs () |
| get destinaltion Crs
|
bool | coordinateTransformationEnabled () |
| get coordinate transformation enabled
|
double | topologyTolerance () |
| get topology tolerance
|
QgsDistanceArea * | distanceArea () |
| get measurement tool
|
Detailed Description
This class making the QgsGraph object.
Constructor & Destructor Documentation
QgsGraphBuilder::QgsGraphBuilder |
( |
const QgsCoordinateReferenceSystem & |
crs, |
|
|
bool |
otfEnabled = true , |
|
|
double |
topologyTolerance = 0.0 , |
|
|
const QString & |
ellipsoidID = "WGS84" |
|
) |
| |
QgsGraphBuilder::~QgsGraphBuilder |
( |
| ) |
|
Member Function Documentation
void QgsGraphBuilder::addArc |
( |
int |
pt1id, |
|
|
const QgsPoint & |
pt1, |
|
|
int |
pt2id, |
|
|
const QgsPoint & |
pt2, |
|
|
const QVector< QVariant > & |
properties |
|
) |
| |
|
virtual |
add arc
- Parameters
-
pt1id | first vertex identificator |
pt1 | first vertex coordinate |
pt2id | second vertex identificator |
pt2 | second vertex coordinate |
properties | arc properties |
- Note
- pt1id, pt1 and pt2id, pt2 is a redundant interface. You can use vertex coordinates or their identificators.
Reimplemented from QgsGraphBuilderInterface.
void QgsGraphBuilder::addVertex |
( |
int |
id, |
|
|
const QgsPoint & |
pt |
|
) |
| |
|
virtual |
add vertex
- Parameters
-
id | vertex identifier |
pt | vertex coordinate |
- Note
- id and pt are redundant. You can use pt or id to identify the vertex
Reimplemented from QgsGraphBuilderInterface.
The documentation for this class was generated from the following files: