Skip to content
Permalink
Browse files

code style review

  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed May 4, 2021
1 parent 42ce3b6 commit 7a03571fa7499133a17e7e7dc347405ca7a961d0
@@ -53,19 +53,23 @@ Returns a reference to the context's render context.
Returns the scale of the layer's int32 coordinates compared to CRS coords.
%End

void setScale( QgsVector3D scale );
void setScale( const QgsVector3D &scale );
%Docstring
Sets the scale of the layer's int32 coordinates compared to CRS coords.

.. versionadded:: 3.20
%End

QgsVector3D offset() const;
%Docstring
Returns the offset of the layer's int32 coordinates compared to CRS coords.
%End

void setOffset( QgsVector3D offset );
void setOffset( const QgsVector3D &offset );
%Docstring
Sets the offset of the layer's int32 coordinates compared to CRS coords.

.. versionadded:: 3.20
%End

long pointsRendered() const;
@@ -81,8 +81,9 @@ class CORE_EXPORT QgsPointCloudRenderContext

/**
* Sets the scale of the layer's int32 coordinates compared to CRS coords.
* \since QGIS 3.20
*/
void setScale( QgsVector3D scale ) { mScale = scale; }
void setScale( const QgsVector3D &scale ) { mScale = scale; }

/**
* Returns the offset of the layer's int32 coordinates compared to CRS coords.
@@ -91,8 +92,9 @@ class CORE_EXPORT QgsPointCloudRenderContext

/**
* Sets the offset of the layer's int32 coordinates compared to CRS coords.
* \since QGIS 3.20
*/
void setOffset( QgsVector3D offset ) { mOffset = offset; }
void setOffset( const QgsVector3D &offset ) { mOffset = offset; }

/**
* Returns the total number of points rendered.

0 comments on commit 7a03571

Please sign in to comment.