public class CornerPinSurface extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BL |
static int |
BR |
static int |
TL |
static int |
TR |
float |
x |
float |
y |
Modifier and Type | Method and Description |
---|---|
int |
getRes() |
PVector |
getTransformedCursor(int cx,
int cy)
This function will give you the position of the mouse in the surface's
coordinate system.
|
PVector |
getTransformedMouse() |
boolean |
isMouseOver()
Returns true if the mouse is over this surface, false otherwise.
|
void |
moveMeshPointBy(int corner,
float moveX,
float moveY)
Manually move one of the corners for this surface by some amount.
|
void |
moveTo(float x,
float y) |
void |
render(PGraphics g,
PImage texture)
Renders and applies keystoning to the image using a specific renderer.
|
void |
render(PGraphics g,
PImage texture,
int tX,
int tY,
int tW,
int tH)
Renders and applies keystoning to the image using a specific render.
|
void |
render(PImage texture)
Renders and applies keystoning to the image using the parent applet's
renderer.
|
void |
render(PImage texture,
int tX,
int tY,
int tW,
int tH)
Renders and applies keystoning to the image using the parent applet's
renderer.The tX, tY, tW and tH parameters specify which section of the
image to render onto this surface.
|
void |
setControlPointsColor(int newColor)
Sets the control points color
|
void |
setGridColor(int newColor)
Sets the grid used for calibration's color
|
public float x
public float y
public static int TL
public static int TR
public static int BL
public static int BR
public void moveMeshPointBy(int corner, float moveX, float moveY)
public int getRes()
public void render(PImage texture)
public void render(PGraphics g, PImage texture)
public void render(PImage texture, int tX, int tY, int tW, int tH)
public void render(PGraphics g, PImage texture, int tX, int tY, int tW, int tH)
public PVector getTransformedCursor(int cx, int cy)
public PVector getTransformedMouse()
public void setGridColor(int newColor)
public void setControlPointsColor(int newColor)
public boolean isMouseOver()
public void moveTo(float x, float y)
Processing Library keystone by David Bouchard. (C) 2015