Enroute Flight Navigation
A navigation app for VFR pilots
GeoMaps::VAC Class Reference

Visual approach chart. More...

#include <VAC.h>

Public Member Functions

 VAC ()=default
 Default constructor, creates an invalid VAC.
 
 VAC (const QString &fName)
 Constructor.
 
QGeoRectangle boundingBox () const
 Getter function for property of the same name.
 
QGeoCoordinate center () const
 Getter function for property of the same name.
 
QString description () const
 Getter function for property of the same name.
 
QString infoText () const
 Getter function for property of the same name.
 
bool isValid () const
 Getter function for property of the same name.
 
bool operator== (const VAC &other) const =default
 Comparison.
 

Static Public Member Functions

static QStringList mimeTypes ()
 Mime type for files that can be opened by this class.
 

Properties

QGeoCoordinate bottomLeft
 Geographic coordinate of raster image corner.
 
QGeoCoordinate bottomRight
 Geographic coordinate of raster image corner.
 
QGeoRectangle boundingBox
 Bounding box.
 
QGeoCoordinate center
 Center coordinate.
 
QString description
 Describe installed file(s)
 
QString infoText
 Short info text.
 
bool isValid
 Validity.
 
QString name
 Name of the VAC.
 
QGeoCoordinate topLeft
 Geographic coordinate of raster image corner.
 
QGeoCoordinate topRight
 Geographic coordinate of raster image corner.
 
QString fileName
 Name of raster image file.
 

Friends

QDataStream & operator<< (QDataStream &stream, const GeoMaps::VAC &vac)
 Serialization.
 
QDataStream & operator>> (QDataStream &stream, GeoMaps::VAC &vac)
 Deserialization.
 

Detailed Description

Visual approach chart.

This class represents visual approach charts. It stores the following data items.

  • The name of the visual approach chart.
  • The name of a raster image file.
  • Geographic coordinates for the four corners of the raster image

Definition at line 44 of file VAC.h.

Constructor & Destructor Documentation

◆ VAC()

GeoMaps::VAC::VAC ( const QString & fName)

Constructor.

This class reads a georeferenced image file, where geographic data is encoded in one of the following two forms.

  • The image file is a GeoTIFF file with embedded georeferencing information.
  • The file name is of the form "EDTF-geo_7.739665_48.076416_7.9063883_47.96452.jpg"

It attempt to extract the map name from the image file (if the image file is a GeoTIFF), or else from the file name. The raster data is not read, so that this constructor is rather lightweight.

Parameters
fNameFile name of a georeferenced raster image file

Member Function Documentation

◆ boundingBox()

QGeoRectangle GeoMaps::VAC::boundingBox ( ) const
inlinenodiscard

Getter function for property of the same name.

Returns
Property boundingBox

Definition at line 153 of file VAC.h.

◆ center()

QGeoCoordinate GeoMaps::VAC::center ( ) const
nodiscard

Getter function for property of the same name.

Returns
Property center

◆ description()

QString GeoMaps::VAC::description ( ) const
nodiscard

Getter function for property of the same name.

Returns
Property description

◆ infoText()

QString GeoMaps::VAC::infoText ( ) const
nodiscard

Getter function for property of the same name.

Returns
Property infoText

◆ isValid()

bool GeoMaps::VAC::isValid ( ) const
nodiscard

Getter function for property of the same name.

Returns
Property isValid

◆ mimeTypes()

static QStringList GeoMaps::VAC::mimeTypes ( )
inlinestaticnodiscard

Mime type for files that can be opened by this class.

Returns
Name of mime type

Definition at line 198 of file VAC.h.

◆ operator==()

bool GeoMaps::VAC::operator== ( const VAC & other) const
nodiscarddefault

Comparison.

Parameters
otherVAC to compare *this with
Returns
True on equality

Property Documentation

◆ bottomLeft

QGeoCoordinate GeoMaps::VAC::bottomLeft

Geographic coordinate of raster image corner.

Member variable for property of the same name.

This coordinate might be invalid.

Definition at line 83 of file VAC.h.

◆ bottomRight

QGeoCoordinate GeoMaps::VAC::bottomRight

Geographic coordinate of raster image corner.

Member variable for property of the same name.

This coordinate might be invalid.

Definition at line 89 of file VAC.h.

◆ boundingBox

QGeoRectangle GeoMaps::VAC::boundingBox
read

Bounding box.

The bounding box will be invalid if the coordinates are invalid.

Definition at line 95 of file VAC.h.

◆ center

QGeoCoordinate GeoMaps::VAC::center
read

Center coordinate.

This property holds the geographic coordinate of the raster image center, or an invalid coordinate if no valid corner coordinates are available.

Definition at line 102 of file VAC.h.

◆ description

QString GeoMaps::VAC::description
read

Describe installed file(s)

This property contains a description of the locally installed file(s), localized and in HTML format. If no description is available, then the property contains an empty string.

Definition at line 110 of file VAC.h.

◆ fileName

QString GeoMaps::VAC::fileName

Name of raster image file.

Member variable for property of the same name.

Definition at line 142 of file VAC.h.

◆ infoText

QString GeoMaps::VAC::infoText
read

Short info text.

The text is typically one lines "manually installed • 203 kB", translated to the local language.

Definition at line 117 of file VAC.h.

◆ isValid

bool GeoMaps::VAC::isValid
read

Validity.

The VAC is considered valid if all corner coordinate are valid, the file 'fileName' exists and the name is not empty.

Definition at line 124 of file VAC.h.

◆ name

QString GeoMaps::VAC::name

Name of the VAC.

Member variable for property of the same name.

Definition at line 127 of file VAC.h.

◆ topLeft

QGeoCoordinate GeoMaps::VAC::topLeft

Geographic coordinate of raster image corner.

Member variable for property of the same name.

This coordinate might be invalid.

Definition at line 133 of file VAC.h.

◆ topRight

QGeoCoordinate GeoMaps::VAC::topRight

Geographic coordinate of raster image corner.

Member variable for property of the same name.

This coordinate might be invalid.

Definition at line 139 of file VAC.h.


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