public class Keystone extends Object
Modifier and Type | Method and Description |
---|---|
void |
clearSurfaces() |
CornerPinSurface |
createCornerPinSurface(int w,
int h,
int res)
Creates and registers a new corner pin keystone surface.
|
CornerPinSurface |
getSurface(int i) |
int |
getSurfaceCount() |
boolean |
isCalibrating() |
void |
load()
Loads a saved layout from "keystone.xml"
|
void |
load(String filename)
Loads a saved layout from a given XML file
|
void |
mouseEvent(MouseEvent e) |
void |
save()
Saves the current layout into "keystone.xml"
|
void |
save(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
|
String |
version()
Returns the version of the library.
|
public final String VERSION
public Keystone(PApplet parent)
parent
- appletpublic CornerPinSurface createCornerPinSurface(int w, int h, int res)
w
- widthh
- heightres
- resolution (number of tiles per axis)public void startCalibration()
public void stopCalibration()
public void toggleCalibration()
public boolean isCalibrating()
public String version()
public void save(String filename)
public void save()
public void load(String filename)
public void load()
public void mouseEvent(MouseEvent e)
public CornerPinSurface getSurface(int i)
public int getSurfaceCount()
public void clearSurfaces()
Processing Library keystone by David Bouchard. (C) 2015