FlightGear next
BaseDiagram.cxx File Reference
#include "BaseDiagram.hxx"
#include <limits>
#include <QDebug>
#include <QMouseEvent>
#include <QPaintDevice>
#include <QPainter>
#include <QQmlEngine>
#include <QVector2D>
#include <Navaids/navrecord.hxx>
#include <Navaids/positioned.hxx>
#include <Airports/airport.hxx>
#include <Navaids/PolyLine.hxx>
#include <Navaids/NavDataCache.hxx>
#include <Navaids/airways.hxx>
#include "QmlColoredImageProvider.hxx"
#include "QtLauncher_fwd.hxx"

Go to the source code of this file.

Classes

class  MapFilter
 

Functions

static double earth_radius_lat (double lat)
 
bool orderAirportsByRunwayLength (const FGPositionedRef &a, const FGPositionedRef &b)
 
QRect boundsOfLines (const QVector< QLineF > &lines)
 
int intSign (int v)
 

Variables

const double rec = 6378137
 
const double rpol = 6356752.314
 
const double MINIMUM_SCALE = 0.002
 
const double MAXIMUM_SCALE = 2.0
 

Function Documentation

◆ boundsOfLines()

QRect boundsOfLines ( const QVector< QLineF > & lines)

Definition at line 426 of file BaseDiagram.cxx.

◆ earth_radius_lat()

static double earth_radius_lat ( double lat)
static

Definition at line 52 of file BaseDiagram.cxx.

◆ intSign()

int intSign ( int v)

Definition at line 648 of file BaseDiagram.cxx.

◆ orderAirportsByRunwayLength()

bool orderAirportsByRunwayLength ( const FGPositionedRef & a,
const FGPositionedRef & b )

Definition at line 315 of file BaseDiagram.cxx.

Variable Documentation

◆ MAXIMUM_SCALE

const double MAXIMUM_SCALE = 2.0

Definition at line 49 of file BaseDiagram.cxx.

◆ MINIMUM_SCALE

const double MINIMUM_SCALE = 0.002

Definition at line 48 of file BaseDiagram.cxx.

◆ rec

const double rec = 6378137

Definition at line 45 of file BaseDiagram.cxx.

◆ rpol

const double rpol = 6356752.314

Definition at line 46 of file BaseDiagram.cxx.