72 RoutePoint(
double lat,
double lon,
const wxString &icon_ident,
73 const wxString &name,
const wxString &pGUID = wxEmptyString,
74 bool bAddToList =
true);
87 void ReLoadIcon() { m_IconIsDirty =
true; }
89 void SetPosition(
double lat,
double lon);
90 double GetLatitude() {
return m_lat; };
91 double GetLongitude() {
return m_lon; };
92 LLBBox &GetBBox() {
return m_wpBBox; }
95 bool IsVisible() {
return m_bIsVisible; }
96 bool IsListed() {
return m_bIsListed; }
97 bool IsNameShown() {
return m_bShowName; }
100 bool IsShared() {
return m_bsharedMark; }
101 void SetShared(
bool bshared) { m_bsharedMark = bshared; }
103 bool IsSharedInVisibleRoute(
void);
105 bool IsVisibleSelectable(
double scale_val,
bool boverrideViz =
false);
106 void SetVisible(
bool viz =
true) { m_bIsVisible = viz; }
107 void SetListed(
bool viz =
true) { m_bIsListed = viz; }
108 void SetNameShown(
bool viz =
true) { m_bShowName = viz; }
109 bool GetNameShown() {
return m_bShowName; }
110 virtual wxString GetName(
void) {
return m_MarkName; }
111 wxString GetDescription(
void) {
return m_MarkDescription; }
113 wxDateTime GetCreateTime(
void);
114 void SetCreateTime(wxDateTime dt);
116 wxString GetIconName(
void) {
return m_IconName; }
117 void SetIconName(wxString name) { m_IconName = name; }
119 void *GetSelectNode(
void) {
return m_SelectNode; }
120 void SetSelectNode(
void *node) { m_SelectNode = node; }
122 void *GetManagerListNode(
void) {
return m_ManagerNode; }
123 void SetManagerListNode(
void *node) { m_ManagerNode = node; }
125 void SetName(
const wxString &name);
126 void CalculateNameExtents(
void);
128 void SetCourse(
double course) { m_routeprop_course = course; };
129 double GetCourse() {
return m_routeprop_course; };
130 void SetDistance(
double distance) { m_routeprop_distance = distance; };
131 double GetDistance() {
return m_routeprop_distance; };
133 void SetWaypointArrivalRadius(
double dArrivalDistance) {
134 m_WaypointArrivalRadius = dArrivalDistance;
136 void SetWaypointArrivalRadius(wxString wxArrivalDistance) {
137 wxArrivalDistance.ToDouble(&m_WaypointArrivalRadius);
139 double GetWaypointArrivalRadius();
140 bool GetShowWaypointRangeRings(
void) {
return m_bShowWaypointRangeRings; };
141 int GetWaypointRangeRingsNumber(
void);
142 float GetWaypointRangeRingsStep(
void);
143 int GetWaypointRangeRingsStepUnits(
void);
144 void SetShowWaypointRangeRings(
bool b_showWaypointRangeRings) {
145 m_bShowWaypointRangeRings = b_showWaypointRangeRings;
147 void SetWaypointRangeRingsNumber(
int i_WaypointRangeRingsNumber) {
148 m_iWaypointRangeRingsNumber = i_WaypointRangeRingsNumber;
150 void SetWaypointRangeRingsStep(
float f_WaypointRangeRingsStep) {
151 m_fWaypointRangeRingsStep = f_WaypointRangeRingsStep;
153 void SetWaypointRangeRingsStepUnits(
int i_WaypointRangeRingsStepUnits) {
154 m_iWaypointRangeRingsStepUnits = i_WaypointRangeRingsStepUnits;
156 void SetWaypointRangeRingsColour(wxColour wxc_WaypointRangeRingsColour) {
157 m_wxcWaypointRangeRingsColour = wxc_WaypointRangeRingsColour;
159 void SetScaMin(wxString str);
160 void SetScaMin(
long val);
161 long GetScaMin() {
return m_ScaMin; };
162 void SetScaMax(wxString str);
163 void SetScaMax(
long val);
164 long GetScaMax() {
return m_ScaMax; };
165 bool GetUseSca() {
return b_UseScamin; };
166 void SetUseSca(
bool value) { b_UseScamin = value; };
167 bool IsDragHandleEnabled() {
return m_bDrawDragHandle; }
168 void SetPlannedSpeed(
double spd);
169 double GetPlannedSpeed();
171 wxDateTime GetManualETD();
172 void SetETD(
const wxDateTime &etd);
173 bool SetETD(
const wxString &ts);
176 void SetETE(wxLongLong secs);
182 wxDateTime m_seg_etd;
183 wxDateTime m_seg_eta;
184 wxLongLong m_seg_ete = 0;
185 bool m_manual_etd{
false};
187 bool m_bPtIsSelected;
188 bool m_bRPIsBeingEdited;
198 wxString m_MarkDescription;
201 wxString m_TideStation;
204 wxColour m_FontColor;
206 wxSize m_NameExtents;
209 bool m_bShowName, m_bShowNameData;
210 wxRect CurrentRect_in_DC;
211 int m_NameLocationOffsetX;
212 int m_NameLocationOffsetY;
216 double m_routeprop_course;
218 double m_routeprop_distance;
223 bool m_bShowWaypointRangeRings;
224 int m_iWaypointRangeRingsNumber;
226 float m_fWaypointRangeRingsStep;
227 int m_iWaypointRangeRingsStepUnits;
228 wxColour m_wxcWaypointRangeRingsColour;
230 unsigned int m_iTextTexture;
231 int m_iTextTextureWidth, m_iTextTextureHeight;
234 double m_wpBBox_view_scale_ppm, m_wpBBox_rotation;
236 bool m_pos_on_screen;
237 wxPoint2DDouble m_screen_pos;
239 double m_WaypointArrivalRadius;
240 HyperlinkList *m_HyperlinkList;
242 wxString m_timestring;
244 wxDateTime m_CreateTimeX;
254 float m_IconScaleFactor;
255 wxBitmap m_ScaledBMP;
257 bool m_bDrawDragHandle;
259 int m_drag_line_length_man, m_drag_icon_offset;
260 double m_dragHandleLat, m_dragHandleLon;
261 int m_draggingOffsetx, m_draggingOffsety;
265 double m_PlannedSpeed;
270 unsigned int m_dragIconTexture;
271 int m_dragIconTextureWidth, m_dragIconTextureHeight;