GUISUMOViewParent.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // A single child window which contains a view of the simulation area
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef GUISUMOViewParent_h
00020 #define GUISUMOViewParent_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include <string>
00033 #include <vector>
00034 #include <fx.h>
00035 #include <utils/geom/Position2D.h>
00036 #include <utils/geom/Boundary.h>
00037 #include "dialogs/GUIDialog_GLObjChooser.h"
00038 #include <utils/gui/globjects/GUIGlObjectTypes.h>
00039 #include <utils/gui/windows/GUIGlChildWindow.h>
00040 
00041 
00042 // ===========================================================================
00043 // class declarations
00044 // ===========================================================================
00045 class GUINet;
00046 class GUISUMOAbstractView;
00047 class GUIApplicationWindow;
00048 
00049 
00050 // ===========================================================================
00051 // class declarations
00052 // ===========================================================================
00063 class GUISUMOViewParent : public GUIGlChildWindow {
00064     // FOX-declarations
00065     FXDECLARE(GUISUMOViewParent)
00066 
00067 public:
00080     GUISUMOViewParent(FXMDIClient* p, FXMDIMenu *mdimenu,
00081                       const FXString& name, GUIMainWindow *parentWindow,
00082                       FXIcon* ic=NULL, FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0);
00083 
00084 
00090     virtual GUISUMOAbstractView* init(FXGLCanvas *share, GUINet &net);
00091 
00092 
00094     ~GUISUMOViewParent();
00095 
00096 
00098     long onCmdMakeSnapshot(FXObject*sender,FXSelector,void*);
00099 
00101     long onSimStep(FXObject*sender,FXSelector,void*);
00102 
00103 
00105 
00106 
00108     long onCmdLocateJunction(FXObject*,FXSelector,void*);
00110     long onCmdLocateEdge(FXObject*,FXSelector,void*);
00112     long onCmdLocateVehicle(FXObject*,FXSelector,void*);
00114     long onCmdLocateTLS(FXObject*,FXSelector,void*);
00116     long onCmdLocateAdd(FXObject *sender,FXSelector,void*);
00118     long onCmdLocateShape(FXObject*,FXSelector,void*);
00120 
00121 
00125     void setView(const GUIGlObject * const o) throw();
00126 
00127 
00131     GUIMainWindow *getParent() throw() {
00132         return myParent;
00133     }
00134 
00135 
00136 protected:
00142     void showLocator(GUIGlObjectType type, FXIcon *icon, FXString title);
00143 
00144 
00145 protected:
00147     GUIMainWindow *myParent;
00148 
00149 
00150 protected:
00152     GUISUMOViewParent() { }
00153 
00154 };
00155 
00156 
00157 #endif
00158 
00159 /****************************************************************************/
00160 

Generated on Wed May 5 00:06:30 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6