All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | Package Functions | Static Package Functions | Package Attributes | Private Member Functions | Private Attributes | Static Private Attributes
edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms Class Reference
Inheritance diagram for edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms:
Inheritance graph
[legend]

List of all members.

Classes

enum  Tab

Public Member Functions

void controlEvent (controlP5.ControlEvent theControlEvent)
void draw ()
void editObject (String identifier)
Frame findFrame ()
void keyPressed ()
void keyReleased ()
void loadInputFile (String filename)
void saveMapToFile (String filename)
void selectAndLoadInputFile ()
void setMapIdentifier (String mapID)
void setMapVisApplet (SemanticMapVisApplet app)
void setNamespace (String namespace)
void setup ()

Public Attributes

ControlP5 controlP5
Textfield t_filename

Protected Member Functions

void incTextfieldValue (ArrayList< Textfield > t_all, float inc)
String readFormData ()
void switchFocus (ArrayList< Textfield > t_all, boolean forward)

Static Protected Attributes

static final HashMap< Integer,
String > 
objClasses = new HashMap<Integer, String>()

Package Functions

boolean checkKey (int k)
void clearFormFields ()
void updateJointForm (ObjectInstance cur)
void updateMatrixForm (Matrix4d m)
void updatePositionForm (Vector3d pos)
void updateQuaternionForm (Vector3d pos, Quat4d q)
void writeFormData (ObjectInstance cur)

Static Package Functions

 [static initializer]

Package Attributes

Button b_child
Button b_del_obj
Button b_new_obj
Button[] b_rot
Button b_update
boolean cp5_initialized = false
boolean[] keys = new boolean[526]
Textlabel l_dim
Textlabel l_jointdir
Textlabel l_jointlim
Textlabel l_radius
String map_id = ""
String map_namespace = ""
HashMap< String, ObjectInstanceobjects
boolean selectChildObj = false
boolean selectParentObj = false
ArrayList< Textfield > t_all_joint
ArrayList< Textfield > t_all_matrix
ArrayList< Textfield > t_all_quat
ArrayList< Textfield > t_all_simple
Textfield t_child
Textfield[] t_dim
Textfield t_id
Textfield[] t_jointdir
Textfield[] t_jointlim
Textfield t_map_id
Textfield[] t_matrix
Textfield t_namespace
Textfield t_parent
Textfield[] t_pos
Textfield[] t_qpos
Textfield[] t_quat
Textfield t_radius
ListBox t_types
Tab tab

Private Member Functions

void hideObjSpecificElements ()
void initControlP5Forms ()
void showJointSpecificFormFields ()
void showObjSpecificElements ()

Private Attributes

SemanticMapVisApplet mapVisApplet = null

Static Private Attributes

static final long serialVersionUID = -4266603809510554926L

Detailed Description

User interface for the semantic map editor

This class provides the input forms and interaction tools to enter the object information to the editor and to update the visualization.

Author:
tenorth@cs.tum.edu

Definition at line 49 of file SemanticMapEditorForms.java.


Member Function Documentation

edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.[static initializer] ( ) [inline, static, package]
boolean edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.checkKey ( int  k) [inline, package]

Check whether a key is currently held down

Parameters:
kThe key to be checked (Java key code)
Returns:
true if the key is currently pressed

Definition at line 883 of file SemanticMapEditorForms.java.

Definition at line 1242 of file SemanticMapEditorForms.java.

void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.controlEvent ( controlP5.ControlEvent  theControlEvent) [inline]

Event handlers for the form elements (buttons, tabs)

Definition at line 510 of file SemanticMapEditorForms.java.

Draw-method: call controlP5.draw to update the content of the forms.

Definition at line 205 of file SemanticMapEditorForms.java.

Click-interface with higher-level PrologVisualizationCanvas: forward information which item in the visualization the user clicked on

Depending on the state, the click is either interpreted as selection of the current object or of the parent object (if selectParentObj=true)

Parameters:
identifierString-identifier of the clicked-on object

Definition at line 1350 of file SemanticMapEditorForms.java.

Definition at line 195 of file SemanticMapEditorForms.java.

Definition at line 703 of file SemanticMapEditorForms.java.

void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.incTextfieldValue ( ArrayList< Textfield >  t_all,
float  inc 
) [inline, protected]

Increment the value of a numeric text field by adding the value inc

Parameters:
t_allArrayList of the text fields in the current tab
incIncrement to add to the value

Definition at line 924 of file SemanticMapEditorForms.java.

Initialize the tabs and form fields

Definition at line 225 of file SemanticMapEditorForms.java.

Keyboard shortcuts

  • ENTER updates the visualization with the data entered into the form fields
  • TAB/SHIFT-TAB circulate through the text fields forward/backward
  • PAGE UP/PAGE DOWN increase/decrease the value of a text field containing numeric values

Definition at line 791 of file SemanticMapEditorForms.java.

Helper method: update keys[] array when a key is released (needed to use modifying keys like SHIFT in addition to TAB)

Definition at line 872 of file SemanticMapEditorForms.java.

Load an OWL file into the editor-internal data structures

Parameters:
filenameOWL file to be loaded

Definition at line 1281 of file SemanticMapEditorForms.java.

