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` .. seealso:: :py:func:`setDestinationCrs`
%End %End
void setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transform ); void setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transformContext );
%Docstring %Docstring
Sets the ``crs`` and transform ``context`` used for tracing. Sets the ``crs`` and ``transformContext`` used for tracing.
.. seealso:: :py:func:`destinationCrs` .. seealso:: :py:func:`destinationCrs`
%End %End
void setRenderContext( const QgsRenderContext *render ); void setRenderContext( const QgsRenderContext *renderContext );
%Docstring %Docstring
Sets the ``render`` context used for tracing only on visible features. Sets the ``renderContext`` used for tracing only on visible features.
%End %End
QgsRectangle extent() const; QgsRectangle extent() const;

View File

@ -620,16 +620,16 @@ void QgsTracer::setLayers( const QList<QgsVectorLayer *> &layers )
invalidateGraph(); invalidateGraph();
} }
void QgsTracer::setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transform ) void QgsTracer::setDestinationCrs( const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transformContext )
{ {
mCRS = crs; mCRS = crs;
mTransformContext = transform; mTransformContext = transformContext;
invalidateGraph(); 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(); invalidateGraph();
} }

View File

@ -63,15 +63,15 @@ class CORE_EXPORT QgsTracer : public QObject
QgsCoordinateReferenceSystem destinationCrs() const { return mCRS; } 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() * \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) //! Gets extent to which graph's features will be limited (empty extent means no limit)
QgsRectangle extent() const { return mExtent; } QgsRectangle extent() const { return mExtent; }