Advertisement
Guest User

Untitled

a guest
Jan 11th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef MAPSCANNER_H
  2. #define MAPSCANNER_H
  3.  
  4. #include <QtWidgets>
  5. #include <QtWebEngineWidgets/QtWebEngineWidgets>
  6. #include <QWebEngineView>
  7. #include <QPixmap>
  8. #include <QtNetwork/QNetworkAccessManager>
  9. #include <QNetworkReply>
  10. #include <QTimer>
  11. #include <QPair>
  12. #include <QtCore>
  13. #include "ui_mapscanner.h"
  14.  
  15. class MapScanner : public QDialog
  16. {
  17.     Q_OBJECT
  18.  
  19. public:
  20.     MapScanner(QWidget *parent = 0);
  21.     ~MapScanner();
  22.  
  23. protected:
  24.     QWebEngineView *m_View;
  25.     QPixmap *m_Image;
  26.     QPixmap m_renderPixmap;
  27.     QTimer *m_Timer;
  28.  
  29.     void Work();//что - то
  30.     void SaveImages();//рендерим и сохраняем
  31.     void LoadMaps();
  32.  
  33.     double LeftStep(double, double);//идем влево
  34.     double RightStep(double, double);//идем вправо
  35.     double DownStep(double, double, double);//идём вниз
  36.  
  37.     void DownloadMap();//загружаем карту
  38.  
  39.     int CountI(double,double);//считаем количество снимков по ширине
  40.     int CountJ(double, double,double);//считаем количество снимков по высоте
  41. private:
  42.     Ui::MapScannerClass ui;
  43.  
  44.  
  45. };
  46.  
  47. #endif // MAPSCANNER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement