Skip to content

Commit

Permalink
code style review
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed May 4, 2021
1 parent 42ce3b6 commit 7a03571
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Expand Up @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions src/core/pointcloud/qgspointcloudrenderer.h
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 7a03571

Please sign in to comment.