~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to src/qgssimarenderer.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2005-11-05 16:04:45 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051105160445-l0g4isz5bc9yehet
Tags: 0.7.4-1
* New upstream release
* Build GRASS support in qgis-plugin-grass package (Closes: #248649)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *   (at your option) any later version.                                   *
16
16
 *                                                                         *
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 $ */
19
19
 
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*/
47
50
    QString name();
 
51
    /**Return symbology items*/
 
52
    const std::list<QgsRenderItem*> items() const;
48
53
 protected:
49
54
    QgsRenderItem* mItem;
50
55
};
51
56
 
52
57
inline QgsSiMaRenderer::QgsSiMaRenderer()
53
58
{
54
 
    mItem=new QgsRenderItem(new QgsMarkerSymbol(),"","");
 
59
  //call superclass method to set up selection colour
 
60
  initialiseSelectionColor();
 
61
 
 
62
  mItem=new QgsRenderItem(new QgsMarkerSymbol(),"","");
55
63
}
56
64
 
57
65
inline QgsSiMaRenderer::~QgsSiMaRenderer()