You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.8 KiB
74 lines
1.8 KiB
#ifndef __TARGET_DISPLAY_HEADER__
|
|
#define __TARGET_DISPLAY_HEADER__
|
|
|
|
#ifndef __linux__
|
|
#include <WinSock2.h>
|
|
#endif
|
|
|
|
#include <queue>
|
|
#include "../guiClass.h"
|
|
#include "../../components/object/objectLGS.h"
|
|
#include "../../alg/lgs/mask.h"
|
|
#include "../../components/base/basicEventHandler.h"
|
|
#include "point2dWidget.h"
|
|
class objectLGS;
|
|
#define MAX_SIMUL_TARGETS 128
|
|
//typedef queue<uint32_t> TargetsFIFO;
|
|
typedef struct S_SIMPLE_TARGET{
|
|
uint32_t sampleID;
|
|
uint16_t range;
|
|
uint8_t status;
|
|
uint16_t dX;
|
|
uint16_t dY;
|
|
uint32_t color;
|
|
float size;
|
|
float x,y,z;
|
|
float az, el;
|
|
float lat, lon, alt;
|
|
} simpleTarget;
|
|
//typedef vector<uint32_t> TargetsFIFO;
|
|
typedef vector<simpleTarget*> TargetsFIFO;
|
|
|
|
//typedef struct{
|
|
// uint8_t color[3];
|
|
// QPoint *points;
|
|
// uint16_t count;
|
|
//}simplePolygone;
|
|
|
|
//typedef vector<simplePolygone *> vectorMasking;
|
|
|
|
//typedef struct{
|
|
// uint16_t start;
|
|
// uint16_t stop;
|
|
//} raySegment;
|
|
|
|
//typedef struct{
|
|
// uint16_t count;
|
|
// raySegment *zones;
|
|
//} rawRay;
|
|
//typedef vector<rawRay *> vectorZoneMask;
|
|
|
|
class targetDisplay: public basicEventHandler{
|
|
protected:
|
|
objectLGS *m_pDeviceControl;
|
|
thresholdNode *m_pRanges;
|
|
uint32_t m_nRangesCount;
|
|
uint8_t m_bLastTargetId;
|
|
simpleTarget m_aTargets[MAX_SIMUL_TARGETS];
|
|
|
|
void addTarget( simpleTarget *st );
|
|
virtual void updateDisplay( void ){};
|
|
virtual void updateBackStage(void){};
|
|
public:
|
|
targetDisplay();
|
|
~targetDisplay();
|
|
virtual bool loadFile(const QString &fileName){ return true; };
|
|
virtual void attachLGS(objectLGS *ptr){};
|
|
void updateRanges(uint32_t *Ranges, uint32_t count);
|
|
bool loadFromFile(char *fName);
|
|
void clearTargets(void);
|
|
virtual bool dispatchEvent( basicEvent *Evt );
|
|
};
|
|
|
|
|
|
#endif
|