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.
43 lines
680 B
C
43 lines
680 B
C
2 years ago
|
#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);
|
||
|
|
||
|
void setPosition(double lon,double lat); //设置飞机位置
|
||
|
|
||
|
double getPointX();
|
||
|
double getPointY();
|
||
|
|
||
|
UGGeoPoint* getGeometry();
|
||
|
QString getPlaneName();
|
||
|
|
||
|
private:
|
||
|
UGStyle* getPlaneStyle(int planeType);
|
||
|
|
||
|
private:
|
||
|
// int planeType;
|
||
|
UGGeoPoint* m_pGeoPoint;
|
||
|
|
||
|
double lat;
|
||
|
double lon;
|
||
|
|
||
|
QString planeName;
|
||
|
};
|
||
|
|
||
|
#endif // PLANE_H
|