Updraft  1.0
Open source glider flight visualisation tool.
OpenAirspace::Airspace Class Reference

This class represents a single airspace in the OpenAir file. More...

#include <airspace.h>

Collaboration diagram for OpenAirspace::Airspace:

List of all members.

Classes

struct  SB_str
 Brush colour selector structure. More...
struct  SP_str
 Pen style structure. More...

Public Types

enum  ACType {
  R, Q, P, A,
  B, C, D, E,
  GP, CTR, W, NA
}
 Airspace class type enum. More...

Public Member Functions

 Airspace (QTextStream *ts, bool *acOn)
 UserAirspace class constructor code.
const QString *const GetName () const
const
OpenAirspace::Airspace::ACType
GetClass ()
const QString & GetClassName ()
const QString *const GetFloor () const
const QString *const GetCeiling () const
const QVector< Position * > & GetTagCoor ()
int GetGeometrySize ()
const QVector
< OpenAirspace::Geometry * > & 
GetGeometry ()
const QVector< Position * > & GetAirWay ()
const SP_strGetPen () const
const SB_strGetBrush () const
 ~Airspace ()
 UserAirspace destructor code here.
int ParseHeight (bool floor, bool *agl)
 Parse the height data from the text to feet.

Static Public Attributes

static Position X
 Coordinates of the center used by more airspaces.
static bool validX

Private Member Functions

Position ParseCoord (const QString &parse)
 Parses the WGS coordinates from string.

Private Attributes

ACType AC
 Airspace class type.
QString * ACstring
QString * AN
 Airspace Name.
QString * AL
 Airspace Floor.
QString * AH
 Airspace Ceiling Altitude ciling of the airspace in ft.
QVector< Position * > * AT
 Airspace name label coordinates.
bool CW
double Wi
 Airway width in nm. -1 for not set.
float Z
 Zoom level.
QVector< Position * > * DY
 Airway.
QVector< Geometry * > * geometry
 Array of geometry.
QString * TO
 Terrain related variables Terrain open polygon name.
QString * TC
 Terrain closed polygon.
SP_strSP
 Pen & Brush var.
SB_strSB

Detailed Description

This class represents a single airspace in the OpenAir file.


Member Enumeration Documentation

Airspace class type enum.

R restricted Q danger P prohibited A Class A B Class B C Class C D Class D GP glider prohibited CTR CTR W Wave Window

Enumerator:
R 
Q 
P 
A 
B 
C 
D 
E 
GP 
CTR 
W 
NA 

Constructor & Destructor Documentation

OpenAirspace::Airspace::Airspace ( QTextStream *  ts,
bool *  acOn 
)

UserAirspace class constructor code.

Parses the single airspace record.

Parameters:
tsThis takes the QTexttream in UseAir free format.
acOnAC record read.

UserAirspace destructor code here.


Member Function Documentation

const QVector<Position*>& OpenAirspace::Airspace::GetAirWay ( ) [inline]
Returns:
The AirWay.
const SB_str* OpenAirspace::Airspace::GetBrush ( ) const [inline]
Returns:
Brush.
const QString* const OpenAirspace::Airspace::GetCeiling ( ) const [inline]
Returns:
The height of the ceiling of the Airspace.
Returns:
The class of the AirSpace
const QString& OpenAirspace::Airspace::GetClassName ( ) [inline]
const QString* const OpenAirspace::Airspace::GetFloor ( ) const [inline]
Returns:
The height of the floor of the Airspace.
Returns:
the geometry array (a primitive).
Returns:
The geometry array size.
const QString* const OpenAirspace::Airspace::GetName ( ) const [inline]
Returns:
The name of the AirSpace.
const SP_str* OpenAirspace::Airspace::GetPen ( ) const [inline]
Returns:
Pen.
const QVector<Position*>& OpenAirspace::Airspace::GetTagCoor ( ) [inline]
Returns:
The tag coordinates of the Airspace.
Position OpenAirspace::Airspace::ParseCoord ( const QString &  parse) [private]

Parses the WGS coordinates from string.

Parameters:
parseThe string from which the coordinates should be parsed.
Returns:
The coordinates in Possition structure.
int OpenAirspace::Airspace::ParseHeight ( bool  floor,
bool *  agl 
)

Parse the height data from the text to feet.

Parameters:
floorThis parameter tells the routine whether it is processing the floor data.
aglReturns true if the parsed height is above the ground level or absolute.
Returns:
The elevation in feet.

Member Data Documentation

QString* OpenAirspace::Airspace::AH [private]

Airspace Ceiling Altitude ciling of the airspace in ft.

AH < AL

QString* OpenAirspace::Airspace::AL [private]

Airspace Floor.

Altitude floor of the airspace in ft. Use -10000 for SFC.

QString* OpenAirspace::Airspace::AN [private]

Airspace Name.

Contains the name of the aispace. Required.

QVector<Position*>* OpenAirspace::Airspace::AT [private]

Airspace name label coordinates.

List of coordinates, where to place the airspace name label on the map. Optional.

QVector<Position*>* OpenAirspace::Airspace::DY [private]

Airway.

Array of geometry.

Pen & Brush var.

QString* OpenAirspace::Airspace::TC [private]

Terrain closed polygon.

QString* OpenAirspace::Airspace::TO [private]

Terrain related variables Terrain open polygon name.

double OpenAirspace::Airspace::Wi [private]

Airway width in nm. -1 for not set.

Coordinates of the center used by more airspaces.

float OpenAirspace::Airspace::Z [private]

Zoom level.

Sets the zoom level at which the airspace become visible.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines