Crate flight_tracking_erau_se300[−][src]
Modules
Useful functions for rendering airports on the map
Structs
Represents an Airport that will be deserialized
The structure of a Button.
Widget Id for Image
Custom made widget for the FilterButton
Declaration of the Filter State
Image Id to communicate with the CircularImageIds.
Representation of Circle with Image
The global performance data for tile data
The state needed to render the map.
A group of associated samples that correspond with the length of an operation
The performance data recorded across the entire application relating to tiles
Largely the same as PerformanceData
, but is clone for getting a snapshot out of the mutex
in order to release it as quickly as possible
The body of a Plane
Structure to save te Plane data we request We put it into an Arc and Mutex to make it easier to read.
A kind of profiling guard that captures the length self
is alive for
Widget Id for Text(Flat Circle)
Representation of Circle with Text
Contains the coordinates of a unique tile, at any zoom level, anywhere in the world
Holds multiple levels of cache for requesting tiles in a generic manner. Handles preemption and de-duplicating tile requests so that only one is sent out
Walks the positions of all the tiles currently in view, returning their coordinates for rendering
Represents the viewport of the camera in unbounded world coordinates. 1 means the width of the entire world. These are unbounded, meaning they will be out of the normal 0..1 range if the camera is zoomed out very far or if the user has gone to a different world and zoomed in
Enums
The different levels of readiness when of a tile within a backend.
An error produced if loading a tile fails
The kind of imagery this tile represents
Traits
A low level construct for requesting map tiles form a single source, such as an api, disk cache, or memory cache.
Functions
Deserializes a Vec
Makes a Circle Widget with an ImageId given. Takes x and y to position Widget.
Takes a y in world coordinates and converts it to latitude in degrees using the mercator projection.
Performs linear interpolation for f
in 0..1 between a
and b
Decodes a compressed png or jpeg image into a RGBA memory byte buffer.
Takes a x in world coordinates and converts it to longitude in degrees using the mercator projection.
Maps a value linearly in one range to another
Rounds a number up to the nearest multiple of modulo
Rounds a number down to the nearest multiple of modulo
Normalizes value
in range a..b to 0..1
Returns the default pipelines for TileKinds
.
Begins a sampling scope that associates the length of time ScopeSampler
is alive to name
name
.
Rounds a number up to the nearest multiple of multiple
Rounds a number up to the nearest power of 2
The app’s “main” function. Our real main inside main.rs
calls this function
Takes the map associating named scopes to their duration, leaving an empty map.
Encodes a tile coordinate into a u64
Decodes a tile coordinate from u64
Projects a x world location combined with a viewport to determine the x pixel location in the conrad coordinate system
Projects a y world location combined with a viewport to determine the y pixel location in the conrad coordinate system
Takes a latitude in degrees and converts it to a world y coordinate using the mercator projection.
Takes a latitude in degrees and converts it to a world y coordinate using the mercator projection.
Type Definitions
A mapping between imagery kinds and the tile pipeline that provides access to tile images
(x, y) tile coordinates returned by TileViewIterator
for a given zoom level.
Representation of tile zoom levels. Unsigned value that indicated exponential zoom. 0 = Whole world is visible