VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
forceSelectionEntryWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
16 
17 #include <QtWidgets/QWidget>
18 
19 class QLabel;
20 class QComboBox;
21 class QHBoxLayout;
22 class QSpacerItem;
23 
24 namespace makVrv
25 {
26  class DtDe;
27 }
28 
29 namespace makVrf
30 {
33  {
34  Q_OBJECT
35 
36  public:
37  DtForceSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
38 
39  //DTOR
40  virtual ~DtForceSelectionEntryWidget();
41 
43  virtual void setLabel(const QString&);
44  virtual QString label() const;
45 
47  virtual void setLabel(const std::string&);
48 
50  virtual void setRange(double bottom, double top);
51 
54  virtual void setDefaultValue(const std::string&);
55 
57  virtual void setVariableData(const std::string&);
58 
60  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data);
61 
63  virtual void setToolTip(const QString&);
64 
66  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
67 
69  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
70 
72  virtual void setForce(int);
73 
75  virtual int force() const;
76 
78  virtual void setIndent(int);
79 
81  virtual bool isValid() const
82  {
83  return true;
84  }
85 
86  static makVrv::DtUnicode codeVariableType()
87  {
88  return makVrv::DtUnicode::tr("Integer (force type)");
89  }
90 
91  static std::string designerGroup()
92  {
93  return tr("VR-Forces Entity Manipulation").toUtf8().constData();
94  }
95 
96  static std::string headerFile()
97  {
98  return tr("<vrfGuiCoreQt/forceSelectionEntryWidget.h>").toUtf8().constData();
99  }
100 
101  static std::string variableName()
102  {
103  return tr("forceSelection").toUtf8().constData();
104  }
105 
106  static bool includeInQtDesigner()
107  {
108  return true;
109  }
110 
113  virtual void setApplyGroundTruthFilter(bool);
114  virtual bool applyGroundTruthFilter() const;
115 
116  virtual std::string scriptedTaskVariableName() const;
117 
118  boost::signal<void (int)> signal_forceSelectionChanged;
119 
120  protected slots:
121  virtual void activated(int);
122 
123  protected:
124  virtual void initializeForces();
125  virtual bool forceCanBeCreatedByUser(int f) const;
126  virtual void slot_spotReportOptionsChanged(const DtVrfSpotReportsSettingsRecord& s);
127 
129  virtual std::string variableDataFromUiDesigner(const QDomElement&, const DtScriptedTaskVariableLayoutConverter&) const
130  {
131  return "";
132  }
133 
134  public:
137  QHBoxLayout* myContentLayout;
138  QSpacerItem* mySpacerItem;
139 
140  protected:
143  std::map<int, std::string> myPotentialForces;
145  };
146 
148 }

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)