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, ObjectInstance > | objects |
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 |
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.
Definition at line 49 of file SemanticMapEditorForms.java.
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
k | The key to be checked (Java key code) |
Definition at line 883 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.clearFormFields | ( | ) | [inline, package] |
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.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.draw | ( | ) | [inline] |
Draw-method: call controlP5.draw to update the content of the forms.
Definition at line 205 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.editObject | ( | String | identifier | ) | [inline] |
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)
identifier | String-identifier of the clicked-on object |
Definition at line 1350 of file SemanticMapEditorForms.java.
Frame edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.findFrame | ( | ) | [inline] |
Definition at line 195 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.hideObjSpecificElements | ( | ) | [inline, private] |
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
t_all | ArrayList of the text fields in the current tab |
inc | Increment to add to the value |
Definition at line 924 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.initControlP5Forms | ( | ) | [inline, private] |
Initialize the tabs and form fields
Definition at line 225 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.keyPressed | ( | ) | [inline] |
Keyboard shortcuts
Definition at line 791 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.keyReleased | ( | ) | [inline] |
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.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.loadInputFile | ( | String | filename | ) | [inline] |
Load an OWL file into the editor-internal data structures
filename | OWL file to be loaded |
Definition at line 1281 of file SemanticMapEditorForms.java.
String edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.readFormData | ( | ) | [inline, protected] |
Read information from the forms and save it in a ObjectInstance instance
Definition at line 954 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.saveMapToFile | ( | String | filename | ) | [inline] |
Definition at line 687 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.selectAndLoadInputFile | ( | ) | [inline] |
Show dialog for selecting the input file, parse it and update the visualization
Definition at line 1268 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.setMapIdentifier | ( | String | mapID | ) | [inline] |
Definition at line 1409 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.setMapVisApplet | ( | SemanticMapVisApplet | app | ) | [inline] |
Set the internal reference to the SemanticMapVisApplet
app | Reference to a SemanticMapVisApplet |
Definition at line 1335 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.setNamespace | ( | String | namespace | ) | [inline] |
Definition at line 1413 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.setup | ( | ) | [inline] |
Initialize the interface and data structures
Definition at line 180 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.showJointSpecificFormFields | ( | ) | [inline, private] |
Definition at line 738 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.showObjSpecificElements | ( | ) | [inline, private] |
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.
t_all | ArrayList of text fields to iterate over (for the current tab) |
forward | if true, iterate forwards, otherwise backwards |
Definition at line 896 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.updateJointForm | ( | ObjectInstance | cur | ) | [inline, package] |
Update the joint information form fields (if data has been changed)
cur | MapJoint with the joint information |
Definition at line 1219 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.updateMatrixForm | ( | Matrix4d | m | ) | [inline, package] |
Update the matrix form fields (if data in another form has been changed)
m | Matrix4d with the values to be filled in |
Definition at line 1160 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.updatePositionForm | ( | Vector3d | pos | ) | [inline, package] |
Update the position form fields (if data in another form has been changed)
pos | Vector3d 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)
pos | Vector3d with the position data to be filled in |
q | Quat4d with the orientation data to be filled in |
Definition at line 1202 of file SemanticMapEditorForms.java.
void edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.writeFormData | ( | ObjectInstance | cur | ) | [inline, package] |
Load the information from the ObjectInstance cur into the forms
cur | Current ObjectInstance providing the information to be filled into the forms |
Definition at line 1126 of file SemanticMapEditorForms.java.
Button edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.b_child [package] |
Definition at line 83 of file SemanticMapEditorForms.java.
Button edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.b_del_obj [package] |
Definition at line 85 of file SemanticMapEditorForms.java.
Button edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.b_new_obj [package] |
Definition at line 84 of file SemanticMapEditorForms.java.
Button [] edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.b_rot [package] |
Definition at line 82 of file SemanticMapEditorForms.java.
Button edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.b_update [package] |
Definition at line 86 of file SemanticMapEditorForms.java.
Definition at line 57 of file SemanticMapEditorForms.java.
boolean edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.cp5_initialized = false [package] |
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.
Textlabel edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.l_dim [package] |
Definition at line 81 of file SemanticMapEditorForms.java.
Textlabel edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.l_jointdir [package] |
Definition at line 78 of file SemanticMapEditorForms.java.
Textlabel edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.l_jointlim [package] |
Definition at line 79 of file SemanticMapEditorForms.java.
Textlabel edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.l_radius [package] |
Definition at line 80 of file SemanticMapEditorForms.java.
String edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.map_id = "" [package] |
Definition at line 107 of file SemanticMapEditorForms.java.
String edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.map_namespace = "" [package] |
Definition at line 108 of file SemanticMapEditorForms.java.
SemanticMapVisApplet edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.mapVisApplet = null [private] |
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.
HashMap<String, ObjectInstance> edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.objects [package] |
Internal storage of the ObjectInstance instances
Definition at line 103 of file SemanticMapEditorForms.java.
boolean edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.selectChildObj = false [package] |
Definition at line 60 of file SemanticMapEditorForms.java.
boolean edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.selectParentObj = false [package] |
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.
ArrayList<Textfield> edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_all_joint [package] |
Definition at line 91 of file SemanticMapEditorForms.java.
ArrayList<Textfield> edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_all_matrix [package] |
Definition at line 89 of file SemanticMapEditorForms.java.
ArrayList<Textfield> edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_all_quat [package] |
Definition at line 90 of file SemanticMapEditorForms.java.
ArrayList<Textfield> edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_all_simple [package] |
Definition at line 88 of file SemanticMapEditorForms.java.
Textfield edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_child [package] |
Definition at line 87 of file SemanticMapEditorForms.java.
Textfield [] edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_dim [package] |
Definition at line 66 of file SemanticMapEditorForms.java.
Definition at line 73 of file SemanticMapEditorForms.java.
Textfield edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_id [package] |
Definition at line 63 of file SemanticMapEditorForms.java.
Textfield [] edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_jointdir [package] |
Definition at line 71 of file SemanticMapEditorForms.java.
Textfield [] edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_jointlim [package] |
Definition at line 72 of file SemanticMapEditorForms.java.
Textfield edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_map_id [package] |
Definition at line 75 of file SemanticMapEditorForms.java.
Textfield [] edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_matrix [package] |
Definition at line 67 of file SemanticMapEditorForms.java.
Textfield edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_namespace [package] |
Definition at line 74 of file SemanticMapEditorForms.java.
Textfield edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_parent [package] |
Definition at line 76 of file SemanticMapEditorForms.java.
Textfield [] edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_pos [package] |
Definition at line 69 of file SemanticMapEditorForms.java.
Textfield [] edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_qpos [package] |
Definition at line 70 of file SemanticMapEditorForms.java.
Textfield [] edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_quat [package] |
Definition at line 68 of file SemanticMapEditorForms.java.
Textfield edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_radius [package] |
Definition at line 77 of file SemanticMapEditorForms.java.
ListBox edu.tum.cs.ias.knowrob.map.SemanticMapEditorForms.t_types [package] |
Definition at line 64 of file SemanticMapEditorForms.java.
Definition at line 93 of file SemanticMapEditorForms.java.