2017-05-18 07:50:23 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgspluginlayer.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
2010-01-26 15:43:54 +00:00
|
|
|
class QgsPluginLayer : QgsMapLayer
|
|
|
|
{
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
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"
|
|
|
|
%End
|
|
|
|
|
2010-01-26 15:43:54 +00:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgspluginlayer.h"
|
|
|
|
%End
|
|
|
|
public:
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsPluginLayer( const QString &layerType, const QString &layerName = QString() );
|
2017-05-18 07:50:23 +02:00
|
|
|
~QgsPluginLayer();
|
2010-01-26 15:43:54 +00:00
|
|
|
|
2017-05-17 08:53:52 +02:00
|
|
|
virtual QgsPluginLayer *clone() const = 0;
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-05-16 13:34:18 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a new instance equivalent to this one.
|
|
|
|
|
|
|
|
:return: a new layer instance
|
|
|
|
|
2017-05-16 13:34:18 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2010-01-26 15:43:54 +00:00
|
|
|
QString pluginLayerType();
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Return plugin layer type (the same as used in QgsPluginLayerRegistry)
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void setExtent( const QgsRectangle &extent );
|
2010-01-26 15:43:54 +00:00
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Set extent of the layer
|
|
|
|
%End
|
2013-10-29 10:55:02 +07:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setSource( const QString &source );
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set source string. This is used for example in layer tree to show tooltip.
|
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
.. versionadded:: 2.16
|
|
|
|
%End
|
2016-02-29 17:17:14 +08:00
|
|
|
|
2018-03-20 11:30:15 +01:00
|
|
|
virtual QgsDataProvider *dataProvider();
|
|
|
|
|
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
protected:
|
2010-01-26 15:43:54 +00:00
|
|
|
};
|
2017-05-18 07:50:23 +02:00
|
|
|
|
2018-03-21 15:43:45 +10:00
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgspluginlayer.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|