27#include "select_item.h"
29#define SELTYPE_UNKNOWN 0x0001
30#define SELTYPE_ROUTEPOINT 0x0002
31#define SELTYPE_ROUTESEGMENT 0x0004
32#define SELTYPE_TIDEPOINT 0x0008
33#define SELTYPE_CURRENTPOINT 0x0010
34#define SELTYPE_ROUTECREATE 0x0020
35#define SELTYPE_AISTARGET 0x0040
36#define SELTYPE_MARKPOINT 0x0080
37#define SELTYPE_TRACKSEGMENT 0x0100
38#define SELTYPE_DRAGHANDLE 0x0200
46 const bool show_nav_objects;
48 SelectCtx(
bool s,
double _scale) : show_nav_objects(s),
scale(_scale) {}
56 void SetSelectPixelRadius(
int radius) { pixelRadius = radius; }
58 bool IsSelectableRoutePointValid(
RoutePoint *pRoutePoint);
59 bool AddSelectableRoutePoint(
float slat,
float slon,
61 bool AddSelectableRouteSegment(
float slat1,
float slon1,
float slat2,
65 bool AddSelectableTrackSegment(
float slat1,
float slon1,
float slat2,
71 SelectableItemList FindSelectionList(
SelectCtx& ctx,
float slat,
float slon,
74 bool DeleteAllSelectableRouteSegments(
Route *);
75 bool DeleteAllSelectableTrackSegments(
Track *);
76 bool DeleteAllSelectableRoutePoints(
Route *);
77 bool AddAllSelectableRouteSegments(
Route *pr);
78 bool AddAllSelectableTrackSegments(
Track *pr);
79 bool AddAllSelectableRoutePoints(
Route *pr);
80 bool UpdateSelectableRouteSegments(
RoutePoint *prp);
81 bool DeletePointSelectableTrackSegments(
TrackPoint *pt);
82 bool IsSegmentSelected(
float a,
float b,
float c,
float d,
float slat,
84 bool IsSelectableSegmentSelected(
SelectCtx& ctx,
float slat,
float slon,
89 SelectItem *AddSelectablePoint(
float slat,
float slon,
const void *data,
91 bool DeleteAllPoints(
void);
92 bool DeleteSelectablePoint(
void *data,
int SeltypeToDelete);
93 bool ModifySelectablePoint(
float slat,
float slon,
void *data,
int fseltype);
96 bool DeleteAllSelectableTypePoints(
int SeltypeToDelete);
98 bool DeleteSelectableRoutePoint(
RoutePoint *prp);
102 SelectableItemList *GetSelectList() {
return pSelectList; }
107 SelectableItemList *pSelectList;