15
15
* (at your option) any later version. *
17
17
***************************************************************************/
18
/* $Id: qgssimarenderer.h,v 1.15 2004/10/26 17:28:03 mcoletti Exp $ */
18
/* $Id: qgssimarenderer.h,v 1.19 2005/04/02 09:42:53 rabla Exp $ */
20
20
#ifndef QGSSIMARENDERER_H
21
21
#define QGSSIMARENDERER_H
32
32
/**Replaces the current mItem by ri*/
33
33
void addItem(QgsRenderItem* ri);
34
34
void initializeSymbology(QgsVectorLayer* layer, QgsDlgVectorLayerProperties* pr=0);
35
void renderFeature(QPainter* p, QgsFeature* f, QPicture* pic, double* scalefactor, bool selected);
35
void renderFeature(QPainter* p, QgsFeature* f, QPicture* pic, double* scalefactor, bool selected, int oversampling = 1, double widthScale = 1.);
36
36
/**Reads the renderer configuration from an XML file
37
37
@param rnode the DOM node to read
38
38
@param vl the vector layer which will be associated with the renderer*/
39
39
virtual void readXML(const QDomNode& rnode, QgsVectorLayer& vl);
40
40
/**Writes the contents of the renderer to a configuration file*/
41
41
virtual void writeXML(std::ostream& xml);
42
/**Writes the contents of the renderer to a configuration file
43
@ return true in case of success*/
44
virtual bool writeXML( QDomNode & layer_node, QDomDocument & document );
42
45
bool needsAttributes();
43
46
/**Returns an empty list, since no classification attributes are used*/
44
47
virtual std::list<int> classificationAttributes();
45
48
QgsRenderItem* item();
46
49
/**Returns the renderers name*/
51
/**Return symbology items*/
52
const std::list<QgsRenderItem*> items() const;
49
54
QgsRenderItem* mItem;
52
57
inline QgsSiMaRenderer::QgsSiMaRenderer()
54
mItem=new QgsRenderItem(new QgsMarkerSymbol(),"","");
59
//call superclass method to set up selection colour
60
initialiseSelectionColor();
62
mItem=new QgsRenderItem(new QgsMarkerSymbol(),"","");
57
65
inline QgsSiMaRenderer::~QgsSiMaRenderer()