Skip to content

Commit d3f550c

Browse files
author
jef
committedMar 12, 2008

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
 

‎src/gui/qgsrubberband.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,11 @@ int QgsRubberBand::numberOfVertices() const
361361
}
362362
return count;
363363
}
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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ class GUI_EXPORT QgsRubberBand: public QgsMapCanvasItem
6363
/**Returns count of vertices in all lists of mPoint*/
6464
int numberOfVertices() const;
6565

66+
/**Return vertex*/
67+
const QgsPoint *getPoint(int i, int j=0) const;
68+
6669
protected:
6770
virtual void paint(QPainter* p);
6871

0 commit comments

Comments
 (0)
Please sign in to comment.