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

Base class for plugin layers. More...

#include <qgspluginlayer.h>

Inheritance diagram for QgsPluginLayer:
Inheritance graph
[legend]
Collaboration diagram for QgsPluginLayer:
Collaboration graph
[legend]

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"

Note:
added in v1.5

Definition at line 16 of file qgspluginlayer.h.


Constructor & Destructor Documentation

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

Definition at line 3 of file qgspluginlayer.cpp.


Member Function Documentation

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

Definition at line 8 of file qgspluginlayer.cpp.

References mPluginLayerType.

Referenced by QgsPluginLayerRegistry::removePluginLayerType().

void QgsPluginLayer::setExtent ( const QgsRectangle extent)

Definition at line 13 of file qgspluginlayer.cpp.

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


Member Data Documentation

QString QgsPluginLayer::mPluginLayerType [protected]

Definition at line 29 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