Bette naming for python

This commit is contained in:
Loïc Bartoletti 2018-09-24 22:19:51 +02:00
parent f18bc52e57
commit 458fa1752d
3 changed files with 12 additions and 12 deletions

View File

@ -48,16 +48,16 @@ Returns the CRS used for tracing.
.. seealso:: :py:func:`setDestinationCrs`
%End
void setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transform );
void setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transformContext );
%Docstring
Sets the ``crs`` and transform ``context`` used for tracing.
Sets the ``crs`` and ``transformContext`` used for tracing.
.. seealso:: :py:func:`destinationCrs`
%End
void setRenderContext( const QgsRenderContext *render );
void setRenderContext( const QgsRenderContext *renderContext );
%Docstring
Sets the ``render`` context used for tracing only on visible features.
Sets the ``renderContext`` used for tracing only on visible features.
%End
QgsRectangle extent() const;

View File

@ -620,16 +620,16 @@ void QgsTracer::setLayers( const QList<QgsVectorLayer *> &layers )
invalidateGraph();
}
void QgsTracer::setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transform )
void QgsTracer::setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transformContext )
{
mCRS = crs;
mTransformContext = transform;
mTransformContext = transformContext;
invalidateGraph();
}
void QgsTracer::setRenderContext( const QgsRenderContext *render )
void QgsTracer::setRenderContext( const QgsRenderContext *renderContext )
{
mRenderContext = std::unique_ptr<QgsRenderContext>( new QgsRenderContext( *render ) );
mRenderContext = std::unique_ptr<QgsRenderContext>( new QgsRenderContext( *renderContext ) );
invalidateGraph();
}

View File

@ -63,15 +63,15 @@ class CORE_EXPORT QgsTracer : public QObject
QgsCoordinateReferenceSystem destinationCrs() const { return mCRS; }
/**
* Sets the \a crs and transform \a context used for tracing.
* Sets the \a crs and \a transformContext used for tracing.
* \see destinationCrs()
*/
void setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transform );
void setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transformContext );
/**
* Sets the \a render context used for tracing only on visible features.
* Sets the \a renderContext used for tracing only on visible features.
*/
void setRenderContext( const QgsRenderContext *render );
void setRenderContext( const QgsRenderContext *renderContext );
//! Gets extent to which graph's features will be limited (empty extent means no limit)
QgsRectangle extent() const { return mExtent; }