Public Member Functions | |
synchronized void | add (Drawable d) |
synchronized void | add2D (Drawable d) |
Canvas () | |
void | draw () |
synchronized void | drawItems () |
void | drawLine (Vector3f p1, Vector3f p2, int color) |
void | drawLine (float x1, float y1, float z1, float x2, float y2, float z2, int color) |
int | getHeight () |
int | getWidth () |
void | keyPressed () |
void | rotateAxis (double theta, Vector3f rotAxis) |
void | runMain () |
void | setEyeTarget (Vector3f v) |
void | setHeight (int height) |
void | setSceneSize (float size) |
void | setStandardViewParams () |
void | setup () |
void | setWidth (int width) |
Public Attributes | |
boolean | debugCamera |
Protected Member Functions | |
void | preDrawItems () |
void | setCamera () |
Protected Attributes | |
Vector3f | eye |
float | leftMouseX = -1.0f |
float | sceneSize = 4000 |
boolean | useCamera |
int | width = 800 |
float | xRotDisplay |
Package Attributes | |
float | centerMouseY = -1.0f |
Vector3f | eyeTarget |
Vector3f | eyeUp |
int | height = 600 |
Vector< Drawable > | items = new Vector<Drawable>() |
Vector< Drawable > | items2D = new Vector<Drawable>() |
float | leftMouseY = -1.0f |
float | rightMouseX = -1.0f |
float | rightMouseY = -1.0f |
float | xShiftDisplay |
float | yRotDisplay |
float | yShiftDisplay |
float | zoomDisplay |
float | zShiftDisplay |
Static Package Attributes | |
static final long | serialVersionUID = 0 |
Definition at line 27 of file Canvas.java.
edu.tum.cs.ias.knowrob.vis.Canvas.Canvas | ( | ) | [inline] |
Definition at line 97 of file Canvas.java.
synchronized void edu.tum.cs.ias.knowrob.vis.Canvas.add | ( | Drawable | d | ) | [inline] |
Definition at line 226 of file Canvas.java.
synchronized void edu.tum.cs.ias.knowrob.vis.Canvas.add2D | ( | Drawable | d | ) | [inline] |
Definition at line 230 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.draw | ( | ) | [inline] |
Reimplemented in edu.tum.cs.ias.knowrob.vis.applets.EmptyCanvas, and edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.
Definition at line 135 of file Canvas.java.
synchronized void edu.tum.cs.ias.knowrob.vis.Canvas.drawItems | ( | ) | [inline] |
Reimplemented in edu.tum.cs.ias.knowrob.vis.AnimatedCanvas.
Definition at line 210 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.drawLine | ( | Vector3f | p1, |
Vector3f | p2, | ||
int | color | ||
) | [inline] |
Definition at line 215 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.drawLine | ( | float | x1, |
float | y1, | ||
float | z1, | ||
float | x2, | ||
float | y2, | ||
float | z2, | ||
int | color | ||
) | [inline] |
Definition at line 221 of file Canvas.java.
int edu.tum.cs.ias.knowrob.vis.Canvas.getHeight | ( | ) | [inline] |
Definition at line 84 of file Canvas.java.
int edu.tum.cs.ias.knowrob.vis.Canvas.getWidth | ( | ) | [inline] |
Definition at line 88 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.keyPressed | ( | ) | [inline] |
Reimplemented in edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet, and edu.tum.cs.ias.knowrob.vis.AnimatedCanvas.
Definition at line 250 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.preDrawItems | ( | ) | [inline, protected] |
Definition at line 197 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.rotateAxis | ( | double | theta, |
Vector3f | rotAxis | ||
) | [inline] |
Definition at line 234 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.runMain | ( | ) | [inline] |
runs this applet as a main application (copied from PApplet.main)
args |
!!Image image = Toolkit.getDefaultToolkit().createImage(ICON_IMAGE);
!!applet.external = external;
Reimplemented in edu.tum.cs.ias.knowrob.vis.applets.EmptyCanvas.
Definition at line 404 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.setCamera | ( | ) | [inline, protected] |
Definition at line 201 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.setEyeTarget | ( | Vector3f | v | ) | [inline] |
Definition at line 117 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.setHeight | ( | int | height | ) | [inline] |
sets the height of the window (must set before the canvas is initialized using setup)
width |
Definition at line 80 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.setSceneSize | ( | float | size | ) | [inline] |
Definition at line 92 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.setStandardViewParams | ( | ) | [inline] |
set standard parameters for non-camera-based view
Definition at line 109 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.setup | ( | ) | [inline] |
Reimplemented in edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.
Definition at line 121 of file Canvas.java.
void edu.tum.cs.ias.knowrob.vis.Canvas.setWidth | ( | int | width | ) | [inline] |
sets the width of the window (must set before the canvas is initialized using setup)
width |
Definition at line 72 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.centerMouseY = -1.0f [package] |
Definition at line 43 of file Canvas.java.
Definition at line 60 of file Canvas.java.
Vector3f edu.tum.cs.ias.knowrob.vis.Canvas.eye [protected] |
parameters for camera-based viewing
Definition at line 53 of file Canvas.java.
Vector3f edu.tum.cs.ias.knowrob.vis.Canvas.eyeTarget [package] |
Definition at line 53 of file Canvas.java.
Vector3f edu.tum.cs.ias.knowrob.vis.Canvas.eyeUp [package] |
Definition at line 53 of file Canvas.java.
int edu.tum.cs.ias.knowrob.vis.Canvas.height = 600 [package] |
Definition at line 33 of file Canvas.java.
Vector<Drawable> edu.tum.cs.ias.knowrob.vis.Canvas.items = new Vector<Drawable>() [package] |
the collection of drawable items to be painted onto this canvas
Definition at line 65 of file Canvas.java.
Vector<Drawable> edu.tum.cs.ias.knowrob.vis.Canvas.items2D = new Vector<Drawable>() [package] |
Definition at line 66 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.leftMouseX = -1.0f [protected] |
mouse tracking
Definition at line 43 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.leftMouseY = -1.0f [package] |
Definition at line 43 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.rightMouseX = -1.0f [package] |
Definition at line 43 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.rightMouseY = -1.0f [package] |
Definition at line 43 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.sceneSize = 4000 [protected] |
size of the scene (diameter), used for scaling of the view
Definition at line 58 of file Canvas.java.
final long edu.tum.cs.ias.knowrob.vis.Canvas.serialVersionUID = 0 [static, package] |
Reimplemented in edu.tum.cs.ias.knowrob.vis.applets.EmptyCanvas, edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet, and edu.tum.cs.ias.knowrob.vis.AnimatedCanvas.
Definition at line 28 of file Canvas.java.
boolean edu.tum.cs.ias.knowrob.vis.Canvas.useCamera [protected] |
controls the view mode
Definition at line 38 of file Canvas.java.
int edu.tum.cs.ias.knowrob.vis.Canvas.width = 800 [protected] |
dimensions of the display
Definition at line 33 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.xRotDisplay [protected] |
parameters for non-camera-based viewing
Definition at line 48 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.xShiftDisplay [package] |
Definition at line 48 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.yRotDisplay [package] |
Definition at line 48 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.yShiftDisplay [package] |
Definition at line 48 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.zoomDisplay [package] |
Definition at line 48 of file Canvas.java.
float edu.tum.cs.ias.knowrob.vis.Canvas.zShiftDisplay [package] |
Definition at line 48 of file Canvas.java.