Skip to content
Permalink
Browse files

fix checks round 3

  • Loading branch information
NEDJIMAbelgacem committed Nov 13, 2020
1 parent 6a88cd8 commit 1877a1d24df98f8a933bc0089bf360607e37465d
Showing with 23 additions and 3 deletions.
  1. +22 −2 src/3d/symbols/qgspointcloud3dsymbol.h
  2. +1 −1 src/app/3d/qgspointcloud3dsymbolwidget.cpp
@@ -57,12 +57,32 @@ class QgsPointCloud3DSymbol : public QgsAbstract3DSymbol
mPointSize = elem.attribute( "point-size", QStringLiteral( "5.0" ) ).toFloat();
}

/**
* Returns whether rendering for this symbol is enabled
* \since QGIS 3.18
* \see setIsEnabled( bool enabled )
*/
bool isEnabled() const { return mEnabled; }

/**
* Sets whether rendering for this symbol is enabled
* \since QGIS 3.18
* \see isEnabled()
*/
void setIsEnabled( bool enabled ) { mEnabled = enabled; }

//! Returns the point size
/**
* Returns the point size of the point cloud
* \since QGIS 3.18
* \see setPointSize( float size )
*/
float pointSize() const { return mPointSize; }
//! Sets the point size

/**
* Sets the point size
* \since QGIS 3.18
* \see pointSize()
*/
void setPointSize( float size ) { mPointSize = size; }

private:
@@ -42,7 +42,7 @@ QgsPointCloud3DSymbolWidget::QgsPointCloud3DSymbolWidget( QgsPointCloudLayer *la
}
}

connect( mPointSizeSpinBox, qgis::overload<double>::of( &QDoubleSpinBox::valueChanged ), &QgsPointCloud3DSymbolWidget::changed );
connect( mPointSizeSpinBox, qgis::overload<double>::of( &QDoubleSpinBox::valueChanged ), this, &QgsPointCloud3DSymbolWidget::changed );
}

void QgsPointCloud3DSymbolWidget::setLayer( QgsPointCloudLayer *layer, bool updateSymbol )

0 comments on commit 1877a1d

Please sign in to comment.
You can’t perform that action at this time.