de.fhpotsdam.unfolding.mapdisplay.shaders
Class BlurredMapDisplayShader

java.lang.Object
  extended by de.fhpotsdam.unfolding.mapdisplay.shaders.MapDisplayShader
      extended by de.fhpotsdam.unfolding.mapdisplay.shaders.BlurredMapDisplayShader

public class BlurredMapDisplayShader
extends MapDisplayShader

This shader blurs a map. Implements shade without markers, i.e. blurs only the map but not the markers. Uses two-pass, i.e. calls PGraphics.shader(blurShader) twice.


Field Summary
 
Fields inherited from class de.fhpotsdam.unfolding.mapdisplay.shaders.MapDisplayShader
p, shader
 
Constructor Summary
BlurredMapDisplayShader(processing.core.PApplet p)
           
BlurredMapDisplayShader(processing.core.PApplet p, int blurSize, float sigma)
           
 
Method Summary
 void shadeWithoutMarkers(processing.core.PGraphics mapDisplayCanvas)
          Applies the shader to the map display canvas.
 
Methods inherited from class de.fhpotsdam.unfolding.mapdisplay.shaders.MapDisplayShader
getShader, resize, shadeWithMarkers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlurredMapDisplayShader

public BlurredMapDisplayShader(processing.core.PApplet p,
                               int blurSize,
                               float sigma)

BlurredMapDisplayShader

public BlurredMapDisplayShader(processing.core.PApplet p)
Method Detail

shadeWithoutMarkers

public void shadeWithoutMarkers(processing.core.PGraphics mapDisplayCanvas)
Description copied from class: MapDisplayShader
Applies the shader to the map display canvas.

Overrides:
shadeWithoutMarkers in class MapDisplayShader
Parameters:
mapDisplayCanvas - The inner canvas.