VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDynamicTerrainPage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsgQt/vrvOsgQt.h>
13 #include <vrvCoreQt/DtPage.h>
15 
16 #include <QtCore/QModelIndex>
17 
18 class QCheckBox;
19 class QGridLayout;
20 class QPushButton;
21 class QTreeWidget;
22 class QTreeWidgetItem;
23 class QTreeView;
24 class QThread;
25 class QSortFilterProxyModel;
26 class QMenu;
27 
28 namespace makVrv
29 {
30  class DtDynamicTerrainPageLogic;
31 
35  : public DtPage
37  {
38  Q_OBJECT
39 
40  public:
41 
43  DtDynamicTerrainPage(DtDe& de, QWidget* pParent = 0);
44 
45  virtual ~DtDynamicTerrainPage();
46 
47  virtual void executeInNewThread(const boost::function<void ()>& callback);
48 
50  virtual QIcon icon();
51 
53  virtual QString title();
54 
56  virtual const std::string& pageClassName() const;
57 
58  virtual const std::string& className();
59 
60  protected slots:
61  void selectIndex(const QModelIndex&);
62 
63  void updateSize();
64  void expandAll();
65  void contextMenuAt(const QPoint&);
66 
67  protected:
68 
69  void setupGui();
70  void tearDownGui();
71 
73  virtual void activate();
74 
76  virtual void deactivate();
77 
78  protected:
79 
80  std::string myClassName;
81 
85  QGridLayout* myLayout;
87 
88  QSortFilterProxyModel* myProxyModel;
89  boost::shared_ptr<DtDynamicTerrainPageLogic> myLogic;
90 
91  class EventProcessor;
92  friend class EventProcessor;
93  EventProcessor* myEventProcessor;
94  };
95 
99  {
100  public:
103 
107  virtual std::string pageClassName() const;
108 
110  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
111 
112  };
113 
114 }
QCheckBox * myResizeBox
Definition: DtDynamicTerrainPage.h:84
Contains makVrv::DtPage class.
The scene graph page displays the scene graph in a page.
Definition: DtDynamicTerrainPage.h:34
The page creator.
Definition: DtPage.h:114
QSortFilterProxyModel * myProxyModel
Definition: DtDynamicTerrainPage.h:88
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
Interface to a widget that displays the scene graph as a tree.
Definition: DtDynamicTerrainPageInterface.h:25
Contains DLL export macros.
QPushButton * myExpandAllButton
Definition: DtDynamicTerrainPage.h:83
EventProcessor * myEventProcessor
Definition: DtDynamicTerrainPage.h:93
boost::shared_ptr< DtDynamicTerrainPageLogic > myLogic
Definition: DtDynamicTerrainPage.h:89
QTreeView * myTreeView
Definition: DtDynamicTerrainPage.h:82
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:27
QGridLayout * myLayout
Definition: DtDynamicTerrainPage.h:85
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::string myClassName
Definition: DtDynamicTerrainPage.h:80
QMenu * myContextMenu
Definition: DtDynamicTerrainPage.h:86
This creator is responsible for creating the makVrv::DtDynamicTerrainPage.
Definition: DtDynamicTerrainPage.h:98

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)