VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtModelScaleWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtModelScaleWidget.h,v $ $Revision: 1.22 $ $State: Exp $
7 ******************************************************************************/
8 
14 
15 #pragma once
16 
17 #include <vrvCoreQt/vrvCoreQt.h>
18 
19 #if !defined(Q_MOC_RUN)
23 #endif
24 
25 #include <QtWidgets/QWidget>
26 
27 class QToolButton;
28 class QSlider;
29 
30 namespace makVrv
31 {
32  class DtModelScaleSliderWidget;
33  class DtPopupToolbarButton;
34  class DtPopupToolbar;
35  class DtModelScaleWidgetLogic;
36 
42  : public QWidget
44  , public DtDeObserver
45  {
46  Q_OBJECT
47 
48  public:
49 
51  DtModelScaleWidget( DtDe& de, QWidget * parent = 0, Qt::WindowFlags f = 0 );
52 
54  virtual ~DtModelScaleWidget();
55 
58  virtual void setEnabled( bool b );
59 
60 
62  virtual void setValue( bool b );
63 
66  virtual void setModelScaleFactor( int factor );
67 
69  virtual void setMaxModelScaleFactor( int maxModelScaleFactor );
70 
71  protected:
73  void setupGui();
74 
75  // For Display Engine subject observer
76  virtual void slot_activate( DtDe* subject );
77  virtual void slot_deactivate( DtDe* ) {}
78 
79  protected slots:
80 
82  virtual void on_modelScaleToggleClicked();
83  virtual void on_modelScaleSliderChanged( int );
84 
85  protected:
88 
94  };
95 
100  {
101  Q_OBJECT
102 
103  public:
104 
105  // constructor
106  DtModelScaleSliderWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 );
107 
108  virtual ~DtModelScaleSliderWidget();
109 
110  public slots:
111 
112  void setValue( int value );
113 
115  void setMaxModelScaleFactor( int maxModelScaleFactor );
116 
117  signals:
118  void valueChanged( int );
119 
120  protected:
121  void setupGui();
122 
123  protected:
125  };
126 
130  {
131  public:
132 
134  virtual ~DtModelScaleWidgetBuilder();
135  virtual QWidget* create( DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
136  };
137 }
DtModelScaleWidget is a toolbar widget that combines a button to enable and disable model scaling...
Definition: DtModelScaleWidget.h:41
QToolButton * myModelScaleToolButton
Definition: DtModelScaleWidget.h:89
A simple slider widget that combines the slider with a text label, for use by the DtModelScaleWidget...
Definition: DtModelScaleWidget.h:99
DtPopupToolbar * mySliderToolBar
Definition: DtModelScaleWidget.h:92
Contains makVrv::DtWidgetBuilder class.
Contains makVrv::DtSubjectObserver class.
The DtPopupToolbarButton class is a toolbar which controls the display of a toolbar.
Definition: DtPopupToolbarButton.h:27
QSlider * myModelScaleFactorSlider
Definition: DtModelScaleWidget.h:124
DtModelScaleSliderWidget * mySliderWidget
Definition: DtModelScaleWidget.h:91
virtual void slot_deactivate(DtDe *)
Definition: DtModelScaleWidget.h:77
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Interface of the makVrv::DtModelScaleWidget for the makVrv::DtModelScaleLogic.
Definition: DtModelScaleWidgetInterface.h:22
Contains makVrv::DtModelScaleWidgetInterface class.
Contains DLL export macros.
The DtPopupToolbar class provides a toolbar can be easily shown and hidden.
Definition: DtPopupToolbar.h:25
Logic to manage the Observer Mode Selection Widget.
Definition: DtModelScaleWidgetLogic.h:30
DtDe & myDe
Definition: DtModelScaleWidget.h:86
DtModelScaleWidgetLogic * myLogic
Definition: DtModelScaleWidget.h:87
DtPopupToolbarButton * mySliderEnableButton
Definition: DtModelScaleWidget.h:90
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
This builder class creates and instance of the DtEntityIconScaleWidget class.
Definition: DtModelScaleWidget.h:129
bool mySliderWidgetShown
Definition: DtModelScaleWidget.h:93
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)