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

UI Element which automatically adds a DtContactFusionController to the entity if there are any sensor sources for the controller. More...

Inheritance diagram for DtUiAutoContactFusionElement:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtUiAutoContactFusionElement (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
 Constructor.
virtual ~DtUiAutoContactFusionElement ()
 Destructor.
 DtUiAutoContactFusionElement (const DtUiAutoContactFusionElement &orig)
 Copy constructor.
DtUiAutoContactFusionElementoperator= (const DtUiAutoContactFusionElement &orig)
 Assignment operator.
virtual void objectParametersModified ()
 Calls updatesensorConnections() and updateSensorConnections().
virtual QWidgetcreateControls (QWidget *parent)
 Creates and returns the non-label part of the element.

Protected Member Functions

virtual const
DtComponentSystemDefinition
lookupSystemDefinition (const DtComponentSystemDescriptor *descriptor)
virtual QWidgetcreateDataEntryElement (QWidget *)
virtual bool updateSensorConnections ()
 Checks and updates connections with sensors on the entity.
virtual bool checkExistingSensorConnection (const DtSymbolString &sensorName, const DtDetectedObjectsMetaDataEntry *detectEntry) const
 Checks for an existing connection from the target selection controller to the specified sensor and returns true if it is present.
virtual void addConnectionToSensor (const DtSymbolString &sensorName, const DtDetectedObjectsMetaDataEntry *detectEntry)
 Adds a new connection from the controller to the specified sensor using the specified criteria.
virtual bool removeOldSensorConnections (const std::list< DtSymbolString > &currentSensors)
 Goes though the sensors currently listed in the descriptor and removes any that does appear in the currentSensors list.
virtual DtComponentDescriptorfindOrCreateControllerDescriptor ()
 Looks up the target selection controller in the current parameters and returns it.
virtual void updateDisplayLabel ()
 Updates the label displayed on the GUI with the current info about the controller.
virtual DtUiElementclone ()
virtual void setFromParameters (DtReaderWriter *parentRw)
virtual
DtReaderWriterRegistryData
value (DtReaderWriter *parentRw)
 Seeds myValue and myBackupValue if not set.

Protected Attributes

QLabelmyInfoLabel
DtComponentDescriptormyControllerDesc
DtConnectionDescriptorListmyConnectionList
DtVrfObjectParametersmyObjectParameters

Detailed Description

UI Element which automatically adds a DtContactFusionController to the entity if there are any sensor sources for the controller.


Constructor & Destructor Documentation

Constructor.

Destructor.

Copy constructor.


Member Function Documentation

DtUiAutoContactFusionElement& DtUiAutoContactFusionElement::operator= ( const DtUiAutoContactFusionElement orig)

Assignment operator.

Calls updatesensorConnections() and updateSensorConnections().

Reimplemented from DtUiElement.

Creates and returns the non-label part of the element.

Reimplemented from DtUiElement.

Reimplemented from DtUiElement.

Checks and updates connections with sensors on the entity.

Returns:
True if any changes are made.
virtual bool DtUiAutoContactFusionElement::checkExistingSensorConnection ( const DtSymbolString sensorName,
const DtDetectedObjectsMetaDataEntry detectEntry 
) const [protected, virtual]

Checks for an existing connection from the target selection controller to the specified sensor and returns true if it is present.

virtual void DtUiAutoContactFusionElement::addConnectionToSensor ( const DtSymbolString sensorName,
const DtDetectedObjectsMetaDataEntry detectEntry 
) [protected, virtual]

Adds a new connection from the controller to the specified sensor using the specified criteria.

virtual bool DtUiAutoContactFusionElement::removeOldSensorConnections ( const std::list< DtSymbolString > &  currentSensors) [protected, virtual]

Goes though the sensors currently listed in the descriptor and removes any that does appear in the currentSensors list.

Returns:
True if any changes are made.

Looks up the target selection controller in the current parameters and returns it.

If it is not found, one is created, set to read only, added to the controller list and returned.

virtual void DtUiAutoContactFusionElement::updateDisplayLabel ( ) [protected, virtual]

Updates the label displayed on the GUI with the current info about the controller.

Should be called after every change to the controller.

virtual DtUiElement* DtUiAutoContactFusionElement::clone ( ) [protected, virtual]

Implements DtUiElement.

virtual void DtUiAutoContactFusionElement::setFromParameters ( DtReaderWriter parentRw) [protected, virtual]

Reimplemented from DtUiElement.

virtual DtReaderWriterRegistryData* DtUiAutoContactFusionElement::value ( DtReaderWriter parentRw) [protected, virtual]

Seeds myValue and myBackupValue if not set.

Returns myValue based on myReaderWriterName

Reimplemented from DtUiElement.


Member Data Documentation


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)