19#include "moc_qgstiledscenetexturerendererwidget.cpp"
36 setFromRenderer( layer->
renderer() );
39 connect( mFillSymbolButton, &
QgsSymbolButton::changed,
this, &QgsTiledSceneTextureRendererWidget::emitWidgetChanged );
44 return new QgsTiledSceneTextureRendererWidget( layer, style );
49 std::unique_ptr< QgsTiledSceneTextureRenderer > renderer = std::make_unique< QgsTiledSceneTextureRenderer >();
50 renderer->setFillSymbol( mFillSymbolButton->clonedSymbol<
QgsFillSymbol >() );
52 return renderer.release();
55void QgsTiledSceneTextureRendererWidget::emitWidgetChanged()
57 if ( !mBlockChangedSignal )
63 mBlockChangedSignal =
true;
67 mFillSymbolButton->setSymbol( textureRenderer->fillSymbol()->clone() );
70 mBlockChangedSignal =
false;
A fill symbol type, for rendering Polygon and MultiPolygon 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 textures.
static QgsFillSymbol * createDefaultFillSymbol()
Returns a copy of the default fill symbol used to render triangles without textures.