SUMO - Simulation of Urban MObility
GNEViewParent.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A single child window which contains a view of the edited network (adapted
8 // from GUISUMOViewParent)
9 // While we don't actually need MDI for netedit it is easier to adapt existing
10 // structures than to write everything from scratch.
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 GNEViewParent_h
24 #define GNEViewParent_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 // ===========================================================================
49 class GNENet;
51 
52 // ===========================================================================
53 // class declarations
54 // ===========================================================================
66  // FOX-declarations
67  FXDECLARE(GNEViewParent)
68 
69 public:
86  GNEViewParent(FXMDIClient* p, FXMDIMenu* mdimenu,
87  const FXString& name, GNEApplicationWindow* parentWindow,
88  FXGLCanvas* share, GNENet* net,
89  FXIcon* ic = NULL, FXuint opts = 0, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
90 
91 
94 
95 
97  long onCmdMakeSnapshot(FXObject* sender, FXSelector, void*);
98 
100  long onCmdClose(FXObject*, FXSelector, void*);
101 
103  long onCmdLocate(FXObject*, FXSelector, void*);
104 
106  long onKeyPress(FXObject* o, FXSelector sel, void* data);
107  long onKeyRelease(FXObject* o, FXSelector sel, void* data);
108 
110  bool isSelected(GUIGlObject* o) const;
111 
112 protected:
115 
116 
117 private:
118 
119  // frame to hold myView and myAttributePanel
120  FXHorizontalFrame* myViewArea;
121 };
122 
123 
124 #endif
125 
126 /****************************************************************************/
long onKeyPress(FXObject *o, FXSelector sel, void *data)
handle keys
~GNEViewParent()
Destructor.
The main window of the Netedit.
FXHorizontalFrame * myViewArea
long onCmdLocate(FXObject *, FXSelector, void *)
locator-callback
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:77
A single child window which contains a view of the simulation area.
Definition: GNEViewParent.h:65
GNEViewParent()
FOX needs this.
bool isSelected(GUIGlObject *o) const
true if the object is selected (may include extra logic besides calling gSelected) ...
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user hits the close button (x)
long onCmdMakeSnapshot(FXObject *sender, FXSelector, void *)
Called if the user wants to make a snapshot (screenshot)