|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectviewer.Viewer
public class Viewer
The window and general information for the viewer.
| Constructor Summary | |
|---|---|
Viewer(boolean fullscreen,
boolean startServer)
Create a new viewer and load everything up |
|
| Method Summary | |
|---|---|
void |
forceModel(Model m)
Set a specific model for the GLViewer, instead of loading a map |
void |
forceModelSameGL(Model m)
|
void |
forceModelSameGL(Model m,
boolean forceRender)
|
static java.lang.String |
getDataPath()
|
boolean |
getFullscreen()
return the fullscreen state of the window |
javax.media.opengl.GL |
getGL()
Accesses the GL object belonging to the GLViewer. |
GLViewer |
getGLViewer()
Accesses the GL viewer |
static java.lang.String |
getPath()
|
java.util.ArrayList<java.lang.Double[]> |
getPeople()
return and array of the position of the people on the map |
java.awt.Rectangle |
getSize()
Return the size of the screem |
void |
loadMap(java.lang.String filename)
loads the map that the program will use |
static void |
main(java.lang.String[] args)
|
void |
refreshWindow()
if something changes, his is the easiest way to refresh everything to make the changes be applied |
void |
setFullscreen(boolean b)
Set whether the window is fullscreen is not |
void |
setSize(int x,
int y)
Set the size of the window |
void |
updatePeople(java.lang.String key,
java.lang.Double x,
java.lang.Double y,
java.lang.Double z)
Update the position of the people |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Viewer(boolean fullscreen,
boolean startServer)
| Method Detail |
|---|
public static java.lang.String getPath()
public static java.lang.String getDataPath()
public static void main(java.lang.String[] args)
args - public void refreshWindow()
public void loadMap(java.lang.String filename)
filename - the name of the file to loadpublic void forceModel(Model m)
m - the model instance to usepublic void forceModelSameGL(Model m)
public void forceModelSameGL(Model m,
boolean forceRender)
public void setSize(int x,
int y)
x - the x dimensiony - the y dimension
public void updatePeople(java.lang.String key,
java.lang.Double x,
java.lang.Double y,
java.lang.Double z)
key - the key for the person to updatex - the x coordinatey - the y coordinatez - the z coordinatepublic java.util.ArrayList<java.lang.Double[]> getPeople()
public void setFullscreen(boolean b)
b - true to make the window fullscreenpublic boolean getFullscreen()
public java.awt.Rectangle getSize()
public javax.media.opengl.GL getGL()
public GLViewer getGLViewer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||