mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-10 00:04:23 -04:00
Remove unnecessary includes of qgssymbollayerreference.h
This commit is contained in:
parent
17af235484
commit
22c2d7213b
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsMaskIdProvider
|
class QgsMaskIdProvider
|
||||||
{
|
{
|
||||||
%Docstring(signature="appended")
|
%Docstring(signature="appended")
|
||||||
|
@ -72,7 +72,8 @@ Create a new QgsMaskMarkerSymbolLayer
|
|||||||
Whether some masked symbol layers are defined
|
Whether some masked symbol layers are defined
|
||||||
%End
|
%End
|
||||||
|
|
||||||
virtual QgsSymbolLayerReferenceList masks() const;
|
virtual QList<QgsSymbolLayerReference> masks() const;
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns a list of references to symbol layers that are masked by the sub symbol's shape.
|
Returns a list of references to symbol layers that are masked by the sub symbol's shape.
|
||||||
|
|
||||||
@ -81,7 +82,7 @@ Returns a list of references to symbol layers that are masked by the sub symbol'
|
|||||||
.. seealso:: :py:func:`setMasks`
|
.. seealso:: :py:func:`setMasks`
|
||||||
%End
|
%End
|
||||||
|
|
||||||
void setMasks( QgsSymbolLayerReferenceList maskedLayers );
|
void setMasks( const QList<QgsSymbolLayerReference> &maskedLayers );
|
||||||
%Docstring
|
%Docstring
|
||||||
Sets the symbol layers that will be masked by the sub symbol's shape.
|
Sets the symbol layers that will be masked by the sub symbol's shape.
|
||||||
|
|
||||||
|
@ -552,7 +552,7 @@ Returns ``True`` if the symbol layer (or any of its sub-symbols) contains data d
|
|||||||
.. versionadded:: 3.4.5
|
.. versionadded:: 3.4.5
|
||||||
%End
|
%End
|
||||||
|
|
||||||
virtual QgsSymbolLayerReferenceList masks() const;
|
virtual QList<QgsSymbolLayerReference> masks() const;
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns masks defined by this symbol layer.
|
Returns masks defined by this symbol layer.
|
||||||
This is a list of symbol layers of other layers that should be occluded.
|
This is a list of symbol layers of other layers that should be occluded.
|
||||||
|
@ -43,12 +43,12 @@ path to symbol layers of the sub symbol are given by a list of indexes:
|
|||||||
public:
|
public:
|
||||||
QgsSymbolLayerId();
|
QgsSymbolLayerId();
|
||||||
|
|
||||||
QgsSymbolLayerId( QString key, int index );
|
QgsSymbolLayerId( const QString &key, int index );
|
||||||
%Docstring
|
%Docstring
|
||||||
QgsSymbolLayerId constructor with a symbol key and a unique symbol layer index
|
QgsSymbolLayerId constructor with a symbol key and a unique symbol layer index
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QgsSymbolLayerId( QString key, const QVector<int> &indexPath );
|
QgsSymbolLayerId( const QString &key, const QVector<int> &indexPath );
|
||||||
%Docstring
|
%Docstring
|
||||||
QgsSymbolLayerId constructor with a symbol key and an index path
|
QgsSymbolLayerId constructor with a symbol key and an index path
|
||||||
%End
|
%End
|
||||||
|
@ -203,7 +203,7 @@ Write settings into a DOM element.
|
|||||||
.. seealso:: :py:func:`readXml`
|
.. seealso:: :py:func:`readXml`
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QgsSymbolLayerReferenceList maskedSymbolLayers() const;
|
QList<QgsSymbolLayerReference> maskedSymbolLayers() const;
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns a list of references to symbol layers that are masked by this buffer.
|
Returns a list of references to symbol layers that are masked by this buffer.
|
||||||
|
|
||||||
@ -212,7 +212,7 @@ Returns a list of references to symbol layers that are masked by this buffer.
|
|||||||
.. seealso:: :py:func:`setMaskedSymbolLayers`
|
.. seealso:: :py:func:`setMaskedSymbolLayers`
|
||||||
%End
|
%End
|
||||||
|
|
||||||
void setMaskedSymbolLayers( QgsSymbolLayerReferenceList maskedLayers );
|
void setMaskedSymbolLayers( const QList<QgsSymbolLayerReference> &maskedLayers );
|
||||||
%Docstring
|
%Docstring
|
||||||
Sets the symbol layers that will be masked by this buffer.
|
Sets the symbol layers that will be masked by this buffer.
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "qgsmaskidprovider.h"
|
#include "qgsmaskidprovider.h"
|
||||||
|
#include "qgssymbollayerreference.h"
|
||||||
|
|
||||||
int QgsMaskIdProvider::insertLabelLayer( const QString &layerId, const QString &ruleId, const QSet<QgsSymbolLayerReference> &maskedSymbolLayers )
|
int QgsMaskIdProvider::insertLabelLayer( const QString &layerId, const QString &ruleId, const QSet<QgsSymbolLayerReference> &maskedSymbolLayers )
|
||||||
{
|
{
|
||||||
|
@ -16,9 +16,10 @@
|
|||||||
#ifndef QGSMASKIDPROVIDER_H
|
#ifndef QGSMASKIDPROVIDER_H
|
||||||
#define QGSMASKIDPROVIDER_H
|
#define QGSMASKIDPROVIDER_H
|
||||||
|
|
||||||
|
#include "qgis_core.h"
|
||||||
|
#include "qgssymbollayerreference.h"
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
#include "qgssymbollayerreference.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \ingroup core
|
* \ingroup core
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
#include "qgsdistancearea.h"
|
#include "qgsdistancearea.h"
|
||||||
#include "qgscoordinatetransformcontext.h"
|
#include "qgscoordinatetransformcontext.h"
|
||||||
#include "qgspathresolver.h"
|
#include "qgspathresolver.h"
|
||||||
#include "qgssymbollayerreference.h"
|
|
||||||
#include "qgstemporalrangeobject.h"
|
#include "qgstemporalrangeobject.h"
|
||||||
|
|
||||||
class QPainter;
|
class QPainter;
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "qgspainteffect.h"
|
#include "qgspainteffect.h"
|
||||||
#include "qgspainterswapper.h"
|
#include "qgspainterswapper.h"
|
||||||
#include "qgsmarkersymbol.h"
|
#include "qgsmarkersymbol.h"
|
||||||
|
#include "qgssymbollayerreference.h"
|
||||||
|
|
||||||
QgsMaskMarkerSymbolLayer::QgsMaskMarkerSymbolLayer()
|
QgsMaskMarkerSymbolLayer::QgsMaskMarkerSymbolLayer()
|
||||||
{
|
{
|
||||||
@ -123,6 +124,16 @@ void QgsMaskMarkerSymbolLayer::drawPreviewIcon( QgsSymbolRenderContext &context,
|
|||||||
QgsMarkerSymbolLayer::drawPreviewIcon( context, size );
|
QgsMarkerSymbolLayer::drawPreviewIcon( context, size );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QList<QgsSymbolLayerReference> QgsMaskMarkerSymbolLayer::masks() const
|
||||||
|
{
|
||||||
|
return mMaskedSymbolLayers;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QgsMaskMarkerSymbolLayer::setMasks( const QList<QgsSymbolLayerReference> &maskedLayers )
|
||||||
|
{
|
||||||
|
mMaskedSymbolLayers = maskedLayers;
|
||||||
|
}
|
||||||
|
|
||||||
QRectF QgsMaskMarkerSymbolLayer::bounds( QPointF point, QgsSymbolRenderContext &context )
|
QRectF QgsMaskMarkerSymbolLayer::bounds( QPointF point, QgsSymbolRenderContext &context )
|
||||||
{
|
{
|
||||||
return mSymbol->bounds( point, context.renderContext() );
|
return mSymbol->bounds( point, context.renderContext() );
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
#include "qgis_core.h"
|
#include "qgis_core.h"
|
||||||
#include "qgis.h"
|
#include "qgis.h"
|
||||||
#include "qgssymbollayer.h"
|
#include "qgssymbollayer.h"
|
||||||
#include "qgssymbollayerreference.h"
|
|
||||||
|
|
||||||
class QgsPaintEffect;
|
class QgsPaintEffect;
|
||||||
class QgsMarkerSymbol;
|
class QgsMarkerSymbol;
|
||||||
|
class QgsSymbolLayerReference;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \ingroup core
|
* \ingroup core
|
||||||
@ -73,14 +73,14 @@ class CORE_EXPORT QgsMaskMarkerSymbolLayer : public QgsMarkerSymbolLayer
|
|||||||
* \returns a list of references to masked symbol layers
|
* \returns a list of references to masked symbol layers
|
||||||
* \see setMasks
|
* \see setMasks
|
||||||
*/
|
*/
|
||||||
QgsSymbolLayerReferenceList masks() const override { return mMaskedSymbolLayers; }
|
QList<QgsSymbolLayerReference> masks() const override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the symbol layers that will be masked by the sub symbol's shape.
|
* Sets the symbol layers that will be masked by the sub symbol's shape.
|
||||||
* \param maskedLayers list of references to symbol layers
|
* \param maskedLayers list of references to symbol layers
|
||||||
* \see masks
|
* \see masks
|
||||||
*/
|
*/
|
||||||
void setMasks( QgsSymbolLayerReferenceList maskedLayers ) { mMaskedSymbolLayers = maskedLayers; }
|
void setMasks( const QList<QgsSymbolLayerReference> &maskedLayers );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#ifdef SIP_RUN
|
#ifdef SIP_RUN
|
||||||
@ -91,7 +91,7 @@ class CORE_EXPORT QgsMaskMarkerSymbolLayer : public QgsMarkerSymbolLayer
|
|||||||
std::unique_ptr<QgsMarkerSymbol> mSymbol;
|
std::unique_ptr<QgsMarkerSymbol> mSymbol;
|
||||||
|
|
||||||
//! List of symbol layers that will be masked
|
//! List of symbol layers that will be masked
|
||||||
QgsSymbolLayerReferenceList mMaskedSymbolLayers;
|
QList<QgsSymbolLayerReference> mMaskedSymbolLayers;
|
||||||
|
|
||||||
std::unique_ptr<QgsPaintEffect> mEffect;
|
std::unique_ptr<QgsPaintEffect> mEffect;
|
||||||
};
|
};
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include "qgsrendercontext.h"
|
#include "qgsrendercontext.h"
|
||||||
#include "qgsfields.h"
|
#include "qgsfields.h"
|
||||||
#include "qgsfeaturerequest.h"
|
#include "qgsfeaturerequest.h"
|
||||||
#include "qgssymbollayerreference.h"
|
|
||||||
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include "qgsstyle.h"
|
#include "qgsstyle.h"
|
||||||
#include "qgsexpressioncontextutils.h"
|
#include "qgsexpressioncontextutils.h"
|
||||||
#include "qgssymbol.h"
|
#include "qgssymbol.h"
|
||||||
|
#include "qgssymbollayerreference.h"
|
||||||
|
|
||||||
#include <QSize>
|
#include <QSize>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
@ -847,7 +848,7 @@ void QgsMarkerSymbolLayer::toSld( QDomDocument &doc, QDomElement &element, const
|
|||||||
writeSldMarker( doc, symbolizerElem, props );
|
writeSldMarker( doc, symbolizerElem, props );
|
||||||
}
|
}
|
||||||
|
|
||||||
QgsSymbolLayerReferenceList QgsSymbolLayer::masks() const
|
QList<QgsSymbolLayerReference> QgsSymbolLayer::masks() const
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
#include "qgsfields.h"
|
#include "qgsfields.h"
|
||||||
#include "qgspropertycollection.h"
|
#include "qgspropertycollection.h"
|
||||||
#include "qgssymbolrendercontext.h"
|
#include "qgssymbolrendercontext.h"
|
||||||
#include "qgssymbollayerreference.h"
|
|
||||||
|
|
||||||
class QPainter;
|
class QPainter;
|
||||||
class QSize;
|
class QSize;
|
||||||
@ -41,6 +40,7 @@ class QgsDxfExport;
|
|||||||
class QgsExpression;
|
class QgsExpression;
|
||||||
class QgsRenderContext;
|
class QgsRenderContext;
|
||||||
class QgsPaintEffect;
|
class QgsPaintEffect;
|
||||||
|
class QgsSymbolLayerReference;
|
||||||
|
|
||||||
#ifndef SIP_RUN
|
#ifndef SIP_RUN
|
||||||
typedef QMap<QString, QString> QgsStringMap;
|
typedef QMap<QString, QString> QgsStringMap;
|
||||||
@ -548,7 +548,7 @@ class CORE_EXPORT QgsSymbolLayer
|
|||||||
* This is a list of symbol layers of other layers that should be occluded.
|
* This is a list of symbol layers of other layers that should be occluded.
|
||||||
* \since QGIS 3.12
|
* \since QGIS 3.12
|
||||||
*/
|
*/
|
||||||
virtual QgsSymbolLayerReferenceList masks() const;
|
virtual QList<QgsSymbolLayerReference> masks() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@ -58,14 +58,14 @@ class CORE_EXPORT QgsSymbolLayerId
|
|||||||
/**
|
/**
|
||||||
* QgsSymbolLayerId constructor with a symbol key and a unique symbol layer index
|
* QgsSymbolLayerId constructor with a symbol key and a unique symbol layer index
|
||||||
*/
|
*/
|
||||||
QgsSymbolLayerId( QString key, int index )
|
QgsSymbolLayerId( const QString &key, int index )
|
||||||
: mSymbolKey( key ), mIndexPath( { index } )
|
: mSymbolKey( key ), mIndexPath( { index } )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* QgsSymbolLayerId constructor with a symbol key and an index path
|
* QgsSymbolLayerId constructor with a symbol key and an index path
|
||||||
*/
|
*/
|
||||||
QgsSymbolLayerId( QString key, const QVector<int> &indexPath )
|
QgsSymbolLayerId( const QString &key, const QVector<int> &indexPath )
|
||||||
: mSymbolKey( key ), mIndexPath( { indexPath } )
|
: mSymbolKey( key ), mIndexPath( { indexPath } )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
#include "qgslinesymbol.h"
|
#include "qgslinesymbol.h"
|
||||||
#include "qgsmarkersymbol.h"
|
#include "qgsmarkersymbol.h"
|
||||||
#include "qgsfillsymbol.h"
|
#include "qgsfillsymbol.h"
|
||||||
|
#include "qgssymbollayerreference.h"
|
||||||
|
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
|
@ -48,6 +48,7 @@ class QPointF;
|
|||||||
class QSize;
|
class QSize;
|
||||||
class QMimeData;
|
class QMimeData;
|
||||||
class QgsFeatureRenderer;
|
class QgsFeatureRenderer;
|
||||||
|
class QgsSymbolLayerId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \ingroup core
|
* \ingroup core
|
||||||
|
@ -228,12 +228,12 @@ QDomElement QgsTextMaskSettings::writeXml( QDomDocument &doc ) const
|
|||||||
return textMaskElem;
|
return textMaskElem;
|
||||||
}
|
}
|
||||||
|
|
||||||
QgsSymbolLayerReferenceList QgsTextMaskSettings::maskedSymbolLayers() const
|
QList<QgsSymbolLayerReference> QgsTextMaskSettings::maskedSymbolLayers() const
|
||||||
{
|
{
|
||||||
return d->maskedSymbolLayers;
|
return d->maskedSymbolLayers;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsTextMaskSettings::setMaskedSymbolLayers( QgsSymbolLayerReferenceList maskedSymbols )
|
void QgsTextMaskSettings::setMaskedSymbolLayers( const QList<QgsSymbolLayerReference> &maskedSymbols )
|
||||||
{
|
{
|
||||||
d->maskedSymbolLayers = maskedSymbols;
|
d->maskedSymbolLayers = maskedSymbols;
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
#include "qgis_sip.h"
|
#include "qgis_sip.h"
|
||||||
#include "qgis_core.h"
|
#include "qgis_core.h"
|
||||||
#include "qgssymbollayerreference.h"
|
|
||||||
#include "qgsunittypes.h"
|
#include "qgsunittypes.h"
|
||||||
#include "qgsmapunitscale.h"
|
#include "qgsmapunitscale.h"
|
||||||
|
|
||||||
@ -28,6 +27,7 @@
|
|||||||
class QgsTextMaskSettingsPrivate;
|
class QgsTextMaskSettingsPrivate;
|
||||||
class QgsPaintEffect;
|
class QgsPaintEffect;
|
||||||
class QgsPropertyCollection;
|
class QgsPropertyCollection;
|
||||||
|
class QgsSymbolLayerReference;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class QgsTextMaskSettings
|
* \class QgsTextMaskSettings
|
||||||
@ -198,14 +198,14 @@ class CORE_EXPORT QgsTextMaskSettings
|
|||||||
* \returns a list of references to masked symbol layers
|
* \returns a list of references to masked symbol layers
|
||||||
* \see setMaskedSymbolLayers
|
* \see setMaskedSymbolLayers
|
||||||
*/
|
*/
|
||||||
QgsSymbolLayerReferenceList maskedSymbolLayers() const;
|
QList<QgsSymbolLayerReference> maskedSymbolLayers() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the symbol layers that will be masked by this buffer.
|
* Sets the symbol layers that will be masked by this buffer.
|
||||||
* \param maskedLayers list of references to symbol layers
|
* \param maskedLayers list of references to symbol layers
|
||||||
* \see setMaskedSymbolLayers
|
* \see setMaskedSymbolLayers
|
||||||
*/
|
*/
|
||||||
void setMaskedSymbolLayers( QgsSymbolLayerReferenceList maskedLayers );
|
void setMaskedSymbolLayers( const QList<QgsSymbolLayerReference> &maskedLayers );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the format by evaluating current values of data defined properties.
|
* Updates the format by evaluating current values of data defined properties.
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#include "qgsstyleentityvisitor.h"
|
#include "qgsstyleentityvisitor.h"
|
||||||
#include "qgsstyle.h"
|
#include "qgsstyle.h"
|
||||||
#include "qgsauxiliarystorage.h"
|
#include "qgsauxiliarystorage.h"
|
||||||
|
#include "qgssymbollayerreference.h"
|
||||||
|
|
||||||
QgsFeatureIterator QgsVectorLayerUtils::getValuesIterator( const QgsVectorLayer *layer, const QString &fieldOrExpression, bool &ok, bool selectedOnly )
|
QgsFeatureIterator QgsVectorLayerUtils::getValuesIterator( const QgsVectorLayer *layer, const QString &fieldOrExpression, bool &ok, bool selectedOnly )
|
||||||
{
|
{
|
||||||
|
@ -19,11 +19,11 @@
|
|||||||
#include "qgis_core.h"
|
#include "qgis_core.h"
|
||||||
#include "qgsgeometry.h"
|
#include "qgsgeometry.h"
|
||||||
#include "qgsvectorlayerfeatureiterator.h"
|
#include "qgsvectorlayerfeatureiterator.h"
|
||||||
#include "qgssymbollayerreference.h"
|
|
||||||
#include "qgsfeaturesink.h"
|
#include "qgsfeaturesink.h"
|
||||||
|
|
||||||
class QgsFeatureRenderer;
|
class QgsFeatureRenderer;
|
||||||
class QgsSymbolLayer;
|
class QgsSymbolLayer;
|
||||||
|
class QgsSymbolLayerId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \ingroup core
|
* \ingroup core
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#include "qgsmarkersymbol.h"
|
#include "qgsmarkersymbol.h"
|
||||||
#include "qgsfillsymbol.h"
|
#include "qgsfillsymbol.h"
|
||||||
#include "qgsiconutils.h"
|
#include "qgsiconutils.h"
|
||||||
|
#include "qgssymbollayerreference.h"
|
||||||
|
|
||||||
#include <QButtonGroup>
|
#include <QButtonGroup>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
@ -192,7 +192,7 @@ class GUI_EXPORT QgsTextFormatWidget : public QWidget, public QgsExpressionConte
|
|||||||
//! Associated vector layer
|
//! Associated vector layer
|
||||||
QgsVectorLayer *mLayer = nullptr;
|
QgsVectorLayer *mLayer = nullptr;
|
||||||
|
|
||||||
QgsSymbolLayerReferenceList mMaskedSymbolLayers;
|
QList<QgsSymbolLayerReference> mMaskedSymbolLayers;
|
||||||
|
|
||||||
//! Geometry type for layer, if known
|
//! Geometry type for layer, if known
|
||||||
QgsWkbTypes::GeometryType mGeomType = QgsWkbTypes::UnknownGeometry;
|
QgsWkbTypes::GeometryType mGeomType = QgsWkbTypes::UnknownGeometry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user