SUMO - Simulation of Urban MObility

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 (C) 2001-2011 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/Position.h>
00036 #include <utils/geom/Boundary.h>
00037 #include <utils/gui/globjects/GUIGlObjectTypes.h>
00038 #include <utils/gui/windows/GUIGlChildWindow.h>
00039 
00040 
00041 // ===========================================================================
00042 // class declarations
00043 // ===========================================================================
00044 class GUINet;
00045 class GUISUMOAbstractView;
00046 class GUIDialog_GLObjChooser;
00047 
00048 
00049 // ===========================================================================
00050 // class declarations
00051 // ===========================================================================
00062 class GUISUMOViewParent : public GUIGlChildWindow {
00063     // FOX-declarations
00064     FXDECLARE(GUISUMOViewParent)
00065 
00066 public:
00079     GUISUMOViewParent(FXMDIClient* p, FXMDIMenu* mdimenu,
00080                       const FXString& name, GUIMainWindow* parentWindow,
00081                       FXIcon* ic=NULL, FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0);
00082 
00083 
00089     virtual GUISUMOAbstractView* init(FXGLCanvas* share, GUINet& net);
00090 
00091 
00093     ~GUISUMOViewParent();
00094 
00095 
00097     long onCmdMakeSnapshot(FXObject* sender,FXSelector,void*);
00098 
00100     long onSimStep(FXObject* sender,FXSelector,void*);
00101 
00103     long onCmdLocate(FXObject*,FXSelector,void*);
00104 
00106     bool isSelected(GUIGlObject* o) const;
00107 
00108 protected:
00110     GUISUMOViewParent() { }
00111 
00112 };
00113 
00114 
00115 #endif
00116 
00117 /****************************************************************************/
00118 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines