![]() |
VR-Forces 4.0.4 Class Documentation
|
UI Element for specifying a body position on an entity. More...

Public Member Functions | |
| DtUiPositionElement (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| Constructor. | |
| virtual | ~DtUiPositionElement () |
| Destructor. | |
| DtUiPositionElement (const DtUiPositionElement &orig) | |
| Copy constructor. | |
| DtUiPositionElement & | operator= (const DtUiPositionElement &orig) |
| Assignment operator. | |
| virtual QWidget * | createLabelWidget (QWidget *parent) |
| Create and return the label widget for this element. | |
| virtual QWidget * | createControls (QWidget *) |
| Creates and returns the non-label part of the element. | |
| virtual void | setFromParameters (DtReaderWriter *parentRw) |
| virtual const DtString & | parameterName () const |
| virtual const DtString & | relativeTo () const |
| virtual void | processUiEvent (const DtUiElementEvent &) |
| Process ui event. Default does nothing. | |
Protected Types | |
| typedef std::map< DtString, DtVector > | RelativePositions |
Protected Member Functions | |
| virtual void | elementChanged () |
| virtual void | decorateElement () |
| Sets element decoration depending on the isModified state of the element. | |
| virtual void | setModifiedFont (QLabel *l, bool modified) |
| virtual void | setPosition (DtRwVector *sourceVec) |
| virtual void | sendEvent () |
| virtual DtReaderWriterRegistryData * | createBackup (const DtString &backupName) |
| Creates a backup entry in the RW structure for the current value of this element. | |
| virtual DtVector | relativePosition (const DtString &) const |
| virtual void | setFromSystemParameterData (const DtSystemParameterData *data) |
| Sets data of this UiElement from the specified system parameter data. | |
| virtual void | deleteBackup (const DtString &backupName) |
| Deletes backup entries previously created with createBackup, with the specified name. | |
| virtual DtUiElement * | clone () |
Protected Attributes | |
| QDoubleValidator * | myValidator |
| DtRwInt | myDecimals |
| QLabel * | myForwardLabel |
| QLabel * | myRightLabel |
| QLabel * | myUpLabel |
| QLineEdit * | myForwardLineEdit |
| QLineEdit * | myRightLineEdit |
| +X | |
| QLineEdit * | myUpLineEdit |
| +Y | |
| double | myForwardDiff |
| -Z | |
| double | myRightDiff |
| double | myUpDiff |
| DtString | myRelativeTo |
| DtString | myParameterName |
| RelativePositions | myRelativePositions |
| bool | mySendingEvent |
UI Element for specifying a body position on an entity.
Fills is a DtVector.
typedef std::map<DtString, DtVector> DtUiPositionElement::RelativePositions [protected] |
| DtUiPositionElement::DtUiPositionElement | ( | const DtString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
Constructor.
| virtual DtUiPositionElement::~DtUiPositionElement | ( | ) | [virtual] |
Destructor.
| DtUiPositionElement::DtUiPositionElement | ( | const DtUiPositionElement & | orig | ) |
Copy constructor.
| DtUiPositionElement& DtUiPositionElement::operator= | ( | const DtUiPositionElement & | orig | ) |
Assignment operator.
| virtual QWidget* DtUiPositionElement::createLabelWidget | ( | QWidget * | parent | ) | [inline, virtual] |
Create and return the label widget for this element.
May return NULL if not special label element is needed.
Reimplemented from DtUiElement.
| virtual QWidget* DtUiPositionElement::createControls | ( | QWidget * | parent | ) | [virtual] |
Creates and returns the non-label part of the element.
Reimplemented from DtUiFrameElement.
Reimplemented in DtUiLoadPositionElement.
| virtual void DtUiPositionElement::setFromParameters | ( | DtReaderWriter * | parentRw | ) | [virtual] |
Reimplemented from DtUiElement.
| virtual const DtString& DtUiPositionElement::parameterName | ( | ) | const [virtual] |
| virtual const DtString& DtUiPositionElement::relativeTo | ( | ) | const [virtual] |
| virtual void DtUiPositionElement::processUiEvent | ( | const DtUiElementEvent & | ) | [virtual] |
Process ui event. Default does nothing.
Reimplemented from DtUiElement.
| virtual void DtUiPositionElement::elementChanged | ( | ) | [protected, virtual] |
Reimplemented from DtUiElement.
| virtual void DtUiPositionElement::decorateElement | ( | ) | [protected, virtual] |
Sets element decoration depending on the isModified state of the element.
This version changes myLabel font.
Reimplemented from DtUiFrameElement.
| virtual void DtUiPositionElement::setModifiedFont | ( | QLabel * | l, |
| bool | modified | ||
| ) | [protected, virtual] |
| virtual void DtUiPositionElement::setPosition | ( | DtRwVector * | sourceVec | ) | [protected, virtual] |
| virtual void DtUiPositionElement::sendEvent | ( | ) | [protected, virtual] |
| virtual DtReaderWriterRegistryData* DtUiPositionElement::createBackup | ( | const DtString & | backupName | ) | [protected, virtual] |
Creates a backup entry in the RW structure for the current value of this element.
The backup is named with the specified name.
Reimplemented from DtUiElement.
| virtual DtVector DtUiPositionElement::relativePosition | ( | const DtString & | ) | const [protected, virtual] |
| virtual void DtUiPositionElement::setFromSystemParameterData | ( | const DtSystemParameterData * | data | ) | [protected, virtual] |
Sets data of this UiElement from the specified system parameter data.
Sets things like sourceUnits, displayUnits, etc.
Reimplemented from DtUiElement.
| virtual void DtUiPositionElement::deleteBackup | ( | const DtString & | backupName | ) | [protected, virtual] |
Deletes backup entries previously created with createBackup, with the specified name.
Reimplemented from DtUiElement.
| virtual DtUiElement* DtUiPositionElement::clone | ( | ) | [protected, virtual] |
Reimplemented from DtUiFrameElement.
QDoubleValidator* DtUiPositionElement::myValidator [protected] |
DtRwInt DtUiPositionElement::myDecimals [protected] |
QLabel* DtUiPositionElement::myForwardLabel [protected] |
QLabel* DtUiPositionElement::myRightLabel [protected] |
QLabel* DtUiPositionElement::myUpLabel [protected] |
QLineEdit* DtUiPositionElement::myForwardLineEdit [protected] |
QLineEdit* DtUiPositionElement::myRightLineEdit [protected] |
+X
QLineEdit* DtUiPositionElement::myUpLineEdit [protected] |
+Y
double DtUiPositionElement::myForwardDiff [protected] |
-Z
double DtUiPositionElement::myRightDiff [protected] |
double DtUiPositionElement::myUpDiff [protected] |
DtString DtUiPositionElement::myRelativeTo [protected] |
DtString DtUiPositionElement::myParameterName [protected] |
bool DtUiPositionElement::mySendingEvent [protected] |