Skip to content

Commit

Permalink
added Method QgsRenderer::containsPixmap
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5312 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 19, 2006
1 parent 0bf94cd commit a93e46b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/core/qgsrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,15 @@ void QgsRenderer::refreshLegend(std::list< std::pair<QString, QPixmap> >* symbol
}
}

bool QgsRenderer::containsPixmap() const
{
//default implementation returns true only for points
switch(mVectorType)
{
case QGis::Point:
return true;
default:
return false;
}
}

2 changes: 2 additions & 0 deletions src/core/qgsrenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class QgsRenderer
virtual void refreshLegend(std::list< std::pair<QString, QPixmap> >* symbologyList) const;
/**Returns a copy of the renderer (a deep copy on the heap)*/
virtual QgsRenderer* clone() const=0;
/**Returns true if this renderer returns a pixmap in the render method (e.g. for point data or diagrams)*/
virtual bool containsPixmap() const;
/**Color to draw selected features - static so we can change it in proj props and automatically
all renderers are updated*/
static QColor mSelectionColor;
Expand Down

0 comments on commit a93e46b

Please sign in to comment.