21 Track(
double** KOOarray,
int count);
23 Track(
double *d,
double *h,
double *lat,
double *lon,
int count);
34 long int get_array_length();
35 long int get_KOOa_length();
47 void to_gpx(
char* filename);
63 short next_d(
double lat,
double lon,
double* d);
65 short next_cross(
double clickedlat,
double clickedlon,
66 KOO** kdot,
float maxd);
68 short near_check(
double lat,
double lon,
double limit);
71 double* lonmin,
double* lonmax);
73 void get_brect(
double* latmin,
double* latmax,
74 double* lonmin,
double* lonmax);
77 short found_anchors(
double clickedlat,
double clickedlon,
78 float maxd,
KOO** kfrom,
KOO** kto);
83 void trim_left(
float d);
84 void trim_right(
float d);
85 void trim_left(
KOO* k);
86 void trim_right(
KOO* k);
106 KOO* add_to_KOOpool(
double lat,
double lon);
107 void free_KOOpool(
KOO* k);
109 void trim_left(
int kci,
int tci);
110 void trim_right(
int kci,
int tci);
void reset_markers()
set markers to zero
KOOlist * kl
KOO data array.
container struct to hold data of a coordinate
void refresh_KOOa()
refreshs KOOa
short next_d(double lat, double lon, double *d)
searches for closest point on track to point (lat,lon)
double ** get_d_h_array()
returns reference
short notNULL()
is track empty or not
float get_height_meters()
short extract_KOO(KOO *k, double d)
creates KOO refering distance point d
void get_brect(double *latmin, double *latmax, double *lonmin, double *lonmax)
return bounding rect of Track
double ** get_d_h_array_copy()
returns deep copy
short next_cross(double clickedlat, double clickedlon, KOO **kdot, float maxd)
stores cross in kdot which is closest to (clickedlat,clickedlon)
void delete_cross(int nr)
deletes last nr cross of Track
routing container struct, connects cross via Way with each other
short extract_h(double d, double *h)
creates double for height refering distance point d
void delete_to_cross(KOO *k)
deletes cross after k
double ** get_KOOa()
returns reference
double ** d_h_array
distance height output, d:0, h:1
official representation of Track in BTP3
void to_gpx(char *filename)
save to gpx file
double get_length()
returns Track length [km]
double ** KOOa
coordinate output, lat:0, lon:1
short near_check(double lat, double lon, double limit)
check if point (lat,lon) is closer to track then limit
void to_binary_KOO(char *filename)
save binary KOOa to file (website)
short toggle_marker(KOO *k)
a KOO of the track can be marked or not, used for drag&drop routing
void adapt_brect(double *latmin, double *latmax, double *lonmin, double *lonmax)
increases rect to contain track, if necessary
KOO * KOOpool
stores dynamically allocated KOO if public a function requires that
void refresh_d_h_array()
refreshs d_h_array
short keep_lists
destructor instruction, kl might be used outside this class
float get_bend()
return serpentine index
container struct for Track to hold distance and height data
double ** get_KOOa_copy()
returns deep copy
main container for Track, WayHeight and ClimbAnalyse
short extract_azimtut(double d, double *azimut)
extract way direction at distance point d
void get_anchors(float d, KOO **kfrom, KOO **kto)
check if k is an element of Track