QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Implementation of layer selection properties for vector layers. More...
#include <qgsvectorlayerselectionproperties.h>
Public Member Functions | |
QgsVectorLayerSelectionProperties (QObject *parent=nullptr) | |
Constructor for QgsVectorLayerSelectionProperties, with the specified parent object. | |
~QgsVectorLayerSelectionProperties () override | |
QgsVectorLayerSelectionProperties * | clone () const override |
Creates a clone of the properties. | |
bool | readXml (const QDomElement &element, const QgsReadWriteContext &context) override |
Reads temporal properties from a DOM element previously written by writeXml(). | |
QColor | selectionColor () const |
Returns the color to use for rendering selected features in the layer. | |
Qgis::SelectionRenderingMode | selectionRenderingMode () const |
Returns the selection rendering mode to use for selected features in the layer. | |
QgsSymbol * | selectionSymbol () const |
Returns the symbol used to render selected features in the layer. | |
void | setSelectionColor (const QColor &color) |
Sets the color to use for rendering selected features in the layer. | |
void | setSelectionRenderingMode (Qgis::SelectionRenderingMode mode) |
Sets the selection rendering mode to use for selected features in the layer. | |
void | setSelectionSymbol (QgsSymbol *symbol) |
Sets the symbol used to render selected features in the layer. | |
QDomElement | writeXml (QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context) override |
Writes the properties to a DOM element, to be used later with readXml(). | |
Public Member Functions inherited from QgsMapLayerSelectionProperties | |
QgsMapLayerSelectionProperties (QObject *parent) | |
Constructor for QgsMapLayerSelectionProperties, with the specified parent object. | |
Implementation of layer selection properties for vector layers.
Definition at line 38 of file qgsvectorlayerselectionproperties.h.
QgsVectorLayerSelectionProperties::QgsVectorLayerSelectionProperties | ( | QObject * | parent = nullptr | ) |
Constructor for QgsVectorLayerSelectionProperties, with the specified parent object.
Definition at line 23 of file qgsvectorlayerselectionproperties.cpp.
|
overridedefault |
|
overridevirtual |
Creates a clone of the properties.
Implements QgsMapLayerSelectionProperties.
Definition at line 66 of file qgsvectorlayerselectionproperties.cpp.
|
overridevirtual |
Reads temporal properties from a DOM element previously written by writeXml().
Implements QgsMapLayerSelectionProperties.
Definition at line 50 of file qgsvectorlayerselectionproperties.cpp.
QColor QgsVectorLayerSelectionProperties::selectionColor | ( | ) | const |
Returns the color to use for rendering selected features in the layer.
An invalid color indicates that the default (i.e. project level) selection color should be used instead.
Definition at line 75 of file qgsvectorlayerselectionproperties.cpp.
Qgis::SelectionRenderingMode QgsVectorLayerSelectionProperties::selectionRenderingMode | ( | ) | const |
Returns the selection rendering mode to use for selected features in the layer.
Definition at line 95 of file qgsvectorlayerselectionproperties.cpp.
QgsSymbol * QgsVectorLayerSelectionProperties::selectionSymbol | ( | ) | const |
Returns the symbol used to render selected features in the layer.
May be nullptr
if the default symbol should be used instead.
Definition at line 85 of file qgsvectorlayerselectionproperties.cpp.
void QgsVectorLayerSelectionProperties::setSelectionColor | ( | const QColor & | color | ) |
Sets the color to use for rendering selected features in the layer.
An invalid color indicates that the default (i.e. project level) selection color should be used instead.
Definition at line 80 of file qgsvectorlayerselectionproperties.cpp.
void QgsVectorLayerSelectionProperties::setSelectionRenderingMode | ( | Qgis::SelectionRenderingMode | mode | ) |
Sets the selection rendering mode to use for selected features in the layer.
Definition at line 100 of file qgsvectorlayerselectionproperties.cpp.
void QgsVectorLayerSelectionProperties::setSelectionSymbol | ( | QgsSymbol * | symbol | ) |
Sets the symbol used to render selected features in the layer.
Ownership of symbol is transferred to the plot. If symbol is nullptr
then the default symbol will be used instead.
Definition at line 90 of file qgsvectorlayerselectionproperties.cpp.
|
overridevirtual |
Writes the properties to a DOM element, to be used later with readXml().
Implements QgsMapLayerSelectionProperties.
Definition at line 31 of file qgsvectorlayerselectionproperties.cpp.