VR-Forces 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) 2024 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 
17 
18 namespace osg
19 {
20  class Node;
21 }
22 
23 class QCheckBox;
24 class QGridLayout;
25 class QPushButton;
26 class QComboBox;
27 class QTreeWidget;
28 class QTreeWidgetItem;
29 class QMenu;
30 class QLineEdit;
31 class QLabel;
32 
33 namespace makVrv
34 {
35 
36  class DtSceneGraphTreeLogic;
37 
42  {
43  Q_OBJECT
44 
45  public:
46 
48  DtSceneGraphPage(DtDe& de, QWidget* pParent = 0);
49 
51  virtual ~DtSceneGraphPage();
52 
54  virtual void clear();
55 
57  virtual bool insertTreeWidgetItem(QTreeWidgetItem* pItem,
58  QTreeWidgetItem* pParent);
59 
61  virtual QTreeWidgetItem* rootItem();
62 
64  virtual QIcon icon();
65 
68  virtual DtQIconConfigurations qIconConfigurations() const;
69 
71  virtual QString title();
72 
74  virtual const std::string& pageClassName() const;
75 
76  protected slots:
77 
78  void updateSize();
79  void refresh();
80  void expandAll();
81  void findPrevious();
82  void findNext();
83  void contextMenuAt(const QPoint& point);
84  void slot_visualizeNodeBounds();
85  void slot_visualizeLods();
86  void slot_treeCurrentItemChanged(QTreeWidgetItem* currentItem, QTreeWidgetItem* previousItem);
87 
88  protected:
89 
90  void slot_displayEnginePostInitialize();
91  void slot_modelSetVisualized(DtModelSetId, bool);
92 
93  void setupGui();
94  void tearDownGui();
95 
97  virtual void activate();
98 
100  virtual void deactivate();
101 
102  protected:
103 
105 
106  std::string myClassName;
108  QGridLayout* myLayout;
122  };
123 
127  {
128  public:
131 
133  virtual ~DtSceneGraphPageCreator();
134 
138  virtual std::string pageClassName() const;
139 
141  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
142 
143  };
144 
145 }
DtSignalConnectionManager myModelSetRealizedConnection
Definition: DtSceneGraphPage.h:104
std::string myClassName
Definition: DtSceneGraphPage.h:106
Contains makVrv::DtPage class declaration.
This creator is responsible for creating the makVrv::DtSceneGraphPage.
Definition: DtSceneGraphPage.h:126
QPushButton * myExpandAllButton
Definition: DtSceneGraphPage.h:111
The page creator. This class should be extended by all page classes.
Definition: DtPage.h:152
QPushButton * myFindNextButton
Definition: DtSceneGraphPage.h:114
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
QComboBox * myRootSelector
Definition: DtSceneGraphPage.h:117
QPushButton * myRefreshButton
Definition: DtSceneGraphPage.h:110
QCheckBox * myResizeBox
Definition: DtSceneGraphPage.h:116
Contains DLL export macros.
QTreeWidget * myTreeWidget
Definition: DtSceneGraphPage.h:109
Logic for scene graph tree display widget.
Definition: DtSceneGraphTreeLogic.h:234
The scene graph page displays the scene graph in a page.
Definition: DtSceneGraphPage.h:40
QMenu * myContextMenu
Definition: DtSceneGraphPage.h:119
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
QLabel * mySearchStatusText
Definition: DtSceneGraphPage.h:112
DtSceneGraphTreeLogic * myLogic
Definition: DtSceneGraphPage.h:118
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:51
QCheckBox * myVisualizeLodsBox
Definition: DtSceneGraphPage.h:121
Base class to provide boost signal/slot management.
QGridLayout * myLayout
Definition: DtSceneGraphPage.h:108
QLineEdit * mySearchTextField
Definition: DtSceneGraphPage.h:113
QPushButton * myFindPrevButton
Definition: DtSceneGraphPage.h:115
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:76
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition: DtQIconConfiguration.h:131
bool myExpandingAll
Definition: DtSceneGraphPage.h:107
DtModelSetId
Definition: DtModelSetEnums.h:19
QCheckBox * myVisualizeNodeBoundsBox
Definition: DtSceneGraphPage.h:120
Interface to a widget that displays the scene graph as a tree.
Definition: DtSceneGraphTreeWidgetInterface.h:22

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)