WimaServicePolygon.cc 632 Bytes
Newer Older
1 2 3 4 5 6 7 8
#include "WimaServicePolygon.h"

WimaServicePolygon::WimaServicePolygon(QObject *parent):
    WimaPolygon (parent)
{

}

9 10 11 12 13 14
WimaServicePolygon::WimaServicePolygon(QGCMapPolygon *other, QObject *parent):
    WimaPolygon (other, parent)
{

}

15
void WimaServicePolygon::setTakeOffPosition(QGeoCoordinate* coordinate)
16
{
17 18 19
    if(_takeOffPosition != *coordinate){
        _takeOffPosition = *coordinate;
        emit takeOffPositionChanged();
20 21 22
    }
}

23
void WimaServicePolygon::setLandPosition(QGeoCoordinate* coordinate)
24
{
25 26 27
    if(_landPosition != *coordinate){
        _landPosition = *coordinate;
        emit landPositionChanged();
28 29 30
    }
}