Skip to content

Commit

Permalink
reintroduce getPoint method for QgsRubberband
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8209 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 12, 2008
1 parent 4ca70cc commit d3f550c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gui/qgsrubberband.cpp
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions src/gui/qgsrubberband.h
Expand Up @@ -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);

Expand Down

0 comments on commit d3f550c

Please sign in to comment.