We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 4ca70cc commit d3f550cCopy full SHA for d3f550c
src/gui/qgsrubberband.cpp
@@ -361,3 +361,11 @@ int QgsRubberBand::numberOfVertices() const
361
}
362
return count;
363
364
+
365
+const QgsPoint *QgsRubberBand::getPoint(int i, int j) const
366
+{
367
+ if( i<mPoints.size() && j<mPoints[i].size() )
368
+ return &mPoints[i][j];
369
+ else
370
+ return 0;
371
+}
src/gui/qgsrubberband.h
@@ -63,6 +63,9 @@ class GUI_EXPORT QgsRubberBand: public QgsMapCanvasItem
63
/**Returns count of vertices in all lists of mPoint*/
64
int numberOfVertices() const;
65
66
+ /**Return vertex*/
67
+ const QgsPoint *getPoint(int i, int j=0) const;
68
69
protected:
70
virtual void paint(QPainter* p);
71
0 commit comments