19#include "moc_qgstiledscenewireframerendererwidget.cpp"
39 setFromRenderer( layer->
renderer() );
42 connect( mFillSymbolButton, &
QgsSymbolButton::changed,
this, &QgsTiledSceneWireframeRendererWidget::emitWidgetChanged );
43 connect( mLineSymbolButton, &
QgsSymbolButton::changed,
this, &QgsTiledSceneWireframeRendererWidget::emitWidgetChanged );
44 connect( mCheckUseTextureColors, &QCheckBox::toggled,
this, &QgsTiledSceneWireframeRendererWidget::emitWidgetChanged );
49 return new QgsTiledSceneWireframeRendererWidget( layer, style );
54 std::unique_ptr< QgsTiledSceneWireframeRenderer > renderer = std::make_unique< QgsTiledSceneWireframeRenderer >();
55 renderer->setFillSymbol( mFillSymbolButton->clonedSymbol<
QgsFillSymbol >() );
56 renderer->setLineSymbol( mLineSymbolButton->clonedSymbol<
QgsLineSymbol >() );
57 renderer->setUseTextureColors( mCheckUseTextureColors->isChecked() );
59 return renderer.release();
62void QgsTiledSceneWireframeRendererWidget::emitWidgetChanged()
64 if ( !mBlockChangedSignal )
70 mBlockChangedSignal =
true;
73 mFillSymbolButton->setSymbol( wireframeRenderer->fillSymbol()->clone() );
74 mLineSymbolButton->setSymbol( wireframeRenderer->lineSymbol()->clone() );
75 mCheckUseTextureColors->setChecked( wireframeRenderer->useTextureColors() );
78 mBlockChangedSignal =
false;
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
A line symbol type, for rendering LineString and MultiLineString geometries.
Represents a map layer supporting display of tiled scene objects.
QgsTiledSceneRenderer * renderer()
Returns the 2D renderer for the tiled scene.
Abstract base class for 2d tiled scene renderers.
Renders tiled scene layers using the raw primitive wireframes.
static QgsLineSymbol * createDefaultLineSymbol()
Returns a copy of the default line symbol used to render lines in the wireframe.
static QgsFillSymbol * createDefaultFillSymbol()
Returns a copy of the default fill symbol used to render triangles in the wireframe.