35 setFromRenderer( layer->
renderer() );
38 connect( mFillSymbolButton, &
QgsSymbolButton::changed,
this, &QgsTiledSceneTextureRendererWidget::emitWidgetChanged );
43 return new QgsTiledSceneTextureRendererWidget( layer, style );
48 std::unique_ptr< QgsTiledSceneTextureRenderer > renderer = std::make_unique< QgsTiledSceneTextureRenderer >();
49 renderer->setFillSymbol( mFillSymbolButton->clonedSymbol<
QgsFillSymbol >() );
51 return renderer.release();
54void QgsTiledSceneTextureRendererWidget::emitWidgetChanged()
56 if ( !mBlockChangedSignal )
62 mBlockChangedSignal =
true;
66 mFillSymbolButton->setSymbol( textureRenderer->fillSymbol()->clone() );
69 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.