VR-Forces Developer's Guide
 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) 2021 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:
95 
100  };
101 
106  {
107  Q_OBJECT
108 
109  public:
111  DtGroundClampingSliderWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 );
112 
114  virtual ~DtGroundClampingSliderWidget();
115 
116  public:
118  void setupGui();
119 
121  virtual int maxValue();
122 
124  virtual int minValue();
125 
126  public slots:
128  void setValue( int value );
129 
130  signals:
132  void valueChanged( int );
133 
134  protected:
136  };
137 
141  {
142  public:
143 
146  virtual QWidget* create( DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
147  };
148 }
Definition: DtGroundClampingWidgetInterface.h:17
DtGroundClampingSliderWidget * mySliderWidget
Definition: DtGroundClampingWidget.h:97
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:140
bool mySliderWidgetShown
Definition: DtGroundClampingWidget.h:99
#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 *)
For Display Engine subject observer.
Definition: DtGroundClampingWidget.h:80
QSlider * myGroundClampingFactorSlider
Definition: DtGroundClampingWidget.h:135
A simple slider widget that combines the slider with a text label, for use by the DtGroundClampingWid...
Definition: DtGroundClampingWidget.h:105
DtPopupToolbar * mySliderToolBar
Definition: DtGroundClampingWidget.h:98
DtGroundClampingLogic * myLogic
Definition: DtGroundClampingWidget.h:94
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
A wrapper class for toolbar widgets.
Definition: DtToolbarWidget.h:39
DtPopupToolbarButton * mySliderEnableButton
Definition: DtGroundClampingWidget.h:96
This class is the generic builder base class for building a widget.
Definition: DtWidgetBuilder.h:22

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)