Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Dec 7, 2020
1 parent e3dcb5b commit df3c30e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
21 changes: 21 additions & 0 deletions python/3d/auto_generated/symbols/qgspointcloud3dsymbol.sip.in
Expand Up @@ -394,6 +394,16 @@ Ownership of ``enhancement`` is transferred.

class QgsClassificationPointCloud3DSymbol : QgsPointCloud3DSymbol
{
%Docstring
3D symbol that draws point cloud geometries as 3D objects using classification of the dataset

.. warning::

This is not considered stable API, and may change in future QGIS releases. It is
exposed to the Python bindings as a tech preview only.

.. versionadded:: 3.18
%End

%TypeHeaderCode
#include "qgspointcloud3dsymbol.h"
Expand Down Expand Up @@ -429,7 +439,18 @@ Sets the parameter used to select the color of the point cloud
%End

QgsPointCloudCategoryList categoriesList() const;
%Docstring
Returns the list of categories of the classification

.. seealso:: :py:func:`setCategoriesList`
%End

void setCategoriesList( const QgsPointCloudCategoryList &categories );
%Docstring
Sets the list of categories of the classification

.. seealso:: :py:func:`categoriesList`
%End

QgsColorRampShader colorRampShader() const;
%Docstring
Expand Down
18 changes: 18 additions & 0 deletions src/3d/symbols/qgspointcloud3dsymbol.h
Expand Up @@ -361,6 +361,15 @@ class _3D_EXPORT QgsRgbPointCloud3DSymbol : public QgsPointCloud3DSymbol

};

/**
* \ingroup 3d
* 3D symbol that draws point cloud geometries as 3D objects using classification of the dataset
*
* \warning This is not considered stable API, and may change in future QGIS releases. It is
* exposed to the Python bindings as a tech preview only.
*
* \since QGIS 3.18
*/
class _3D_EXPORT QgsClassificationPointCloud3DSymbol : public QgsPointCloud3DSymbol
{
public:
Expand All @@ -385,7 +394,16 @@ class _3D_EXPORT QgsClassificationPointCloud3DSymbol : public QgsPointCloud3DSym
*/
void setRenderingParameter( const QString &parameter );

/**
* Returns the list of categories of the classification
* \see setCategoriesList()
*/
QgsPointCloudCategoryList categoriesList() const { return mCategoriesList; }

/**
* Sets the list of categories of the classification
* \see categoriesList()
*/
void setCategoriesList( const QgsPointCloudCategoryList &categories );

/**
Expand Down

0 comments on commit df3c30e

Please sign in to comment.