Skip to content
Permalink
Browse files

add label for the point cloud size below point budget

  • Loading branch information
NEDJIMAbelgacem authored and nyalldawson committed Feb 16, 2021
1 parent fd9ddce commit 9eea594d2586e260c7127069294d94d075d64195
@@ -622,6 +622,11 @@ int QgsPointCloud3DSymbolWidget::pointBudget() const
return mPointBudgetSpinBox->value();
}

void QgsPointCloud3DSymbolWidget::setPointCloudSize( int size )
{
mPointCloudSizeLabel->setText( QStringLiteral( "%1 points" ).arg( size ) );
}

double QgsPointCloud3DSymbolWidget::showBoundingBoxes() const
{
return mShowBoundingBoxesCheckBox->isChecked();
@@ -45,6 +45,8 @@ class QgsPointCloud3DSymbolWidget : public QWidget, private Ui::QgsPointCloud3DS
void setPointBudget( int budget );
int pointBudget() const;

void setPointCloudSize( int size );

void connectChildPanels( QgsPanelWidget *parent );

private slots:
@@ -48,6 +48,7 @@ void QgsPointCloudLayer3DRendererWidget::setRenderer( const QgsPointCloudLayer3D
mWidgetPointCloudSymbol->setPointBudget( renderer->pointRenderingBudget() );
mWidgetPointCloudSymbol->setMaximumScreenError( renderer->maximumScreenError() );
mWidgetPointCloudSymbol->setShowBoundingBoxes( renderer->showBoundingBoxes() );
mWidgetPointCloudSymbol->setPointCloudSize( renderer->layer()->pointCount() );
}
}

@@ -43,26 +43,33 @@
</property>
<item row="1" column="0">
<layout class="QGridLayout" name="gridLayout_7">
<item row="2" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Point budget</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QgsDoubleSpinBox" name="mPointSizeSpinBox">
<item row="0" column="0">
<widget class="QLabel" name="lblTransparency_4">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Point size</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Maximum screen space error</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QgsDoubleSpinBox" name="mMaxScreenErrorSpinBox">
<property name="maximum">
<double>10.000000000000000</double>
<double>100000.000000000000000</double>
</property>
<property name="value">
<double>2.000000000000000</double>
<double>1.000000000000000</double>
</property>
</widget>
</item>
@@ -82,33 +89,40 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Maximum screen space error</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="lblTransparency_4">
<item row="0" column="1" colspan="2">
<widget class="QgsDoubleSpinBox" name="mPointSizeSpinBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximum">
<double>10.000000000000000</double>
</property>
<property name="value">
<double>2.000000000000000</double>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Point size</string>
<string>Point budget</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QgsDoubleSpinBox" name="mMaxScreenErrorSpinBox">
<property name="maximum">
<double>100000.000000000000000</double>
<item row="3" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Point cloud size:</string>
</property>
<property name="value">
<double>1.000000000000000</double>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="QLabel" name="mPointCloudSizeLabel">
<property name="text">
<string>10000</string>
</property>
</widget>
</item>

0 comments on commit 9eea594

Please sign in to comment.