DirectionsFrame Class Reference
[Roadnav Window Classes]

This wxFrame supplies directions to a user selected place. More...

#include <DirectionsFrame.h>

Collaboration diagram for DirectionsFrame:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DirectionsFrame (class MapFrame *pfrmMap)
 ~DirectionsFrame ()
 DirectionsFrame destructor - doesn't do anything.
bool Setup ()
 User wants to bring up directions window - get destination address and make sure everything is okay before letting the window appear.
void OnGPSUpdate (const wxGPSEvent &evGPS, const Address &adrGPS)
 Updated GPS coordinates received.
virtual bool SetBackgroundColour (const wxColour &colour)
 Propagates SetBackgroundColour calls down to m_pctlText.
virtual bool SetForegroundColour (const wxColour &colour)
 Propagates SetForegroundColour calls down to m_pctlText.
virtual bool SetFont (const wxFont &font)
 Propagates SetFont calls down to m_pctlText.

Private Member Functions

void OnClose (wxCloseEvent &event)
 User wants to close this window - notify parent and hide.
bool ComputePath ()
 Compute the shortest path from m_ptGPS to m_sEnd.

Private Attributes

IMapData * m_pcRecords
class MapFramem_pfrmMap
 Pointer to parent.
wxString m_strLastNext
 The last phrase to be verbalized.
Address m_sStart
 Starting address.
Address m_sEnd
 Destination address.
bool m_bLiveMode
 Should these directions update in live time in response to the GPS unit?
bool m_bGPSLock
Point m_ptGPS
double m_fGPSHeading
double m_fGPSSpeed
bool m_bLockOutGPSUpdate
wxFont m_fntText
 Font used in text box.
std::vector< tRecordID > m_vrPath
 Current path in record s.
wxTextCtrl * m_pctlText
 Pointer to text control.
wxColour m_clrBackground
wxColour m_clrText
int m_navType
CyborgNavigatorm_cyborg


Detailed Description

This wxFrame supplies directions to a user selected place.

Definition at line 48 of file DirectionsFrame.h.


Constructor & Destructor Documentation

DirectionsFrame::DirectionsFrame ( class MapFrame pfrmMap  ) 

DirectionsFrame::~DirectionsFrame (  ) 

DirectionsFrame destructor - doesn't do anything.

Definition at line 131 of file DirectionsFrame.cpp.


Member Function Documentation

bool DirectionsFrame::Setup (  ) 

User wants to bring up directions window - get destination address and make sure everything is okay before letting the window appear.

If there's no GPS lock, then get the starting address too.

Definition at line 146 of file DirectionsFrame.cpp.

void DirectionsFrame::OnGPSUpdate ( const wxGPSEvent evGPS,
const Address &  adrGPS 
)

Updated GPS coordinates received.

Record the coordinates, figure out if we're on path, give any verbal cues necessary, and recompute the path if the user is off course

Definition at line 475 of file DirectionsFrame.cpp.

bool DirectionsFrame::SetBackgroundColour ( const wxColour &  colour  )  [virtual]

Propagates SetBackgroundColour calls down to m_pctlText.

Definition at line 711 of file DirectionsFrame.cpp.

bool DirectionsFrame::SetForegroundColour ( const wxColour &  colour  )  [virtual]

Propagates SetForegroundColour calls down to m_pctlText.

Definition at line 731 of file DirectionsFrame.cpp.

bool DirectionsFrame::SetFont ( const wxFont &  font  )  [virtual]

Propagates SetFont calls down to m_pctlText.

Definition at line 750 of file DirectionsFrame.cpp.

void DirectionsFrame::OnClose ( wxCloseEvent &  event  )  [private]

User wants to close this window - notify parent and hide.

Definition at line 696 of file DirectionsFrame.cpp.

bool DirectionsFrame::ComputePath (  )  [private]

Compute the shortest path from m_ptGPS to m_sEnd.

Updates m_sStart (address of m_ptGPS), m_vrPath (path in record numbers), m_vptPath (path in long/lat coordinates) in the process

Current path in long/lat

Definition at line 287 of file DirectionsFrame.cpp.


Member Data Documentation

IMapData* DirectionsFrame::m_pcRecords [private]

Definition at line 65 of file DirectionsFrame.h.

Pointer to parent.

Definition at line 68 of file DirectionsFrame.h.

wxString DirectionsFrame::m_strLastNext [private]

The last phrase to be verbalized.

Definition at line 71 of file DirectionsFrame.h.

Address DirectionsFrame::m_sStart [private]

Starting address.

Definition at line 74 of file DirectionsFrame.h.

Address DirectionsFrame::m_sEnd [private]

Destination address.

Definition at line 77 of file DirectionsFrame.h.

Should these directions update in live time in response to the GPS unit?

Definition at line 80 of file DirectionsFrame.h.

Definition at line 83 of file DirectionsFrame.h.

Point DirectionsFrame::m_ptGPS [private]

Definition at line 84 of file DirectionsFrame.h.

Definition at line 85 of file DirectionsFrame.h.

double DirectionsFrame::m_fGPSSpeed [private]

Definition at line 86 of file DirectionsFrame.h.

Definition at line 88 of file DirectionsFrame.h.

wxFont DirectionsFrame::m_fntText [private]

Font used in text box.

Definition at line 91 of file DirectionsFrame.h.

std::vector<tRecordID> DirectionsFrame::m_vrPath [private]

Current path in record s.

Definition at line 94 of file DirectionsFrame.h.

wxTextCtrl* DirectionsFrame::m_pctlText [private]

Pointer to text control.

Definition at line 97 of file DirectionsFrame.h.

Definition at line 99 of file DirectionsFrame.h.

wxColour DirectionsFrame::m_clrText [private]

Definition at line 100 of file DirectionsFrame.h.

Definition at line 102 of file DirectionsFrame.h.

Definition at line 103 of file DirectionsFrame.h.


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

Generated on Sun Jul 27 17:26:10 2008 for Roadnav by  doxygen 1.5.5