OpenCPN Partial API docs
RoutePoint Class Reference

Public Member Functions

 RoutePoint (double lat, double lon, const wxString &icon_ident, const wxString &name, const wxString &pGUID=wxEmptyString, bool bAddToList=true)
 
 RoutePoint (RoutePoint *orig)
 
void ReLoadIcon ()
 
void SetPosition (double lat, double lon)
 
double GetLatitude ()
 
double GetLongitude ()
 
LLBBox & GetBBox ()
 
bool IsSame (RoutePoint *pOtherRP)
 
bool IsVisible ()
 
bool IsListed ()
 
bool IsNameShown ()
 
bool IsShared ()
 
void SetShared (bool bshared)
 
bool IsSharedInVisibleRoute (void)
 
bool IsVisibleSelectable (double scale_val, bool boverrideViz=false)
 
void SetVisible (bool viz=true)
 
void SetListed (bool viz=true)
 
void SetNameShown (bool viz=true)
 
bool GetNameShown ()
 
virtual wxString GetName (void)
 
wxString GetDescription (void)
 
wxDateTime GetCreateTime (void)
 
void SetCreateTime (wxDateTime dt)
 
wxString GetIconName (void)
 
void SetIconName (wxString name)
 
void * GetSelectNode (void)
 
void SetSelectNode (void *node)
 
void * GetManagerListNode (void)
 
void SetManagerListNode (void *node)
 
void SetName (const wxString &name)
 
void CalculateNameExtents (void)
 
void SetCourse (double course)
 
double GetCourse ()
 
void SetDistance (double distance)
 
double GetDistance ()
 
void SetWaypointArrivalRadius (double dArrivalDistance)
 
void SetWaypointArrivalRadius (wxString wxArrivalDistance)
 
double GetWaypointArrivalRadius ()
 
bool GetShowWaypointRangeRings (void)
 
int GetWaypointRangeRingsNumber (void)
 
float GetWaypointRangeRingsStep (void)
 
int GetWaypointRangeRingsStepUnits (void)
 
void SetShowWaypointRangeRings (bool b_showWaypointRangeRings)
 
void SetWaypointRangeRingsNumber (int i_WaypointRangeRingsNumber)
 
void SetWaypointRangeRingsStep (float f_WaypointRangeRingsStep)
 
void SetWaypointRangeRingsStepUnits (int i_WaypointRangeRingsStepUnits)
 
void SetWaypointRangeRingsColour (wxColour wxc_WaypointRangeRingsColour)
 
void SetScaMin (wxString str)
 
void SetScaMin (long val)
 
long GetScaMin ()
 
void SetScaMax (wxString str)
 
void SetScaMax (long val)
 
long GetScaMax ()
 
bool GetUseSca ()
 
void SetUseSca (bool value)
 
bool IsDragHandleEnabled ()
 
void SetPlannedSpeed (double spd)
 
double GetPlannedSpeed ()
 
wxDateTime GetETD ()
 
wxDateTime GetManualETD ()
 
void SetETD (const wxDateTime &etd)
 
bool SetETD (const wxString &ts)
 
wxDateTime GetETA ()
 
wxString GetETE ()
 
void SetETE (wxLongLong secs)
 

Public Attributes

double m_lat
 
double m_lon
 
double m_seg_len
 
double m_seg_vmg
 
wxDateTime m_seg_etd
 
wxDateTime m_seg_eta
 
wxLongLong m_seg_ete = 0
 
bool m_manual_etd {false}
 
bool m_bPtIsSelected
 
bool m_bRPIsBeingEdited
 
bool m_bIsInRoute
 
bool m_bIsolatedMark
 
bool m_bIsVisible
 
bool m_bIsListed
 
bool m_bIsActive
 
bool m_IconIsDirty
 
wxString m_MarkDescription
 
wxString m_GUID
 
wxString m_TideStation
 
wxFont * m_pMarkFont
 
wxColour m_FontColor
 
wxSize m_NameExtents
 
bool m_bBlink
 
bool m_bDynamicName
 
bool m_bShowName
 
bool m_bShowNameData
 
wxRect CurrentRect_in_DC
 
int m_NameLocationOffsetX
 
int m_NameLocationOffsetY
 
bool m_bIsInLayer
 
int m_LayerID
 
double m_routeprop_course
 
double m_routeprop_distance
 
bool m_btemp
 
bool m_bShowWaypointRangeRings
 
int m_iWaypointRangeRingsNumber
 
float m_fWaypointRangeRingsStep
 
int m_iWaypointRangeRingsStepUnits
 
wxColour m_wxcWaypointRangeRingsColour
 
unsigned int m_iTextTexture
 
int m_iTextTextureWidth
 
int m_iTextTextureHeight
 
LLBBox m_wpBBox
 
double m_wpBBox_view_scale_ppm
 
double m_wpBBox_rotation
 
bool m_pos_on_screen
 
wxPoint2DDouble m_screen_pos
 
double m_WaypointArrivalRadius
 
HyperlinkList * m_HyperlinkList
 
wxString m_timestring
 
wxDateTime m_CreateTimeX
 

Static Public Attributes

static std::function< void(unsigned, const unsigned *)> delete_gl_textures = [](unsigned, const unsigned*) { assert(true); }
 Horrible Hack (tm). More...
 

Friends

class RoutePointGui
 

Detailed Description

Definition at line 53 of file route_point.h.

Member Data Documentation

◆ delete_gl_textures

std::function< void(unsigned, const unsigned *)> RoutePoint::delete_gl_textures = [](unsigned, const unsigned*) { assert(true); }
static

Horrible Hack (tm).

The destructor needs to call glDeleteTextures, but this is not visible for RoutePoint. This is basically a global, initially doing nothing but at an "early stage" initiated do do the actual glDeleteTextures call.

Definition at line 70 of file route_point.h.


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