VR-Forces 4.1 Class Documentation
uiPositionElement.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: uiPositionElement.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef uiPositionElement_h
15 #define uiPositionElement_h
16 
18 #include "vrfutil/rwInt.h"
19 #include "vrfutil/rwReal.h"
20 
21 #include <matrix/vlVector.h>
22 
23 class QDoubleValidator;
24 class QLineEdit;
25 class QLabel;
26 class DtRwVector;
27 
30 
32 
34 {
35 public:
36 
39  (
40  const DtString& name,
41  DtReaderWriterRegistry* const parentRegistry = NULL
42  );
43 
45  virtual ~DtUiPositionElement();
46 
49 
52 
53  virtual QWidget* createLabelWidget(QWidget* parent) {return 0;};
54  virtual QWidget* createControls(QWidget*);
55  virtual void setFromParameters(DtReaderWriter* parentRw);
56 
57  virtual const DtString& parameterName() const;
58  virtual const DtString& relativeTo() const;
59  virtual void processUiEvent(const DtUiElementEvent&);
60 
61 protected:
62  virtual void elementChanged();
63  virtual void decorateElement();
64 
65  virtual void setModifiedFont(QLabel* l, bool modified);
66  virtual void setPosition(DtRwVector* sourceVec);
67 
68  virtual void sendEvent();
69 
70  virtual DtReaderWriterRegistryData* createBackup(const DtString& backupName);
71 
72  virtual DtVector relativePosition(const DtString&) const;
73  virtual void setFromSystemParameterData(const DtSystemParameterData* data);
74 
75  virtual void deleteBackup(const DtString& backupName);
76 
77 protected:
78  virtual DtUiElement* clone();
79 
80 protected:
81  QDoubleValidator* myValidator;
82 
90  double myForwardDiff;
91  double myRightDiff;
92  double myUpDiff;
93 
96 
97  typedef std::map<DtString, DtVector> RelativePositions;
99 
101 };
102 
103 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)