mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-18 00:04:02 -04:00
Pal should also use 64 bit fids
This commit is contained in:
parent
9de4b88e76
commit
da0e4741c1
@ -19,14 +19,14 @@ class QgsLabelPosition
|
||||
#include "qgspallabeling.h"
|
||||
%End
|
||||
public:
|
||||
QgsLabelPosition( int id, double r, const QVector< QgsPointXY > &corners, const QgsRectangle &rect, double w, double h, const QString &layer, const QString &labeltext, const QFont &labelfont, bool upside_down, bool diagram = false, bool pinned = false, const QString &providerId = QString() );
|
||||
QgsLabelPosition( QgsFeatureId id, double r, const QVector< QgsPointXY > &corners, const QgsRectangle &rect, double w, double h, const QString &layer, const QString &labeltext, const QFont &labelfont, bool upside_down, bool diagram = false, bool pinned = false, const QString &providerId = QString() );
|
||||
|
||||
QgsLabelPosition();
|
||||
%Docstring
|
||||
Constructor for QgsLabelPosition
|
||||
%End
|
||||
|
||||
int featureId;
|
||||
QgsFeatureId featureId;
|
||||
double rotation;
|
||||
QVector< QgsPointXY > cornerPoints;
|
||||
QgsRectangle labelRect;
|
||||
|
@ -71,7 +71,7 @@ void QgsLabelSearchTree::labelsInRect( const QgsRectangle &r, QList<QgsLabelPosi
|
||||
}
|
||||
}
|
||||
|
||||
bool QgsLabelSearchTree::insertLabel( pal::LabelPosition *labelPos, int featureId, const QString &layerName, const QString &labeltext, const QFont &labelfont, bool diagram, bool pinned, const QString &providerId )
|
||||
bool QgsLabelSearchTree::insertLabel( pal::LabelPosition *labelPos, QgsFeatureId featureId, const QString &layerName, const QString &labeltext, const QFont &labelfont, bool diagram, bool pinned, const QString &providerId )
|
||||
{
|
||||
if ( !labelPos )
|
||||
{
|
||||
|
@ -76,7 +76,7 @@ class CORE_EXPORT QgsLabelSearchTree
|
||||
* \returns TRUE in case of success
|
||||
* \note not available in Python bindings
|
||||
*/
|
||||
bool insertLabel( pal::LabelPosition *labelPos, int featureId, const QString &layerName, const QString &labeltext, const QFont &labelfont, bool diagram = false, bool pinned = false, const QString &providerId = QString() ) SIP_SKIP;
|
||||
bool insertLabel( pal::LabelPosition *labelPos, QgsFeatureId featureId, const QString &layerName, const QString &labeltext, const QFont &labelfont, bool diagram = false, bool pinned = false, const QString &providerId = QString() ) SIP_SKIP;
|
||||
|
||||
private:
|
||||
// set as mutable because RTree template is not const-correct
|
||||
|
@ -79,7 +79,7 @@ class QgsExpressionContext;
|
||||
class CORE_EXPORT QgsLabelPosition
|
||||
{
|
||||
public:
|
||||
QgsLabelPosition( int id, double r, const QVector< QgsPointXY > &corners, const QgsRectangle &rect, double w, double h, const QString &layer, const QString &labeltext, const QFont &labelfont, bool upside_down, bool diagram = false, bool pinned = false, const QString &providerId = QString() )
|
||||
QgsLabelPosition( QgsFeatureId id, double r, const QVector< QgsPointXY > &corners, const QgsRectangle &rect, double w, double h, const QString &layer, const QString &labeltext, const QFont &labelfont, bool upside_down, bool diagram = false, bool pinned = false, const QString &providerId = QString() )
|
||||
: featureId( id )
|
||||
, rotation( r )
|
||||
, cornerPoints( corners )
|
||||
@ -98,7 +98,7 @@ class CORE_EXPORT QgsLabelPosition
|
||||
//! Constructor for QgsLabelPosition
|
||||
QgsLabelPosition() = default;
|
||||
|
||||
int featureId = -1;
|
||||
QgsFeatureId featureId = FID_NULL;
|
||||
double rotation = 0;
|
||||
QVector< QgsPointXY > cornerPoints;
|
||||
QgsRectangle labelRect;
|
||||
|
Loading…
x
Reference in New Issue
Block a user