|
QGIS API Documentation
master-59fd5e0
|
Base class for plugin layers. More...
#include <qgspluginlayer.h>
Inheritance diagram for QgsPluginLayer:
Collaboration diagram for QgsPluginLayer: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) |
| Set the extent. | |
Protected Attributes | |
| QString | mPluginLayerType |
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"
Definition at line 30 of file qgspluginlayer.h.
| QgsPluginLayer::QgsPluginLayer | ( | QString | layerType, |
| QString | layerName = QString() |
||
| ) |
Definition at line 17 of file qgspluginlayer.cpp.
| QString QgsPluginLayer::pluginLayerType | ( | ) |
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 & | rect | ) | [virtual] |
Set the extent.
Reimplemented from QgsMapLayer.
Definition at line 27 of file qgspluginlayer.cpp.
References QgsMapLayer::extent(), and QgsMapLayer::mExtent.
QString QgsPluginLayer::mPluginLayerType [protected] |
Definition at line 43 of file qgspluginlayer.h.
Referenced by pluginLayerType().