|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrvg.keystone20.Keystone20
public class Keystone20
This class manages the creation and calibration of keystoned surfaces. To move and warp surfaces, place the Keystone20 object in calibrate mode. It catches mouse events and allows you to drag surfaces and control points with the mouse. The Keystone20 object also provides load/save functionality, once you've calibrated the layout to your liking. Version: 003
Field Summary | |
---|---|
java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
Keystone20(processing.core.PApplet parent)
|
Method Summary | |
---|---|
CornerPinSurface |
createCornerPinSurface(int w,
int h,
int res)
Creates and registers a new corner pin keystone surface. |
boolean |
isCalibrating()
|
void |
load()
Loads a saved layout from "keystone20.txt" |
void |
load(java.lang.String filename)
Loads a saved layout from a given text file |
void |
mouseEvent(java.awt.event.MouseEvent e)
Mouse event handler |
void |
save()
Saves the current layout to "keystone20.txt" |
void |
save(java.lang.String filename)
Saves the layout to a text 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String VERSION
Constructor Detail |
---|
public Keystone20(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 void startCalibration()
public void stopCalibration()
public void toggleCalibration()
public boolean isCalibrating()
public java.lang.String version()
public void save(java.lang.String filename)
filename
- of the text file to save topublic void save()
public void load(java.lang.String filename)
filename
- of the text file to read frompublic void load()
public void mouseEvent(java.awt.event.MouseEvent e)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |