VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiVectorElement.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2020 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
13 #include <matrix/vlVector.h>
14 
15 class QLayout;
16 class QLineEdit;
17 class QSpinBox;
18 class QDoubleSpinBox;
19 
20 class QScroller;
21 class QGridLayout;
22 class QDoubleValidator;
23 class QFrame;
24 class QSpinbox;
25 class QDoubleSpinBox;
26 
27 class DtSliderSpinboxWidget;
28 
29 
33 {
34  Q_OBJECT
35 public:
36 
39 
41  virtual ~DtUiVectorElement() override;
42 
44 
45  virtual void setSingleRowLabel(const QString&);
46  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
47 
48  virtual void setEnabled(bool) override;
49 
50  virtual void setValue(const DtVector&);
51 
52  virtual void setMinimumValues(double m);
53  virtual void setMaximumValues(double m);
54  virtual void setStep(double m);
55 
56 protected:
57  virtual void createControls(QWidget*) override;
58  virtual void updateLabelTitle() override;
59  virtual bool allXValuesTheSame() const;
60  virtual bool allYValuesTheSame() const;
61  virtual bool allZValuesTheSame() const;
62 
63 protected:
64  virtual void decorateElement() override;
65  virtual void elementChanged() override;
66  virtual void setModified(QWidget* l, bool modified);
67 
68  virtual bool inGridLayout() const;
69  virtual QLayout* gridLayout() const;
70  virtual int gridRowPosition() const;
71  virtual QString labelTitle() const override;
72 
73  virtual void setBlockSignals(bool block);
74  virtual void updatedIncrement();
75 
76 protected slots:
77  virtual void revertButtonClicked();
78 
79 public:
80  QLayout* myLayout;
81  QGridLayout* myMultiLineDataLayout;
82 
83  QWidget* myContainer;
84 
87 
90 
93 
95 
96 protected:
100  QDoubleValidator* myValidator;
102 };
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
virtual void setFromParameters(DtReaderWriter *parentRw)
Calls setFromParameters with std::vector of parameter.
bool myInParentGridLayout
Definition: uiVectorElement.h:98
QDoubleSpinBox * myX
Definition: uiVectorElement.h:86
QDoubleSpinBox * myY
Definition: uiVectorElement.h:89
QWidget * myContainer
Definition: uiVectorElement.h:83
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:190
virtual void elementChanged()
QGridLayout * myMultiLineDataLayout
Definition: uiVectorElement.h:81
virtual void decorateElement()
Sets element decoration depending on the isModified state of the element. This version changes myLabe...
QLayout * myLayout
Definition: uiVectorElement.h:80
QFrame * myLine
Definition: uiVectorElement.h:94
bool mySingleRow
Definition: uiVectorElement.h:101
QDoubleValidator * myValidator
Definition: uiVectorElement.h:100
QString myOriginalSingleLabelTitle
Definition: uiVectorElement.h:97
int myGridRowPosition
Definition: uiVectorElement.h:99
virtual void setEnabled(bool)
If this item is not enabled it cannot be modified.
QLabel * myLocationLabelY
Definition: uiVectorElement.h:88
QDoubleSpinBox * myZ
Definition: uiVectorElement.h:92
Allows the editing of a vector element. Define the property single_row (bool) and check to have all t...
Definition: uiVectorElement.h:32
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:76
QLabel * myLocationLabelX
Definition: uiVectorElement.h:85
virtual QString labelTitle() const
Returns the unmodified label title.
QLabel * myLocationLabelZ
Definition: uiVectorElement.h:91
virtual void updateLabelTitle()
Updates label title based on valid units.
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:185

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)