Skip to content

Commit a9d7630

Browse files
committedJun 2, 2017
Rename QgsPointV2 to QgsPoint and QgsPoint to QgsPointXY
Because 3D coordinates should be the default. References qgis/qgis4.0_api#36
1 parent 164e464 commit a9d7630

File tree

498 files changed

+5343
-5343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

498 files changed

+5343
-5343
lines changed
 

‎python/analysis/network/qgsgraph.sip

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class QgsGraphVertex
7171
%End
7272

7373

74-
QgsGraphVertex( const QgsPoint &point );
74+
QgsGraphVertex( const QgsPointXY &point );
7575
%Docstring
7676
This constructor initializes QgsGraphVertex object and associates a vertex with a point
7777
%End
@@ -88,10 +88,10 @@ class QgsGraphVertex
8888
:rtype: QgsGraphEdgeIds
8989
%End
9090

91-
QgsPoint point() const;
91+
QgsPointXY point() const;
9292
%Docstring
9393
Returns point associated with graph vertex
94-
:rtype: QgsPoint
94+
:rtype: QgsPointXY
9595
%End
9696

9797
};
@@ -110,7 +110,7 @@ class QgsGraph
110110
QgsGraph();
111111

112112

113-
int addVertex( const QgsPoint &pt );
113+
int addVertex( const QgsPointXY &pt );
114114
%Docstring
115115
Add a vertex to the graph
116116
:rtype: int
@@ -146,7 +146,7 @@ class QgsGraph
146146
:rtype: QgsGraphEdge
147147
%End
148148

149-
int findVertex( const QgsPoint &pt ) const;
149+
int findVertex( const QgsPointXY &pt ) const;
150150
%Docstring
151151
Find vertex by associated point
152152
:return: vertex index

‎python/analysis/network/qgsgraphbuilder.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ class QgsGraphBuilder : QgsGraphBuilderInterface
2929

3030
~QgsGraphBuilder();
3131

32-
virtual void addVertex( int id, const QgsPoint &pt );
32+
virtual void addVertex( int id, const QgsPointXY &pt );
3333
%Docstring
3434
MANDATORY BUILDER PROPERTY DECLARATION
3535
%End
3636

37-
virtual void addEdge( int pt1id, const QgsPoint &pt1, int pt2id, const QgsPoint &pt2, const QVector< QVariant > &prop );
37+
virtual void addEdge( int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &prop );
3838

3939
QgsGraph *graph() /Factory/;
4040
%Docstring

0 commit comments

Comments
 (0)
Please sign in to comment.