Eclipse 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-2019 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:
45  GUIGlChildWindow(FXMDIClient* p, GUIMainWindow* parentWindow,
46  FXMDIMenu* mdimenu, const FXString& name, FXMenuBar* gripNavigationToolbar,
47  FXIcon* ic = NULL, FXuint opts = 0, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
48 
50  virtual ~GUIGlChildWindow();
51 
53  virtual FXGLCanvas* getBuildGLCanvas() const;
54 
56  virtual void create();
57 
60 
65 
68  long onCmdRecenterView(FXObject*, FXSelector, void*);
69  long onCmdEditViewport(FXObject*, FXSelector, void*);
70  long onCmdEditViewScheme(FXObject*, FXSelector, void*);
71  long onCmdShowToolTips(FXObject* sender, FXSelector, void*);
72  long onCmdZoomStyle(FXObject* sender, FXSelector, void*);
73  long onCmdChangeColorScheme(FXObject*, FXSelector sel, void*);
75 
78 
80  FXPopup* getLocatorPopup();
81 
83  FXComboBox* getColoringSchemesCombo();
84 
88  void setView(GUIGlID id);
89 
91  virtual bool isSelected(GUIGlObject* o) const;
92 
93 protected:
96 
99 
102 
105 
108 
110  FXPopup* myLocatorPopup;
111 
113  FXMenuButton* myLocatorButton;
114 
116  FXVerticalFrame* myContentFrame;
117 
119  FXComboBox* myColoringSchemes;
120 
122  void buildNavigationToolBar();
123 
125  void buildColoringToolBar();
126 
128  void buildScreenshotToolBar();
129 
130 private:
132  GUIGlChildWindow(const GUIGlChildWindow&) = delete;
133 
135  GUIGlChildWindow& operator=(const GUIGlChildWindow&) = delete;
136 };
137 
138 
139 #endif
140 
141 /****************************************************************************/
142 
GUIGlChildWindow::onCmdRecenterView
long onCmdRecenterView(FXObject *, FXSelector, void *)
Definition: GUIGlChildWindow.cpp:190
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:73
GUIGlChildWindow::buildColoringToolBar
void buildColoringToolBar()
build coloring toolbar
Definition: GUIGlChildWindow.cpp:141
GUIGlChildWindow::myView
GUISUMOAbstractView * myView
The view.
Definition: GUIGlChildWindow.h:107
GUIGlChildWindow::getBuildGLCanvas
virtual FXGLCanvas * getBuildGLCanvas() const
get build GL Canvas
Definition: GUIGlChildWindow.cpp:166
GUIGlChildWindow::create
virtual void create()
create GUIGlChildWindow
Definition: GUIGlChildWindow.cpp:86
GUIGlChildWindow::onCmdEditViewScheme
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
Definition: GUIGlChildWindow.cpp:205
GUIGlChildWindow::onCmdChangeColorScheme
long onCmdChangeColorScheme(FXObject *, FXSelector sel, void *)
Definition: GUIGlChildWindow.cpp:240
GUIGlChildWindow::myLocatorPopup
FXPopup * myLocatorPopup
The locator menu.
Definition: GUIGlChildWindow.h:110
GUIGlChildWindow::operator=
GUIGlChildWindow & operator=(const GUIGlChildWindow &)=delete
Invalidated assignment operator.
GUIGlChildWindow::~GUIGlChildWindow
virtual ~GUIGlChildWindow()
destructor
Definition: GUIGlChildWindow.cpp:76
GUISUMOAbstractView.h
GUIGlChildWindow::GUIGlChildWindow
GUIGlChildWindow()
fox need this
Definition: GUIGlChildWindow.h:95
GUIGlChildWindow::buildNavigationToolBar
void buildNavigationToolBar()
build navigation toolbar
Definition: GUIGlChildWindow.cpp:112
GUIGlChildWindow::myLocatorButton
FXMenuButton * myLocatorButton
The locator button.
Definition: GUIGlChildWindow.h:113
GUIGlChildWindow::getParent
GUIMainWindow * getParent()
Returns the main window.
Definition: GUIGlChildWindow.cpp:106
GUIGlObject
Definition: GUIGlObject.h:66
GUIGlChildWindow::onCmdShowToolTips
long onCmdShowToolTips(FXObject *sender, FXSelector, void *)
Definition: GUIGlChildWindow.cpp:212
GUIGlChildWindow::getNavigationToolBar
FXToolBar * getNavigationToolBar(GUISUMOAbstractView &v)
return a reference to navigation toolbar
Definition: GUIGlChildWindow.cpp:172
GUIMainWindow
Definition: GUIMainWindow.h:47
GUIGlChildWindow::buildScreenshotToolBar
void buildScreenshotToolBar()
build screenshot toolbar
Definition: GUIGlChildWindow.cpp:155
GUIGlChildWindow::myColoringSchemes
FXComboBox * myColoringSchemes
The coloring schemes.
Definition: GUIGlChildWindow.h:119
GUIGlChildWindow::isSelected
virtual bool isSelected(GUIGlObject *o) const
true if the object is selected (may include extra logic besides calling gSelected)
Definition: GUIGlChildWindow.cpp:255
GUIGlChildWindow::setView
void setView(GUIGlID id)
Centers the view onto the given artifact.
Definition: GUIGlChildWindow.cpp:247
GUIGlID
unsigned int GUIGlID
Definition: GUIGlObject.h:43
GUIGlChildWindow::onCmdEditViewport
long onCmdEditViewport(FXObject *, FXSelector, void *)
Definition: GUIGlChildWindow.cpp:198
GUIGlChildWindow::myStaticNavigationToolBar
FXToolBar * myStaticNavigationToolBar
The static navigation tool bar.
Definition: GUIGlChildWindow.h:104
GUIGlChildWindow::myParent
GUIMainWindow * myParent
The parent window.
Definition: GUIGlChildWindow.h:98
GUIGlChildWindow::getColoringSchemesCombo
FXComboBox * getColoringSchemesCombo()
return combobox with the current coloring schemes (standard, fastest standard, real world....
Definition: GUIGlChildWindow.cpp:184
config.h
GUIGlChildWindow
Definition: GUIGlChildWindow.h:41
GUIGlChildWindow::myContentFrame
FXVerticalFrame * myContentFrame
The contents frame.
Definition: GUIGlChildWindow.h:116
GUIGlChildWindow::getLocatorPopup
FXPopup * getLocatorPopup()
@ brief return a pointer to locator popup
Definition: GUIGlChildWindow.cpp:178
GUIGlChildWindow::myGripNavigationToolbar
FXMenuBar * myGripNavigationToolbar
The grip navigation tool bar.
Definition: GUIGlChildWindow.h:101
GUIGlChildWindow::getView
GUISUMOAbstractView * getView() const
return GUISUMOAbstractView
Definition: GUIGlChildWindow.cpp:100
GUIGlChildWindow::onCmdZoomStyle
long onCmdZoomStyle(FXObject *sender, FXSelector, void *)
Definition: GUIGlChildWindow.cpp:226