Classes | |
class | MenuHuman |
Public Member Functions | |
void | addItem (ItemBase item) |
void | addObject (String identifier) |
void | addObjectWithChildren (String identifier) |
void | clear () |
void | clearHighlights () |
void | delay (int millis) |
void | displayAction (String identifier) |
void | displayActionFixedIdent (String identifier) |
void | displayEyeTrajectory (String identifier) |
void | displayHumanTrajectory (String identifier, String handUsed) |
void | draw () |
void | drawBackground () |
void | highlightItem (String identifier, boolean highlight, int color) |
void | highlightItem (String identifier, boolean highlight) |
void | highlightReachable (String identifier, boolean highlight) |
void | keyPressed () |
int[] | makeColor (int r, int g, int b) |
void | mouseClicked (MouseEvent e) |
void | removeItem (ItemBase item) |
void | removeObject (String identifier) |
void | removeObjectWithChildren (String identifier) |
void | setColors () |
void | setMapObjClickListener (MapObjClickListener c) |
void | setup () |
void | setViewParameters (float xShift, float yShift, float xRot, float yRot, float zoom) |
ArrayList< Point[]> | sortArray (ArrayList< Point[]> actionsArray) |
Static Public Member Functions | |
static int | convertColor (int red, int green, int blue, int alpha) |
Public Attributes | |
boolean | isInitialized = false |
MenuHuman | menu_human = new MenuHuman() |
Static Public Attributes | |
static final double | ROTATE_Y_DELTA = 0.05 |
Package Functions | |
ItemBase | itemForObjType (String type) |
Package Attributes | |
PeasyCam | cam |
boolean | record = false |
final Timer | timer |
Static Package Attributes | |
static final long | serialVersionUID = 0 |
Private Member Functions | |
void | displayMessage (String message) |
double[] | getDimensionsOfItem (String identifier) |
ItemBase | getItem (String identifier) |
String | getItemAt (int x, int y) |
double[] | getOrientationOfItem (String identifier) |
void | setLights () |
Private Attributes | |
ArrayList< ItemBase > | allItems = new ArrayList<ItemBase>() |
HashMap< String, ItemBase > | animatedItemsRef = new HashMap<String, ItemBase>() |
EmptyCanvas | buffer |
JFrame | bufferFrame |
ArrayList< int[]> | colors = new ArrayList<int[]>(12) |
int | currentFrame = 0 |
PFont | dejavu |
float[] | framesToTimes |
int[] | grayValues = new int[] {160,190,210,170,220,180,200,165,185,205,175,195,215} |
int | numberFrames = 1 |
MapObjClickListener | objectClickListener = null |
boolean | playingForward = true |
PFont | verdana |
PFont | verdanaBold |
Static Private Attributes | |
static int | grayLevelCounter = 0 |
Definition at line 40 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.addItem | ( | ItemBase | item | ) | [inline] |
Definition at line 357 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.addObject | ( | String | identifier | ) | [inline] |
Definition at line 362 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.addObjectWithChildren | ( | String | identifier | ) | [inline] |
Definition at line 372 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.clear | ( | ) | [inline] |
Reset the visualization (clear all internal buffers)
Definition at line 874 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.clearHighlights | ( | ) | [inline] |
Definition at line 512 of file SemanticMapVisApplet.java.
static int edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.convertColor | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) | [inline, static] |
Definition at line 1667 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.delay | ( | int | millis | ) | [inline] |
Definition at line 1311 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.displayAction | ( | String | identifier | ) | [inline] |
displays one PROLOG-instance of an action BY IT'S DYNAMIC IDENTIFIER, for example "'http://ias.cs.tum.edu/kb/knowrob.owl#Reaching50'"
identifier | e.g.: "'http://ias.cs.tum.edu/kb/knowrob.owl#Reaching50'" (WITH single quotes!) |
Definition at line 538 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.displayActionFixedIdent | ( | String | identifier | ) | [inline] |
displays one PROLOG-instance of an action BY IT'S FIXED IDENTIFIER, for example "'http://ias.cs.tum.edu/kb/knowrob.owl#Reaching_0_2'"
identifier | e.g.: "'http://ias.cs.tum.edu/kb/knowrob.owl#Reaching_0_2'" (WITH single quotes!) |
Definition at line 800 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.displayEyeTrajectory | ( | String | identifier | ) | [inline] |
Displays the eye trajectory from the gaze camera
identifier | = 'http://ias.cs.tum.edu/kb/knowrob.owl#PickingUpAnObject' |
Definition at line 744 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.displayHumanTrajectory | ( | String | identifier, |
String | handUsed | ||
) | [inline] |
Displays human trajectories
identifier= | 'http://ias.cs.tum.edu/kb/knowrob.owl#PickingUpAnObject' |
handUsed | = 'RightHand' or 'LeftHand' |
Definition at line 686 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.displayMessage | ( | String | message | ) | [inline, private] |
draws the time, frame and other textual info prints a message.
message |
Definition at line 339 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.draw | ( | ) | [inline] |
draws everything that is define in the semantic map
Reimplemented from edu.tum.cs.ias.knowrob.vis.Canvas.
Definition at line 203 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.drawBackground | ( | ) | [inline] |
queries prolog for kitchen layout and draws / initializes the kitchen called by setup() can also be used to reset the applet completely.
Definition at line 854 of file SemanticMapVisApplet.java.
double [] edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.getDimensionsOfItem | ( | String | identifier | ) | [inline, private] |
Definition at line 1165 of file SemanticMapVisApplet.java.
ItemBase edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.getItem | ( | String | identifier | ) | [inline, private] |
Definition at line 896 of file SemanticMapVisApplet.java.
String edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.getItemAt | ( | int | x, |
int | y | ||
) | [inline, private] |
Definition at line 264 of file SemanticMapVisApplet.java.
double [] edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.getOrientationOfItem | ( | String | identifier | ) | [inline, private] |
Definition at line 1184 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.highlightItem | ( | String | identifier, |
boolean | highlight, | ||
int | color | ||
) | [inline] |
Highlights one object, only if it is present in the scene (does not add anything)
identifier | e.g.: "'http://ias.cs.tum.edu/kb/ias_semantic_map.owl#drawer3'" (WITH single quotes!) |
Definition at line 476 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.highlightItem | ( | String | identifier, |
boolean | highlight | ||
) | [inline] |
Definition at line 489 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.highlightReachable | ( | String | identifier, |
boolean | highlight | ||
) | [inline] |
Highlights object with children
Definition at line 496 of file SemanticMapVisApplet.java.
ItemBase edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.itemForObjType | ( | String | type | ) | [inline, package] |
Definition at line 1671 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.keyPressed | ( | ) | [inline] |
Reimplemented from edu.tum.cs.ias.knowrob.vis.AnimatedCanvas.
Definition at line 1378 of file SemanticMapVisApplet.java.
int [] edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.makeColor | ( | int | r, |
int | g, | ||
int | b | ||
) | [inline] |
Definition at line 1512 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.mouseClicked | ( | MouseEvent | e | ) | [inline] |
Definition at line 1320 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.removeItem | ( | ItemBase | item | ) | [inline] |
Definition at line 411 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.removeObject | ( | String | identifier | ) | [inline] |
Definition at line 417 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.removeObjectWithChildren | ( | String | identifier | ) | [inline] |
Definition at line 427 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.setColors | ( | ) | [inline] |
Definition at line 1520 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.setLights | ( | ) | [inline, private] |
Definition at line 191 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.setMapObjClickListener | ( | MapObjClickListener | c | ) | [inline] |
Definition at line 343 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.setup | ( | ) | [inline] |
initialization. automatically called once when applet is started.
Reimplemented from edu.tum.cs.ias.knowrob.vis.Canvas.
Definition at line 117 of file SemanticMapVisApplet.java.
void edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.setViewParameters | ( | float | xShift, |
float | yShift, | ||
float | xRot, | ||
float | yRot, | ||
float | zoom | ||
) | [inline] |
Definition at line 1485 of file SemanticMapVisApplet.java.
ArrayList<Point[]> edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.sortArray | ( | ArrayList< Point[]> | actionsArray | ) | [inline] |
Definition at line 1494 of file SemanticMapVisApplet.java.
ArrayList<ItemBase> edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.allItems = new ArrayList<ItemBase>() [private] |
Definition at line 86 of file SemanticMapVisApplet.java.
HashMap<String,ItemBase> edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.animatedItemsRef = new HashMap<String, ItemBase>() [private] |
Definition at line 85 of file SemanticMapVisApplet.java.
Definition at line 73 of file SemanticMapVisApplet.java.
JFrame edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.bufferFrame [private] |
Definition at line 74 of file SemanticMapVisApplet.java.
PeasyCam edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.cam [package] |
Definition at line 95 of file SemanticMapVisApplet.java.
ArrayList<int[]> edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.colors = new ArrayList<int[]>(12) [private] |
Definition at line 61 of file SemanticMapVisApplet.java.
int edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.currentFrame = 0 [private] |
Definition at line 93 of file SemanticMapVisApplet.java.
PFont edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.dejavu [private] |
Definition at line 60 of file SemanticMapVisApplet.java.
float [] edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.framesToTimes [private] |
Definition at line 87 of file SemanticMapVisApplet.java.
int edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.grayLevelCounter = 0 [static, private] |
Definition at line 72 of file SemanticMapVisApplet.java.
int [] edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.grayValues = new int[] {160,190,210,170,220,180,200,165,185,205,175,195,215} [private] |
Definition at line 71 of file SemanticMapVisApplet.java.
Definition at line 101 of file SemanticMapVisApplet.java.
Definition at line 63 of file SemanticMapVisApplet.java.
int edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.numberFrames = 1 [private] |
Definition at line 92 of file SemanticMapVisApplet.java.
MapObjClickListener edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.objectClickListener = null [private] |
Definition at line 62 of file SemanticMapVisApplet.java.
boolean edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.playingForward = true [private] |
Definition at line 102 of file SemanticMapVisApplet.java.
boolean edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.record = false [package] |
Definition at line 103 of file SemanticMapVisApplet.java.
final double edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.ROTATE_Y_DELTA = 0.05 [static] |
Definition at line 44 of file SemanticMapVisApplet.java.
final long edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.serialVersionUID = 0 [static, package] |
Reimplemented from edu.tum.cs.ias.knowrob.vis.AnimatedCanvas.
Definition at line 42 of file SemanticMapVisApplet.java.
final Timer edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.timer [package] |
new Timer(40, new ActionListener() { public void actionPerformed(ActionEvent event) { int frameBefore = currentFrame; if(playingForward == true) currentFrame++; if(playingForward == false) currentFrame--; if(currentFrame < 0) currentFrame = 0; if(currentFrame>= numberFrames) currentFrame = numberFrames-1; if(currentFrame != frameBefore) redraw(); } })
Definition at line 1541 of file SemanticMapVisApplet.java.
PFont edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet.verdana [private] |
Definition at line 58 of file SemanticMapVisApplet.java.
Definition at line 59 of file SemanticMapVisApplet.java.