VR-Forces 4.8 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 /******************************************************************************
6 ** $RCSfile: DtSceneGraphTreeWidget.h,v $ $Revision: 1.27 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #pragma once
13 #include <vrvCoreQt/DtPage.h>
14 
15 #if !defined(Q_MOC_RUN)
16 #include <vrvOsgQt/vrvOsgQt.h>
19 #endif
20 
21 #include <QtWidgets/QTreeWidget>
22 
23 namespace osg
24 {
25  class Node;
26 }
27 
28 class QTreeWidgetItem;
29 class QPushButton;
30 class QCheckBox;
31 
32 namespace makVrv
33 {
34  class DtVrvApplication;
35  class DtQtDeMainWindow;
36 
41  {
42 
43  Q_OBJECT
44 
45  public:
46 
48  virtual ~DtSceneGraphTreeWidget();
49 
51  virtual QIcon icon();
52 
54  virtual QString title();
55 
57  virtual const std::string& pageClassName() const;
58 
60  virtual void clear();
61 
63  virtual bool insertTreeWidgetItem(QTreeWidgetItem* pItem,
64  QTreeWidgetItem* pParent);
65 
67  virtual QTreeWidgetItem* rootItem();
68 
70  virtual void onActivate();
71 
73  virtual void onDeactivate();
74 
75  protected slots:
76 
77  void updateSize();
78  void refresh();
79  void expandAll();
80 
81  protected:
82 
85 
87  DtSceneGraphTreeWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
88 
90  virtual void activate();
91 
93  virtual void deactivate();
94 
95  virtual void showEvent(QShowEvent *);
96 
97  void setupGui();
98 
99  protected:
100 
101  std::string myClassName;
107  };
108 
112  {
113  public:
114 
117 
120 
124  virtual std::string pageClassName() const;
125 
127  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
128  };
129 
130 }
131 
132 
133 
Contains makVrv::DtPage class.
The page creator.
Definition: DtPage.h:117
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
Contains DLL export macros.
QTreeWidget * myTreeWidget
Definition: DtSceneGraphTreeWidget.h:102
Logic for scene graph tree display widget.
Definition: DtSceneGraphTreeLogic.h:256
std::string myClassName
Definition: DtSceneGraphTreeWidget.h:101
QPushButton * myRefreshButton
Definition: DtSceneGraphTreeWidget.h:103
QCheckBox * myResizeBox
Definition: DtSceneGraphTreeWidget.h:105
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:39
QPushButton * myExpandAllButton
Definition: DtSceneGraphTreeWidget.h:104
The creator class needed to be used to create a DtOverlaysPage.
Definition: DtSceneGraphTreeWidget.h:111
DtSceneGraphTreeLogic * myLogic
Definition: DtSceneGraphTreeWidget.h:106
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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)