#include <DirectionsFrame.h>

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 MapFrame * | m_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 |
| CyborgNavigator * | m_cyborg |
Definition at line 48 of file DirectionsFrame.h.
| DirectionsFrame::DirectionsFrame | ( | class MapFrame * | pfrmMap | ) |
| DirectionsFrame::~DirectionsFrame | ( | ) |
DirectionsFrame destructor - doesn't do anything.
Definition at line 131 of file DirectionsFrame.cpp.
| 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] |
| 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.
IMapData* DirectionsFrame::m_pcRecords [private] |
Definition at line 65 of file DirectionsFrame.h.
class MapFrame* DirectionsFrame::m_pfrmMap [private] |
wxString DirectionsFrame::m_strLastNext [private] |
Address DirectionsFrame::m_sStart [private] |
Address DirectionsFrame::m_sEnd [private] |
bool DirectionsFrame::m_bLiveMode [private] |
Should these directions update in live time in response to the GPS unit?
Definition at line 80 of file DirectionsFrame.h.
bool DirectionsFrame::m_bGPSLock [private] |
Definition at line 83 of file DirectionsFrame.h.
Point DirectionsFrame::m_ptGPS [private] |
Definition at line 84 of file DirectionsFrame.h.
double DirectionsFrame::m_fGPSHeading [private] |
Definition at line 85 of file DirectionsFrame.h.
double DirectionsFrame::m_fGPSSpeed [private] |
Definition at line 86 of file DirectionsFrame.h.
bool DirectionsFrame::m_bLockOutGPSUpdate [private] |
Definition at line 88 of file DirectionsFrame.h.
wxFont DirectionsFrame::m_fntText [private] |
std::vector<tRecordID> DirectionsFrame::m_vrPath [private] |
wxTextCtrl* DirectionsFrame::m_pctlText [private] |
wxColour DirectionsFrame::m_clrBackground [private] |
Definition at line 99 of file DirectionsFrame.h.
wxColour DirectionsFrame::m_clrText [private] |
Definition at line 100 of file DirectionsFrame.h.
int DirectionsFrame::m_navType [private] |
Definition at line 102 of file DirectionsFrame.h.
CyborgNavigator* DirectionsFrame::m_cyborg [private] |
Definition at line 103 of file DirectionsFrame.h.
1.5.5