Determine interface for creating a graph.
More...
#include <qgsgraphbuilderintr.h>
Detailed Description
Determine interface for creating a graph.
Contains the settings of the graph. QgsGraphBuilder and QgsGraphDirector is a Builder pattern
Constructor & Destructor Documentation
| QgsGraphBuilderInterface::QgsGraphBuilderInterface |
( |
const QgsCoordinateReferenceSystem & |
crs, |
|
|
bool |
ctfEnabled = true, |
|
|
double |
topologyTolerance = 0.0, |
|
|
const QString & |
ellipsoidID = "WGS84" |
|
) |
| |
|
inline |
QgsGraphBuilderInterface constructor.
- Parameters
-
| 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 |
| virtual QgsGraphBuilderInterface::~QgsGraphBuilderInterface |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
| virtual void QgsGraphBuilderInterface::addArc |
( |
int |
pt1id, |
|
|
const QgsPoint & |
pt1, |
|
|
int |
pt2id, |
|
|
const QgsPoint & |
pt2, |
|
|
const QVector< QVariant > & |
properties |
|
) |
| |
|
inlinevirtual |
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 in QgsGraphBuilder.
| virtual void QgsGraphBuilderInterface::addVertex |
( |
int |
id, |
|
|
const QgsPoint & |
pt |
|
) |
| |
|
inlinevirtual |
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 in QgsGraphBuilder.
| bool QgsGraphBuilderInterface::coordinateTransformationEnabled |
( |
| ) |
|
|
inline |
get coordinate transformation enabled
| double QgsGraphBuilderInterface::topologyTolerance |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: