Skip to content

Commit

Permalink
classify the QgsPointCloudAttributeByRampRenderer color ramp shader b…
Browse files Browse the repository at this point in the history
…y default
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Apr 8, 2021
1 parent b061162 commit 70f69c4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
QgsPointCloudAttributeByRampRenderer::QgsPointCloudAttributeByRampRenderer() QgsPointCloudAttributeByRampRenderer::QgsPointCloudAttributeByRampRenderer()
{ {
mColorRampShader.setSourceColorRamp( QgsStyle::defaultStyle()->colorRamp( QStringLiteral( "Viridis" ) ) ); mColorRampShader.setSourceColorRamp( QgsStyle::defaultStyle()->colorRamp( QStringLiteral( "Viridis" ) ) );
mColorRampShader.classifyColorRamp( 5, -1, QgsRectangle(), nullptr );
} }


QString QgsPointCloudAttributeByRampRenderer::type() const QString QgsPointCloudAttributeByRampRenderer::type() const
Expand Down

0 comments on commit 70f69c4

Please sign in to comment.