#include <EvolveTrafficView.h>
Public Member Functions | |
CEvolveTrafficDoc * | GetDocument () |
virtual void | OnDraw (CDC *pDC) |
virtual BOOL | PreCreateWindow (CREATESTRUCT &cs) |
virtual | ~CEvolveTrafficView () |
Protected Member Functions | |
CEvolveTrafficView () | |
virtual void | OnInitialUpdate () |
virtual BOOL | OnPreparePrinting (CPrintInfo *pInfo) |
virtual void | OnBeginPrinting (CDC *pDC, CPrintInfo *pInfo) |
virtual void | OnEndPrinting (CDC *pDC, CPrintInfo *pInfo) |
afx_msg void | OnConfigSim () |
afx_msg void | OnRunEvolveTraffic () |
afx_msg void | OnTimer (UINT nIDEvent) |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg void | OnConfigTraf () |
afx_msg void | OnToolsPrefs () |
afx_msg void | OnToolsPause () |
afx_msg void | OnToolsZoomin () |
afx_msg void | OnToolsZoomout () |
afx_msg void | OnToolsSpeedup () |
afx_msg void | OnToolsSlowdown () |
afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
Private Member Functions | |
int | Round (double val) |
void | UpdateDrawRect () |
void | SetTheTimer () |
void | SettingUpdateRedraw () |
void | ScaleChangeUpdate (double factor) |
void | initRoad () |
void | DrawRoad (CMemDC *pDC) |
void | DrawRuler (CMemDC *pDC) |
void | DrawLegend (CMemDC *pDC) |
void | DrawVehicle (CMemDC *pDC, Vehicle *veh) |
Private Attributes | |
int | m_TimerSpeed |
int | m_SimStepsPerDraw |
int | m_TimerID |
bool | m_bTrucksReadIn |
bool | m_bTimerHasTicked |
CRect | m_ClientRect |
int | m_YCoordTop |
RECT | m_RoadRect |
bool | m_bAnimate |
bool | m_bInSimulation |
double | m_Scale |
double | m_TimeWarp |
double | m_VehicleLengthScale |
double | m_VehicleWidth |
double | m_TickLength |
int | m_TickStep |
double | m_LaneWidth |
double | m_Border_Top |
double | m_Border_Btm |
double | m_Border_Lhs |
double | m_Border_Rhs |
int | m_NoDirections |
int | m_NoLanes |
int | m_NoLanesDirPos |
int | m_NoLanesDirNeg |
int | m_RoadLength |
int | m_NoTicks |
int | m_RoadWidth |
CEvolveTrafficDoc * | m_pDoc |
CEvolveTrafficView::CEvolveTrafficView | ( | ) | [protected] |
CEvolveTrafficView::~CEvolveTrafficView | ( | ) | [virtual] |
CEvolveTrafficDoc * CEvolveTrafficView::GetDocument | ( | ) | [inline] |
void CEvolveTrafficView::OnDraw | ( | CDC * | pDC | ) | [virtual] |
BOOL CEvolveTrafficView::PreCreateWindow | ( | CREATESTRUCT & | cs | ) | [virtual] |
void CEvolveTrafficView::OnInitialUpdate | ( | ) | [protected, virtual] |
BOOL CEvolveTrafficView::OnPreparePrinting | ( | CPrintInfo * | pInfo | ) | [protected, virtual] |
void CEvolveTrafficView::OnBeginPrinting | ( | CDC * | pDC, | |
CPrintInfo * | pInfo | |||
) | [protected, virtual] |
void CEvolveTrafficView::OnEndPrinting | ( | CDC * | pDC, | |
CPrintInfo * | pInfo | |||
) | [protected, virtual] |
void CEvolveTrafficView::OnConfigSim | ( | ) | [protected] |
void CEvolveTrafficView::OnRunEvolveTraffic | ( | ) | [protected] |
void CEvolveTrafficView::OnTimer | ( | UINT | nIDEvent | ) | [protected] |
void CEvolveTrafficView::OnSize | ( | UINT | nType, | |
int | cx, | |||
int | cy | |||
) | [protected] |
void CEvolveTrafficView::OnConfigTraf | ( | ) | [protected] |
void CEvolveTrafficView::OnToolsPrefs | ( | ) | [protected] |
void CEvolveTrafficView::OnToolsPause | ( | ) | [protected] |
void CEvolveTrafficView::OnToolsZoomin | ( | ) | [protected] |
void CEvolveTrafficView::OnToolsZoomout | ( | ) | [protected] |
void CEvolveTrafficView::OnToolsSpeedup | ( | ) | [protected] |
void CEvolveTrafficView::OnToolsSlowdown | ( | ) | [protected] |
void CEvolveTrafficView::OnKeyDown | ( | UINT | nChar, | |
UINT | nRepCnt, | |||
UINT | nFlags | |||
) | [protected] |
int CEvolveTrafficView::Round | ( | double | val | ) | [inline, private] |
void CEvolveTrafficView::UpdateDrawRect | ( | ) | [private] |
void CEvolveTrafficView::SetTheTimer | ( | ) | [private] |
void CEvolveTrafficView::SettingUpdateRedraw | ( | ) | [private] |
void CEvolveTrafficView::ScaleChangeUpdate | ( | double | factor | ) | [private] |
void CEvolveTrafficView::initRoad | ( | ) | [private] |
void CEvolveTrafficView::DrawRoad | ( | CMemDC * | pDC | ) | [private] |
void CEvolveTrafficView::DrawRuler | ( | CMemDC * | pDC | ) | [private] |
void CEvolveTrafficView::DrawLegend | ( | CMemDC * | pDC | ) | [private] |
int CEvolveTrafficView::m_TimerSpeed [private] |
int CEvolveTrafficView::m_SimStepsPerDraw [private] |
int CEvolveTrafficView::m_TimerID [private] |
bool CEvolveTrafficView::m_bTrucksReadIn [private] |
bool CEvolveTrafficView::m_bTimerHasTicked [private] |
CRect CEvolveTrafficView::m_ClientRect [private] |
int CEvolveTrafficView::m_YCoordTop [private] |
RECT CEvolveTrafficView::m_RoadRect [private] |
bool CEvolveTrafficView::m_bAnimate [private] |
bool CEvolveTrafficView::m_bInSimulation [private] |
double CEvolveTrafficView::m_Scale [private] |
double CEvolveTrafficView::m_TimeWarp [private] |
double CEvolveTrafficView::m_VehicleLengthScale [private] |
double CEvolveTrafficView::m_VehicleWidth [private] |
double CEvolveTrafficView::m_TickLength [private] |
int CEvolveTrafficView::m_TickStep [private] |
double CEvolveTrafficView::m_LaneWidth [private] |
double CEvolveTrafficView::m_Border_Top [private] |
double CEvolveTrafficView::m_Border_Btm [private] |
double CEvolveTrafficView::m_Border_Lhs [private] |
double CEvolveTrafficView::m_Border_Rhs [private] |
int CEvolveTrafficView::m_NoDirections [private] |
int CEvolveTrafficView::m_NoLanes [private] |
int CEvolveTrafficView::m_NoLanesDirPos [private] |
int CEvolveTrafficView::m_NoLanesDirNeg [private] |
int CEvolveTrafficView::m_RoadLength [private] |
int CEvolveTrafficView::m_NoTicks [private] |
int CEvolveTrafficView::m_RoadWidth [private] |
CEvolveTrafficDoc* CEvolveTrafficView::m_pDoc [private] |