VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtUiPositionElement Class Reference

UI Element for specifying a body position on an entity. More...

Inheritance diagram for DtUiPositionElement:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtUiPositionElement (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
 Constructor.
virtual ~DtUiPositionElement ()
 Destructor.
 DtUiPositionElement (const DtUiPositionElement &orig)
 Copy constructor.
DtUiPositionElementoperator= (const DtUiPositionElement &orig)
 Assignment operator.
virtual QWidgetcreateLabelWidget (QWidget *parent)
 Create and return the label widget for this element.
virtual QWidgetcreateControls (QWidget *)
 Creates and returns the non-label part of the element.
virtual void setFromParameters (DtReaderWriter *parentRw)
virtual const DtStringparameterName () const
virtual const DtStringrelativeTo () 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 DtUiElementclone ()

Protected Attributes

QDoubleValidator * myValidator
DtRwInt myDecimals
QLabelmyForwardLabel
QLabelmyRightLabel
QLabelmyUpLabel
QLineEditmyForwardLineEdit
QLineEditmyRightLineEdit
 +X
QLineEditmyUpLineEdit
 +Y
double myForwardDiff
 -Z
double myRightDiff
double myUpDiff
DtString myRelativeTo
DtString myParameterName
RelativePositions myRelativePositions
bool mySendingEvent

Detailed Description

UI Element for specifying a body position on an entity.

Fills is a DtVector.


Member Typedef Documentation


Constructor & Destructor Documentation

DtUiPositionElement::DtUiPositionElement ( const DtString name,
DtReaderWriterRegistry *const  parentRegistry = NULL 
)

Constructor.

Destructor.

Copy constructor.


Member Function Documentation

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.

Returns:
The pointer to the backup RW entry.

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.


Member Data Documentation

QDoubleValidator* DtUiPositionElement::myValidator [protected]

+X

+Y

-Z

double DtUiPositionElement::myUpDiff [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)