VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ElementInspectorPage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvCoreQt/DtPage.h>
12 
15 #include <matrix/vlVector.h>
16 
17 class QGridLayout;
18 class QLabel;
19 class QComboBox;
20 class QTimer;
21 
22 namespace makVrv
23 {
24  class DtElementEntry;
25 
26  namespace vrvExampleDisplayUnitsPlugin
27  {
28 
32  class ElementInspectorPage : public DtPage, public DtDeObserver
33  {
34  Q_OBJECT;
35  public:
38  ElementInspectorPage(DtDe& de,QWidget* parent = 0, Qt::WindowFlags f = 0);
39 
41  virtual ~ElementInspectorPage();
42 
44  virtual QIcon icon();
45 
47  virtual QString title();
48 
50  virtual const std::string& pageClassName() const;
51 
53  static const std::string& thePageClassName();
54 
55  protected slots:
56 
58  void onCurrentElementIdChanged(int index);
59 
62 
63  protected:
64 
65  void setupGui();
66 
68  virtual void activate();
69 
71  virtual void deactivate();
72 
74  virtual void slot_activate(DtDe* de);
75 
77  virtual void slot_deactivate(DtDe* de);
78 
82  void selectionChanged(const DtSelectionManager::IdSet& selected,
83  const DtSelectionManager::IdSet& deselected,
86 
89 
92 
94  void updateElementType( DtElementEntry* entry ) ;
95 
99 
100  protected:
101 
103  QGridLayout* myMainLayout;
106 
109 
113 
117 
118  QTimer* myRefreshTimer;
119  };
120 
122  }
123 }
QComboBox * myIdBox
Definition: ElementInspectorPage.h:105
Contains makVrv::DtSubjectObserver class.
Contains makVrv::DtPage class.
virtual const std::string & pageClassName() const
Get the class name of the page.
void updateElementPosition(DtElementEntry *entry)
Update the element position label.
DtPageCreatorTemplate< ElementInspectorPage > ElementInspectorPageCreator
Definition: ElementInspectorPage.h:121
Contains makVrv:DtSelectionManager class.
ElementInspectorPage(DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
The DtPage should not populate itself automatically.
QLabel * myYLabel
Definition: ElementInspectorPage.h:111
virtual QString title()
Get the title of the page.
void updateElementType(DtElementEntry *entry)
Update the element type label.
QLabel * myIdLabel
Definition: ElementInspectorPage.h:104
DtElementEntry holds the non-simulation-specific data about an element, including its element type an...
Definition: DtElementEntry.h:22
Definition: DtPage.h:143
virtual void slot_activate(DtDe *de)
Called when the display engine is done initializing.
QLabel * myZValue
Definition: ElementInspectorPage.h:116
void onRefreshElementDisplay()
Called by a timer ever so often to update the element display.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:27
void updateElementParameters(DtElementEntry *entry)
Update all of the element parameters.
void selectionChanged(const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected, DtSelectionManager::SelectionType newType, DtSelectionManager::SelectionType oldType)
Selection changed called when the selected elements in the scene changes.
The ElementInspectorPage displays information about the currently selected elements.
Definition: ElementInspectorPage.h:32
virtual void activate()
Called when the page is displayed.
QLabel * myZLabel
Definition: ElementInspectorPage.h:112
void onCurrentElementIdChanged(int index)
Called when the current elemment id in the combo box is changed.
virtual void deactivate()
Called when the page is hidden.
DtVector getPosition(DtElementEntry *entry)
Get the local position for the entry.
QLabel * myTypeLabel
Definition: ElementInspectorPage.h:107
QGridLayout * myMainLayout
Definition: ElementInspectorPage.h:103
QLabel * myXLabel
Definition: ElementInspectorPage.h:110
QLabel * myTypeValue
Definition: ElementInspectorPage.h:108
SelectionType
The nature of the current selection.
Definition: DtSelectionManager.h:42
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual QIcon icon()
Get the icon of the page.
QLabel * myXValue
Definition: ElementInspectorPage.h:114
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
virtual void slot_deactivate(DtDe *de)
Called when the display engine is destroyed.
QLabel * myYValue
Definition: ElementInspectorPage.h:115
DtSignalConnectionManager mySignals
Definition: ElementInspectorPage.h:102
QTimer * myRefreshTimer
Definition: ElementInspectorPage.h:118
static const std::string & thePageClassName()
Get the class name of this page class.

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)