SUMO - Simulation of Urban MObility
GUIGlChildWindow.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 //
20 /****************************************************************************/
21 #ifndef GUIGlChildWindow_h
22 #define GUIGlChildWindow_h
23 
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <fx.h>
37 
38 #include "GUISUMOAbstractView.h"
39 
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
47 class GUIGlChildWindow : public FXMDIChild {
48  FXDECLARE(GUIGlChildWindow)
49 public:
50  GUIGlChildWindow(FXMDIClient* p, GUIMainWindow* parentWindow,
51  FXMDIMenu* mdimenu, const FXString& name,
52  FXIcon* ic = NULL, FXuint opts = 0, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
53 
54  virtual ~GUIGlChildWindow();
55 
56  virtual FXGLCanvas* getBuildGLCanvas() const;
57  virtual void create();
58 
60  return myView;
61  }
62 
63  long onCmdRecenterView(FXObject*, FXSelector, void*);
64  long onCmdEditViewport(FXObject*, FXSelector, void*);
65  long onCmdEditViewScheme(FXObject*, FXSelector, void*);
66  long onCmdShowToolTips(FXObject* sender, FXSelector, void*);
67  long onCmdZoomStyle(FXObject* sender, FXSelector, void*);
68  long onCmdChangeColorScheme(FXObject*, FXSelector sel, void*);
69 
71  void buildColoringToolBar();
73 
74 
76  FXPopup* getLocatorPopup();
77  FXComboBox& getColoringSchemesCombo();
78 
82  void setView(GUIGlID id);
83 
84 
89  return myParent;
90  }
91 
92 
94  virtual bool isSelected(GUIGlObject* o) const;
95 
96 
97 protected:
100 
103 
105  FXPopup* myLocatorPopup;
106  FXMenuButton* myLocatorButton;
107 
108  FXVerticalFrame* myContentFrame;
109 
110  FXComboBox* myColoringSchemes;
111 
114 
115 
116 protected:
118 
119 };
120 
121 
122 #endif
123 
124 /****************************************************************************/
125 
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:49
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()