Skip to content
Permalink
Browse files

hide mesh 3D arrow settings for terrain settings

  • Loading branch information
vcloarec authored and wonder-sk committed May 26, 2020
1 parent fd31c85 commit f26d319ced728110a346645e611fcd14ff85c9cd
Showing with 8 additions and 0 deletions.
  1. +7 −0 src/app/3d/qgsmesh3dsymbolwidget.cpp
  2. +1 −0 src/app/3d/qgsmesh3dsymbolwidget.h
@@ -96,13 +96,15 @@ void QgsMesh3dSymbolWidget::configureForTerrain()
{
mComboBoxTextureType->addItem( tr( "Color Ramp Shader" ), QgsMesh3DSymbol::ColorRamp );
enableVerticalSetting( false );
enableArrowSettings( false );
}

void QgsMesh3dSymbolWidget::configureForDataset()
{
mComboBoxTextureType->addItem( tr( "2D Contour Color Ramp Shader" ), QgsMesh3DSymbol::ColorRamp2DRendering );
mGroupBoxColorRampShader->hide();
enableVerticalSetting( true );
enableArrowSettings( true );
}

void QgsMesh3dSymbolWidget::setLayer( QgsMeshLayer *meshLayer, bool updateSymbol )
@@ -215,4 +217,9 @@ void QgsMesh3dSymbolWidget::enableVerticalSetting( bool isEnable )
mGroupBoxVerticaleSettings->setVisible( isEnable );
}

void QgsMesh3dSymbolWidget::enableArrowSettings( bool isEnable )
{
mGroupBoxArrowsSettings->setVisible( isEnable );
}


@@ -44,6 +44,7 @@ class QgsMesh3dSymbolWidget : public QWidget, private Ui::QgsMesh3dPropsWidget
public slots:
void reloadColorRampShaderMinMax();
void enableVerticalSetting( bool isEnable );
void enableArrowSettings( bool isEnable );

signals:
void changed();

0 comments on commit f26d319

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