Skip to content

Commit

Permalink
fix typo and sipify
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and github-actions[bot] committed Apr 26, 2023
1 parent 4a71774 commit 71451d9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions python/core/auto_generated/mesh/qgsmeshrenderersettings.sip.in
Expand Up @@ -682,9 +682,24 @@ Sets new edge mesh renderer settings
%Docstring
Returns renderer settings
%End

void setScalarSettings( int groupIndex, const QgsMeshRendererScalarSettings &settings );
%Docstring
Sets new renderer settings
%End

bool hasScalarSettings( int groupIndex ) const;
%Docstring
Returns whether ``groupIndex`` has existing scalar settings

.. versionadded:: 3.30.1
%End

bool removeScalarSettings( int groupIndex );
%Docstring
Removes scalar settings with ``groupIndex``

.. versionadded:: 3.30.1
%End

QgsMeshRendererVectorSettings vectorSettings( int groupIndex ) const;
Expand All @@ -694,6 +709,20 @@ Returns renderer settings
void setVectorSettings( int groupIndex, const QgsMeshRendererVectorSettings &settings );
%Docstring
Sets new renderer settings
%End

bool hasVectorSettings( int groupIndex ) const;
%Docstring
Returns whether ``groupIndex`` has existing vector settings

.. versionadded:: 3.30.1
%End

bool removeVectorSettings( int groupIndex );
%Docstring
Removes vector settings for ``groupIndex``

.. versionadded:: 3.30.1
%End

QgsMesh3dAveragingMethod *averagingMethod() const;
Expand Down
4 changes: 2 additions & 2 deletions src/core/mesh/qgsmeshrenderersettings.h
Expand Up @@ -624,7 +624,7 @@ class CORE_EXPORT QgsMeshRendererSettings
void setScalarSettings( int groupIndex, const QgsMeshRendererScalarSettings &settings ) { mRendererScalarSettings[groupIndex] = settings; }

/**
* Returns whether \a groupIndex has exisiting scalar settings
* Returns whether \a groupIndex has existing scalar settings
* \since QGIS 3.30.1
*/
bool hasScalarSettings( int groupIndex ) const {return mRendererScalarSettings.contains( groupIndex );}
Expand All @@ -641,7 +641,7 @@ class CORE_EXPORT QgsMeshRendererSettings
void setVectorSettings( int groupIndex, const QgsMeshRendererVectorSettings &settings ) { mRendererVectorSettings[groupIndex] = settings; }

/**
* Returns whether \a groupIndex has exisiting vector settings
* Returns whether \a groupIndex has existing vector settings
* \since QGIS 3.30.1
*/
bool hasVectorSettings( int groupIndex ) const {return mRendererVectorSettings.contains( groupIndex );}
Expand Down

0 comments on commit 71451d9

Please sign in to comment.