Skip to content
Permalink
Browse files

[25d] allow disabling the shadow effect

  • Loading branch information
m-kuhn committed Jan 21, 2016
1 parent 4d4ab63 commit fe4848521878cfe5c2f0cd68828c72c0ae65a2e1
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/core/symbology-ng/qgs25drenderer.cpp
@@ -83,10 +83,12 @@ Qgs25DRenderer::Qgs25DRenderer()
mSymbol->appendSymbolLayer( walls );
mSymbol->appendSymbolLayer( roof );

QgsEffectStack* effectStack = new QgsEffectStack();
QgsOuterGlowEffect* glowEffect = new QgsOuterGlowEffect();
glowEffect->setBlurLevel( 5 );
glowEffect->setSpreadUnit( QgsSymbolV2::MapUnit );
floor->setPaintEffect( glowEffect );
effectStack->appendEffect( glowEffect );
floor->setPaintEffect( effectStack );

// These methods must only be used after the above initialisation!

@@ -176,7 +178,8 @@ QgsFillSymbolLayerV2* Qgs25DRenderer::wallLayer() const

QgsOuterGlowEffect* Qgs25DRenderer::glowEffect() const
{
return static_cast<QgsOuterGlowEffect*>( mSymbol->symbolLayer( 0 )->paintEffect() );
QgsEffectStack* stack = static_cast<QgsEffectStack*>( mSymbol->symbolLayer( 0 )->paintEffect() );
return static_cast<QgsOuterGlowEffect*>( stack->effect( 0 ) );
}

bool Qgs25DRenderer::shadowEnabled() const

0 comments on commit fe48485

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