|
| QgsLayerTreeLayer (const QgsLayerTreeLayer &other) |
|
| QgsLayerTreeLayer (const QString &layerId, const QString &name=QString(), const QString &source=QString(), const QString &provider=QString()) |
| Constructor for QgsLayerTreeLayer using weak references to layer ID, name, public source, and provider key. More...
|
|
| QgsLayerTreeLayer (QgsMapLayer *layer) |
|
QgsLayerTreeLayer * | clone () const override |
| Create a copy of the node. Returns new instance. More...
|
|
QString | dump () const override |
| Returns string with layer tree structure. For debug purposes only. More...
|
|
QString | labelExpression () const |
| Returns the expression member of the LayerTreeNode. More...
|
|
QgsMapLayer * | layer () const |
| Returns the map layer associated with this node. More...
|
|
QString | layerId () const |
| Returns the ID for the map layer associated with this node. More...
|
|
LegendNodesSplitBehavior | legendSplitBehavior () const |
| Returns the column split behavior for the node. More...
|
|
QString | name () const override |
| Returns the layer's name. More...
|
|
QgsLegendPatchShape | patchShape () const |
| Returns the symbol patch shape to use when rendering the legend node symbol. More...
|
|
QSizeF | patchSize () const |
| Returns the user (overridden) size for the legend node. More...
|
|
void | resolveReferences (const QgsProject *project, bool looseMatching=false) override |
| Resolves reference to layer from stored layer ID (if it has not been resolved already) More...
|
|
void | setLabelExpression (const QString &expression) |
| set the expression to evaluate More...
|
|
void | setLegendSplitBehavior (LegendNodesSplitBehavior behavior) |
| Sets the column split behavior for the node. More...
|
|
void | setName (const QString &n) override |
| Sets the layer's name. More...
|
|
void | setPatchShape (const QgsLegendPatchShape &shape) |
| Sets the symbol patch shape to use when rendering the legend node symbol. More...
|
|
void | setPatchSize (QSizeF size) |
| Sets the user (overridden) size for the legend node. More...
|
|
void | setUseLayerName (bool use=true) |
| Uses the layer's name if use is true , or the name manually set if false . More...
|
|
bool | useLayerName () const |
| Returns whether the layer's name is used, or the name manually set. More...
|
|
void | writeXml (QDomElement &parentElement, const QgsReadWriteContext &context) override |
| Write layer tree to XML. More...
|
|
| ~QgsLayerTreeNode () override |
|
QList< QgsLayerTreeNode * > | abandonChildren () |
| Removes the childrens, disconnect all the forwarded and external signals and sets their parent to nullptr . More...
|
|
QList< QgsMapLayer * > | checkedLayers () const |
| Returns a list of any checked layers which belong to this node or its children. More...
|
|
QList< QgsLayerTreeNode * > | children () |
| Gets list of children of the node. Children are owned by the parent. More...
|
|
QList< QgsLayerTreeNode * > | children () const |
| Gets list of children of the node. Children are owned by the parent. More...
|
|
virtual QgsLayerTreeNode * | clone () const =0 |
| Create a copy of the node. Returns new instance. More...
|
|
QStringList | customProperties () const |
| Returns list of keys stored in custom properties. More...
|
|
QVariant | customProperty (const QString &key, const QVariant &defaultValue=QVariant()) const |
| Read a custom property from layer. Properties are stored in a map and saved in project file. More...
|
|
int | depth () const |
| Returns the depth of this node, i.e. More...
|
|
virtual QString | dump () const =0 |
| Returns string with layer tree structure. For debug purposes only. More...
|
|
bool | isExpanded () const |
| Returns whether the node should be shown as expanded or collapsed in GUI. More...
|
|
bool | isItemVisibilityCheckedRecursive () const |
| Returns whether this node is checked and all its children. More...
|
|
bool | isItemVisibilityUncheckedRecursive () const |
| Returns whether this node is unchecked and all its children. More...
|
|
bool | isVisible () const |
| Returns whether a node is really visible (ie checked and all its ancestors checked as well) More...
|
|
bool | itemVisibilityChecked () const |
| Returns whether a node is checked (independently of its ancestors or children) More...
|
|
virtual QString | name () const =0 |
| Returns name of the node. More...
|
|
NodeType | nodeType () const |
| Find out about type of the node. It is usually shorter to use convenience functions from QgsLayerTree namespace for that. More...
|
|
QgsLayerTreeNode * | parent () |
| Gets pointer to the parent. If parent is nullptr , the node is a root node. More...
|
|
void | removeCustomProperty (const QString &key) |
| Remove a custom property from layer. Properties are stored in a map and saved in project file. More...
|
|
virtual void | resolveReferences (const QgsProject *project, bool looseMatching=false)=0 |
| Turn textual references to layers into map layer object from project. More...
|
|
void | setCustomProperty (const QString &key, const QVariant &value) |
| Sets a custom property for the node. Properties are stored in a map and saved in project file. More...
|
|
void | setExpanded (bool expanded) |
| Sets whether the node should be shown as expanded or collapsed in GUI. More...
|
|
void | setItemVisibilityChecked (bool checked) |
| Check or uncheck a node (independently of its ancestors or children) More...
|
|
void | setItemVisibilityCheckedParentRecursive (bool checked) |
| Check or uncheck a node and all its parents. More...
|
|
virtual void | setItemVisibilityCheckedRecursive (bool checked) |
| Check or uncheck a node and all its children (taking into account exclusion rules) More...
|
|
virtual void | setName (const QString &name)=0 |
| Set name of the node. More...
|
|
bool | takeChild (QgsLayerTreeNode *node) |
| Remove a child from a node. More...
|
|
virtual void | writeXml (QDomElement &parentElement, const QgsReadWriteContext &context)=0 |
| Write layer tree to XML. More...
|
|