VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
DtUiAutoTargetSelectionElement Class Reference
Inheritance diagram for DtUiAutoTargetSelectionElement:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtUiAutoTargetSelectionElement (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
 Constructor.
virtual ~DtUiAutoTargetSelectionElement ()
 Destructor.
 DtUiAutoTargetSelectionElement (const DtUiAutoTargetSelectionElement &orig)
 Copy constructor.
DtUiAutoTargetSelectionElement & operator= (const DtUiAutoTargetSelectionElement &orig)
 Assignment operator.
virtual void objectParametersModified ()
 Calls updateWeaponConnections() and updateSensorConnections().
virtual QWidget * createControls (QWidget *parent)

Protected Member Functions

virtual const
DtComponentSystemDefinition * 
lookupSystemDefinition (const DtComponentSystemDescriptor *descriptor)
virtual QWidget * createDataEntryElement (QWidget *)
virtual bool updateSensorConnections ()
 Checks and updates connections with sensors on the entity.
virtual bool checkExistingSensorConnection (const DtSymbolString &weaponName, const DtDetectObjectTypesMetaDataEntry *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 &weaponName, const DtDetectObjectTypesMetaDataEntry *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 DtComponentDescriptor * findOrCreateControllerDescriptor ()
 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 DtUiElement * clone ()
virtual void setFromParameters (DtReaderWriter *parentRw)
virtual
DtReaderWriterRegistryData * 
value (DtReaderWriter *parentRw)
 Seeds myValue and myBackupValue if not set.

Protected Attributes

QLabel * myInfoLabel
DtConnectionDescriptorList * myConnectionList
DtVrfObjectParameters * myObjectParameters
DtComponentDescriptor * myControllerDesc

Constructor & Destructor Documentation

Constructor.

Destructor.

Copy constructor.


Member Function Documentation

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

Assignment operator.

Calls updateWeaponConnections() and updateSensorConnections().

Reimplemented from DtUiElement.

Returns:
Null.

Reimplemented from DtUiElement.

Reimplemented from DtUiElement.

Checks and updates connections with sensors on the entity.

Returns:
True if any changes are made.
virtual bool DtUiAutoTargetSelectionElement::checkExistingSensorConnection ( const DtSymbolString &  weaponName,
const DtDetectObjectTypesMetaDataEntry *  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 DtUiAutoTargetSelectionElement::addConnectionToSensor ( const DtSymbolString &  weaponName,
const DtDetectObjectTypesMetaDataEntry *  detectEntry 
) [protected, virtual]

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

virtual bool DtUiAutoTargetSelectionElement::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 DtUiAutoTargetSelectionElement::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* DtUiAutoTargetSelectionElement::clone ( ) [protected, virtual]

Implements DtUiElement.

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

Reimplemented from DtUiElement.

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)