SUMO - Simulation of Urban MObility
GUIGlChildWindow.h
Go to the documentation of this file.
1 /****************************************************************************/
9 //
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef GUIGlChildWindow_h
23 #define GUIGlChildWindow_h
24 
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 
31 #ifdef _MSC_VER
32 #include <windows_config.h>
33 #else
34 #include <config.h>
35 #endif
36 
37 #include <fx.h>
38 
39 #include "GUISUMOAbstractView.h"
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
48 class GUIGlChildWindow : public FXMDIChild {
49  FXDECLARE(GUIGlChildWindow)
50 public:
51  GUIGlChildWindow(FXMDIClient* p, GUIMainWindow* parentWindow,
52  FXMDIMenu* mdimenu, const FXString& name,
53  FXIcon* ic = NULL, FXuint opts = 0, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
54 
55  virtual ~GUIGlChildWindow();
56 
57  virtual FXGLCanvas* getBuildGLCanvas() const;
58  virtual void create();
59 
61  return myView;
62  }
63 
64  long onCmdRecenterView(FXObject*, FXSelector, void*);
65  long onCmdEditViewport(FXObject*, FXSelector, void*);
66  long onCmdEditViewScheme(FXObject*, FXSelector, void*);
67  long onCmdShowToolTips(FXObject* sender, FXSelector, void*);
68  long onCmdZoomStyle(FXObject* sender, FXSelector, void*);
69  long onCmdChangeColorScheme(FXObject*, FXSelector sel, void*);
70 
72  void buildColoringToolBar();
74 
75 
77  FXPopup* getLocatorPopup();
78  FXComboBox& getColoringSchemesCombo();
79 
83  void setView(GUIGlID id);
84 
85 
90  return myParent;
91  }
92 
93 
95  virtual bool isSelected(GUIGlObject* o) const;
96 
97 
98 protected:
101 
104 
106  FXPopup* myLocatorPopup;
107  FXMenuButton* myLocatorButton;
108 
109  FXVerticalFrame* myContentFrame;
110 
111  FXComboBox* myColoringSchemes;
112 
115 
116 
117 protected:
119 
120 };
121 
122 
123 #endif
124 
125 /****************************************************************************/
126 
GUISUMOAbstractView * getView() const
virtual FXGLCanvas * getBuildGLCanvas() const
FXToolBar & getNavigationToolBar(GUISUMOAbstractView &v)
long onCmdZoomStyle(FXObject *sender, FXSelector, void *)
FXPopup * myLocatorPopup
The locator menu.
GUIMainWindow * myParent
The parent window.
GUIMainWindow * getParent()
Returns the main window.
long onCmdShowToolTips(FXObject *sender, FXSelector, void *)
FXComboBox & getColoringSchemesCombo()
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
FXToolBar * myNavigationToolBar
The tool bar.
unsigned int GUIGlID
Definition: GUIGlObject.h:50
void setView(GUIGlID id)
Centers the view onto the given artifact.
FXComboBox * myColoringSchemes
virtual ~GUIGlChildWindow()
FXMenuButton * myLocatorButton
GUISUMOAbstractView * myView
the view
long onCmdEditViewport(FXObject *, FXSelector, void *)
virtual bool isSelected(GUIGlObject *o) const
true if the object is selected (may include extra logic besides calling gSelected) ...
long onCmdRecenterView(FXObject *, FXSelector, void *)
long onCmdChangeColorScheme(FXObject *, FXSelector sel, void *)
virtual void create()
FXVerticalFrame * myContentFrame
FXPopup * getLocatorPopup()