~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to python/core/qgsvectoroverlay.sip

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class QgsVectorOverlay
 
2
{
 
3
%TypeHeaderCode
 
4
#include "qgsvectoroverlay.h"
 
5
%End
 
6
  public:
 
7
    QgsVectorOverlay( QgsVectorLayer* vl );
 
8
    virtual ~QgsVectorOverlay();
 
9
 
 
10
    /**Create the overlay objects contained in a view extent. Subclasses need to implement this method and assign                   width/height information to the overlay objects*/
 
11
 
 
12
    virtual void createOverlayObjects( const QgsRenderContext& renderContext ) = 0;
 
13
 
 
14
    /**Remove the overlay objects and release their memory*/
 
15
    void removeOverlayObjects();
 
16
 
 
17
    /**Draw the overlay objects*/
 
18
    virtual void drawOverlayObjects( QgsRenderContext& context ) const = 0;
 
19
 
 
20
    /**Gives direct access to oberlay objects*/
 
21
    QMap<int, QgsOverlayObject*>* overlayObjects();
 
22
 
 
23
    /**Describes the overlay type (e.g. "diagram" or "label")*/
 
24
    virtual QString typeName() const = 0;
 
25
 
 
26
    /**Set attribute indices necessary to fetch*/
 
27
    void setAttributes( const QList<int>& list );
 
28
 
 
29
    bool displayFlag() const;
 
30
 
 
31
    /**Display yes/no*/
 
32
    void setDisplayFlag( bool flag );
 
33
 
 
34
    /**Restore from project file*/
 
35
    virtual bool readXML( const QDomNode& overlayNode ) = 0;
 
36
 
 
37
    /**Save to project file*/
 
38
    virtual bool writeXML( QDomNode& layer_node, QDomDocument& doc ) const = 0;
 
39
};