49extern arrayofCanvasPtr g_canvasArray;
54 dst->
m_lat = src->m_lat;
55 dst->
m_lon = src->m_lon;
59 dst->
IconDescription = pWayPointMan->GetIconDescription(src->GetIconName());
72 for (
Hyperlink* link : *src->m_HyperlinkList) {
76 h->
Type = link->LType;
91 dst->
scamin = src->GetScaMin();
95 dst->
scamax = src->GetScaMax();
102static void cloneHyperlinkListExV2(
RoutePoint* dst,
108 wxPlugin_HyperlinkListNode* linknode = src->
m_HyperlinkList->GetFirst();
114 h->Link = link->
Link;
115 h->LType = link->
Type;
119 linknode = linknode->GetNext();
131 cloneHyperlinkListExV2(pWP, src);
141 pWP->
m_btemp = (b_permanent ==
false);
150 pWP->SetScaMin(src->
scamin);
157 pWP->SetScaMax(src->
scamax);
159 if (src->
m_ETD.IsValid())
162 pWP->
SetETD(wxEmptyString);
173 wxDateTime plannedDeparture;
175 wxPlugin_WaypointExV2ListNode* pwpnode = proute->
pWaypointList->GetFirst();
177 pwaypointex = pwpnode->GetData();
179 pWP = pWayPointMan->FindRoutePointByGUID(pwaypointex->
m_GUID);
181 pWP = CreateNewPoint(pwaypointex, b_permanent);
185 route->AddPoint(pWP);
187 pSelect->AddSelectableRoutePoint(pWP->m_lat, pWP->m_lon, pWP);
190 pSelect->AddSelectableRouteSegment(pWP_src->m_lat, pWP_src->m_lon,
191 pWP->m_lat, pWP->m_lon, pWP_src, pWP,
198 pwpnode = pwpnode->GetNext();
206 if (!proute->
m_GUID.IsEmpty()) {
209 route->
m_btemp = (b_permanent ==
false);
215 route->
m_style = proute->m_style;
223 NavObj_dB::GetInstance().InsertRoute(route);
232 bool b_found =
false;
236 if (pRoute) b_found =
true;
239 bool b_permanent = !pRoute->
m_btemp;
242 b_found = AddPlugInRouteExV3(proute, b_permanent);
251 dst->
m_lat = src->m_lat;
252 dst->
m_lon = src->m_lon;
256 dst->
IconDescription = pWayPointMan->GetIconDescription(src->GetIconName());
268 for (
Hyperlink* link : *src->m_HyperlinkList) {
272 h->
Type = link->LType;
285 dst->
scamin = src->GetScaMin();
290static void cloneHyperlinkListEx(
RoutePoint* dst,
296 wxPlugin_HyperlinkListNode* linknode = src->
m_HyperlinkList->GetFirst();
302 h->Link = link->
Link;
303 h->LType = link->
Type;
307 linknode = linknode->GetNext();
312static wxString DropMarkPI(
double lat,
double lon) {
313 if ((fabs(lat) > 80.0) || (fabs(lon) > 180.))
return "";
316 new RoutePoint(lat, lon, g_default_wp_icon, wxEmptyString, wxEmptyString);
318 pSelect->AddSelectableRoutePoint(lat, lon, pWP);
319 NavObj_dB::GetInstance().InsertRoutePoint(pWP);
323static wxString RouteCreatePI(
int canvas_index,
bool start) {
324 if ((
size_t)canvas_index < g_canvasArray.GetCount()) {
325 ChartCanvas* cc = g_canvasArray.Item(canvas_index);
331 return cc->FinishRoute();
338static bool DoMeasurePI(
int canvas_index,
bool start) {
339 if ((
size_t)canvas_index < g_canvasArray.GetCount()) {
340 ChartCanvas* cc = g_canvasArray.Item(canvas_index);
343 cc->StartMeasureRoute();
346 cc->CancelMeasureRoute();
355static void EnableDefaultConsole(
bool enable) {
356 g_bhide_route_console = !enable;
359static wxString NavToHerePI(
double lat,
double lon) {
361 new RoutePoint(lat, lon, g_default_wp_icon, wxEmptyString, wxEmptyString);
362 pSelect->AddSelectableRoutePoint(lat, lon, pWP_dest);
365 wxEmptyString, wxEmptyString);
371 temp_route->AddPoint(pWP_src);
372 temp_route->AddPoint(pWP_dest);
374 pSelect->AddSelectableRouteSegment(
gLat,
gLon, lat, lon, pWP_src, pWP_dest,
385 return temp_route->
m_GUID;
388static bool ActivateRoutePI(wxString route_guid,
bool activate) {
390 if (!route)
return false;
407static void SetMaxZoomScale(
double max_scale) {
408 g_maxzoomin = wxRound(wxMax(max_scale, 100.));
411static void EnableDefaultContextMenus(
bool enable) {
412 g_bhide_context_menus = !enable;
415static void SetMinZoomScale(
double min_scale) {
416 for (
unsigned int i = 0; i < g_canvasArray.GetCount(); i++) {
418 cc->SetAbsoluteMinScale(min_scale);
422static std::shared_ptr<HostApi121::PiPointContext> GetContextAtPoint(
423 int x,
int y,
int canvas_index) {
424 ChartCanvas* cc = g_canvasArray.Item(canvas_index);
426 return cc->GetCanvasContextAtPoint(x, y);
428 auto rstruct = std::make_shared<HostApi121::PiPointContext>();
429 rstruct->object_type = HostApi121::PiContextObjectType::kObjectUnknown;
430 rstruct->object_ident =
"";
435static wxBitmap GetObjectIcon_PlugIn(
const wxString& name) {
437 return *pWayPointMan->GetIconBitmap(name);
442static bool IsRouteActive(wxString route_guid) {
449static void SetBoatPosition(
double zlat,
double zlon) {
455static void RouteInsertWaypoint(
int canvas_index, wxString route_guid,
456 double zlat,
double zlon) {
467 if ((seltype & SELTYPE_ROUTESEGMENT) != SELTYPE_ROUTESEGMENT)
return;
470 route->InsertPointAfter(parent->GetFoundRoutepoint(), zlat, zlon, rename);
472 pSelect->DeleteAllSelectableRoutePoints(route);
473 pSelect->DeleteAllSelectableRouteSegments(route);
474 pSelect->AddAllSelectableRouteSegments(route);
475 pSelect->AddAllSelectableRoutePoints(route);
477 NavObj_dB::GetInstance().UpdateRoute(route);
480static void RouteAppendWaypoint(
int canvas_index, wxString route_guid) {
488 parent->m_pMouseRoute = route;
489 parent->m_routeState = route->GetnPoints() + 1;
491 parent->m_pMouseRoute->SetHiLite(50);
493 auto pLast = route->GetLastPoint();
495 parent->m_prev_rlat = pLast->m_lat;
496 parent->m_prev_rlon = pLast->m_lon;
497 parent->m_prev_pMousePoint = pLast;
499 parent->m_bAppendingRoute =
true;
502static void FinishRoute(
int canvas_index) {
507 parent->FinishRoute();
510static bool IsRouteBeingCreated(
int canvas_index) {
513 if (!parent)
return false;
514 return !(parent->m_pMouseRoute == NULL);
517static bool AreRouteWaypointNamesVisible(wxString route_guid) {
519 if (!route)
return false;
520 return route->AreWaypointNamesVisible();
523static void ShowRouteWaypointNames(wxString route_guid,
bool show) {
526 route->ShowWaypointNames(show);
529static void NavigateToWaypoint(wxString waypoint_guid) {
530 RoutePoint* prp = pWayPointMan->FindRoutePointByGUID(waypoint_guid);
534 wxEmptyString, wxEmptyString);
540 temp_route->AddPoint(pWP_src);
541 temp_route->AddPoint(prp);
542 prp->SetShared(
true);
545 pWP_src, prp, temp_route);
547 wxString name = prp->GetName();
548 if (name.IsEmpty()) name = _(
"(Unnamed Waypoint)");
549 wxString rteName = _(
"Go to ");
550 rteName.Append(name);
561static bool IsAISTrackVisible(wxString ais_mmsi) {
563 ais_mmsi.ToLong(&mmsi);
564 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
566 return myptarget->b_show_track;
571static void AISToggleShowTrack(wxString ais_mmsi) {
573 ais_mmsi.ToLong(&mmsi);
574 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
575 if (myptarget) myptarget->ToggleShowTrack();
578static void AISToggleShowCPA(wxString ais_mmsi) {
580 ais_mmsi.ToLong(&mmsi);
581 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
582 if (myptarget) myptarget->Toggle_AIS_CPA();
585static void ShowAISTargetQueryDialog(
int canvas_index, wxString ais_mmsi) {
591 ais_mmsi.ToLong(&mmsi);
592 ShowAISTargetQueryDialog(parent, mmsi);
595static void ShowAISTargetList(
int canvas_index) {
599 parent->ShowAISTargetList();
602static bool IsMeasureActive(
int canvas_index) {
605 if (!parent)
return false;
606 return parent->m_bMeasure_Active;
609static void CancelMeasure(
int canvas_index) {
613 parent->CancelMeasureRoute();
616static void SetDepthUnitVisible(
bool bviz) { g_bhide_depth_units = !bviz; }
618static void SetOverzoomFlagVisible(
bool bviz) { g_bhide_overzoom_flag = !bviz; }
621static void AddNoShowDirectory(std::string chart_dir) {
625static void RemoveNoShowDirectory(std::string chart_dir) {
634static const std::vector<std::string>& GetNoShowVector() {
638static void CenterToAisTarget(wxString ais_mmsi) {
640 if (ais_mmsi.ToLong(&mmsi)) {
641 std::shared_ptr<AisTargetData> pAISTarget =
nullptr;
642 if (
g_pAIS) pAISTarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
649static void AisTargetCreateWpt(wxString ais_mmsi) {
651 if (ais_mmsi.ToLong(&mmsi)) {
652 std::shared_ptr<AisTargetData> pAISTarget = NULL;
653 if (
g_pAIS) pAISTarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
657 new RoutePoint(pAISTarget->Lat, pAISTarget->Lon, g_default_wp_icon,
658 wxEmptyString, wxEmptyString);
660 pSelect->AddSelectableRoutePoint(pAISTarget->Lat, pAISTarget->Lon, pWP);
661 NavObj_dB::GetInstance().InsertRoutePoint(pWP);
668static void AisShowAllTracks(
bool show) {
670 for (
const auto& it :
g_pAIS->GetTargetList()) {
671 auto pAISTarget = it.second;
672 if (NULL != pAISTarget) {
673 pAISTarget->b_show_track = show;
676 std::map<int, Track*>::iterator itt;
677 itt =
g_pAIS->m_persistent_tracks.find(pAISTarget->MMSI);
678 if (itt !=
g_pAIS->m_persistent_tracks.end()) {
679 pAISTarget->b_show_track_old = show;
687static void AisToggleTrack(wxString ais_mmsi) {
689 if (ais_mmsi.ToLong(&mmsi)) {
690 std::shared_ptr<AisTargetData> pAISTarget = NULL;
691 if (
g_pAIS) pAISTarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
694 pAISTarget->b_show_track_old =
695 pAISTarget->b_show_track;
696 pAISTarget->b_show_track =
697 !pAISTarget->b_show_track;
702static int GetContextMenuMask() {
return g_canvas_context_menu_disable_mask; }
704static void SetContextMenuMask(
int mask) {
705 g_canvas_context_menu_disable_mask = mask;
708static bool IsAIS_CPAVisible(wxString ais_mmsi) {
710 ais_mmsi.ToLong(&mmsi);
711 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
713 return myptarget->b_show_AIS_CPA;
719 return std::make_unique<HostApi121>(
HostApi121());
722HostApi121::PlugIn_Route_Ex::PlugIn_Route_Ex() {
725 m_style = wxPENSTYLE_SOLID;
726 m_PlannedDeparture = wxDateTime::Now();
727 m_TimeDisplayFormat = RTE_TIME_DISP_UTC;
730HostApi121::PlugIn_Route_Ex::~PlugIn_Route_Ex() {
732 pWaypointList->DeleteContents(
true);
733 delete pWaypointList;
734 pWaypointList = NULL;
740 return ::AddPlugInRouteExV3(proute, b_permanent);
744 return ::UpdatePlugInRouteExV3(proute);
747wxString HostApi121::DropMarkPI(
double lat,
double lon) {
748 return ::DropMarkPI(lat, lon);
751wxString HostApi121::RouteCreatePI(
int canvas_index,
bool start) {
752 return ::RouteCreatePI(canvas_index, start);
755bool HostApi121::DoMeasurePI(
int canvas_index,
bool start) {
756 return ::DoMeasurePI(canvas_index, start);
759wxString HostApi121::NavToHerePI(
double lat,
double lon) {
760 return ::NavToHerePI(lat, lon);
763bool HostApi121::ActivateRoutePI(wxString route_guid,
bool activate) {
764 return ::ActivateRoutePI(route_guid, activate);
767void HostApi121::EnableDefaultConsole(
bool enable) {
768 ::EnableDefaultConsole(enable);
771void HostApi121::EnableDefaultContextMenus(
bool enable) {
772 ::EnableDefaultContextMenus(enable);
775void HostApi121::SetMinZoomScale(
double min_scale) {
776 ::SetMinZoomScale(min_scale);
779void HostApi121::SetMaxZoomScale(
double max_scale) {
780 ::SetMaxZoomScale(max_scale);
783std::shared_ptr<HostApi121::PiPointContext> HostApi121::GetContextAtPoint(
784 int x,
int y,
int canvas_index) {
785 return ::GetContextAtPoint(x, y, canvas_index);
788wxBitmap HostApi121::GetObjectIcon_PlugIn(
const wxString& name) {
789 return ::GetObjectIcon_PlugIn(name);
792bool HostApi121::IsRouteActive(wxString route_guid) {
793 return ::IsRouteActive(route_guid);
796void HostApi121::SetBoatPosition(
double zlat,
double zlon) {
797 ::SetBoatPosition(zlat, zlon);
800void HostApi121::RouteInsertWaypoint(
int canvas_index, wxString route_guid,
801 double zlat,
double zlon) {
802 ::RouteInsertWaypoint(canvas_index, route_guid, zlat, zlon);
805void HostApi121::RouteAppendWaypoint(
int canvas_index, wxString route_guid) {
806 ::RouteAppendWaypoint(canvas_index, route_guid);
809void HostApi121::FinishRoute(
int canvas_index) { ::FinishRoute(canvas_index); }
811bool HostApi121::IsRouteBeingCreated(
int canvas_index) {
812 return ::IsRouteBeingCreated(canvas_index);
815bool HostApi121::AreRouteWaypointNamesVisible(wxString route_guid) {
816 return ::AreRouteWaypointNamesVisible(route_guid);
819void HostApi121::ShowRouteWaypointNames(wxString route_guid,
bool show) {
820 ::ShowRouteWaypointNames(route_guid, show);
823void HostApi121::NavigateToWaypoint(wxString waypoint_guid) {
824 ::NavigateToWaypoint(waypoint_guid);
827bool HostApi121::IsAISTrackVisible(
const wxString& ais_mmsi)
const {
828 return ::IsAISTrackVisible(ais_mmsi);
831void HostApi121::AISToggleShowTrack(
const wxString& ais_mmsi) {
832 ::AISToggleShowTrack(ais_mmsi);
835bool HostApi121::IsAIS_CPAVisible(
const wxString& ais_mmsi)
const {
836 return ::IsAIS_CPAVisible(ais_mmsi);
839void HostApi121::AISToggleShowCPA(
const wxString& ais_mmsi) {
840 ::AISToggleShowCPA(ais_mmsi);
843void HostApi121::ShowAISTargetQueryDialog(
int canvas_index,
844 const wxString& ais_mmsi) {
845 ::ShowAISTargetQueryDialog(canvas_index, ais_mmsi);
848void HostApi121::ShowAISTargetList(
int canvas_index) {
849 ::ShowAISTargetList(canvas_index);
852bool HostApi121::IsMeasureActive(
int canvas_index) {
853 return ::IsMeasureActive(canvas_index);
856void HostApi121::CancelMeasure(
int canvas_index) {
857 ::CancelMeasure(canvas_index);
860void HostApi121::SetDepthUnitVisible(
bool bviz) { ::SetDepthUnitVisible(bviz); }
862void HostApi121::SetOverzoomFlagVisible(
bool viz) {
863 ::SetOverzoomFlagVisible(viz);
866void HostApi121::AddNoShowDirectory(std::string chart_dir) {
867 ::AddNoShowDirectory(chart_dir);
870void HostApi121::RemoveNoShowDirectory(std::string chart_dir) {
871 ::RemoveNoShowDirectory(chart_dir);
874void HostApi121::ClearNoShowVector() { ::ClearNoShowVector(); }
876const std::vector<std::string>& HostApi121::GetNoShowVector() {
877 return ::GetNoShowVector();
882void HostApi121::CenterToAisTarget(wxString ais_mmsi) {
883 ::CenterToAisTarget(ais_mmsi);
886void HostApi121::AisTargetCreateWpt(wxString ais_mmsi) {
887 ::AisTargetCreateWpt(ais_mmsi);
890void HostApi121::AisShowAllTracks(
bool show) { ::AisShowAllTracks(show); }
892void HostApi121::AisToggleTrack(wxString ais_mmsi) {
893 ::AisToggleTrack(ais_mmsi);
897int HostApi121::GetContextMenuMask() { return ::GetContextMenuMask(); }
899void HostApi121::SetContextMenuMask(
int mask) { ::SetContextMenuMask(mask); }
AisDecoder * g_pAIS
Global instance.
Class AisDecoder and helpers.
std::unique_ptr< HostApi > GetHostApi()
HostApi factory,.
std::vector< std::string > ChartDirectoryExcludedVector
Global instance.
Generic Chart canvas base.
ChartCanvas - Main chart display and interaction component.
int PrepareContextSelections(double lat, double lon)
void Notify() override
Notify all listeners, no data supplied.
EventVar on_center_ais_target
Notified with a shared_ptr<const AisTargetData> when gFrame should center the given AIS target.
EventVar gframe_update_status_bar
Notified when the top level status bas should be updated by gFrame.
virtual bool AddRoute(PlugIn_Route_Ex *proute, bool b_permanent=true)
Add route to database, updated version of AddPlugInRouteExV2.
virtual bool UpdateRoute(PlugIn_Route_Ex *proute)
Update database route, updated version of UpdatePlugInRouteExV2.
bool m_isVisible
True if route should be displayed.
Plugin_WaypointExV2List * pWaypointList
List of waypoints making up this route in order.
wxString m_StartString
Description of route start point.
wxString m_Description
Optional route description/notes.
wxString m_NameString
User-visible name of the route.
wxString m_GUID
Globally unique identifier.
wxString m_EndString
Description of route end point.
wxDateTime m_ETD
Estimated departure time in UTC, or wxInvalidDateTime if not set.
wxString m_MarkDescription
Optional description text.
wxString m_GUID
Globally unique identifier.
wxString m_TideStation
Tide Station Identifier.
wxDateTime m_CreateTime
Creation timestamp in UTC.
bool m_bShowWaypointRangeRings
True to show range rings on chart.
wxString IconDescription
User-friendly description of icon.
double m_lat
Latitude in decimal degrees.
wxColour RangeRingColor
Color to draw range rings.
bool IsActive
Active state (e.g. destination)
Plugin_HyperlinkList * m_HyperlinkList
List of hyperlinks associated with this waypoint.
double scamin
Minimum display scale (1:X) for waypoint visibility.
double scamax
Maximum display scale (1:X) for waypoint visibility.
bool b_useScamin
True to enable scale-dependent visibility.
wxString IconName
Name of icon to use for waypoint symbol.
bool IsNameVisible
True to show waypoint name on chart.
double m_PlannedSpeed
Planned speed for next leg (knots)
double RangeRingSpace
Distance between range rings in preferred units.
double m_lon
Longitude in decimal degrees.
double m_WaypointArrivalRadius
Arrival radius in nautical miles.
int RangeRingSpaceUnits
Units for range ring spacing - 0:nm, 1:km.
wxString m_MarkName
Display name of waypoint.
bool IsVisible
Visibility state on chart.
int nrange_rings
Number of range rings to display around waypoint.
Extended waypoint class with additional navigation features.
wxDateTime m_CreateTime
Creation timestamp in UTC.
wxColour RangeRingColor
Color to draw range rings.
int nrange_rings
Number of range rings to display around waypoint.
wxString IconDescription
User-friendly description of icon.
bool b_useScamin
True to enable scale-dependent visibility.
double RangeRingSpace
Distance between range rings in preferred units.
Plugin_HyperlinkList * m_HyperlinkList
List of hyperlinks associated with this waypoint.
wxString m_MarkName
Display name of waypoint.
wxString m_GUID
Globally unique identifier.
double m_lon
Longitude in decimal degrees.
wxString IconName
Name of icon to use for waypoint symbol.
double scamin
Minimum display scale (1:X) for waypoint visibility.
bool IsNameVisible
True to show waypoint name on chart.
double m_lat
Latitude in decimal degrees.
wxString m_MarkDescription
Optional description text.
bool IsActive
Active state (e.g. destination)
bool IsVisible
Visibility state on chart.
Class representing a hyperlink associated with a waypoint or route.
wxString Link
The actual URL or file path.
wxString DescrText
User-visible description of the link.
wxString Type
Link type identifier (e.g., "Website", "Chart", "Image")
Represents a waypoint or mark within the navigation system.
HyperlinkList * m_HyperlinkList
List of hyperlinks associated with this waypoint.
wxColour m_wxcWaypointRangeRingsColour
Color for the range rings display.
wxString m_MarkDescription
Description text for the waypoint.
int m_iWaypointRangeRingsNumber
Number of range rings to display around the waypoint.
void SetCreateTime(wxDateTime dt)
Sets the create time of this RoutePoint in UTC.
wxString m_GUID
Globally Unique Identifier for the waypoint.
bool m_bIsolatedMark
Flag indicating if the waypoint is a standalone mark.
bool m_bIsActive
Flag indicating if this waypoint is active for navigation.
wxDateTime GetManualETD()
Retrieves the manually set Estimated Time of Departure for this waypoint, in UTC.
bool m_bShowName
Flag indicating if the waypoint name should be shown.
double GetPlannedSpeed()
Return the planned speed associated with this waypoint.
bool m_btemp
Flag indicating if this is a temporary waypoint.
int m_iWaypointRangeRingsStepUnits
Units for the range rings step (0=nm, 1=km).
wxDateTime GetCreateTime(void)
Returns the Create Time of this RoutePoint in UTC.
float m_fWaypointRangeRingsStep
Distance between consecutive range rings.
wxString m_TideStation
Associated tide station identifier.
void SetETD(const wxDateTime &etd)
Sets the Estimated Time of Departure for this waypoint, in UTC.
Represents a navigational route in the navigation system.
bool m_bRtIsSelected
Flag indicating whether this route is currently selected in the UI.
double m_PlannedSpeed
Default planned speed for the route in knots.
wxString m_RouteStartString
Name or description of the route's starting point.
wxString m_RouteDescription
Additional descriptive information about the route.
wxString m_Colour
Color name for rendering the route on the chart.
bool m_bDeleteOnArrival
Flag indicating whether the route should be deleted once navigation reaches the end.
wxString m_RouteEndString
Name or description of the route's ending point.
bool m_btemp
Flag indicating if this is a temporary route.
wxPenStyle m_style
Style of the route line when rendered on the chart.
wxString m_TimeDisplayFormat
Format for displaying times in the UI.
wxString m_RouteNameString
User-assigned name for the route.
wxString m_GUID
Globally unique identifier for this route.
wxDateTime m_PlannedDeparture
Planned departure time for the route, in UTC.
bool m_bIsInLayer
Flag indicating whether this route belongs to a layer.
int m_lastMousePointIndex
Index of the most recently interacted with route point.
bool DeleteRoute(Route *pRoute)
EventVar on_routes_update
Notified when list of routes is updated (no data in event)
bool ActivateRoute(Route *pRouteToActivate, RoutePoint *pStartPoint=NULL)
Activates a route for navigation.
Misc GUI event vars, a singleton.
Miscellaneous globals primarely used by gui layer, not persisted in configuration file.
MySQL based storage for routes, tracks, etc.
User notifications manager.
PlugIn Object Definition/API.
wxWindow * GetCanvasByIndex(int canvasIndex)
Gets chart canvas window by index.
double gLat
Vessel's current latitude in decimal degrees.
double gCog
Course over ground in degrees (0-359.99).
double gSog
Speed over ground in knots.
double gLon
Vessel's current longitude in decimal degrees.
Position, course, speed, etc.
Routeman * g_pRouteMan
Global instance.
RouteList * pRouteList
Global instance.
Select * pSelect
Global instance.
Recorded track abstraction.