VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTrackHistorySettingsWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2020 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <QtWidgets/QWidget>
15 
16 class QLabel;
17 class QSlider;
18 class QSpinBox;
19 class QCheckBox;
20 class QDoubleSpinBox;
21 
22 namespace makVrv
23 {
24  class DtDe;
25  class DtSliderDoubleSpinboxWidget;
26  class DtSliderSpinboxWidget;
27 
31  : public QWidget, public DtTrackHistorySettingsInterface
32  { Q_OBJECT;
33  public:
34 
36  DtTrackHistorySettingsWidget( DtDe& de, QWidget* parent,
37  Qt::WindowFlags f = Qt::Widget );
38 
41 
42  private:
49 
50  public:
53 
55  virtual int trackHistoryRibbonLength() const;
56 
58  virtual void setTrackHistoryRibbonLength( int maxSamples );
59 
61  virtual void setTrackHistoryRibbonLengthRange(int min, int max, int step);
62 
64  virtual float trackHistoryRibbonTimeout() const;
65 
67  virtual void setTrackHistoryRibbonTimeout(float duration);
68 
70  virtual void setTrackHistoryRibbonTimeoutRange(float min, float max, float step);
71 
73  virtual float trackHistoryRibbonSpacing() const;
74 
76  virtual void setTrackHistoryRibbonSpacing( float spacing );
77 
79  virtual bool trackHistoryRibbonInfinite() const;
80 
82  virtual void setTrackHistoryRibbonInfinite( bool isInfinite );
83 
85 
88  virtual void setLengthSliderDisabled( bool disabled );
89 
92  virtual void setTimeoutSliderDisabled(bool disabled);
93 
94  protected slots:
95 
98 
100  void slot_onTrackHistoryRibbonLengthChanged( int maxSamples );
101 
103  void slot_onTrackHistoryRibbonTimeoutChanged(double duration);
104 
106  void slot_onTrackHistoryRibbonSpacingChanged( double spacing );
107 
109  void slot_onTrackHistoryRibbonInfiniteChanged( int checkedState );
110 
112 
113  protected:
114 
117  void setupGui();
118 
121  void connectToSignals();
122 
123  protected:
124 
129 
132 
134 
135  };
136 
137 }
A widget for pairing a horizontal slider with a spinbox. The spin box must be clamped to a min and ma...
Definition: DtSliderSpinboxWidget.h:30
QLabel * myTimeoutLabel
Definition: DtTrackHistorySettingsWidget.h:127
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
DtSliderSpinboxWidget * myLengthSlider
Definition: DtTrackHistorySettingsWidget.h:126
Contains DLL export macros.
DtSliderDoubleSpinboxWidget * myTimeoutSlider
Definition: DtTrackHistorySettingsWidget.h:128
DtDe & myDe
Definition: DtTrackHistorySettingsWidget.h:133
QDoubleSpinBox * mySpacingSpinBox
Definition: DtTrackHistorySettingsWidget.h:131
A widget for pairing a horizontal slider with a double spin-box. The spin box must be clamped to a mi...
Definition: DtSliderDoubleSpinboxWidget.h:30
Interface for the track history settings widget.
QLabel * myLengthLabel
Definition: DtTrackHistorySettingsWidget.h:125
This widget contains fields for configuring track histories.
Definition: DtTrackHistorySettingsWidget.h:30
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:70
Interface for the track history settings widget. Used by the logic to communicate with the widget...
Definition: DtTrackHistorySettingsInterface.h:22
QCheckBox * myInfiniteCheckBox
Definition: DtTrackHistorySettingsWidget.h:130

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)