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.
64 lines
1.7 KiB
64 lines
1.7 KiB
#ifndef __RANGE_MAP_WIDGET_HEADER__
|
|
#define __RANGE_MAP_WIDGET_HEADER__
|
|
|
|
#ifndef __linux__
|
|
#include <WinSock2.h>
|
|
#endif
|
|
|
|
#include "../guiClass.h"
|
|
#include "../../components/object/objectLGS.h"
|
|
#include "../../components/base/basicMutex.h"
|
|
#include "../../alg/lgs/mask.h"
|
|
#include "targetDisplay.h"
|
|
|
|
class RangeMapWidget : public QWidget, public targetDisplay {
|
|
private:
|
|
QWidget *m_pParent;
|
|
QImage *m_pImage;
|
|
QImage m_oImage;
|
|
basicMutex m_mImageLock;
|
|
QPixmap m_oPixmap;
|
|
QLabel *m_pImageLabel;
|
|
QScrollArea *m_pScrollArea;
|
|
QVBoxLayout *m_pVerticalLayout;
|
|
QLabel *m_pOpLabel;
|
|
point2DWidget *m_pPoint;
|
|
QTimer *m_pStatusTimer;
|
|
|
|
/* Masking Objects */
|
|
float m_dScaleFactor;
|
|
float m_fMaxRange;
|
|
uint8_t m_bCurrentMouseMode;
|
|
vectorMasking m_vAllPoly;
|
|
simplePolygone *m_pNewPoly;
|
|
int m_nCursorX;
|
|
int m_nCursorY;
|
|
bool m_bShowMinimums;
|
|
void refreshImage( void );
|
|
void drawCords( void );
|
|
private slots:
|
|
void handleGenerateWS();
|
|
void handleSavePicture();
|
|
bool eventFilter(QObject* /*obj*/, QEvent* evt );
|
|
protected slots:
|
|
//void wheelEvent(QWheelEvent* event);
|
|
//void mouseMoveEvent(QMouseEvent* event);
|
|
//virtual void paintEvent(QPaintEvent*);
|
|
virtual void updateDisplay( void );
|
|
virtual void updateBackStage(void);
|
|
void handleTimer(void);
|
|
public:
|
|
explicit RangeMapWidget( QWidget *parent );
|
|
~RangeMapWidget();
|
|
void setAddMaskMode( void );
|
|
void setDeleteMaskMode( void );
|
|
void startGenerateWS( void );
|
|
void setMinimums(void);
|
|
void setMaximums(void);
|
|
void savePicture( QString fname );
|
|
virtual void attachLGS( objectLGS *ptr );
|
|
public slots:
|
|
};
|
|
|
|
|
|
#endif
|