|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdeadpixel.keystone.CornerPinSurface
public class CornerPinSurface
A simple Corner Pin keystoned surface. The surface is a quad mesh that can be skewed to an arbitrary shape by moving its four corners. September-2011 Added JAI library for keystone calculus (@edumo)
Field Summary | |
---|---|
float |
x
|
float |
y
|
Method Summary | |
---|---|
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 |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float x
public float y
Method Detail |
---|
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)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |