SUMO - Simulation of Urban MObility
GUISUMOViewParent.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // A single child window which contains a view of the simulation area
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
13 // Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
14 /****************************************************************************/
15 //
16 // This file is part of SUMO.
17 // SUMO is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 /****************************************************************************/
23 #ifndef GUISUMOViewParent_h
24 #define GUISUMOViewParent_h
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <string>
37 #include <vector>
38 #include <fx.h>
39 #include <utils/geom/Position.h>
40 #include <utils/geom/Boundary.h>
43 
44 
45 // ===========================================================================
46 // class declarations
47 // ===========================================================================
48 class GUINet;
51 
52 
53 // ===========================================================================
54 // class declarations
55 // ===========================================================================
67  // FOX-declarations
68  FXDECLARE(GUISUMOViewParent)
69 
70 public:
72  enum ViewType {
77  };
78 
79 
92  GUISUMOViewParent(FXMDIClient* p, FXMDIMenu* mdimenu,
93  const FXString& name, GUIMainWindow* parentWindow,
94  FXIcon* ic = NULL, FXuint opts = 0, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
95 
96 
103  virtual GUISUMOAbstractView* init(FXGLCanvas* share, GUINet& net, ViewType type);
104 
105 
108 
109 
111  long onCmdMakeSnapshot(FXObject* sender, FXSelector, void*);
112 
114  long onSimStep(FXObject* sender, FXSelector, void*);
115 
117  long onCmdLocate(FXObject*, FXSelector, void*);
118 
120  long onKeyPress(FXObject* o, FXSelector sel, void* data);
121  long onKeyRelease(FXObject* o, FXSelector sel, void* data);
122 
124  bool isSelected(GUIGlObject* o) const;
125 
127  void setToolBarVisibility(const bool value);
128 
129 protected:
132 
133 };
134 
135 
136 #endif
137 
138 /****************************************************************************/
139 
~GUISUMOViewParent()
Destructor.
void setToolBarVisibility(const bool value)
about toggled gaming status
long onCmdLocate(FXObject *, FXSelector, void *)
locator-callback
long onSimStep(FXObject *sender, FXSelector, void *)
Called on a simulation step.
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
long onKeyPress(FXObject *o, FXSelector sel, void *data)
handle keys
bool isSelected(GUIGlObject *o) const
true if the object is selected (may include extra logic besides calling gSelected) ...
ViewType
Available view types.
A single child window which contains a view of the simulation area.
long onCmdMakeSnapshot(FXObject *sender, FXSelector, void *)
Called if the user wants to make a snapshot (screenshot)
A MSNet extended by some values for usage within the gui.
Definition: GUINet.h:89
GUISUMOViewParent()
FOX needs this.
virtual GUISUMOAbstractView * init(FXGLCanvas *share, GUINet &net, ViewType type)
"Initialises" this window by building the contents