VR-Forces 4.2 Class Documentation
ElementInspectorPage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvCoreQt/DtPage.h>
12 
13 #include <vrvCore/DtSelectionManager.h>
14 #include <vrvCore/DtSubjectObserver.h>
15 
16 class QGridLayout;
17 class QLabel;
18 class QComboBox;
19 class QTimer;
20 class DtVector;
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,
84  DtSelectionManager::SelectionType newType,
85  DtSelectionManager::SelectionType oldType);
86 
88  void updateElementParameters(DtElementEntry* entry);
89 
91  void updateElementPosition( DtElementEntry* entry );
92 
94  void updateElementType( DtElementEntry* entry ) ;
95 
98  DtVector getPosition( DtElementEntry* entry );
99 
102  std::string getElementName( DtElementEntry * entry );
103 
104  protected:
105 
106  DtSignalConnectionManager mySignals;
107  QGridLayout* myMainLayout;
108  QLabel* myIdLabel;
110 
111  QLabel* myTypeLabel;
112  QLabel* myTypeValue;
113 
114  QLabel* myXLabel;
115  QLabel* myYLabel;
116  QLabel* myZLabel;
117 
118  QLabel* myXValue;
119  QLabel* myYValue;
120  QLabel* myZValue;
121 
122  QTimer* myRefreshTimer;
123  };
124 
125  typedef DtPageCreatorTemplate<ElementInspectorPage> ElementInspectorPageCreator;
126  }
127 }

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)