Quantum GIS API Documentation  1.8
Public Member Functions | Protected Attributes
QgsPluginLayer Class Reference

Base class for plugin layers. More...

#include <qgspluginlayer.h>

Inheritance diagram for QgsPluginLayer:
Inheritance graph
Collaboration diagram for QgsPluginLayer:
Collaboration graph

List of all members.

Public Member Functions

 QgsPluginLayer (QString layerType, QString layerName=QString())
QString pluginLayerType ()
 return plugin layer type (the same as used in QgsPluginLayerRegistry)
void setExtent (const QgsRectangle &extent)

Protected Attributes

QString mPluginLayerType

Detailed Description

Base class for plugin layers.

These can be implemented by plugins and registered in QgsPluginLayerRegistry.

In order to be readable from project files, they should set these attributes in layer DOM node: "type" = "plugin" "name" = "your_layer_type"

added in v1.5

Definition at line 30 of file qgspluginlayer.h.

Constructor & Destructor Documentation

QgsPluginLayer::QgsPluginLayer ( QString  layerType,
QString  layerName = QString() 

Definition at line 17 of file qgspluginlayer.cpp.

Member Function Documentation

return plugin layer type (the same as used in QgsPluginLayerRegistry)

Definition at line 22 of file qgspluginlayer.cpp.

References mPluginLayerType.

Referenced by QgsPluginLayerRegistry::removePluginLayerType().

void QgsPluginLayer::setExtent ( const QgsRectangle extent)

Definition at line 27 of file qgspluginlayer.cpp.

References QgsMapLayer::extent(), and QgsMapLayer::mLayerExtent.

Member Data Documentation

QString QgsPluginLayer::mPluginLayerType [protected]

Definition at line 43 of file qgspluginlayer.h.

Referenced by pluginLayerType().

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines