![]() |
VR-Forces 4.0.4 Class Documentation
|

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 > ¤tSensors) |
| 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 |
| DtUiAutoTargetSelectionElement::DtUiAutoTargetSelectionElement | ( | const DtString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
Constructor.
| virtual DtUiAutoTargetSelectionElement::~DtUiAutoTargetSelectionElement | ( | ) | [virtual] |
Destructor.
| DtUiAutoTargetSelectionElement::DtUiAutoTargetSelectionElement | ( | const DtUiAutoTargetSelectionElement & | orig | ) |
Copy constructor.
| DtUiAutoTargetSelectionElement& DtUiAutoTargetSelectionElement::operator= | ( | const DtUiAutoTargetSelectionElement & | orig | ) |
Assignment operator.
| virtual void DtUiAutoTargetSelectionElement::objectParametersModified | ( | ) | [virtual] |
Calls updateWeaponConnections() and updateSensorConnections().
Reimplemented from DtUiElement.
| virtual QWidget* DtUiAutoTargetSelectionElement::createControls | ( | QWidget * | parent | ) | [virtual] |
Reimplemented from DtUiElement.
| virtual const DtComponentSystemDefinition* DtUiAutoTargetSelectionElement::lookupSystemDefinition | ( | const DtComponentSystemDescriptor * | descriptor | ) | [protected, virtual] |
| virtual QWidget* DtUiAutoTargetSelectionElement::createDataEntryElement | ( | QWidget * | ) | [protected, virtual] |
Reimplemented from DtUiElement.
| virtual bool DtUiAutoTargetSelectionElement::updateSensorConnections | ( | ) | [protected, virtual] |
Checks and updates connections with sensors on the entity.
| 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.
| virtual DtComponentDescriptor* DtUiAutoTargetSelectionElement::findOrCreateControllerDescriptor | ( | ) | [protected, virtual] |
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.
| virtual DtReaderWriterRegistryData* DtUiAutoTargetSelectionElement::value | ( | DtReaderWriter * | parentRw | ) | [protected, virtual] |
Seeds myValue and myBackupValue if not set.
Returns myValue based on myReaderWriterName
Reimplemented from DtUiElement.
QLabel* DtUiAutoTargetSelectionElement::myInfoLabel [protected] |