1
#include "qgslegendvectorsymbologyitem.h"
2
#include "qgsrenderer.h"
9
QColor QgsRenderer::mSelectionColor=QColor(0,0,0);
11
QgsRenderer::QgsRenderer()
16
void QgsRenderer::refreshLegend(std::list< std::pair<QString, QPixmap> >* symbologyList) const
21
QString lw, uv, label;
22
const std::list<QgsSymbol*> sym = symbols();
24
for(std::list<QgsSymbol*>::const_iterator it=sym.begin(); it!=sym.end(); ++it)
27
if((*it)->type() == QGis::Point)
29
pix = (*it)->getPointSymbolAsPixmap();
31
else if((*it)->type() == QGis::Line)
33
pix = (*it)->getLineSymbolAsPixmap();
37
pix = (*it)->getPolygonSymbolAsPixmap();
41
lw = (*it)->lowerValue();
46
uv = (*it)->upperValue();
52
label = (*it)->label();
58
symbologyList->push_back(std::make_pair(values, pix));
63
bool QgsRenderer::containsPixmap() const
65
//default implementation returns true only for points
75
bool QgsRenderer::willRenderFeature(QgsFeature *f)
77
// Normally render the feature, unless told otherwise