VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSceneGraphTreeWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 #include <vrvCoreQt/DtPage.h>
11 
12 #if !defined(Q_MOC_RUN)
13 #include <vrvOsgQt/vrvOsgQt.h>
16 #endif
17 
18 #include <QtWidgets/QTreeWidget>
19 
20 namespace osg
21 {
22  class Node;
23 }
24 
25 class QTreeWidgetItem;
26 class QPushButton;
27 class QCheckBox;
28 
29 namespace makVrv
30 {
31  class DtVrvApplication;
32  class DtQtDeMainWindow;
33 
38  {
39 
40  Q_OBJECT
41 
42  public:
43 
45  virtual ~DtSceneGraphTreeWidget();
46 
48  virtual QIcon icon();
49 
52  virtual DtQIconConfigurations qIconConfigurations() const;
53 
55  virtual QString title();
56 
58  virtual const std::string& pageClassName() const;
59 
61  virtual void clear();
62 
64  virtual bool insertTreeWidgetItem(QTreeWidgetItem* pItem,
65  QTreeWidgetItem* pParent);
66 
68  virtual QTreeWidgetItem* rootItem();
69 
71  virtual void onActivate();
72 
74  virtual void onDeactivate();
75 
76  protected slots:
77 
78  void updateSize();
79  void refresh();
80  void expandAll();
81 
82  protected:
83 
86 
88  DtSceneGraphTreeWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
89 
91  virtual void activate();
92 
94  virtual void deactivate();
95 
96  virtual void showEvent(QShowEvent *);
97 
98  void setupGui();
99 
100  protected:
101 
102  std::string myClassName;
108  };
109 
113  {
114  public:
115 
118 
121 
125  virtual std::string pageClassName() const;
126 
128  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
129  };
130 
131 }
132 
133 
134 
Contains makVrv::DtPage class.
The page creator. This class should be extended by all page classes.
Definition: DtPage.h:121
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
Contains DLL export macros.
QTreeWidget * myTreeWidget
Definition: DtSceneGraphTreeWidget.h:103
Logic for scene graph tree display widget.
Definition: DtSceneGraphTreeLogic.h:256
std::string myClassName
Definition: DtSceneGraphTreeWidget.h:102
QPushButton * myRefreshButton
Definition: DtSceneGraphTreeWidget.h:104
QCheckBox * myResizeBox
Definition: DtSceneGraphTreeWidget.h:106
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
Qt implementation of scene graph tree interface.
Definition: DtSceneGraphTreeWidget.h:36
QPushButton * myExpandAllButton
Definition: DtSceneGraphTreeWidget.h:105
The creator class needed to be used to create a DtOverlaysPage.
Definition: DtSceneGraphTreeWidget.h:112
DtSceneGraphTreeLogic * myLogic
Definition: DtSceneGraphTreeWidget.h:107
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
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)