VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
37 
39  virtual ~DtVrfOsgEarthCacheDialog();
40 
41  virtual void resetGui();
42  virtual void resetServerProgressBars();
43 
44  virtual void setServerProgress(const std::string& server, int mapNodeId, const DtString& layer, int current, double elapsedTime);
45 
46  protected:
47  virtual void onProgressUpdate(const std::string& s, int progress);
48 
49  public:
52 
54  {
55  QHBoxLayout* hLayout;
59  };
60 
61  typedef std::map<int, ServerProgressBar> MapNodeServerProgress;
62  typedef std::map<std::string, MapNodeServerProgress> ServerProgressBars;
64  };
65 
67  {
68  public:
69 
71 
73 
74  virtual makVrv::DtOsgEarthCacheDialog* create(makVrv::DtDe& de, QWidget* parent) const;
75  };
76 
79  {
80 
81  public:
82 
85 
87  virtual ~DtVrfOsgEarthCacheHandler();
88 
89  protected:
91  virtual void onGenerateCacheButtonClicked();
92 
94  virtual void onEstimateMessageBoxResult(int result);
95 
97  virtual void onCancelButtonClicked();
98 
99  virtual void fillInCacheRequest(DtIfOsgEarthCacheRequest& req);
100 
101  virtual void processOsgEarthCacheInformation(DtSimMessage* msg);
102  virtual void processOsgEarthCacheProgress(DtSimMessage* msg);
103 
104  virtual std::string getOsgEarthEstimateInfo(const DtIfOsgEarthCacheInformation&);
105  virtual void cleanup(bool checkSpecifyCacheCheckBox, bool deleteAll);
106  virtual void onCacheFinished();
107 
108  protected:
110  std::set<std::string> myWaitingForInformation;
113 
114  typedef std::map<std::string, std::map<int, int> > ActiveServers;
116  };
117 
119  {
120  public:
121 
123 
125 
127  };
128 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)