SemanticMapEditor.java
Go to the documentation of this file.
00001 package edu.tum.cs.ias.knowrob.map;
00002 
00003 import java.awt.event.MouseListener;
00004 import java.awt.event.MouseMotionListener;
00005 import processing.core.*;
00006 import edu.tum.cs.ias.knowrob.prolog.PrologInterface;
00007 import edu.tum.cs.ias.knowrob.vis.applets.PrologVisualizationCanvas;
00008 
00009 
00010 
00020 public class SemanticMapEditor extends PrologVisualizationCanvas implements MouseListener, MouseMotionListener {
00021 
00022         private static final long serialVersionUID = 4575739930038583994L;
00023         protected SemanticMapEditorForms forms_applet;
00024         
00025         
00030         public SemanticMapEditor() {
00031 
00032                 this.setSize(1050, 600);
00033                 this.remove(AVObject);
00034                 //this.controlWindow.hide();
00035                 this.KVObject.setViewParameters(4.0f, 4.0f, 134f, -15f, 100);
00036                 
00037                 PrologInterface.initJPLProlog("mod_vis");
00038                 
00039                 forms_applet = new SemanticMapEditorForms();
00040                 forms_applet.frame = this.frame;
00041                 forms_applet.setSize(390, 600);
00042                 forms_applet.init();
00043                 forms_applet.setMapVisApplet(KVObject);
00044                 
00045                 this.add(forms_applet);
00046 
00047                 this.cursor(ARROW);
00048                 this.forms_applet.cursor(ARROW);
00049                 this.KVObject.cursor(ARROW);
00050                 
00051 
00052                 background(40);
00053                 this.draw();
00054                 this.setVisible(true);
00055                 this.setSize(1050, 600);
00056                 this.validate();
00057                 
00058 
00059                 forms_applet.selectAndLoadInputFile();
00060         
00061         }
00062         
00063         public void draw() {
00064                 background(40);
00065         }
00066 
00072     public void mapObjectClicked(String identifier) {
00073 
00074         forms_applet.editObject(identifier);
00075     }
00076                 
00077         public static void main(String args[]) {
00078                 PApplet.main(new String[] { "edu.tum.cs.ias.knowrob.map.SemanticMapEditor" });
00079         }
00080 }
00081 
 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