Skip to content

Commit

Permalink
Bring back some Python methods to make the test in Python work again
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Sep 2, 2022
1 parent 133a7c2 commit e6da9ac
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 3 deletions.
87 changes: 87 additions & 0 deletions python/core/auto_generated/pointcloud/qgspointcloudrenderer.sip.in
Expand Up @@ -449,6 +449,93 @@ Creates a set of legend nodes representing the renderer.
Returns a list of all rule keys for legend nodes created by the renderer.
%End

bool eyeDomeLightingEnabled() const;
%Docstring
Returns whether eye dome lighting effect will be used

.. note::

This is not a part of stable API - this function may be removed in a future release

.. versionadded:: 3.28
%End

void setEyeDomeLightingEnabled( bool enabled );
%Docstring
Sets whether eye dome lighting effect will be used

.. note::

This is not a part of stable API - this function may be removed in a future release

.. versionadded:: 3.28
%End

double eyeDomeLightingStrength() const;
%Docstring
Returns the eye dome lighting strength value

.. note::

This is not a part of stable API - this function may be removed in a future release

.. versionadded:: 3.28
%End

void setEyeDomeLightingStrength( double strength );
%Docstring
Sets the eye dome lighting strength value

.. note::

This is not a part of stable API - this function may be removed in a future release

.. versionadded:: 3.28
%End

double eyeDomeLightingDistance() const;
%Docstring
Returns the eye dome lighting distance

.. note::

This is not a part of stable API - this function may be removed in a future release

.. versionadded:: 3.28
%End

void setEyeDomeLightingDistance( double distance );
%Docstring
Sets the eye dome lighting distance

.. note::

This is not a part of stable API - this function may be removed in a future release

.. versionadded:: 3.28
%End

QgsUnitTypes::RenderUnit eyeDomeLightingDistanceUnit() const;
%Docstring
Returns unit for the eye dome lighting distance

.. note::

This is not a part of stable API - this function may be removed in a future release

.. versionadded:: 3.28
%End

void setEyeDomeLightingDistanceUnit( QgsUnitTypes::RenderUnit unit );
%Docstring
Sets unit for the eye dome lighting distance

.. note::

This is not a part of stable API - this function may be removed in a future release

.. versionadded:: 3.28
%End

protected:

Expand Down
11 changes: 8 additions & 3 deletions src/core/pointcloud/qgspointcloudrenderer.h
Expand Up @@ -591,56 +591,61 @@ class CORE_EXPORT QgsPointCloudRenderer
*/
virtual QStringList legendRuleKeys() const;

#ifndef SIP_RUN // intentionally left out from SIP to avoid API breaks in future when we move elevation post-processing elsewhere

/**
* Returns whether eye dome lighting effect will be used
* \note This is not a part of stable API - this function may be removed in a future release
* \since QGIS 3.28
*/
bool eyeDomeLightingEnabled() const { return mEyeDomeLightingEnabled; }

/**
* Sets whether eye dome lighting effect will be used
* \note This is not a part of stable API - this function may be removed in a future release
* \since QGIS 3.28
*/
void setEyeDomeLightingEnabled( bool enabled ) { mEyeDomeLightingEnabled = enabled; }

/**
* Returns the eye dome lighting strength value
* \note This is not a part of stable API - this function may be removed in a future release
* \since QGIS 3.28
*/
double eyeDomeLightingStrength() const { return mEyeDomeLightingStrength; }

/**
* Sets the eye dome lighting strength value
* \note This is not a part of stable API - this function may be removed in a future release
* \since QGIS 3.28
*/
void setEyeDomeLightingStrength( double strength ) { mEyeDomeLightingStrength = strength; }

/**
* Returns the eye dome lighting distance
* \note This is not a part of stable API - this function may be removed in a future release
* \since QGIS 3.28
*/
double eyeDomeLightingDistance() const { return mEyeDomeLightingDistance; }

/**
* Sets the eye dome lighting distance
* \note This is not a part of stable API - this function may be removed in a future release
* \since QGIS 3.28
*/
void setEyeDomeLightingDistance( double distance ) { mEyeDomeLightingDistance = distance; }

/**
* Returns unit for the eye dome lighting distance
* \note This is not a part of stable API - this function may be removed in a future release
* \since QGIS 3.28
*/
QgsUnitTypes::RenderUnit eyeDomeLightingDistanceUnit() const { return mEyeDomeLightingDistanceUnit; }

/**
* Sets unit for the eye dome lighting distance
* \note This is not a part of stable API - this function may be removed in a future release
* \since QGIS 3.28
*/
void setEyeDomeLightingDistanceUnit( QgsUnitTypes::RenderUnit unit ) { mEyeDomeLightingDistanceUnit = unit; }
#endif

protected:

Expand Down

0 comments on commit e6da9ac

Please sign in to comment.