Skip to content

Commit

Permalink
fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Dec 3, 2020
1 parent 7e25284 commit ca4cec8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/3d/qgscolorramptexture.h
Expand Up @@ -18,6 +18,8 @@
#ifndef QGSCOLORRAMPTEXTURE_H
#define QGSCOLORRAMPTEXTURE_H

/// @cond PRIVATE

#include <Qt3DRender/QEffect>
#include <Qt3DRender/QGraphicsApiFilter>
#include <Qt3DRender/QParameter>
Expand Down Expand Up @@ -66,4 +68,6 @@ class ColorRampTexture: public Qt3DRender::QAbstractTextureImage
double mVerticalScale = 1;
};

/// @endcond

#endif // QGSCOLORRAMPTEXTURE_H
4 changes: 2 additions & 2 deletions src/3d/symbols/qgspointcloud3dsymbol.cpp
Expand Up @@ -68,8 +68,8 @@ void QgsPointCloud3DSymbol::readXml( const QDomElement &elem, const QgsReadWrite
mSingleColor.setGreenF( elem.attribute( "single-color-green", QStringLiteral( "0.0" ) ).toFloat() );
mSingleColor.setBlueF( elem.attribute( "single-color-blue", QStringLiteral( "1.0" ) ).toFloat() );
mRenderingParameter = static_cast< QgsPointCloud3DSymbol::RenderingParameter >( elem.attribute( "rendering-parameter", QStringLiteral( "0" ) ).toInt() );
mColorRampShaderMin = elem.attribute( QStringLiteral( "color-ramp-shader-min" ) ).toDouble();
mColorRampShaderMax = elem.attribute( QStringLiteral( "color-ramp-shader-max" ) ).toDouble();
mColorRampShaderMin = elem.attribute( QStringLiteral( "color-ramp-shader-min" ), QStringLiteral( "0.0" ) ).toDouble();
mColorRampShaderMax = elem.attribute( QStringLiteral( "color-ramp-shader-max" ), QStringLiteral( "1.0" ) ).toDouble();
mColorRampShader.readXml( elem );
}

Expand Down
4 changes: 2 additions & 2 deletions src/3d/symbols/qgspointcloud3dsymbol.h
Expand Up @@ -161,8 +161,8 @@ class _3D_EXPORT QgsPointCloud3DSymbol : public QgsAbstract3DSymbol
QgsPointCloud3DSymbol::RenderingStyle mRenderingStyle = QgsPointCloud3DSymbol::ColorRamp;
QgsPointCloud3DSymbol::RenderingParameter mRenderingParameter = QgsPointCloud3DSymbol::RenderingParameter::ClassID;
QgsColorRampShader mColorRampShader;
double mColorRampShaderMin;
double mColorRampShaderMax;
double mColorRampShaderMin = 0.0;
double mColorRampShaderMax = 1.0;
QColor mSingleColor = Qt::blue;
};

Expand Down

0 comments on commit ca4cec8

Please sign in to comment.