|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdeadpixel.keystonev2.Keystone
public class Keystone
This class manages the creation and calibration of keystoned surfaces. To move and warp surfaces, place the Keystone object in calibrate mode. It catch mouse events and allow you to drag surfaces and control points with the mouse. The Keystone object also provides load/save functionality, once you've calibrated the layout to your liking. Version: 0.11
Field Summary | |
---|---|
java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
Keystone(processing.core.PApplet parent)
|
Method Summary | |
---|---|
CornerPinSurface |
createCornerPinSurface(int w,
int h,
int res)
Creates and registers a new corner pin keystone surface. |
ReverseCornerPinSurface |
createReverseCornerPinSurface(int w,
int h,
int res)
|
void |
load()
Loads a saved layout from "keystone.xml" |
void |
load(java.lang.String filename)
Loads a saved layout from a given XML file |
void |
mouseDragged(int x,
int y)
|
void |
mouseEvent(java.awt.event.MouseEvent e)
|
void |
mousePressed(int x,
int y)
|
void |
mouseReleased()
|
void |
save()
Saves the current layout into "keystone.xml" |
void |
save(java.lang.String filename)
Saves the layout to an XML file. |
void |
startCalibration()
Starts the calibration mode. |
void |
stopCalibration()
Stops the calibration mode |
void |
toggleCalibration()
Toggles the calibration mode |
java.lang.String |
version()
Returns the version of the library. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String VERSION
Constructor Detail |
---|
public Keystone(processing.core.PApplet parent)
parent
- appletMethod Detail |
---|
public CornerPinSurface createCornerPinSurface(int w, int h, int res)
w
- widthh
- heightres
- resolution (number of tiles per axis)
public ReverseCornerPinSurface createReverseCornerPinSurface(int w, int h, int res)
public void startCalibration()
public void stopCalibration()
public void toggleCalibration()
public java.lang.String version()
public void save(java.lang.String filename)
public void save()
public void load(java.lang.String filename)
public void load()
public void mouseDragged(int x, int y)
public void mousePressed(int x, int y)
public void mouseReleased()
public void mouseEvent(java.awt.event.MouseEvent e)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |