VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIntersectorSettingsWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 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 QCheckBox;
17 class QLabel;
18 class QColor;
19 
20 namespace makVrv
21 {
22  class DtSliderDoubleSpinboxWidget;
23  class DtColorPushButton;
24 
31  {
32  Q_OBJECT
33 
34  public:
35 
38  DtDe& de, QWidget* parent, Qt::WindowFlags flags = Qt::Widget);
39 
41  virtual ~DtIntersectorSettingsWidget();
42 
44  virtual void setIntersectorDrawEnabled( bool enabled );
45 
47  virtual void setIntersectorDrawnDuration( float duration );
48 
50  virtual void setFailedIntersectorColor( const DtColorValue& color );
51 
54  virtual void setOddSegmentIntersectorColor( const DtColorValue& color );
55 
58  virtual void setEvenSegmentIntersectorColor( const DtColorValue& color );
59 
61  virtual void setPaperMapIntersectionOverride( bool enabled );
62 
63  protected slots:
65  virtual void on_intersectorDrawEnabledChanged(int enabled);
67  virtual void on_intersectorDrawnDurationChanged(double duration);
68  virtual void on_failedIntersectorColorValueChanged(const QColor&);
69  virtual void on_oddSegmentIntersectorColorValueChanged(const QColor&);
70  virtual void on_evenIntersectorColorValueChanged(const QColor&);
71  virtual void on_paperMapIntersectionOverrideChanged(int enabled);
72 
73  //XXX Need to figure out colors
74 
76 
78 
79  protected:
80 
83  void setupGui();
84 
87  void connectToSignals();
88 
91  void enableIntersectorParameters( bool enabled );
92  protected:
93 
95 
97 
100 
107 
109 
110  };
111 }
DtColorPushButton * myFailedIntersectorColorPushButton
Definition: DtIntersectorSettingsWidget.h:102
DtIntersectorSettingsWidget implements the DtIntersectorSettingsInterface for Qt. It provides the Qt ...
Definition: DtIntersectorSettingsWidget.h:29
A push-button that displays a current color and pops up a color picker dialog when pressed...
Definition: DtColorPushButton.h:26
DtDe & myDe
Definition: DtIntersectorSettingsWidget.h:94
DtColorPushButton * myOddSegmentIntersectorColorPushButton
Definition: DtIntersectorSettingsWidget.h:104
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
QLabel * myIntersectorDrawnDurationLabel
Definition: DtIntersectorSettingsWidget.h:98
QLabel * myEvenSegmentIntersectorColorLabel
Definition: DtIntersectorSettingsWidget.h:105
This is the interface which the intersector settings widget will inherit from and the logic will use ...
Definition: DtIntersectorSettingsInterface.h:19
DtColorPushButton * myEvenSegmentIntersectorColorPushButton
Definition: DtIntersectorSettingsWidget.h:106
QCheckBox * myPaperMapIntersectionOverride
Definition: DtIntersectorSettingsWidget.h:108
Interface for lighting rendering settings gui.
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
QLabel * myFailedIntersectorColorLabel
Definition: DtIntersectorSettingsWidget.h:101
QCheckBox * myIntersectorDrawEnabledCheckbox
Definition: DtIntersectorSettingsWidget.h:96
QLabel * myOddSegmentIntersectorColorLabel
Definition: DtIntersectorSettingsWidget.h:103
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:72
Template for Color values in [0,1] range.
Definition: DtColorValue.h:20
DtSliderDoubleSpinboxWidget * myIntersectorDrawnDurationSlider
Definition: DtIntersectorSettingsWidget.h:99

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)