You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
742 B
C++
45 lines
742 B
C++
#ifndef PLANE_H
|
|
#define PLANE_H
|
|
|
|
/*
|
|
* 创建飞机标绘对象
|
|
*/
|
|
|
|
#include <QString>
|
|
#include "Geometry/UGGeoPoint.h"
|
|
#include "Toolkit/UGStyle.h"
|
|
#include "Geometry/UGGeometry.h"
|
|
|
|
using namespace UGC;
|
|
|
|
class Plane
|
|
{
|
|
public:
|
|
Plane();
|
|
Plane(QString planeName,int planeType,double lon=0,double lat=0,double heading=0);
|
|
|
|
void setPosition(double lon,double lat); //设置飞机位置
|
|
|
|
double getPointX();
|
|
double getPointY();
|
|
double getHeading();
|
|
|
|
UGGeoPoint* getGeometry();
|
|
QString getPlaneName();
|
|
|
|
private:
|
|
UGStyle* getPlaneStyle(int planeType);
|
|
|
|
private:
|
|
// int planeType;
|
|
UGGeoPoint* m_pGeoPoint;
|
|
|
|
double lat;
|
|
double lon;
|
|
double heading;
|
|
|
|
QString planeName;
|
|
};
|
|
|
|
#endif // PLANE_H
|