VR-Forces Developer's Guide
 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) 2021 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 
54  virtual DtQIconConfigurations qIconConfigurations() const;
55 
57  virtual QString title();
58 
60  virtual const std::string& pageClassName() const;
61 
62  virtual const std::string& className();
63 
64  protected slots:
65  void selectIndex(const QModelIndex&);
66 
67  void updateSize();
68  void expandAll();
69  void contextMenuAt(const QPoint&);
70 
71  protected:
72 
73  void setupGui();
74  void tearDownGui();
75 
77  virtual void activate();
78 
80  virtual void deactivate();
81 
82  protected:
83 
84  std::string myClassName;
85 
89  QGridLayout* myLayout;
91 
92  QSortFilterProxyModel* myProxyModel;
93  boost::shared_ptr<DtDynamicTerrainPageLogic> myLogic;
94 
95  class EventProcessor;
96  friend class EventProcessor;
97  EventProcessor* myEventProcessor;
98  };
99 
103  {
104  public:
107 
111  virtual std::string pageClassName() const;
112 
114  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
115 
116  };
117 
118 }
QCheckBox * myResizeBox
Definition: DtDynamicTerrainPage.h:88
Contains makVrv::DtPage class.
The scene graph page displays the scene graph in a page.
Definition: DtDynamicTerrainPage.h:34
The page creator. This class should be extended by all page classes.
Definition: DtPage.h:121
QSortFilterProxyModel * myProxyModel
Definition: DtDynamicTerrainPage.h:92
#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:87
EventProcessor * myEventProcessor
Definition: DtDynamicTerrainPage.h:97
boost::shared_ptr< DtDynamicTerrainPageLogic > myLogic
Definition: DtDynamicTerrainPage.h:93
QTreeView * myTreeView
Definition: DtDynamicTerrainPage.h:86
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
QGridLayout * myLayout
Definition: DtDynamicTerrainPage.h:89
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
std::string myClassName
Definition: DtDynamicTerrainPage.h:84
QMenu * myContextMenu
Definition: DtDynamicTerrainPage.h:90
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition: DtQIconConfiguration.h:131
This creator is responsible for creating the makVrv::DtDynamicTerrainPage.
Definition: DtDynamicTerrainPage.h:102

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)