QGIS/python/core/auto_generated/layertree/qgslayertree.sip.in

191 lines
5.0 KiB
Plaintext
Raw Normal View History

2017-04-24 15:52:13 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/layertree/qgslayertree.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-03-22 19:15:44 +01:00
class QgsLayerTree : QgsLayerTreeGroup
{
2017-04-24 15:52:13 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Namespace with helper functions for layer tree operations.
2017-04-24 15:52:13 +02:00
2017-12-15 10:36:55 -04:00
Only generally useful routines should be here. Miscellaneous utility functions for work
with the layer tree are in QgsLayerTreeUtils class.
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-04-24 15:52:13 +02:00
%TypeHeaderCode
#include "qgslayertree.h"
%End
2017-03-23 09:01:52 +01:00
public:
2017-04-24 15:52:13 +02:00
2017-03-23 09:01:52 +01:00
static bool isGroup( QgsLayerTreeNode *node );
2017-04-24 15:52:13 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Check whether the node is a valid group node
2017-04-24 15:52:13 +02:00
.. versionadded:: 2.4
%End
2017-03-23 09:01:52 +01:00
static bool isLayer( const QgsLayerTreeNode *node );
2017-04-24 15:52:13 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Check whether the node is a valid layer node
2017-04-24 15:52:13 +02:00
.. versionadded:: 2.4
%End
2017-03-23 09:01:52 +01:00
2017-04-24 15:52:13 +02:00
QgsLayerTree();
%Docstring
2017-12-15 10:36:55 -04:00
Create a new empty layer tree
2017-04-24 15:52:13 +02:00
%End
2017-03-22 19:15:44 +01:00
QList<QgsMapLayer *> customLayerOrder() const;
2017-04-24 15:52:13 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
The order in which layers will be rendered on the canvas.
Will only be used if the property hasCustomLayerOrder is true.
If you need the current layer order that is active, prefer using layerOrder().
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setCustomLayerOrder`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`layerOrder`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`hasCustomLayerOrder`
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
void setCustomLayerOrder( const QList<QgsMapLayer *> &customLayerOrder );
%Docstring
2017-12-15 10:36:55 -04:00
The order in which layers will be rendered on the canvas.
Will only be used if the property hasCustomLayerOrder is true.
If you need the current layer order that is active, prefer using layerOrder().
2017-03-22 19:15:44 +01:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`customLayerOrder`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`layerOrder`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`hasCustomLayerOrder`
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
void setCustomLayerOrder( const QStringList &customLayerOrder ) /PyName=setCustomLayerOrderByIds/;
%Docstring
2017-12-15 10:36:55 -04:00
The order in which layers will be rendered on the canvas.
Will only be used if the property hasCustomLayerOrder is true.
If you need the current layer order that is active, prefer using layerOrder().
2017-03-22 19:15:44 +01:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`customLayerOrder`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`layerOrder`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`hasCustomLayerOrder`
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
QList<QgsMapLayer *> layerOrder() const;
%Docstring
2017-12-15 10:36:55 -04:00
The order in which layers will be rendered on the canvas.
Depending on hasCustomLayerOrder, this will return either the override
customLayerOrder or the layer order derived from the tree.
This property is read only.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`customLayerOrder`
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
bool hasCustomLayerOrder() const;
%Docstring
2017-12-15 10:36:55 -04:00
Determines if the layer order should be derived from the layer tree
or if a custom override order shall be used instead.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`customLayerOrder`
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
void setHasCustomLayerOrder( bool hasCustomLayerOrder );
%Docstring
2017-12-15 10:36:55 -04:00
Determines if the layer order should be derived from the layer tree
or if a custom override order shall be used instead.
2017-03-22 19:15:44 +01:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setCustomLayerOrder`
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
static QgsLayerTree *readXml( QDomElement &element, const QgsReadWriteContext &context );
2017-04-24 15:52:13 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Load the layer tree from an XML element.
It is not required that layers are loaded at this point.
resolveReferences() needs to be called after loading the layers and
before using the tree.
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
void readLayerOrderFromXml( const QDomElement &doc );
%Docstring
2017-12-15 10:36:55 -04:00
Load the layer order from an XML element.
Make sure that this is only called after the layers are loaded.
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
virtual void writeXml( QDomElement &parentElement, const QgsReadWriteContext &context );
2017-03-22 19:15:44 +01:00
2017-05-30 14:39:24 +02:00
virtual QgsLayerTree *clone() const /Factory/;
2017-04-24 15:52:13 +02:00
2017-04-24 15:52:13 +02:00
void clear();
%Docstring
2017-12-15 10:36:55 -04:00
Clear any information from this layer tree.
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
signals:
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
void customLayerOrderChanged();
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when the custom layer order has changed.
2017-03-22 19:15:44 +01:00
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
void layerOrderChanged();
2017-04-24 15:52:13 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when the layer order has changed.
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
2017-03-22 19:15:44 +01:00
void hasCustomLayerOrderChanged( bool hasCustomLayerOrder );
2017-04-24 15:52:13 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when the hasCustomLayerOrder flag changes.
2017-04-24 15:52:13 +02:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`hasCustomLayerOrder`
2017-04-24 15:52:13 +02:00
.. versionadded:: 3.0
%End
};
2017-04-24 15:52:13 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/layertree/qgslayertree.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/