mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
Fix python build
This commit is contained in:
parent
1938f6e255
commit
4adc1c8278
@ -42,7 +42,9 @@ Constructor version used with only expressions to filter symbols (no extent or p
|
|||||||
Runs the map hit test
|
Runs the map hit test
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QMap<QString, QSet<QString>> results() const;
|
|
||||||
|
|
||||||
|
QMap<QString, QList<QString>> resultsPy() const /PyName=results/;
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns the hit test results, which are a map of layer ID to
|
Returns the hit test results, which are a map of layer ID to
|
||||||
visible symbol legend keys.
|
visible symbol legend keys.
|
||||||
@ -107,7 +109,9 @@ Constructor for QgsMapHitTestTask, filtering by expressions.
|
|||||||
:param layerFilterExpression: Expression string for each layer id to evaluate in order to refine the symbol selection
|
:param layerFilterExpression: Expression string for each layer id to evaluate in order to refine the symbol selection
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QMap<QString, QSet<QString>> results() const;
|
|
||||||
|
|
||||||
|
QMap<QString, QList<QString>> resultsPy() const /PyName=results/;
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns the hit test results, which are a map of layer ID to
|
Returns the hit test results, which are a map of layer ID to
|
||||||
visible symbol legend keys.
|
visible symbol legend keys.
|
||||||
|
@ -96,6 +96,16 @@ QMap<QString, QSet<QString> > QgsMapHitTest::results() const
|
|||||||
return mHitTestRuleKey;
|
return mHitTestRuleKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMap<QString, QList<QString> > QgsMapHitTest::resultsPy() const
|
||||||
|
{
|
||||||
|
QMap<QString, QList<QString> > res;
|
||||||
|
for ( auto it = mHitTestRuleKey.begin(); it != mHitTestRuleKey.end(); ++it )
|
||||||
|
{
|
||||||
|
res.insert( it.key(), qgis::setToList( it.value() ) );
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
bool QgsMapHitTest::symbolVisible( QgsSymbol *symbol, QgsVectorLayer *layer ) const
|
bool QgsMapHitTest::symbolVisible( QgsSymbol *symbol, QgsVectorLayer *layer ) const
|
||||||
{
|
{
|
||||||
if ( !symbol || !layer )
|
if ( !symbol || !layer )
|
||||||
@ -296,6 +306,16 @@ QMap<QString, QSet<QString> > QgsMapHitTestTask::results() const
|
|||||||
return mResults;
|
return mResults;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMap<QString, QList<QString> > QgsMapHitTestTask::resultsPy() const
|
||||||
|
{
|
||||||
|
QMap<QString, QList<QString> > res;
|
||||||
|
for ( auto it = mResults.begin(); it != mResults.end(); ++it )
|
||||||
|
{
|
||||||
|
res.insert( it.key(), qgis::setToList( it.value() ) );
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
void QgsMapHitTestTask::prepare()
|
void QgsMapHitTestTask::prepare()
|
||||||
{
|
{
|
||||||
const QList< QgsMapLayer * > layers = mSettings.layers( true );
|
const QList< QgsMapLayer * > layers = mSettings.layers( true );
|
||||||
|
@ -61,9 +61,21 @@ class CORE_EXPORT QgsMapHitTest
|
|||||||
* Returns the hit test results, which are a map of layer ID to
|
* Returns the hit test results, which are a map of layer ID to
|
||||||
* visible symbol legend keys.
|
* visible symbol legend keys.
|
||||||
*
|
*
|
||||||
|
* \note Not available in Python bindings
|
||||||
* \since QGIS 3.32
|
* \since QGIS 3.32
|
||||||
*/
|
*/
|
||||||
QMap<QString, QSet<QString>> results() const;
|
QMap<QString, QSet<QString>> results() const SIP_SKIP;
|
||||||
|
|
||||||
|
///@cond PRIVATE
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the hit test results, which are a map of layer ID to
|
||||||
|
* visible symbol legend keys.
|
||||||
|
*
|
||||||
|
* \since QGIS 3.32
|
||||||
|
*/
|
||||||
|
QMap<QString, QList<QString>> resultsPy() const SIP_PYNAME( results );
|
||||||
|
///@endcond PRIVATE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests whether a symbol is visible for a specified layer.
|
* Tests whether a symbol is visible for a specified layer.
|
||||||
@ -164,8 +176,18 @@ class CORE_EXPORT QgsMapHitTestTask : public QgsTask
|
|||||||
/**
|
/**
|
||||||
* Returns the hit test results, which are a map of layer ID to
|
* Returns the hit test results, which are a map of layer ID to
|
||||||
* visible symbol legend keys.
|
* visible symbol legend keys.
|
||||||
|
* \note Not available in Python bindings
|
||||||
*/
|
*/
|
||||||
QMap<QString, QSet<QString>> results() const;
|
QMap<QString, QSet<QString>> results() const SIP_SKIP;
|
||||||
|
|
||||||
|
///@cond PRIVATE
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the hit test results, which are a map of layer ID to
|
||||||
|
* visible symbol legend keys.
|
||||||
|
*/
|
||||||
|
QMap<QString, QList<QString>> resultsPy() const SIP_PYNAME( results );
|
||||||
|
///@endcond PRIVATE
|
||||||
|
|
||||||
void cancel() override;
|
void cancel() override;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user