OpenCPN Partial API docs
Track Class Reference
Inheritance diagram for Track:
ActiveTrack

Public Member Functions

int GetnPoints (void)
 
void SetVisible (bool visible=true)
 
TrackPointGetPoint (int nWhichPoint)
 
TrackPointGetLastPoint ()
 
void AddPoint (TrackPoint *pNewPoint)
 
void AddPointFinalized (TrackPoint *pNewPoint)
 
TrackPointAddNewPoint (vector2D point, wxDateTime time)
 
void SetListed (bool listed=true)
 
virtual bool IsRunning ()
 
bool IsVisible ()
 
bool IsListed ()
 
int GetCurrentTrackSeg ()
 
void SetCurrentTrackSeg (int seg)
 
double Length ()
 
int Simplify (double maxDelta)
 
RouteRouteFromTrack (wxGenericProgressDialog *pprog)
 
void ClearHighlights ()
 
wxString GetName (bool auto_if_empty=false) const
 
void SetName (const wxString name)
 
wxString GetDate (bool auto_if_empty=false) const
 
void Clone (Track *psourcetrack, int start_nPoint, int end_nPoint, const wxString &suffix)
 

Public Attributes

wxString m_GUID
 
bool m_bIsInLayer
 
int m_LayerID
 
wxString m_TrackDescription
 
wxString m_TrackStartString
 
wxString m_TrackEndString
 
int m_width
 
wxPenStyle m_style
 
wxString m_Colour
 
bool m_bVisible
 
bool m_bListed
 
bool m_btemp
 
int m_CurrentTrackSeg
 
HyperlinkList * m_HyperlinkList
 
int m_HighlightedTrackPoint
 

Protected Member Functions

void DouglasPeuckerReducer (std::vector< TrackPoint * > &list, std::vector< bool > &keeplist, int from, int to, double delta)
 
double GetXTE (TrackPoint *fm1, TrackPoint *fm2, TrackPoint *to)
 
double GetXTE (double fm1Lat, double fm1Lon, double fm2Lat, double fm2Lon, double toLat, double toLon)
 

Protected Attributes

std::vector< TrackPoint * > TrackPoints
 
std::vector< std::vector< SubTrack > > SubTracks
 

Friends

class TrackGui
 

Detailed Description

Definition at line 78 of file track.h.


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