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) 2023 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 
85  protected:
86 
87  void slot_displayEnginePostInitialize();
88  void slot_modelSetVisualized(DtModelSetId, bool);
89 
90  void setupGui();
91  void tearDownGui();
92 
94  virtual void activate();
95 
97  virtual void deactivate();
98 
99  protected:
100 
102 
103  std::string myClassName;
105  QGridLayout* myLayout;
117  };
118 
122  {
123  public:
126 
128  virtual ~DtSceneGraphPageCreator();
129 
133  virtual std::string pageClassName() const;
134 
136  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
137 
138  };
139 
140 }
DtSignalConnectionManager myModelSetRealizedConnection
Definition: DtSceneGraphPage.h:101
std::string myClassName
Definition: DtSceneGraphPage.h:103
Contains makVrv::DtPage class.
This creator is responsible for creating the makVrv::DtSceneGraphPage.
Definition: DtSceneGraphPage.h:121
QPushButton * myExpandAllButton
Definition: DtSceneGraphPage.h:108
The page creator. This class should be extended by all page classes.
Definition: DtPage.h:121
QPushButton * myFindNextButton
Definition: DtSceneGraphPage.h:111
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
QComboBox * myRootSelector
Definition: DtSceneGraphPage.h:114
QPushButton * myRefreshButton
Definition: DtSceneGraphPage.h:107
QCheckBox * myResizeBox
Definition: DtSceneGraphPage.h:113
Contains DLL export macros.
QTreeWidget * myTreeWidget
Definition: DtSceneGraphPage.h:106
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:116
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
QLabel * mySearchStatusText
Definition: DtSceneGraphPage.h:109
DtSceneGraphTreeLogic * myLogic
Definition: DtSceneGraphPage.h:115
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
Base class to provide boost signal/slot management.
QGridLayout * myLayout
Definition: DtSceneGraphPage.h:105
QLineEdit * mySearchTextField
Definition: DtSceneGraphPage.h:110
QPushButton * myFindPrevButton
Definition: DtSceneGraphPage.h:112
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
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition: DtQIconConfiguration.h:131
bool myExpandingAll
Definition: DtSceneGraphPage.h:104
DtModelSetId
Definition: DtModelSetEnums.h:19
Interface to a widget that displays the scene graph as a tree.
Definition: DtSceneGraphTreeWidgetInterface.h:22

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)