2017-05-01 12:44:45 +03:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsgraphbuilderinterface.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-01 18:32:37 +03:00
|
|
|
%ModuleHeaderCode
|
2011-06-02 13:49:43 +06:00
|
|
|
#include <qgsgraphbuilder.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
class QgsGraphBuilderInterface
|
|
|
|
{
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Determine interface for creating a graph. Contains the settings of the graph.
|
|
|
|
QgsGraphBuilder and QgsGraphDirector both use a "builder" design pattern
|
|
|
|
%End
|
|
|
|
|
2011-06-02 13:49:43 +06:00
|
|
|
%TypeHeaderCode
|
2017-05-01 12:44:45 +03:00
|
|
|
#include "qgsgraphbuilderinterface.h"
|
2011-06-02 13:49:43 +06:00
|
|
|
%End
|
|
|
|
|
|
|
|
%ConvertToSubClassCode
|
2017-05-01 12:44:45 +03:00
|
|
|
if ( dynamic_cast< QgsGraphBuilder * >( sipCpp ) != NULL )
|
|
|
|
sipType = sipType_QgsGraphBuilder;
|
|
|
|
else
|
|
|
|
sipType = NULL;
|
2011-06-02 13:49:43 +06:00
|
|
|
%End
|
|
|
|
public:
|
2017-05-01 12:44:45 +03:00
|
|
|
|
2017-05-02 20:36:31 +03:00
|
|
|
QgsGraphBuilderInterface( const QgsCoordinateReferenceSystem &crs, bool ctfEnabled = true, double topologyTolerance = 0.0, const QString &ellipsoidID = "WGS84" );
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Default constructor
|
|
|
|
\param crs Coordinate reference system for new graph vertex
|
|
|
|
\param ctfEnabled enable coordinate transform from source graph CRS to CRS graph
|
|
|
|
\param topologyTolerance sqrt distance between source point as one graph vertex
|
|
|
|
\param ellipsoidID ellipsoid for edge measurement
|
|
|
|
%End
|
|
|
|
|
2016-11-17 17:30:10 +02:00
|
|
|
virtual ~QgsGraphBuilderInterface();
|
|
|
|
|
2016-07-11 16:04:50 +10:00
|
|
|
QgsCoordinateReferenceSystem destinationCrs() const;
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Returns destinaltion CRS
|
|
|
|
:rtype: QgsCoordinateReferenceSystem
|
|
|
|
%End
|
2013-01-12 23:48:58 +01:00
|
|
|
|
2011-06-02 13:49:43 +06:00
|
|
|
bool coordinateTransformationEnabled();
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Returns coordinate transformation enabled
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2011-06-02 13:49:43 +06:00
|
|
|
|
|
|
|
double topologyTolerance();
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Returns topology tolerance
|
|
|
|
:rtype: float
|
|
|
|
%End
|
2013-01-12 23:48:58 +01:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsDistanceArea *distanceArea();
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Returns measurement tool
|
|
|
|
:rtype: QgsDistanceArea
|
|
|
|
%End
|
2011-06-02 13:49:43 +06:00
|
|
|
|
2017-06-01 12:18:43 +02:00
|
|
|
virtual void addVertex( int id, const QgsPointXY &pt );
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Add vertex to the graph
|
|
|
|
\param id vertex identifier
|
|
|
|
\param pt vertex coordinates
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
id and pt are redundant. You can use pt or id to identify the vertex
|
|
|
|
%End
|
2011-06-02 13:49:43 +06:00
|
|
|
|
2017-06-01 12:18:43 +02:00
|
|
|
virtual void addEdge( int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &strategies );
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Add edge to the graph
|
|
|
|
\param pt1id first vertex identificator
|
|
|
|
\param pt1 first vertex coordinates
|
|
|
|
\param pt2id second vertex identificator
|
|
|
|
\param pt2 second vertex coordinates
|
|
|
|
\param strategies optimization strategies
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
pt1id, pt1 and pt2id, pt2 is a redundant interface. You can use vertex coordinates or their identificators.
|
|
|
|
%End
|
|
|
|
|
2011-06-02 13:49:43 +06:00
|
|
|
};
|
2017-05-01 12:44:45 +03:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsgraphbuilderinterface.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|