Visual approach chart.
More...
#include <VAC.h>
|
|
| VAC ()=default |
| | Default constructor, creates an invalid VAC.
|
| | VAC (const QString &fName, const QString &unmingledFName) |
| | 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.
|
| QString | section () const |
| | Getter function for property of the same name.
|
| bool | operator== (const VAC &other) const =default |
| | Comparison.
|
|
| static QStringList | mimeTypes () |
| | Mime type for files that can be opened by this class.
|
|
| 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 | collection |
| | Name of the collection containing this VAC.
|
| QString | description |
| | Describe installed file(s).
|
| QString | infoText |
| | Short info text.
|
| bool | isValid |
| | Validity.
|
| QString | name |
| | Name of the VAC.
|
| QString | section |
| | Section name, for grouping in GUI lists.
|
| QGeoCoordinate | topLeft |
| | Geographic coordinate of raster image corner.
|
| QGeoCoordinate | topRight |
| | Geographic coordinate of raster image corner.
|
| QString | fileName |
| | Name of raster image file.
|
|
|
QDataStream & | operator<< (QDataStream &stream, const GeoMaps::VAC &vac) |
| | Serialization.
|
|
QDataStream & | operator>> (QDataStream &stream, GeoMaps::VAC &vac) |
| | Deserialization.
|
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.
◆ VAC()
| GeoMaps::VAC::VAC |
( |
const QString & | fName, |
|
|
const QString & | unmingledFName ) |
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 (unmingled) 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
-
| fName | File name of a georeferenced raster image file |
| unmingledFName | A "real" file name, used in case fName points to a temporary file (e.g. because of compression, for Android content URI) |
◆ boundingBox()
| QGeoRectangle GeoMaps::VAC::boundingBox |
( |
| ) |
const |
|
inlinenodiscard |
Getter function for property of the same name.
- Returns
- Property boundingBox
Definition at line 173 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()
| QStringList GeoMaps::VAC::mimeTypes |
( |
| ) |
|
|
inlinestaticnodiscard |
Mime type for files that can be opened by this class.
- Returns
- Name of mime type
Definition at line 223 of file VAC.h.
◆ operator==()
| bool GeoMaps::VAC::operator== |
( |
const VAC & | other | ) |
const |
|
nodiscarddefault |
Comparison.
- Parameters
-
| other | VAC to compare *this with |
- Returns
- True on equality
◆ section()
| QString GeoMaps::VAC::section |
( |
| ) |
const |
|
nodiscard |
Getter function for property of the same name.
- Returns
- Property section
◆ 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 86 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 92 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 98 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 105 of file VAC.h.
◆ collection
| QString GeoMaps::VAC::collection |
Name of the collection containing this VAC.
Member variable for property of the same name.
This property holds the name of the VAC collection that contains this chart (e.g. "France"), or an empty string for charts that the user imported manually. For charts from a collection, the member 'fileName' points to the collection file; use GeoMaps::VACLibrary::materialize() to obtain a VAC whose 'fileName' points to a raster image file.
Definition at line 115 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 123 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 162 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 130 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 137 of file VAC.h.
◆ name
| QString GeoMaps::VAC::name |
Name of the VAC.
Member variable for property of the same name.
Definition at line 140 of file VAC.h.
◆ section
| QString GeoMaps::VAC::section |
|
read |
Section name, for grouping in GUI lists.
This property holds the name of the collection for charts from a VAC collection, or a localized version of "Manually Imported" otherwise.
Definition at line 147 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 153 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 159 of file VAC.h.
The documentation for this class was generated from the following file:
- /home/runner/work/enroute/enroute/src/geomaps/VAC.h