Skip to content
Permalink
Browse files

reintroduce getPoint method for QgsRubberband

git-svn-id: http://svn.osgeo.org/qgis/trunk@8209 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Mar 12, 2008
1 parent 23a8958 commit 228d030c972ccec3b2e44f7f8d3d4e803f93ead3
Showing with 11 additions and 0 deletions.
  1. +8 −0 src/gui/qgsrubberband.cpp
  2. +3 −0 src/gui/qgsrubberband.h
@@ -361,3 +361,11 @@ int QgsRubberBand::numberOfVertices() const
}
return count;
}

const QgsPoint *QgsRubberBand::getPoint(int i, int j) const
{
if( i<mPoints.size() && j<mPoints[i].size() )
return &mPoints[i][j];
else
return 0;
}
@@ -63,6 +63,9 @@ class GUI_EXPORT QgsRubberBand: public QgsMapCanvasItem
/**Returns count of vertices in all lists of mPoint*/
int numberOfVertices() const;

/**Return vertex*/
const QgsPoint *getPoint(int i, int j=0) const;

protected:
virtual void paint(QPainter* p);

0 comments on commit 228d030

Please sign in to comment.
You can’t perform that action at this time.