pavi  0.0
Map Path Viewer
TS_bbox Class Reference

Class finding the nearest track point. More...

Collaboration diagram for TS_bbox:

Public Member Functions

 TS_bbox (BYVAL_AS_gboolean)
 Conpute the bounding box for all tracks. More...
 

Static Public Member Functions

static FUNCTION_CDECL_AS_gboolean _bounds (BYVAL_AS_GtkTreeModel_PTR, BYVAL_AS_GtkTreePath_PTR, BYVAL_AS_GtkTreeIter_PTR, BYVAL_AS_gpointer)
 Callback for computing bounds. More...
 

Public Attributes

float La0 = PI
 
float La1 = -PI
 
float Lo0 = PI
 
float Lo1 = -PI
 
LONG Mode
 
LONG Cnt = 0
 

Detailed Description

Class finding the nearest track point.

The constructor searches all active tracks for the point nearest to the given location. In case of more than four active tracks, the most nearest for loaders remain in the TS_nearest.Res array.

Since
0.0

Definition at line 99 of file track_store.bi.

Constructor & Destructor Documentation

◆ TS_bbox()

TS_bbox::TS_bbox ( BYVAL_AS_gboolean  Mo)

Conpute the bounding box for all tracks.

Parameters
MoMode of operation (1 = enabled tracks only, 0 = all)

This constructor evaluates the minimum and maximum longitude and latitude for tracks in the tree store.

Since
0.0

Definition at line 308 of file track_store.bas.

Here is the call graph for this function:

Member Function Documentation

◆ _bounds()

FUNCTION_CDECL_AS_gboolean TS_bbox::_bounds ( BYVAL_AS_GtkTreeModel_PTR  Model,
BYVAL_AS_GtkTreePath_PTR  Path,
BYVAL_AS_GtkTreeIter_PTR  Iter,
BYVAL_AS_gpointer  UserData 
)
static

Callback for computing bounds.

Parameters
Modeltree model
Pathline in Model
Iteriter in Model
UserDataunused
Returns
FALSE (in order to continue)

This function is designed as a gtk_tree_model_foreach callback. It computes the bounding box for all tracks.

Since
0.0

Definition at line 274 of file track_store.bas.

Here is the caller graph for this function:

Member Data Documentation

◆ La0

float TS_bbox::La0 = PI

Definition at line 100 of file track_store.bi.

◆ La1

float TS_bbox::La1 = -PI

Definition at line 100 of file track_store.bi.

◆ Lo0

float TS_bbox::Lo0 = PI

Definition at line 100 of file track_store.bi.

◆ Lo1

float TS_bbox::Lo1 = -PI

Definition at line 100 of file track_store.bi.

◆ Mode

LONG TS_bbox::Mode

Definition at line 101 of file track_store.bi.

◆ Cnt

LONG TS_bbox::Cnt = 0

Definition at line 101 of file track_store.bi.


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