VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSceneGraphPage.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 #include <vrvOsgQt/vrvOsgQt.h>
12 #include <vrvCoreQt/DtPage.h>
14 
15 namespace osg
16 {
17  class Node;
18 }
19 
20 class QCheckBox;
21 class QGridLayout;
22 class QPushButton;
23 class QComboBox;
24 class QTreeWidget;
25 class QTreeWidgetItem;
26 class QMenu;
27 class QLineEdit;
28 class QLabel;
29 
30 namespace makVrv
31 {
32 
33  class DtSceneGraphTreeLogic;
34 
39  {
40  Q_OBJECT
41 
42  public:
43 
45  DtSceneGraphPage(DtDe& de, QWidget* pParent = 0);
46 
48  virtual ~DtSceneGraphPage();
49 
51  virtual void clear();
52 
54  virtual bool insertTreeWidgetItem(QTreeWidgetItem* pItem,
55  QTreeWidgetItem* pParent);
56 
58  virtual QTreeWidgetItem* rootItem();
59 
61  virtual QIcon icon();
62 
65  virtual DtQIconConfigurations qIconConfigurations() const;
66 
68  virtual QString title();
69 
71  virtual const std::string& pageClassName() const;
72 
73  protected slots:
74 
75  void updateSize();
76  void refresh();
77  void expandAll();
78  void findPrevious();
79  void findNext();
80  void contextMenuAt(const QPoint& point);
81 
82  protected:
83 
84  void setupGui();
85  void tearDownGui();
86 
88  virtual void activate();
89 
91  virtual void deactivate();
92 
93  protected:
94 
95  std::string myClassName;
97  QGridLayout* myLayout;
109  };
110 
114  {
115  public:
118 
120  virtual ~DtSceneGraphPageCreator();
121 
125  virtual std::string pageClassName() const;
126 
128  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
129 
130  };
131 
132 }
std::string myClassName
Definition: DtSceneGraphPage.h:95
Contains makVrv::DtPage class.
This creator is responsible for creating the makVrv::DtSceneGraphPage.
Definition: DtSceneGraphPage.h:113
QPushButton * myExpandAllButton
Definition: DtSceneGraphPage.h:100
The page creator. This class should be extended by all page classes.
Definition: DtPage.h:121
QPushButton * myFindNextButton
Definition: DtSceneGraphPage.h:103
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
QComboBox * myRootSelector
Definition: DtSceneGraphPage.h:106
QPushButton * myRefreshButton
Definition: DtSceneGraphPage.h:99
QCheckBox * myResizeBox
Definition: DtSceneGraphPage.h:105
Contains DLL export macros.
QTreeWidget * myTreeWidget
Definition: DtSceneGraphPage.h:98
Logic for scene graph tree display widget.
Definition: DtSceneGraphTreeLogic.h:256
The scene graph page displays the scene graph in a page.
Definition: DtSceneGraphPage.h:37
QMenu * myContextMenu
Definition: DtSceneGraphPage.h:108
QLabel * mySearchStatusText
Definition: DtSceneGraphPage.h:101
DtSceneGraphTreeLogic * myLogic
Definition: DtSceneGraphPage.h:107
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
QGridLayout * myLayout
Definition: DtSceneGraphPage.h:97
QLineEdit * mySearchTextField
Definition: DtSceneGraphPage.h:102
QPushButton * myFindPrevButton
Definition: DtSceneGraphPage.h:104
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:70
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition: DtQIconConfiguration.h:75
bool myExpandingAll
Definition: DtSceneGraphPage.h:96
Interface to a widget that displays the scene graph as a tree.
Definition: DtSceneGraphTreeWidgetInterface.h:22

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)