4
#include "qgsvectoroverlay.h"
7
QgsVectorOverlay( QgsVectorLayer* vl );
8
virtual ~QgsVectorOverlay();
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*/
12
virtual void createOverlayObjects( const QgsRenderContext& renderContext ) = 0;
14
/**Remove the overlay objects and release their memory*/
15
void removeOverlayObjects();
17
/**Draw the overlay objects*/
18
virtual void drawOverlayObjects( QgsRenderContext& context ) const = 0;
20
/**Gives direct access to oberlay objects*/
21
QMap<int, QgsOverlayObject*>* overlayObjects();
23
/**Describes the overlay type (e.g. "diagram" or "label")*/
24
virtual QString typeName() const = 0;
26
/**Set attribute indices necessary to fetch*/
27
void setAttributes( const QList<int>& list );
29
bool displayFlag() const;
32
void setDisplayFlag( bool flag );
34
/**Restore from project file*/
35
virtual bool readXML( const QDomNode& overlayNode ) = 0;
37
/**Save to project file*/
38
virtual bool writeXML( QDomNode& layer_node, QDomDocument& doc ) const = 0;