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-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
17 //
18 /****************************************************************************/
19 #ifndef GUIGlChildWindow_h
20 #define GUIGlChildWindow_h
21 
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 
28 #include <config.h>
29 
30 #include <fx.h>
31 
32 #include "GUISUMOAbstractView.h"
33 
34 
35 // ===========================================================================
36 // class definitions
37 // ===========================================================================
41 class GUIGlChildWindow : public FXMDIChild {
42  FXDECLARE(GUIGlChildWindow)
43 public:
44  GUIGlChildWindow(FXMDIClient* p, GUIMainWindow* parentWindow,
45  FXMDIMenu* mdimenu, const FXString& name,
46  FXIcon* ic = NULL, FXuint opts = 0, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
47 
48  virtual ~GUIGlChildWindow();
49 
50  virtual FXGLCanvas* getBuildGLCanvas() const;
51  virtual void create();
52 
54  return myView;
55  }
56 
57  long onCmdRecenterView(FXObject*, FXSelector, void*);
58  long onCmdEditViewport(FXObject*, FXSelector, void*);
59  long onCmdEditViewScheme(FXObject*, FXSelector, void*);
60  long onCmdShowToolTips(FXObject* sender, FXSelector, void*);
61  long onCmdZoomStyle(FXObject* sender, FXSelector, void*);
62  long onCmdChangeColorScheme(FXObject*, FXSelector sel, void*);
63 
65  void buildColoringToolBar();
67 
68 
70  FXPopup* getLocatorPopup();
71  FXComboBox& getColoringSchemesCombo();
72 
76  void setView(GUIGlID id);
77 
78 
83  return myParent;
84  }
85 
86 
88  virtual bool isSelected(GUIGlObject* o) const;
89 
90 
91 protected:
94 
96  FXToolBar* myNavigationToolBar;
97 
99  FXPopup* myLocatorPopup;
100  FXMenuButton* myLocatorButton;
101 
102  FXVerticalFrame* myContentFrame;
103 
104  FXComboBox* myColoringSchemes;
105 
108 
109 
110 protected:
112 
113 };
114 
115 
116 #endif
117 
118 /****************************************************************************/
119 
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:43
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()