CEvolveTrafficView Class Reference

#include <EvolveTrafficView.h>

Collaboration diagram for CEvolveTrafficView:

Collaboration graph
[legend]

List of all members.

Public Member Functions

CEvolveTrafficDocGetDocument ()
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
CEvolveTrafficDocm_pDoc


Constructor & Destructor Documentation

CEvolveTrafficView::CEvolveTrafficView (  )  [protected]

CEvolveTrafficView::~CEvolveTrafficView (  )  [virtual]


Member Function Documentation

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]

void CEvolveTrafficView::DrawVehicle ( CMemDC pDC,
Vehicle veh 
) [private]


Member Data Documentation

double CEvolveTrafficView::m_Scale [private]


The documentation for this class was generated from the following files:

Generated on Fri Jul 25 16:11:14 2008 for EvolveTraffic by  doxygen 1.5.6