Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Package Functions | Package Attributes | Static Package Attributes | Private Member Functions | Private Attributes | Static Private Attributes
edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet Class Reference
Inheritance diagram for edu.tum.cs.ias.knowrob.vis.applets.SemanticMapVisApplet:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 40 of file SemanticMapVisApplet.java.


Member Function Documentation

Definition at line 357 of file SemanticMapVisApplet.java.

Definition at line 362 of file SemanticMapVisApplet.java.

Definition at line 372 of file SemanticMapVisApplet.java.

Reset the visualization (clear all internal buffers)

Definition at line 874 of file SemanticMapVisApplet.java.

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.

Definition at line 1311 of file SemanticMapVisApplet.java.

displays one PROLOG-instance of an action BY IT'S DYNAMIC IDENTIFIER, for example "'http://ias.cs.tum.edu/kb/knowrob.owl#Reaching50'"

Parameters:
identifiere.g.: "'http://ias.cs.tum.edu/kb/knowrob.owl#Reaching50'" (WITH single quotes!)

Definition at line 538 of file SemanticMapVisApplet.java.

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'"

Parameters:
identifiere.g.: "'http://ias.cs.tum.edu/kb/knowrob.owl#Reaching_0_2'" (WITH single quotes!)

Definition at line 800 of file SemanticMapVisApplet.java.

Displays the eye trajectory from the gaze camera

Parameters:
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

Parameters:
identifier='http://ias.cs.tum.edu/kb/knowrob.owl#PickingUpAnObject'
handUsed= 'RightHand' or 'LeftHand'

Definition at line 686 of file SemanticMapVisApplet.java.

draws the time, frame and other textual info prints a message.

Parameters:
message

Definition at line 339 of file SemanticMapVisApplet.java.

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.

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)

Parameters:
identifiere.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.

Definition at line 1671 of file SemanticMapVisApplet.java.

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.

Definition at line 1320 of file SemanticMapVisApplet.java.

Definition at line 411 of file SemanticMapVisApplet.java.

Definition at line 417 of file SemanticMapVisApplet.java.

Definition at line 427 of file SemanticMapVisApplet.java.

Definition at line 1520 of file SemanticMapVisApplet.java.

Definition at line 191 of file SemanticMapVisApplet.java.

Definition at line 343 of file SemanticMapVisApplet.java.

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.


Member Data Documentation

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]
  • items are usually to be referenced by their prolog identifier.
  • the skeleton is referenced by "skeleton".

Definition at line 85 of file SemanticMapVisApplet.java.

Definition at line 73 of file SemanticMapVisApplet.java.

Definition at line 74 of file SemanticMapVisApplet.java.

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.

Definition at line 93 of file SemanticMapVisApplet.java.

Definition at line 60 of file SemanticMapVisApplet.java.

Definition at line 87 of file SemanticMapVisApplet.java.

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.

Definition at line 92 of file SemanticMapVisApplet.java.

Definition at line 62 of file SemanticMapVisApplet.java.

Definition at line 102 of file SemanticMapVisApplet.java.

Definition at line 103 of file SemanticMapVisApplet.java.

Definition at line 44 of file SemanticMapVisApplet.java.

Reimplemented from edu.tum.cs.ias.knowrob.vis.AnimatedCanvas.

Definition at line 42 of file SemanticMapVisApplet.java.

Initial value:
 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.

Definition at line 58 of file SemanticMapVisApplet.java.

Definition at line 59 of file SemanticMapVisApplet.java.


The documentation for this class was generated from the following file:


mod_vis
Author(s): Moritz Tenorth, Jakob Engel
autogenerated on Sat Dec 28 2013 17:09:50