VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sensorContactLinesOptionsWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvUtil/signalslib.h>
14 
15 #include <QtWidgets/QWidget>
16 
17 class QVBoxLayout;
18 class QCheckBox;
19 class QGroupBox;
20 class QHBoxLayout;
21 class QPushButton;
22 class QGridLayout;
23 class QLabel;
24 class QSpinBox;
25 
29 
30 namespace makVrv
31 {
32  class DtDe;
33  class DtPersistenceControlsInterface;
34 }
35 
36 namespace makVrf
37 {
38  class DtSensorContactLinesOptionsWidget;
39  class DtSensorContactLinesSettingsRecord;
40 
42  {
43  public:
47 
50 
51  protected: //Receive boost signals from interface class
52  virtual void on_colorChanged(QColor color);
53 
54  virtual void on_showForSelectedChanged(bool);
55  virtual void on_lineWidthChanged(double);
56  virtual void on_arrowSizeChanged(double);
57  virtual void on_showArrowChanged(bool);
58 
59  protected:
60  virtual void setupFromOptions(const DtSensorContactLinesSettingsRecord&);
61 
63  virtual void on_import();
64  virtual void on_export();
65  virtual void on_defaultsRestored();
66  virtual void on_importFilePathChosen(const std::string& filePath);
67  virtual void on_exportFilePathChosen(const std::string& filePath);
68 
69  protected:
74  };
75 
77  {
78  Q_OBJECT
79 
80  public:
81 
83  DtSensorContactLinesOptionsWidget(makVrv::DtDe& de, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0 );
84 
87 
88  //Accessors & mutators for dialog elements
89  virtual void setShowForSelected(bool);
90  virtual bool showForSelected() const;
91 
92  virtual void setColor(const QColor&);
93  virtual const QColor& color() const;
94 
95  virtual void setLineWidth(double);
96  virtual double lineWidth() const;
97 
98  virtual void setArrowSize(double);
99  virtual double arrowSize() const;
100 
101  virtual void setShowArrow(bool);
102  virtual bool showArrow() const;
103 
104  protected:
105 
106  void setupGui();
107 
108  protected slots: //Qt slots used as intermediaries between Qt signals and Boost signal classes
109 
110  virtual void on_colorChanged();
111  virtual void on_showForSelectedChanged();
112  virtual void on_lineWidthChanged();
113  virtual void on_arrowSizeChanged();
114  virtual void on_showArrowChanged();
115 
116  //Used to re-emit QT signals up to logic class
117  public:
118  boost::signal<void ( QColor)> signal_colorChanged;
119  boost::signal<void (bool)> signal_showForSelectedChanged;
120  boost::signal<void (double)> signal_lineWidthChanged;
121  boost::signal<void (double)> signal_arrowSizeChanged;
122  boost::signal<void (bool)> signal_showArrowChanged;
123 
124  private:
127 
130 
131  public:
138 
141  QGridLayout* myMainLayout;
142 
143  protected:
146  };
147 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)