WimaServicePolygon.cc 688 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
#include "WimaServicePolygon.h"

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

}

void WimaServicePolygon::setTakeOffPosition(QGeoCoordinate coordinate)
{
    if(_takeOffPosition != coordinate){
        _takeOffPosition = coordinate;
        emit takeOffPositionChanged(coordinate);
    }
}

void WimaServicePolygon::setLandPosition(QGeoCoordinate coordinate)
{
    if(_landPosition != coordinate){
        _landPosition = coordinate;
        emit landPositionChanged(coordinate);
    }
}

void WimaServicePolygon::setVehicle(Vehicle *vehicle)
{
    if(_vehicle != vehicle){
        _vehicle = vehicle;
        emit vehicleChanged(vehicle);
    }
}