pavi  0.0
Map Path Viewer
track_loader.bi
Go to the documentation of this file.
1 
11 
12 type as single float '!!
13 
14 CONST AS DOUBLE _
15  NaN = 0.0/0.0 _
16 , LN2 = LOG(2) _
17 , PI = 4 * atn(1) _
18 , PIx2 = PI * 2 _
19 , PId2 = PI / 2 _
20 , Deg2Rad = PI / 180 _
21 , Rad2Deg = 180 / PI _
22 , ERA = 3443.89849 * 1852
23 
24 
32 TYPE TrP
33  AS DOUBLE _
34  Tim
35  AS float _
36  Lat _
37  , Lon _
38  , Ele _
39  , Spd _
40  , Ang
41  AS LONG _
42  Xpix _
43  , Ypix
44 END TYPE
45 
46 
47 
59 TYPE TrackLoader
60  AS ZSTRING PTR _
61  Errr
62  AS TrP PTR _
63  V
64  AS TrP _
65  Mx _
66  , Mn
67  AS INTEGER _
68  Byt _
69  , Siz = 0
70  AS LONG _
71  Tmp _
72  , Cur _
73  , Az = -1 _
74  , UsZo =-1 _
75  , CoZo _
76  , Co_X _
77  , Co_Y
78  AS float _
79  UsLo _
80  , UsLa _
81  , CoLo _
82  , CoLa
83  AS STRING _
84  Path _
85  , Desc
86  AS UBYTE PTR _
87  Buff
88  DECLARE CONSTRUCTOR(BYVAL AS CONST ZSTRING PTR = 0)
89  DECLARE DESTRUCTOR()
90  DECLARE FUNCTION Dist(BYVAL AS ULONG, BYVAL AS ULONG) AS DOUBLE
91  DECLARE PROPERTY LTrk() AS float
92  DECLARE PROPERTY ASpd() AS float
93  DECLARE FUNCTION Pixel(BYVAL AS LONG, BYVAL AS LONG, BYVAL AS LONG)AS BYTE
94  DECLARE FUNCTION SkipOut(BYVAL Typ AS LONG, BYVAL Di AS float)AS LONG
95  DECLARE SUB MapCenter(BYVAL W AS LONG, BYVAL H AS LONG)
96  DECLARE FUNCTION Nearest(BYVAL AS float, BYVAL AS float)AS float
97 END TYPE
98 
99 DECLARE FUNCTION latlon2zoom( _
100  BYVAL AS LONG _
101 , BYVAL AS LONG _
102 , BYVAL AS float _
103 , BYVAL AS float _
104 , BYVAL AS float _
105 , BYVAL AS float) AS LONG
106 
TrackLoader::Tmp
LONG Tmp
temp counter
Definition: track_loader.bi:71
TrackLoader::TrackLoader
TrackLoader(BYVAL_AS_CONST_ZSTRING_PTR)
CTOR loading track data.
Definition: track_loader.bas:144
TrackLoader::SkipOut
FUNCTION_AS_LONG SkipOut(BYVAL_AS_LONG Typ, BYVAL_AS_float Di)
Compute exit of cloud.
Definition: track_loader.bas:245
TrackLoader::Pixel
FUNCTION_AS_BYTE Pixel(BYVAL_AS_LONG, BYVAL_AS_LONG, BYVAL_AS_LONG)
Compute pixel values for given center and zoom.
Definition: track_loader.bas:213
TrackLoader::CoZo
LONG CoZo
computed zoom level in map
Definition: track_loader.bi:75
LN2
const DOUBLE LN2
natural logarythm 2.0
Definition: track_loader.bi:16
TrackLoader::Errr
ZSTRING_PTR Errr
error message
Definition: track_loader.bi:61
TrP::Ele
float Ele
Elevation [m].
Definition: track_loader.bi:38
NaN
const DOUBLE NaN
Not a number (error value)
Definition: track_loader.bi:15
TrackLoader::Mx
TrP Mx
maximum values
Definition: track_loader.bi:65
TrackLoader::Co_X
LONG Co_X
map-X for computed pixels
Definition: track_loader.bi:76
TrP::Ang
float Ang
Direction Angle.
Definition: track_loader.bi:40
TrackLoader::UsZo
LONG UsZo
users zoom level in map
Definition: track_loader.bi:74
TrackLoader::Buff
UBYTE_PTR Buff
buffer for input, and (later) points array
Definition: track_loader.bi:87
TrP::Lon
float Lon
Longitude.
Definition: track_loader.bi:37
TrackLoader::Desc
STRING Desc
desciption
Definition: track_loader.bi:85
TrP
Data for a single track point.
Definition: track_loader.bi:32
TrackLoader::Path
STRING Path
path in TVT tree store
Definition: track_loader.bi:84
TrP::Xpix
LONG Xpix
world X pixel for ploting
Definition: track_loader.bi:42
Rad2Deg
const DOUBLE Rad2Deg
transform radians in degree
Definition: track_loader.bi:21
PIx2
const DOUBLE PIx2
PI * 2.
Definition: track_loader.bi:18
TrackLoader::Nearest
FUNCTION_AS_float Nearest(BYVAL_AS_float, BYVAL_AS_float)
Find point nearest to the given [radians] position.
Definition: track_loader.bas:328
TrackLoader::UsLo
float UsLo
users map center latitude (degree)
Definition: track_loader.bi:79
TrP::Tim
DOUBLE Tim
Date / Time.
Definition: track_loader.bi:34
ERA
const DOUBLE ERA
earth radius [m]
Definition: track_loader.bi:22
TrackLoader::CoLa
float CoLa
computed map center longitude (degree)
Definition: track_loader.bi:82
latlon2zoom
FUNCTION_AS_LONG latlon2zoom(BYVAL_AS_LONG, BYVAL_AS_LONG, BYVAL_AS_float, BYVAL_AS_float, BYVAL_AS_float, BYVAL_AS_float)
Evaluate the matching zoom level for BBox.
Definition: track_loader.bas:116
float
single float
Definition: track_loader.bi:12
PI
const DOUBLE PI
PI = 3.14...
Definition: track_loader.bi:17
TrackLoader::Co_Y
LONG Co_Y
map-Y for computed pixels
Definition: track_loader.bi:77
TrackLoader::Byt
INTEGER Byt
bytes read from file (buffer length)
Definition: track_loader.bi:68
TrP::Spd
float Spd
Speed over ground [km/h].
Definition: track_loader.bi:39
TrackLoader::V
TrP_PTR V
array of data
Definition: track_loader.bi:63
PId2
const DOUBLE PId2
PI * 2.
Definition: track_loader.bi:19
TrackLoader::MapCenter
SUB MapCenter(BYVAL_AS_LONG W, BYVAL_AS_LONG H)
Compute center and zoom to plot complete track.
Definition: track_loader.bas:348
TrackLoader::Dist
FUNCTION_AS_DOUBLE Dist(BYVAL_AS_ULONG, BYVAL_AS_ULONG)
Compute distance between two points.
Definition: track_loader.bas:306
TrackLoader::Cur
LONG Cur
last track position in map plot
Definition: track_loader.bi:72
TrackLoader::Siz
INTEGER Siz
byte size of TrackLoader.V array
Definition: track_loader.bi:69
TrP::Lat
float Lat
Latitude.
Definition: track_loader.bi:36
TrackLoader::Az
LONG Az
number of entries in array TrackLoader.V
Definition: track_loader.bi:73
TrackLoader::UsLa
float UsLa
users map center longitude (degree)
Definition: track_loader.bi:80
TrackLoader::CoLo
float CoLo
computed map center latitude (degree)
Definition: track_loader.bi:81
TrackLoader::~TrackLoader
~TrackLoader()
Definition: track_loader.bas:198
TrP::Ypix
LONG Ypix
world Y pixel for ploting
Definition: track_loader.bi:43
TrackLoader::ASpd
PROPERTY_AS_float ASpd()
Compute the speed avarage.
Definition: track_loader.bas:269
TrackLoader::Mn
TrP Mn
minimum values
Definition: track_loader.bi:66
TrackLoader::LTrk
PROPERTY_AS_float LTrk()
Compute track length.
Definition: track_loader.bas:287
TrackLoader
UDT collecting and holding the track data.
Definition: track_loader.bi:59
Deg2Rad
const DOUBLE Deg2Rad
transform degree in radians
Definition: track_loader.bi:20