VR-Forces 4.10 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) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
13 
16 
18 
19 #include <QtWidgets/QWidget>
20 
21 class QToolButton;
22 class QSlider;
23 
24 namespace makVrv
25 {
26  class DtGroundClampingSliderWidget;
27  class DtPopupToolbarButton;
28  class DtPopupToolbar;
29  class DtGroundClampingLogic;
30 
36  : public DtToolbarWidget
38  {
39  Q_OBJECT;
40 
41  public:
43  DtGroundClampingWidget( DtDe& de, QWidget * parent = 0, Qt::WindowFlags f = 0 );
44 
46  virtual ~DtGroundClampingWidget();
47 
48  private:
52 
56 
60 
61  public:
63  void setupGui();
64 
67  virtual void setEnabled( bool b );
68 
70  virtual void setValue( bool b );
71 
74  virtual void setGroundClampingFactor( int factor );
75 
76  protected:
79  virtual void slot_activate( DtDe* subject );
80  virtual void slot_deactivate( DtDe* ) {}
82 
83  protected slots:
85  virtual void on_groundClampingScaleSliderChanged( int );
86 
91  virtual void on_toolButtonClicked(bool checked);
92 
93  protected:
96 
101  };
102 
107  {
108  Q_OBJECT
109 
110  public:
112  DtGroundClampingSliderWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 );
113 
115  virtual ~DtGroundClampingSliderWidget();
116 
117  public:
119  void setupGui();
120 
122  virtual int maxValue();
123 
125  virtual int minValue();
126 
127  public slots:
129  void setValue( int value );
130 
131  signals:
133  void valueChanged( int );
134 
135  protected:
137  };
138 
142  {
143  public:
144 
147  virtual QWidget* create( DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
148  };
149 }
Definition: DtGroundClampingWidgetInterface.h:17
DtGroundClampingSliderWidget * mySliderWidget
Definition: DtGroundClampingWidget.h:98
Contains makVrv::DtWidgetBuilder class.
The DtPopupToolbarButton class is a toolbar which controls the display of a toolbar.
Definition: DtPopupToolbarButton.h:24
Logic to manage the Observer Mode Selection Widget.
Definition: DtGroundClampingLogic.h:28
DtGroundClampingWidget is a toolbar widget that combines a button to enable and disable model scaling...
Definition: DtGroundClampingWidget.h:35
Contains makVrv::DtGroundClampingWidgetInterface class.
This builder class creates and instance of the DtGroundClampingWidget class.
Definition: DtGroundClampingWidget.h:141
bool mySliderWidgetShown
Definition: DtGroundClampingWidget.h:100
#define DT_DLL_VRVVRLQT
Definition: vrvVrlQt.h:19
The DtPopupToolbar class provides a toolbar can be easily shown and hidden.
Definition: DtPopupToolbar.h:22
virtual void slot_deactivate(DtDe *)
Definition: DtGroundClampingWidget.h:80
QSlider * myGroundClampingFactorSlider
Definition: DtGroundClampingWidget.h:136
A simple slider widget that combines the slider with a text label, for use by the DtGroundClampingWid...
Definition: DtGroundClampingWidget.h:106
DtPopupToolbar * mySliderToolBar
Definition: DtGroundClampingWidget.h:99
DtDe & myDe
Definition: DtGroundClampingWidget.h:94
DtGroundClampingLogic * myLogic
Definition: DtGroundClampingWidget.h:95
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
A wrapper class for toolbar widgets.
Definition: DtToolbarWidget.h:39
DtPopupToolbarButton * mySliderEnableButton
Definition: DtGroundClampingWidget.h:97
This class is the generic builder base class for building a widget.
Definition: DtWidgetBuilder.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)