public class MaskedMapDisplayShader extends MapDisplayShader
| Modifier and Type | Field and Description |
|---|---|
protected processing.core.PGraphics |
mask
The mask canvas.
|
p, shader| Constructor and Description |
|---|
MaskedMapDisplayShader(processing.core.PApplet p,
float width,
float height)
Creates a MaskedMapDisplayShader to draw the mask dynamically.
|
MaskedMapDisplayShader(processing.core.PApplet p,
float width,
float height,
processing.core.PImage maskImage)
Creates a MaskedMapDisplayShader with the given mask image.
|
| Modifier and Type | Method and Description |
|---|---|
processing.core.PGraphics |
getMask()
Returns the mask canvas to dynamically create or update the mask.
|
void |
resize(float width,
float height)
Resizes the shader.
|
void |
shadeWithMarkers(processing.core.PGraphics mapDisplayCanvas) |
getShader, shadeWithoutMarkerspublic MaskedMapDisplayShader(processing.core.PApplet p,
float width,
float height)
getMask() to get the mask canvas to
draw on.p - The PApplet.width - The width of the mask.height - The height of the mask.public MaskedMapDisplayShader(processing.core.PApplet p,
float width,
float height,
processing.core.PImage maskImage)
p - The PApplet.width - The width of the mask.height - The height of the mask.maskImage - An image to be used as mask.public void resize(float width,
float height)
MapDisplayShaderresize in class MapDisplayShaderwidth - The new width of the canvas.height - The new height of the canvas.public processing.core.PGraphics getMask()
public void shadeWithMarkers(processing.core.PGraphics mapDisplayCanvas)
shadeWithMarkers in class MapDisplayShader