builders

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CameraBuilder

type CameraBuilder struct {
	AddBankAngle bool
	DebugFlag    bool
}

func (*CameraBuilder) Build

func (ctb *CameraBuilder) Build(positions []aeroapi.Position) (*KmlProduct, error)

func (*CameraBuilder) Name

func (ctb *CameraBuilder) Name() string

type KmlProduct

type KmlProduct struct {
	Root   gokml.Element
	Assets map[string]any
}

KmlProduct contains the top-level KML model element and the assets it references

type KmlTrackBuilder

type KmlTrackBuilder interface {
	Name() string
	Build(positions []aeroapi.Position) (*KmlProduct, error)
}

KmlTrackBuilder can build a KmlProduct from a list of (location) coordinates

type PathBuilder

type PathBuilder struct {
	Color   color.Color
	Extrude bool
}

PathBuilder builds the visible "path" track, and optionally its extrusion to the ground

func (*PathBuilder) Build

func (pb *PathBuilder) Build(aeroTrackPositions []aeroapi.Position) (*KmlProduct, error)

func (*PathBuilder) Name

func (pb *PathBuilder) Name() string

type PlacemarkBuilder

type PlacemarkBuilder struct{}

func (*PlacemarkBuilder) Build

func (*PlacemarkBuilder) Build(aeroTrackPositions []aeroapi.Position) (*KmlProduct, error)

func (*PlacemarkBuilder) Name

func (*PlacemarkBuilder) Name() string

type VectorBuilder

type VectorBuilder struct{}

VectorBuilder - builds a KML folder of Placemarks revealing significant details of the track coordinates received from AeroAPI, including:

=> Location - Placemark's location => Altitude - Placemark's altitude => Heading - direction of an arrow representing the Placemark => Groundspeed - reflected by magnitude / size of the arrow

Additional sets of Placemarks are used to reveal secondary information calculated from the track data (e.g., "imputed" values).

func (*VectorBuilder) Build

func (vb *VectorBuilder) Build(aeroTrackPositions []aeroapi.Position) (*KmlProduct, error)

func (*VectorBuilder) Name

func (vb *VectorBuilder) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL