VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfOsgEarthCacheDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
17 
18 namespace makVrv
19 {
20  class DtDe;
21 }
22 
24 class DtSimMessage;
25 
26 namespace makVrf
27 {
31  {
32 
33  public:
34 
36  DtVrfOsgEarthCacheDialog(makVrv::DtDe& de, QWidget* parent);
37 
39  virtual ~DtVrfOsgEarthCacheDialog();
40 
41  virtual void resetGui();
42  virtual void resetServerProgressBars();
43 
44  virtual void setServerProgress(std::string server, std::string layer, int current, double elapsedTime);
45 
46  protected:
47  virtual void onProgressUpdate(const std::string& s, int progress);
48 
49  virtual void onCacheStarted();
50  virtual void onCacheFinished();
51  virtual void on_cancelButton_clicked();
52 
53  public:
56 
58  {
59  QHBoxLayout* hLayout;
60  QWidget* widget;
63  };
64 
65  typedef std::map<std::string, ServerProgressBar> ServerProgressBars;
67  };
68 
70  {
71  public:
72 
74 
76 
77  virtual makVrv::DtOsgEarthCacheDialog* create(makVrv::DtDe& de, QWidget* parent) const;
78  };
79 
82  {
83 
84  public:
85 
88 
90  virtual ~DtVrfOsgEarthCacheHandler();
91 
92  protected:
94  virtual void onGenerateCacheButtonClicked();
95 
97  virtual void onEstimateMessageBoxResult(int result);
98 
100  virtual void onCancelButtonClicked();
101 
102  virtual void fillInCacheRequest(DtIfOsgEarthCacheRequest& req);
103 
104  virtual void processOsgEarthCacheInformation(DtSimMessage* msg);
105  virtual void processOsgEarthCacheProgress(DtSimMessage* msg);
106 
107  virtual std::string getOsgEarthEstimateInfo(const DtIfOsgEarthCacheInformation&);
108  virtual void onCacheFinished();
109 
110  virtual void run();
111 
112  protected:
114  std::set<std::string> myWaitingForInformation;
118 
119  typedef std::map<std::string, int> ActiveServers;
121  };
122 
124  {
125  public:
126 
128 
130 
132  };
133 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)