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

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __RANGE_MAP_WIDGET_HEADER__
  2. #define __RANGE_MAP_WIDGET_HEADER__
  3. #ifndef __linux__
  4. #include <WinSock2.h>
  5. #endif
  6. #include "../guiClass.h"
  7. #include "../../components/object/objectLGS.h"
  8. #include "../../components/base/basicMutex.h"
  9. #include "../../alg/lgs/mask.h"
  10. #include "targetDisplay.h"
  11. class RangeMapWidget : public QWidget, public targetDisplay {
  12. private:
  13. QWidget *m_pParent;
  14. QImage *m_pImage;
  15. QImage m_oImage;
  16. basicMutex m_mImageLock;
  17. QPixmap m_oPixmap;
  18. QLabel *m_pImageLabel;
  19. QScrollArea *m_pScrollArea;
  20. QVBoxLayout *m_pVerticalLayout;
  21. QLabel *m_pOpLabel;
  22. point2DWidget *m_pPoint;
  23. QTimer *m_pStatusTimer;
  24. /* Masking Objects */
  25. float m_dScaleFactor;
  26. float m_fMaxRange;
  27. uint8_t m_bCurrentMouseMode;
  28. vectorMasking m_vAllPoly;
  29. simplePolygone *m_pNewPoly;
  30. int m_nCursorX;
  31. int m_nCursorY;
  32. bool m_bShowMinimums;
  33. void refreshImage( void );
  34. void drawCords( void );
  35. private slots:
  36. void handleGenerateWS();
  37. void handleSavePicture();
  38. bool eventFilter(QObject* /*obj*/, QEvent* evt );
  39. protected slots:
  40. //void wheelEvent(QWheelEvent* event);
  41. //void mouseMoveEvent(QMouseEvent* event);
  42. //virtual void paintEvent(QPaintEvent*);
  43. virtual void updateDisplay( void );
  44. virtual void updateBackStage(void);
  45. void handleTimer(void);
  46. public:
  47. explicit RangeMapWidget( QWidget *parent );
  48. ~RangeMapWidget();
  49. void setAddMaskMode( void );
  50. void setDeleteMaskMode( void );
  51. void startGenerateWS( void );
  52. void setMinimums(void);
  53. void setMaximums(void);
  54. void savePicture( QString fname );
  55. virtual void attachLGS( objectLGS *ptr );
  56. public slots:
  57. };
  58. #endif