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-2016 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 #include <fx3d.h>
39 
40 #include "GUISUMOAbstractView.h"
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
49 class GUIGlChildWindow : public FXMDIChild {
50  FXDECLARE(GUIGlChildWindow)
51 public:
52  GUIGlChildWindow(FXMDIClient* p, GUIMainWindow* parentWindow,
53  FXMDIMenu* mdimenu, const FXString& name,
54  FXIcon* ic = NULL, FXuint opts = 0, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
55 
56  virtual ~GUIGlChildWindow();
57 
58  virtual FXGLCanvas* getBuildGLCanvas() const;
59  virtual void create();
60 
62  return myView;
63  }
64 
65  long onCmdRecenterView(FXObject*, FXSelector, void*);
66  long onCmdEditViewport(FXObject*, FXSelector, void*);
67  long onCmdEditViewScheme(FXObject*, FXSelector, void*);
68  long onCmdShowToolTips(FXObject* sender, FXSelector, void*);
69  long onCmdZoomStyle(FXObject* sender, FXSelector, void*);
70  long onCmdChangeColorScheme(FXObject*, FXSelector sel, void*);
71 
72  virtual void buildNavigationToolBar();
73  virtual void buildColoringToolBar();
74  virtual void buildScreenshotToolBar();
75 
76 
78  FXPopup* getLocatorPopup();
79  FXComboBox& getColoringSchemesCombo();
80 
84  void setView(GUIGlID id);
85 
86 
91  return myParent;
92  }
93 
94 
96  virtual bool isSelected(GUIGlObject* o) const;
97 
98 
99 protected:
102 
105 
107  FXPopup* myLocatorPopup;
108  FXMenuButton* myLocatorButton;
109 
110  FXVerticalFrame* myContentFrame;
111 
112  FXComboBox* myColoringSchemes;
113 
116 
117 
118 protected:
120 
121 };
122 
123 
124 #endif
125 
126 /****************************************************************************/
127 
GUISUMOAbstractView * getView() const
FXToolBar & getNavigationToolBar(GUISUMOAbstractView &v)
virtual void buildColoringToolBar()
virtual bool isSelected(GUIGlObject *o) const
true if the object is selected (may include extra logic besides calling gSelected) ...
long onCmdZoomStyle(FXObject *sender, FXSelector, void *)
FXPopup * myLocatorPopup
The locator menu.
virtual FXGLCanvas * getBuildGLCanvas() const
virtual void buildNavigationToolBar()
GUIMainWindow * myParent
The parent window.
GUIMainWindow * getParent()
Returns the main window.
long onCmdShowToolTips(FXObject *sender, FXSelector, void *)
FXComboBox & getColoringSchemesCombo()
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
virtual void buildScreenshotToolBar()
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 *)
long onCmdRecenterView(FXObject *, FXSelector, void *)
long onCmdChangeColorScheme(FXObject *, FXSelector sel, void *)
virtual void create()
FXVerticalFrame * myContentFrame
FXPopup * getLocatorPopup()