|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectView2D
public class View2D
controll class to have 2D (pan && zoom) controll over the applet ..
| Constructor Summary | |
|---|---|
View2D()
|
|
| Method Summary | |
|---|---|
void |
display()
call to display courser in view and 0,0 point |
void |
displayMenu()
call to display stored views |
float |
Height2D()
|
void |
keyPress(char k)
user controll to access and store views preset keys : 'S' to save view 'R' to delete all saved views 1 - 9 to access saved views |
PVector |
mouse2D()
|
float |
mouseX2D()
|
float |
mouseY2D()
|
boolean |
panZoom()
Call to pan and zoom 'alt' = zoom 'shift' = pan |
void |
pushView()
Call to switch from screen to model space |
void |
rescale(PVector BBmax,
PVector BBmin)
rescale the view so that the evrything between the given koordinates is displayed |
void |
resetKey()
Call this function in the keyReleased void to reset the key && keycode variables to 0. |
float |
scale2D()
|
float |
Width2D()
get current Width of the Modell Space displayed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public View2D()
| Method Detail |
|---|
public float mouseX2D()
public float mouseY2D()
public PVector mouse2D()
public float scale2D()
public float Width2D()
public float Height2D()
public void rescale(PVector BBmax,
PVector BBmin)
BBmax - : maximumBBmin - : minimumpublic void displayMenu()
public void pushView()
public boolean panZoom()
public void resetKey()
public void keyPress(char k)
public void display()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||