|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhpotsdam.unfolding.mapdisplay.shaders.MapDisplayShader de.fhpotsdam.unfolding.mapdisplay.shaders.MaskedMapDisplayShader
public class MaskedMapDisplayShader
This shader masks a map. The offscreen graphic canvas as mask
Field Summary | |
---|---|
protected processing.core.PGraphics |
mask
The mask canvas. |
Fields inherited from class de.fhpotsdam.unfolding.mapdisplay.shaders.MapDisplayShader |
---|
p, shader |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class de.fhpotsdam.unfolding.mapdisplay.shaders.MapDisplayShader |
---|
getShader, shadeWithoutMarkers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected processing.core.PGraphics mask
Constructor Detail |
---|
public 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.Method Detail |
---|
public void resize(float width, float height)
MapDisplayShader
resize
in class MapDisplayShader
width
- 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |