VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGroundClampingWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtGroundClampingWidget.h,v $ $Revision: 1.22 $ $State: Exp $
7 ******************************************************************************/
8 
14 
15 #pragma once
16 
19 
20 #include <QtWidgets/QWidget>
21 
22 class QToolButton;
23 class QSlider;
24 
25 namespace makVrv
26 {
27  class DtGroundClampingSliderWidget;
28  class DtPopupToolbarButton;
29  class DtPopupToolbar;
30  class DtGroundClampingLogic;
31 
37  : public QWidget
39  {
40  Q_OBJECT;
41 
42  public:
43 
45  DtGroundClampingWidget( DtDe& de, QWidget * parent = 0, Qt::WindowFlags f = 0 );
46 
48  virtual ~DtGroundClampingWidget();
49 
52  virtual void setEnabled( bool b );
53 
55  virtual void setValue( bool b );
56 
59  virtual void setGroundClampingFactor( int factor );
60 
61  protected:
63  void setupGui();
64 
65  // For Display Engine subject observer
66  virtual void slot_activate( DtDe* subject );
67  virtual void slot_deactivate( DtDe* ) {}
68 
69  protected slots:
70 
72  virtual void on_groundClampingToggleClicked();
73  virtual void on_groundClampingScaleSliderChanged( int );
74 
75  protected:
78 
84  };
85 
90  {
91  Q_OBJECT
92 
93  public:
94 
95  // constructor
96  DtGroundClampingSliderWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 );
97 
99 
100  virtual int maxValue();
101 
102  virtual int minValue();
103 
104  public slots:
105 
106  void setValue( int value );
107 
108  signals:
109  void valueChanged( int );
110 
111  protected:
112  void setupGui();
113 
114  protected:
116  };
117 
121  {
122  public:
123 
126  virtual QWidget* create( DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
127  };
128 }
Definition: DtGroundClampingWidgetInterface.h:20
DtGroundClampingSliderWidget * mySliderWidget
Definition: DtGroundClampingWidget.h:81
Contains makVrv::DtWidgetBuilder class.
The DtPopupToolbarButton class is a toolbar which controls the display of a toolbar.
Definition: DtPopupToolbarButton.h:27
Logic to manage the Observer Mode Selection Widget.
Definition: DtGroundClampingLogic.h:31
DtGroundClampingWidget is a toolbar widget that combines a button to enable and disable model scaling...
Definition: DtGroundClampingWidget.h:36
Contains makVrv::DtGroundClampingWidgetInterface class.
This builder class creates and instance of the DtEntityIconScaleWidget class.
Definition: DtGroundClampingWidget.h:120
bool mySliderWidgetShown
Definition: DtGroundClampingWidget.h:83
#define DT_DLL_VRVVRLQT
Definition: vrvVrlQt.h:19
The DtPopupToolbar class provides a toolbar can be easily shown and hidden.
Definition: DtPopupToolbar.h:25
virtual void slot_deactivate(DtDe *)
Definition: DtGroundClampingWidget.h:67
QSlider * myGroundClampingFactorSlider
Definition: DtGroundClampingWidget.h:115
A simple slider widget that combines the slider with a text label, for use by the DtGroundClampingWid...
Definition: DtGroundClampingWidget.h:89
DtPopupToolbar * mySliderToolBar
Definition: DtGroundClampingWidget.h:82
QToolButton * myGroundClampingToolButton
Definition: DtGroundClampingWidget.h:79
DtDe & myDe
Definition: DtGroundClampingWidget.h:76
DtGroundClampingLogic * myLogic
Definition: DtGroundClampingWidget.h:77
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtPopupToolbarButton * mySliderEnableButton
Definition: DtGroundClampingWidget.h:80
This class is the generic builder base class for building a widget.
Definition: DtWidgetBuilder.h:25

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)