GUITLLogicPhasesTrackerWindow.cpp File Reference


Detailed Description

Author:
Daniel Krajzewicz
Date:
Oct/Nov 2003
Version:
Id
GUITLLogicPhasesTrackerWindow.cpp 8725 2010-05-04 20:27:48Z behrisch

Definition in file GUITLLogicPhasesTrackerWindow.cpp.

#include <config.h>
#include <cassert>
#include <vector>
#include <iostream>
#include <utils/gui/windows/GUIMainWindow.h>
#include "GUITLLogicPhasesTrackerWindow.h"
#include <microsim/traffic_lights/MSTrafficLightLogic.h>
#include <microsim/MSLink.h>
#include <utils/common/ToString.h>
#include <guisim/GUITrafficLightLogicWrapper.h>
#include <utils/gui/images/GUITexturesHelper.h>
#include <utils/gui/windows/GUIAppEnum.h>
#include <utils/gui/images/GUIIconSubSys.h>
#include <foreign/polyfonts/polyfonts.h>
#include <GL/gl.h>

Go to the source code of this file.

Functions

 FXDEFMAP (GUITLLogicPhasesTrackerWindow) GUITLLogicPhasesTrackerWindowMap[]
 FXDEFMAP (GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerPanel) GUITLLogicPhasesTrackerPanelMap[]
 FXIMPLEMENT (GUITLLogicPhasesTrackerWindow, FXMainWindow, GUITLLogicPhasesTrackerWindowMap, ARRAYNUMBER(GUITLLogicPhasesTrackerWindowMap)) GUITLLogicPhasesTrackerWindow
 FXIMPLEMENT (GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerPanel, FXGLCanvas, GUITLLogicPhasesTrackerPanelMap, ARRAYNUMBER(GUITLLogicPhasesTrackerPanelMap)) GUITLLogicPhasesTrackerWindow


Function Documentation

FXDEFMAP ( GUITLLogicPhasesTrackerWindow   ) 

FXIMPLEMENT ( GUITLLogicPhasesTrackerWindow  ,
FXMainWindow  ,
GUITLLogicPhasesTrackerWindowMap  ,
ARRAYNUMBER(GUITLLogicPhasesTrackerWindowMap)   
)

Definition at line 151 of file GUITLLogicPhasesTrackerWindow.cpp.

References GUIIconSubSys::getIcon(), MSTrafficLightLogic::getLinks(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerPanel::GUITLLogicPhasesTrackerPanel(), ICON_APP_TLSTRACKER, MID_SIMSTEP, GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerPanel::myApplication, GUITLLogicPhasesTrackerWindow::myBeginOffset, GUITLLogicPhasesTrackerWindow::myConnector, GUITLLogicPhasesTrackerWindow::myLinkNames, GUITLLogicPhasesTrackerWindow::myPanel, GUITLLogicPhasesTrackerWindow::myTLLogic, GUITLLogicPhasesTrackerWindow::myToolBar, and GUITLLogicPhasesTrackerWindow::myToolBarDrag.

00161         : FXMainWindow(app.getApp(), "TLS-Tracker",NULL,NULL,DECOR_ALL,
00162                        20,20,300,200),
00163         myApplication(&app), myTLLogic(&logic), myAmInTrackingMode(true) {
00164     // build the toolbar
00165     myToolBarDrag = new FXToolBarShell(this,FRAME_NORMAL);
00166     myToolBar = new FXToolBar(this,myToolBarDrag, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|FRAME_RAISED);
00167     new FXToolBarGrip(myToolBar, myToolBar, FXToolBar::ID_TOOLBARGRIP, TOOLBARGRIP_DOUBLE);
00168     // interval manipulation
00169     myBeginOffset = new FXRealSpinDial(myToolBar, 10, this, MID_SIMSTEP, LAYOUT_TOP|FRAME_SUNKEN|FRAME_THICK);
00170     myBeginOffset->setFormatString("%.0f");
00171     myBeginOffset->setIncrements(1,10,100);
00172     myBeginOffset->setRange(60,3600);
00173     myBeginOffset->setValue(240);
00174     new FXLabel(myToolBar, "(s)", 0, LAYOUT_CENTER_Y);
00175     //
00176     myConnector = new GLObjectValuePassConnector<std::pair<SUMOTime, MSPhaseDefinition> >(wrapper, src, this);
00177     FXint height = (FXint)(myTLLogic->getLinks().size() * 20 + 30 + 8 + 30);
00178     app.addChild(this, true);
00179     for (size_t i=0; i<myTLLogic->getLinks().size(); i++) {
00180         myLinkNames.push_back(toString<size_t>(i));
00181     }
00182     FXVerticalFrame *glcanvasFrame =
00183         new FXVerticalFrame(this,
00184                             FRAME_SUNKEN|LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y,
00185                             0,0,0,0,0,0,0,0);
00186     myPanel = new
00187     GUITLLogicPhasesTrackerPanel(glcanvasFrame, *myApplication, *this);
00188     setTitle((logic.getID() + " - " + logic.getSubID() + " - tracker").c_str());
00189     setIcon(GUIIconSubSys::getIcon(ICON_APP_TLSTRACKER));
00190     setHeight(height);
00191 }

FXIMPLEMENT ( GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerPanel  ,
FXGLCanvas  ,
GUITLLogicPhasesTrackerPanelMap  ,
ARRAYNUMBER(GUITLLogicPhasesTrackerPanelMap)   
)

Definition at line 68 of file GUITLLogicPhasesTrackerWindow.cpp.

00078         : FXGLCanvas(c, app.getGLVisual(), app.getBuildGLCanvas(), (FXObject*) 0, (FXSelector) 0, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y/*, 0, 0, 300, 200*/),
00079         myParent(&parent), myApplication(&app) {}


Generated on Wed May 5 00:06:38 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6