GlobeEngine
GlobeEngineUI.h
Go to the documentation of this file.
1 #ifndef GLOBEENGINEUI_H
2 #define GLOBEENGINEUI_H
3 
4 #include "OpenGL_Includes.h"
5 #include "ui_GlobeEngineForm.h"
6 #include "GlobeEngineGLWidget.h"
7 #include "GlobeEngineMenu.h"
9 #include "LoadModelDialog.h"
10 #include "ColorisationTable.h"
11 #include "SceneBluePrint.h"
12 #include "SimpleQTViewer.h"
13 #include "TerrainPanel.h"
14 #include "RenderingPanel.h"
15 #include "ScenePanel.h"
16 #include "OutlinePanel.h"
17 #include "FeaturePanel.h"
18 #include "LegendPanel.h"
19 
20 #include <memory>
21 
22 #include <QMainWindow>
23 #include <QNetworkAccessManager>
24 
25 namespace geViewer {
26 
27  class GlobeEngineMenu;
28 
30  {
31  Q_OBJECT
32 
33  public:
34  GlobeEngineUI(const std::shared_ptr<geGIS::SceneBlueprint>& _scene, GlobeEngineGLWidget* _glWidget, QWidget *parent = 0);
36  void updateOutlinePanel();
37 
40 
41  public slots:
42  //void toggleToolboxTab(int _index);
46 
47  void saveObject(geGIS::ModelLayerSelection _sel, std::string _path, std::string _ext);
48  void saveScreenshot(std::string _path);
49 
50  void exportGraphData(geGIS::ModelLayerSelection _sel, std::string _path);
51  void exportGraphRequests(geGIS::ModelLayerSelection _sel, std::string _path);
53 
54  void setItemVisibility(geGIS::ModelLayerSelection _sel, bool _vis);
55  void visibilityChange(bool _state);
56 
57  // Menu states
59  void changeViewMenuState();
60  void changeCameraState();
62  void changeRenderingStates();
64 
65  void changeTerrainImageLayer(int _index);
66  void changeColor();
67  //void changeColorRamp();
68  void updateRaster(int _input);
69  void updateRasterEdgeTreshold(int _input);
70 
72  void setSplineSegmentDistance(int _input);
73  //void setSplineInDepth(bool _state);
74  void setObjectThickness(int _thickness);
75  void setSplineYValueOverZero(int _thickness);
76  void setExtrusionY(int _input);
77  void setObjectExtrusionXZ(int _input);
78  void requestQuery();
79 
80  void updateTrafficInfoBox();
81 
82  void setObjectRingThreshold(int _in);
83  void setCameraVelocity(int _input);
84  void setCommuterObjectStiffness(int _input);
85  void setCommuterObjectStiffness(const QString &);
86  void setCommuterObjectThreshold(int _input);
87  void setCommuterObjectThreshold(const QString &);
88  void setCommuterObjectIterations(int _input);
89  void setCommuterObjectIterations(const QString &);
90  void setCommuterObjectMoveFactor(int _input);
91  void setCommuterObjectMoveFactor(const QString &);
92  void setCommuterObjectSubdivisions(int _input);
93  void setCommuterObjectSubdivisions(const QString &);
94 
95  void setSSAOParameters();
96 
97  void setGPUFeatureRadius(int _input);
98  void setGPUMouseLensRadius(int _input);
99  void setGPUMouseLensCategory(int _input);
100 
101  void setAliasingWeight(int _input);
102  void enableAntialiasing(bool _in);
103  void fixSegmentDistance(bool _in);
104  void startFDEBCalculation();
106  void chooseColorisationForEngine(int _input);
107  bool eventFilter(QObject *obj, QEvent *event);
108  void setChangePathHeight(bool _state);
109  void textChangedEvent(const QString& _text= NULL);
110 
111  void requestTrafficInfo();
112  void replyFinished(QNetworkReply* _reply);
113  void setupNetworkQuery(QUrl _url);
114 
115  Ui::GlobeEngineForm* getUI();
116 
117  void loadObject(std::string _file);
118  void startCamAnimation();
119 
120  void toolbarActionTriggered(QAction* _action);
121 
122  protected:
123  void dropEvent(QDropEvent* event);
124  void dragEnterEvent(QDragEnterEvent *event);
125  void setFDEBProperty(int _property, float _value);
126 
127  private:
128  Ui::GlobeEngineForm ui;
129 
130  FeaturePanel* featurepanel;
131  TerrainPanel* terrainpanel;
132  RenderingPanel* renderingpanel;
133  ScenePanel* scenepanel;
134  OutlinePanel* outlinepanel;
135  LegendPanel* legendpanel;
136 
137  geQT::TransferFunctionWidget* terrainTFEW;
138 
139  bool firstStartUp;
140 
141  QTabWidget* tbTab;
142 
143  LoadModelDialog* dialog;
144  //std::shared_ptr<GlobeEngineMenu> menus;
145  GlobeEngineMenu* menus;
146 
147  // temp selection objects
148  geGIS::ModelLayerSelection networkAccessSelection;
149 
150  // object loader properties
151  vmml::Vector3f objectLoaderColor;
152  };
153 }
154 #endif // GLOBEENGINE_H
void saveObject(geGIS::ModelLayerSelection _sel, std::string _path, std::string _ext)
Definition: GlobeEngineUI.cpp:197
Definition: RenderingPanel.h:13
void requestTrafficInfo()
Definition: GlobeEngineUI.cpp:743
void setSplineYValueOverZero(int _thickness)
Definition: GlobeEngineUI.cpp:695
void textChangedEvent(const QString &_text=NULL)
Definition: GlobeEngineUI.cpp:962
void updateOutlinePanel()
Definition: GlobeEngineUI.cpp:491
void setSplineSegmentDistance(int _input)
Definition: GlobeEngineUI.cpp:673
void updateToolboxTrafficInfo()
Definition: GlobeEngineUI.cpp:510
void setCommuterObjectThreshold(int _input)
Definition: GlobeEngineUI.cpp:996
void setObjectThickness(int _thickness)
Definition: GlobeEngineUI.cpp:702
void updateToolboxSelection(geGIS::ModelLayerSelection _sel)
Definition: GlobeEngineUI.cpp:558
void updateTrafficInfoBox()
Definition: GlobeEngineUI.cpp:535
void objectItemDoubleClickAction(geGIS::ModelLayerSelection _sel)
Definition: GlobeEngineUI.cpp:209
void setCommuterObjectStiffness(int _input)
Definition: GlobeEngineUI.cpp:985
void startCamAnimation()
Definition: GlobeEngineUI.cpp:1035
Definition: FeaturePanel.h:10
void setGPUMouseLensRadius(int _input)
Definition: GlobeEngineUI.cpp:922
Definition: TransferFunctionWidget.h:19
void requestQuery()
Definition: GlobeEngineUI.cpp:828
Definition: ScenePanel.h:12
FeaturePanel * getFeaturePanel()
Definition: GlobeEngineUI.cpp:1043
void setCommuterObjectSubdivisions(int _input)
Definition: GlobeEngineUI.cpp:973
void setObjectRingThreshold(int _in)
Definition: GlobeEngineUI.cpp:875
void setChangePathHeight(bool _state)
Definition: GlobeEngineUI.cpp:686
void saveScreenshot(std::string _path)
Definition: GlobeEngineUI.cpp:215
void changeShaderRecompilation()
Definition: GlobeEngineUI.cpp:251
void updateTransferFunctionValue()
Definition: GlobeEngineUI.cpp:581
void setSSAOParameters()
Definition: GlobeEngineUI.cpp:911
void linkWithTrafficNetwork()
Definition: GlobeEngineUI.cpp:606
void setFDEBProperty(int _property, float _value)
Definition: GlobeEngineUI.cpp:834
bool eventFilter(QObject *obj, QEvent *event)
Definition: GlobeEngineUI.cpp:949
void changeRenderingStates()
Definition: GlobeEngineUI.cpp:255
void setGPUMouseLensCategory(int _input)
Definition: GlobeEngineUI.cpp:928
void dropEvent(QDropEvent *event)
Definition: GlobeEngineUI.cpp:150
void toolbarActionTriggered(QAction *_action)
Definition: GlobeEngineUI.cpp:107
void setItemVisibility(geGIS::ModelLayerSelection _sel, bool _vis)
Definition: GlobeEngineUI.cpp:595
void setCameraVelocity(int _input)
Definition: GlobeEngineUI.cpp:934
void exportGraphData(geGIS::ModelLayerSelection _sel, std::string _path)
Definition: GlobeEngineUI.cpp:201
void setupNetworkQuery(QUrl _url)
Definition: GlobeEngineUI.cpp:754
void setExtrusionY(int _input)
Definition: GlobeEngineUI.cpp:798
Definition: ModelLayer.h:85
void triangulateObject(geGIS::ModelLayerSelection _sel)
Definition: GlobeEngineUI.cpp:193
Definition: LegendPanel.h:14
Definition: OutlinePanel.h:14
void loadObject(std::string _file)
Definition: GlobeEngineUI.cpp:365
void changeTerrainImageLayer(int _index)
Definition: GlobeEngineUI.cpp:602
void setAliasingWeight(int _input)
Definition: GlobeEngineUI.cpp:905
void changeGPUFeatureVisibility()
Definition: GlobeEngineUI.cpp:244
void replyFinished(QNetworkReply *_reply)
Definition: GlobeEngineUI.cpp:765
GlobeEngineGLWidget * getGLWidget()
Definition: GlobeEngineUI.cpp:1039
void setObjectExtrusionXZ(int _input)
Definition: GlobeEngineUI.cpp:806
void visibilityChange(bool _state)
Definition: GlobeEngineUI.cpp:622
Definition: GlobeEngineGLWidget.h:15
~GlobeEngineUI()
Definition: GlobeEngineUI.cpp:102
Definition: TerrainPanel.h:12
void changeViewMenuState()
Definition: GlobeEngineUI.cpp:226
void fixSegmentDistance(bool _in)
Definition: GlobeEngineUI.cpp:942
void changeColor()
Definition: GlobeEngineUI.cpp:278
void dragEnterEvent(QDragEnterEvent *event)
Definition: GlobeEngineUI.cpp:144
void changeTerrainVisibility()
Definition: GlobeEngineUI.cpp:219
void setCommuterObjectMoveFactor(int _input)
Definition: GlobeEngineUI.cpp:1019
void startFDEBCalculation()
Definition: GlobeEngineUI.cpp:898
void updateRasterEdgeTreshold(int _input)
Definition: GlobeEngineUI.cpp:484
void setCommuterObjectIterations(int _input)
Definition: GlobeEngineUI.cpp:1007
Definition: GlobeEngineMenu.h:38
Definition: SimpleQTViewer.h:13
void chooseColorisationForEngine(int _input)
Definition: GlobeEngineUI.cpp:614
Definition: FeaturePanel.h:13
Definition: LoadModelDialog.h:8
void setGPUFeatureRadius(int _input)
Definition: GlobeEngineUI.cpp:915
Definition: GlobeEngineUI.h:29
Ui::GlobeEngineForm * getUI()
Definition: GlobeEngineUI.cpp:1030
void exportGraphRequests(geGIS::ModelLayerSelection _sel, std::string _path)
Definition: GlobeEngineUI.cpp:205
void updateRaster(int _input)
Definition: GlobeEngineUI.cpp:478
void enableAntialiasing(bool _in)
Definition: GlobeEngineUI.cpp:473
GlobeEngineUI(const std::shared_ptr< geGIS::SceneBlueprint > &_scene, GlobeEngineGLWidget *_glWidget, QWidget *parent=0)
Definition: GlobeEngineUI.cpp:17
void changeCameraState()
Definition: GlobeEngineUI.cpp:240