VR-Forces 4.10 Class Documentation
 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) 2007 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 
51  virtual QString title();
52 
54  virtual const std::string& pageClassName() const;
55 
57  virtual void clear();
58 
60  virtual bool insertTreeWidgetItem(QTreeWidgetItem* pItem,
61  QTreeWidgetItem* pParent);
62 
64  virtual QTreeWidgetItem* rootItem();
65 
67  virtual void onActivate();
68 
70  virtual void onDeactivate();
71 
72  protected slots:
73 
74  void updateSize();
75  void refresh();
76  void expandAll();
77 
78  protected:
79 
82 
84  DtSceneGraphTreeWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
85 
87  virtual void activate();
88 
90  virtual void deactivate();
91 
92  virtual void showEvent(QShowEvent *);
93 
94  void setupGui();
95 
96  protected:
97 
98  std::string myClassName;
104  };
105 
109  {
110  public:
111 
114 
117 
121  virtual std::string pageClassName() const;
122 
124  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
125  };
126 
127 }
128 
129 
130 
Contains makVrv::DtPage class.
The page creator.
Definition: DtPage.h:114
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
Contains DLL export macros.
QTreeWidget * myTreeWidget
Definition: DtSceneGraphTreeWidget.h:99
Logic for scene graph tree display widget.
Definition: DtSceneGraphTreeLogic.h:256
std::string myClassName
Definition: DtSceneGraphTreeWidget.h:98
QPushButton * myRefreshButton
Definition: DtSceneGraphTreeWidget.h:100
QCheckBox * myResizeBox
Definition: DtSceneGraphTreeWidget.h:102
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:27
Qt implementation of scene graph tree interface.
Definition: DtSceneGraphTreeWidget.h:36
QPushButton * myExpandAllButton
Definition: DtSceneGraphTreeWidget.h:101
The creator class needed to be used to create a DtOverlaysPage.
Definition: DtSceneGraphTreeWidget.h:108
DtSceneGraphTreeLogic * myLogic
Definition: DtSceneGraphTreeWidget.h:103
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Interface to a widget that displays the scene graph as a tree.
Definition: DtSceneGraphTreeWidgetInterface.h:22

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)