Read information from the forms and save it in a ObjectInstance instance

Definition at line 954 of file SemanticMapEditorForms.java.

Definition at line 687 of file SemanticMapEditorForms.java.

Show dialog for selecting the input file, parse it and update the visualization

Definition at line 1268 of file SemanticMapEditorForms.java.

Definition at line 1409 of file SemanticMapEditorForms.java.

Set the internal reference to the SemanticMapVisApplet

Parameters:
appReference to a SemanticMapVisApplet

Definition at line 1335 of file SemanticMapEditorForms.java.

Definition at line 1413 of file SemanticMapEditorForms.java.

Initialize the interface and data structures

Definition at line 180 of file SemanticMapEditorForms.java.

Definition at line 738 of file SemanticMapEditorForms.java.

Definition at line 721 of file SemanticMapEditorForms.java.

void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.switchFocus ( ArrayList< Textfield >  t_all,
boolean  forward 
) [inline, protected]

Iterate over form fields (used e.g. for the TAB key). Due to the different tabs, there are multiple ArrayLists containing the fields for each tab so that the iteration is done correctly.

Parameters:
t_allArrayList of text fields to iterate over (for the current tab)
forwardif true, iterate forwards, otherwise backwards

Definition at line 896 of file SemanticMapEditorForms.java.

Update the joint information form fields (if data has been changed)

Parameters:
curMapJoint with the joint information

Definition at line 1219 of file SemanticMapEditorForms.java.

Update the matrix form fields (if data in another form has been changed)

Parameters:
mMatrix4d with the values to be filled in

Definition at line 1160 of file SemanticMapEditorForms.java.

Update the position form fields (if data in another form has been changed)

Parameters:
posVector3d with the position data to be filled in

Definition at line 1188 of file SemanticMapEditorForms.java.

void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.updateQuaternionForm ( Vector3d  pos,
Quat4d  q 
) [inline, package]

Update the quaternion form fields (if data in another form has been changed)

Parameters:
posVector3d with the position data to be filled in
qQuat4d with the orientation data to be filled in

Definition at line 1202 of file SemanticMapEditorForms.java.

Load the information from the ObjectInstance cur into the forms

Parameters:
curCurrent ObjectInstance providing the information to be filled into the forms

Definition at line 1126 of file SemanticMapEditorForms.java.


Member Data Documentation

Definition at line 83 of file SemanticMapEditorForms.java.

Definition at line 85 of file SemanticMapEditorForms.java.

Definition at line 84 of file SemanticMapEditorForms.java.

Definition at line 82 of file SemanticMapEditorForms.java.

Definition at line 86 of file SemanticMapEditorForms.java.

Definition at line 57 of file SemanticMapEditorForms.java.

Definition at line 105 of file SemanticMapEditorForms.java.

boolean [] edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.keys = new boolean[526] [package]

Definition at line 58 of file SemanticMapEditorForms.java.

Definition at line 81 of file SemanticMapEditorForms.java.

Definition at line 78 of file SemanticMapEditorForms.java.

Definition at line 79 of file SemanticMapEditorForms.java.

Definition at line 80 of file SemanticMapEditorForms.java.

Definition at line 107 of file SemanticMapEditorForms.java.

Definition at line 108 of file SemanticMapEditorForms.java.

Definition at line 56 of file SemanticMapEditorForms.java.

final HashMap<Integer, String> edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.objClasses = new HashMap<Integer, String>() [static, protected]

List of objects to be displayed in the object classes selector

Definition at line 114 of file SemanticMapEditorForms.java.

Internal storage of the ObjectInstance instances

Definition at line 103 of file SemanticMapEditorForms.java.

Definition at line 60 of file SemanticMapEditorForms.java.

Definition at line 59 of file SemanticMapEditorForms.java.

final long edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.serialVersionUID = -4266603809510554926L [static, private]

Definition at line 51 of file SemanticMapEditorForms.java.

Definition at line 91 of file SemanticMapEditorForms.java.

Definition at line 89 of file SemanticMapEditorForms.java.

Definition at line 90 of file SemanticMapEditorForms.java.

Definition at line 88 of file SemanticMapEditorForms.java.

Definition at line 87 of file SemanticMapEditorForms.java.

Definition at line 66 of file SemanticMapEditorForms.java.

Definition at line 73 of file SemanticMapEditorForms.java.

Definition at line 63 of file SemanticMapEditorForms.java.

Definition at line 71 of file SemanticMapEditorForms.java.

Definition at line 72 of file SemanticMapEditorForms.java.

Definition at line 75 of file SemanticMapEditorForms.java.

Definition at line 67 of file SemanticMapEditorForms.java.

Definition at line 74 of file SemanticMapEditorForms.java.

Definition at line 76 of file SemanticMapEditorForms.java.

Definition at line 69 of file SemanticMapEditorForms.java.

Definition at line 70 of file SemanticMapEditorForms.java.

Definition at line 68 of file SemanticMapEditorForms.java.

Definition at line 77 of file SemanticMapEditorForms.java.

Definition at line 64 of file SemanticMapEditorForms.java.

Definition at line 93 of file SemanticMapEditorForms.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


mod_semantic_map
Author(s): Moritz Tenorth
autogenerated on Thu May 23 2013 08:54:30