OpenCPN Partial API docs
Loading...
Searching...
No Matches
NavObjectChanges Class Reference
Inheritance diagram for NavObjectChanges:
NavObjectCollection1

Public Member Functions

void Init (const wxString &path)
 
 NavObjectChanges (const NavObjectChanges &)=delete
 
void operator= (const NavObjectChanges &)=delete
 
void AddRoute (Route *pr, const char *action)
 
void AddTrack (Track *pr, const char *action)
 
void AddWP (RoutePoint *pr, const char *action)
 
void AddTrackPoint (TrackPoint *pWP, const char *action, const wxString &parent_GUID)
 
virtual void AddNewRoute (Route *pr)
 
virtual void UpdateRoute (Route *pr)
 
virtual void DeleteConfigRoute (Route *pr)
 
virtual void AddNewTrack (Track *pt)
 
virtual void UpdateTrack (Track *pt)
 
virtual void DeleteConfigTrack (Track *pt)
 
virtual void AddNewWayPoint (RoutePoint *pWP, int ConfigRouteNum=-1)
 
virtual void UpdateWayPoint (RoutePoint *pWP)
 
virtual void DeleteWayPoint (RoutePoint *pWP)
 
virtual void AddNewTrackPoint (TrackPoint *pWP, const wxString &parent_GUID)
 
bool ApplyChanges (void)
 
bool IsDirty ()
 
- Public Member Functions inherited from NavObjectCollection1
bool CreateNavObjGPXPoints (void)
 
bool CreateNavObjGPXRoutes (void)
 
bool CreateNavObjGPXTracks (void)
 
void AddGPXRoutesList (RouteList *pRoutes)
 
void AddGPXTracksList (std::vector< Track * > *pTracks)
 
bool AddGPXPointsList (RoutePointList *pRoutePoints)
 
bool AddGPXRoute (Route *pRoute)
 
bool AddGPXTrack (Track *pTrk)
 
bool AddGPXWaypoint (RoutePoint *pWP)
 
bool CreateAllGPXObjects ()
 
bool LoadAllGPXObjects (bool b_full_viz, int &wpt_duplicates, bool b_compute_bbox=false)
 
int LoadAllGPXObjectsAsLayer (int layer_id, bool b_layerviz, wxCheckBoxState b_namesviz)
 
bool SaveFile (const wxString filename)
 
void SetRootGPXNode (void)
 
bool IsOpenCPN ()
 
LLBBox & GetBBox ()
 

Static Public Member Functions

static std::unique_ptr< NavObjectChangesgetTempInstance ()
 
static NavObjectChangesgetInstance ()
 

Public Attributes

EventVar evt_delete_track
 Notified when Routeman (?) should delete a track. More...
 
EventVar evt_delete_route
 Notified when Routeman (?) should delete a Route*. More...
 
- Public Attributes inherited from NavObjectCollection1
LLBBox BBox
 
bool m_bSkipChangeSetUpdate
 

Friends

class MyConfig
 

Detailed Description

Definition at line 127 of file nav_object_database.h.

Constructor & Destructor Documentation

◆ ~NavObjectChanges()

NavObjectChanges::~NavObjectChanges ( )

Definition at line 1556 of file nav_object_database.cpp.

Member Function Documentation

◆ AddNewRoute()

void NavObjectChanges::AddNewRoute ( Route pr)
virtual

Definition at line 1760 of file nav_object_database.cpp.

◆ AddNewTrack()

void NavObjectChanges::AddNewTrack ( Track pt)
virtual

Definition at line 1777 of file nav_object_database.cpp.

◆ AddNewTrackPoint()

void NavObjectChanges::AddNewTrackPoint ( TrackPoint pWP,
const wxString &  parent_GUID 
)
virtual

Definition at line 1802 of file nav_object_database.cpp.

◆ AddNewWayPoint()

void NavObjectChanges::AddNewWayPoint ( RoutePoint pWP,
int  ConfigRouteNum = -1 
)
virtual

Definition at line 1789 of file nav_object_database.cpp.

◆ AddRoute()

void NavObjectChanges::AddRoute ( Route pr,
const char *  action 
)

Definition at line 1561 of file nav_object_database.cpp.

◆ AddTrack()

void NavObjectChanges::AddTrack ( Track pr,
const char *  action 
)

Definition at line 1578 of file nav_object_database.cpp.

◆ AddTrackPoint()

void NavObjectChanges::AddTrackPoint ( TrackPoint pWP,
const char *  action,
const wxString &  parent_GUID 
)

Definition at line 1610 of file nav_object_database.cpp.

◆ AddWP()

void NavObjectChanges::AddWP ( RoutePoint pr,
const char *  action 
)

Definition at line 1594 of file nav_object_database.cpp.

◆ ApplyChanges()

bool NavObjectChanges::ApplyChanges ( void  )

Definition at line 1631 of file nav_object_database.cpp.

◆ DeleteConfigRoute()

void NavObjectChanges::DeleteConfigRoute ( Route pr)
virtual

Definition at line 1771 of file nav_object_database.cpp.

◆ DeleteConfigTrack()

void NavObjectChanges::DeleteConfigTrack ( Track pt)
virtual

Definition at line 1785 of file nav_object_database.cpp.

◆ DeleteWayPoint()

void NavObjectChanges::DeleteWayPoint ( RoutePoint pWP)
virtual

Definition at line 1798 of file nav_object_database.cpp.

◆ getInstance()

static NavObjectChanges * NavObjectChanges::getInstance ( )
inlinestatic

Definition at line 135 of file nav_object_database.h.

◆ getTempInstance()

static std::unique_ptr< NavObjectChanges > NavObjectChanges::getTempInstance ( )
inlinestatic

Definition at line 131 of file nav_object_database.h.

◆ Init()

void NavObjectChanges::Init ( const wxString &  path)
inline

Definition at line 141 of file nav_object_database.h.

◆ IsDirty()

bool NavObjectChanges::IsDirty ( )
inline

Definition at line 170 of file nav_object_database.h.

◆ UpdateRoute()

void NavObjectChanges::UpdateRoute ( Route pr)
virtual

Definition at line 1766 of file nav_object_database.cpp.

◆ UpdateTrack()

void NavObjectChanges::UpdateTrack ( Track pt)
virtual

Definition at line 1781 of file nav_object_database.cpp.

◆ UpdateWayPoint()

void NavObjectChanges::UpdateWayPoint ( RoutePoint pWP)
virtual

Definition at line 1794 of file nav_object_database.cpp.

Friends And Related Function Documentation

◆ MyConfig

friend class MyConfig
friend

Definition at line 128 of file nav_object_database.h.

Member Data Documentation

◆ evt_delete_route

EventVar NavObjectChanges::evt_delete_route

Notified when Routeman (?) should delete a Route*.

Event contains a shared_ptr<Route>

Definition at line 181 of file nav_object_database.h.

◆ evt_delete_track

EventVar NavObjectChanges::evt_delete_track

Notified when Routeman (?) should delete a track.

Event contains a shared_ptr<Track>

Definition at line 176 of file nav_object_database.h.


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