|
SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00007 // 00008 /****************************************************************************/ 00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00010 // Copyright (C) 2001-2011 DLR (http://www.dlr.de/) and contributors 00011 /****************************************************************************/ 00012 // 00013 // This program is free software; you can redistribute it and/or modify 00014 // it under the terms of the GNU General Public License as published by 00015 // the Free Software Foundation; either version 2 of the License, or 00016 // (at your option) any later version. 00017 // 00018 /****************************************************************************/ 00019 #ifndef GUIGlChildWindow_h 00020 #define GUIGlChildWindow_h 00021 00022 00023 00024 // =========================================================================== 00025 // included modules 00026 // =========================================================================== 00027 00028 #ifdef _MSC_VER 00029 #include <windows_config.h> 00030 #else 00031 #include <config.h> 00032 #endif 00033 00034 #include <fx.h> 00035 #include <fx3d.h> 00036 00037 #include "GUISUMOAbstractView.h" 00038 00039 00040 // =========================================================================== 00041 // class definitions 00042 // =========================================================================== 00046 class GUIGlChildWindow : public FXMDIChild { 00047 FXDECLARE(GUIGlChildWindow) 00048 public: 00049 GUIGlChildWindow(FXMDIClient* p, GUIMainWindow* parentWindow, 00050 FXMDIMenu* mdimenu, const FXString& name, 00051 FXIcon* ic=NULL,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0); 00052 00053 virtual ~GUIGlChildWindow(); 00054 00055 virtual FXGLCanvas* getBuildGLCanvas() const; 00056 virtual void create(); 00057 00058 GUISUMOAbstractView* getView() const throw() { 00059 return myView; 00060 } 00061 00062 long onCmdRecenterView(FXObject*,FXSelector,void*); 00063 long onCmdEditViewport(FXObject*,FXSelector,void*); 00064 long onCmdEditViewScheme(FXObject*,FXSelector,void*); 00065 long onCmdShowToolTips(FXObject* sender,FXSelector,void*); 00066 long onCmdZoomStyle(FXObject* sender,FXSelector,void*); 00067 long onCmdChangeColorScheme(FXObject*,FXSelector sel,void*); 00068 00069 virtual void buildNavigationToolBar(); 00070 virtual void buildColoringToolBar(); 00071 virtual void buildScreenshotToolBar(); 00072 00073 00074 FXToolBar& getNavigationToolBar(GUISUMOAbstractView& v); 00075 FXPopup* getLocatorPopup(); 00076 FXComboBox& getColoringSchemesCombo(); 00077 00081 void setView(GUIGlID id); 00082 00083 00087 GUIMainWindow* getParent() throw() { 00088 return myParent; 00089 } 00090 00091 00093 virtual bool isSelected(GUIGlObject* o) const; 00094 00095 00096 protected: 00098 GUISUMOAbstractView* myView; 00099 00101 FXToolBar* myNavigationToolBar; 00102 00104 FXPopup* myLocatorPopup; 00105 FXMenuButton* myLocatorButton; 00106 00107 FXVerticalFrame* myContentFrame; 00108 00109 FXComboBox* myColoringSchemes; 00110 00112 GUIMainWindow* myParent; 00113 00114 00115 protected: 00116 GUIGlChildWindow() { } 00117 00118 }; 00119 00120 00121 #endif 00122 00123 /****************************************************************************/ 00124