SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
SideWindow.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
5  * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
6  */
7 
8 #ifndef SIDEWINDOW_H
9 #define SIDEWINDOW_H
10 
11 #include <QtWidgets/QMainWindow>
12 
13 #include <QAbstractItemModel>
14 
15 namespace Ui
16 {
17  class SideWindow;
18 }
19 
20 namespace Urho3D
21 {
22  class Node;
23  class Scene;
24  class StaticModel;
25  class Vector3;
26  class Drawable;
27 }
28 namespace SEGS
29 {
30 struct SceneNode;
31 struct SceneGraph;
32 struct Model;
33 struct RootNode;
34 }
35 
36 class MapViewerApp;
37 
38 class SideWindow : public QMainWindow
39 {
40  Q_OBJECT
41 
42 public:
43  explicit SideWindow(QWidget *parent = nullptr);
44  ~SideWindow();
45  void setMapViewer(MapViewerApp *mapview);
46 protected:
47  void changeEvent(QEvent *e);
48 signals:
49  void scenegraphSelected(const QString &path);
50  void nodeSelected(SEGS::SceneNode *n);
51  void nodeDisplayRequest(SEGS::SceneNode *n,bool isroot);
52  void refDisplayRequest(SEGS::RootNode *n,bool show_all);
53 public slots:
54  void onCameraPositionChanged(float x,float y,float z);
55  void onModelSelected(SEGS::SceneNode *n, SEGS::Model *m, Urho3D::Drawable*d);
56  void onScenegraphLoaded(const SEGS::SceneGraph &sc);
57 private slots:
58  void on_actionLoad_Scene_Graph_triggered();
59  void on_actionSet_data_paths_triggered();
60  void on_nodeList_clicked(const QModelIndex &index);
61  void on_nodeList_doubleClicked(const QModelIndex &index);
62 private:
63  MapViewerApp *m_map_viewer;
64  Ui::SideWindow *ui;
65  QAbstractItemModel *m_model;
66 };
67 
68 #endif // SIDEWINDOW_H
Definition: CohModelConverter.h:20
Definition: Model.h:88
Definition: DataPathsDialog.h:13
Definition: seq_definitions.h:37
Definition: MapViewerApp.h:30
Definition: SideWindow.h:38
Definition: SceneGraph.h:42
Definition: SceneGraph.h:88
Definition: SceneGraph.h:95