VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiSensorSignaturesElement.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 #if !defined(Q_MOC_RUN)
15 #include <readerWriter/rwReal.h>
16 #endif
17 
18 class DtUiRealElement;
20 class QComboBox;
21 class QLabel;
22 class QHBoxLayout;
23 class QGridLayout;
24 
27 {
28  Q_OBJECT
29 
30 public:
31 
34 
36  virtual ~DtUiSensorSignaturesElement();
37 
39 
40 public:
41  virtual void createControls(QWidget*);
42  virtual void setEnabled(bool);
43 
44 protected:
45  virtual void decorateElement();
46  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
47  virtual DtUiRealElement* addSignature(const QString& title, DtRwReal*, DtRwReal*);
48  virtual void setModified(QWidget* l, bool modified);
49  virtual void sensorSignatureChanged(DtUiElement*);
50  virtual void setStandardObjectSelectionBasedOnSignatures();
51 
52 protected slots:
53 
55  virtual void standardObjectChanged();
56 
57  virtual void revertButtonClicked();
58 
59 protected:
60  //the first real is the current data, the second is the original
61  typedef std::pair<DtRwReal*, DtRwReal*> DataElements;
62  typedef std::map<DtUiRealElement*, DataElements> SensorSignatures;
64 
67 
70 
73 
74  QGridLayout* myParentLayout;
75 
76 };
std::map< DtUiRealElement *, DataElements > SensorSignatures
Definition: uiSensorSignaturesElement.h:62
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.
A RW container class holding signature data for a single sensor domain.
Definition: rwSensorSignature.h:23
std::pair< DtRwReal *, DtRwReal * > DataElements
Definition: uiSensorSignaturesElement.h:61
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:185
DtSensorSignatureInformation myDefaultSensorSignatures
Definition: uiSensorSignaturesElement.h:69
virtual void decorateElement()
Sets element decoration depending on the isModified state of the element. This version changes myLabe...
QGridLayout * myParentLayout
Definition: uiSensorSignaturesElement.h:74
QComboBox * myStandardObjects
Definition: uiSensorSignaturesElement.h:65
DtSensorSignatureInformation mySensorSignatureInformation
Definition: uiSensorSignaturesElement.h:68
For validation, add lower_bound and upper_bound and decimals properties to set a lower and upper boun...
Definition: uiRealElement.h:18
QLabel * myStandardObjectsLabel
Definition: uiSensorSignaturesElement.h:66
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual void setEnabled(bool)
If this item is not enabled it cannot be modified.
SensorSignatures mySensorSignatures
Definition: uiSensorSignaturesElement.h:63
DtSensorSignatureInformation myParentSensorSignatureInformation
Definition: uiSensorSignaturesElement.h:72
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
Class that will keep track of all sensor signature information.
Definition: sensorSignatureInformation.h:17
bool myHasParent
Definition: uiSensorSignaturesElement.h:71
Sensor signatures element. Define the default-signatures property (string) to define default signatur...
Definition: uiSensorSignaturesElement.h:26
#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:180

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)