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

« back to all changes in this revision

Viewing changes to src/qgsuvalmarenderer.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:
14
14
 *   (at your option) any later version.                                   *
15
15
 *                                                                         *
16
16
 ***************************************************************************/
17
 
/* $Id: qgsuvalmarenderer.h,v 1.4 2004/10/26 17:28:03 mcoletti Exp $ */
 
17
/* $Id: qgsuvalmarenderer.h,v 1.7 2005/04/02 09:42:54 rabla Exp $ */
18
18
#ifndef QGSUVALMARENDERER_H
19
19
#define QGSUVALMARENDERER_H
20
20
 
30
30
    QgsUValMaRenderer();
31
31
    virtual ~QgsUValMaRenderer();
32
32
    void initializeSymbology(QgsVectorLayer* layer, QgsDlgVectorLayerProperties* pr=0);
33
 
    void renderFeature(QPainter* p, QgsFeature* f,QPicture* pic, double* scalefactor, bool selected);
 
33
    void renderFeature(QPainter* p, QgsFeature* f,QPicture* pic, double* scalefactor, bool selected, int oversampling = 1, double widthScale = 1.);
34
34
    /**Reads the renderer configuration from an XML file
35
35
     @param rnode the DOM node to read 
36
36
     @param vl the vector layer which will be associated with the renderer*/
37
37
    void readXML(const QDomNode& rnode, QgsVectorLayer& vl);
38
38
    /**Writes the contents of the renderer to a configuration file*/
39
39
    void writeXML(std::ostream& xml);
 
40
    /**Writes the contents of the renderer to a configuration file
 
41
     @ return true in case of success*/
 
42
    virtual bool writeXML( QDomNode & layer_node, QDomDocument & document );
40
43
    /** Returns true, if attribute values are used by the renderer and false otherwise*/
41
44
    bool needsAttributes();
42
45
    /**Returns a list with indexes of classification attributes*/
53
56
    int classificationField();
54
57
    /**Returns the values*/
55
58
    std::map<QString,QgsRenderItem*>& items();
 
59
    /**Return symbology items*/
 
60
    const std::list<QgsRenderItem*> items() const;
56
61
 protected:
57
62
    /**Field index used for classification*/
58
63
    int mClassificationField;