Skip to content
AirspaceRestriction.cc 1.21 KiB
Newer Older
/****************************************************************************
 *
 * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
 *
 * QGroundControl is licensed according to the terms in the file
 * COPYING.md in the root of the source code directory.
 *
 ****************************************************************************/

#include "AirspaceRestriction.h"

Gus Grubba's avatar
Gus Grubba committed
AirspaceRestriction::AirspaceRestriction(QString advisoryID, QColor color, QColor lineColor, float lineWidth, QObject* parent)
    : QObject(parent)
Gus Grubba's avatar
Gus Grubba committed
    , _advisoryID(advisoryID)
    , _color(color)
Gus Grubba's avatar
Gus Grubba committed
    , _lineColor(lineColor)
    , _lineWidth(lineWidth)
Gus Grubba's avatar
Gus Grubba committed
AirspacePolygonRestriction::AirspacePolygonRestriction(const QVariantList& polygon, QString advisoryID, QColor color, QColor lineColor, float lineWidth, QObject* parent)
    : AirspaceRestriction(advisoryID, color, lineColor, lineWidth, parent)
    , _polygon(polygon)
{

}

Gus Grubba's avatar
Gus Grubba committed
AirspaceCircularRestriction::AirspaceCircularRestriction(const QGeoCoordinate& center, double radius, QString advisoryID, QColor color, QColor lineColor, float lineWidth, QObject* parent)
    : AirspaceRestriction(advisoryID, color, lineColor, lineWidth, parent)
    , _center(center)
    , _radius(radius)
{

}