![]() |
VR-Forces 4.0.4 Class Documentation
|
This class defines the dialog that allows the creation/update of point objects in the scenario (entities, props, waypoints) More...

Public Member Functions | |
| DtPointObjectDefinitionDialog (makVrv::DtDe &de, QWidget *parent, const std::string title="", DtDialogInteractionMode mode=DtCreationMode) | |
| virtual | ~DtPointObjectDefinitionDialog () |
| void | init () |
| virtual void | closeDialog () |
| virtual QString | getName () |
| Returns the point object's name. | |
| virtual double | getHeading () |
| Returns the point object's heading. | |
| virtual DtVector | getLocation () |
| Returns the point object's location. | |
| virtual double | getAltitudeAboveSeaLevel () const |
| virtual double | getAltitudeAboveGroundLevel () const |
| virtual void | setHeading (double heading) |
| Sets the point object's heading. | |
| virtual void | setAltitudeAboveTerrain (double altitude) |
| virtual void | setAltitudeAboveSeaLevel (double altitude) |
| virtual void | setLocation (const DtVector &pt, bool resetAltitude=true) |
| Sets the point object's location. | |
| virtual void | setName (const QString &name) |
| Sets the point object's name. | |
| virtual void | addOverlay (const QString &name) |
| Add an overlay to the object's overlay. | |
| virtual void | removeOverlay (const QString &name) |
| Remove an overlay from the object's overlay. | |
| virtual void | renameOverlay (const QString &oldName, const QString &newName) |
| Rename an overlay int the object's overlay. | |
| virtual void | setOverlay (const QString &name) |
| Sets the point object's overlay. | |
| virtual void | clearOverlays () |
| virtual void | setNameVisible (bool flag) |
| sets the name field to visible | |
| virtual void | setHeadingVisible (bool flag) |
| virtual void | setHeadingDecimalPlaces (int decimalPlaces) |
| Called by DtPointObjectDefinitionDialogLogic::refreshLabels to set the number of decimal places based on the DtSharedDisplayUnitsSettings. | |
| virtual void | setHeadingStep (double) |
| Sets the step value of the heading spin. | |
| virtual void | setAllowOverlaySelection (bool flag) |
| virtual void | setTitle (const QString &title) |
| virtual void | setCreateButtonEnabled (bool flag) |
| Enables/disables the create button. | |
| virtual void | setCreateButtonText (const QString &text) |
| virtual void | setCreateButtonVisible (bool flag) |
| Shows/hides the create button. | |
| virtual void | setUpdateButtonEnabled (bool flag) |
| Enables/disables the update button. | |
| virtual void | setUpdateButtonText (const QString &text) |
| Enables/disables the update button. | |
| virtual void | setUpdateButtonVisible (bool flag) |
| Shows/hides the update button. | |
| virtual void | setCancelButtonEnabled (bool flag) |
| Enables/disables the Done button. | |
| virtual void | setCancelButtonVisible (bool flag) |
| Shows/hides the Done button. | |
| virtual void | setCancelButtonText (const QString &text) |
| virtual void | setAttachObjectToMouseVisible (bool flag) |
| Shows/hides the check to enable/disable the mouse click preview. | |
| virtual void | setAttachObjectToMouseChecked (bool flag) |
| virtual bool | attachObjectToMouseEnabled () |
| virtual void | setAttachObjectToMouseEnabled (bool flag) |
| virtual DtDialogInteractionMode | interactionMode () |
| virtual void | populate (const makVrv::DtUniqueID &) |
| virtual void | hideDialog () |
| Hides the dialog. | |
| DtAltitudeClampType | currentAltitudeTypeSelection () const |
| virtual void | setCurrentAltitudeTypeSelection (const DtAltitudeClampType &) |
| virtual void | setAltitudeAllowed (bool) |
| Disables (greys out) the entire Altitude Entry box in the dialog if set to false. | |
| virtual void | populate (const DtCreateObjectCommand *cmd) |
| virtual bool | blockSignals (bool) |
| virtual void | populateOverlays () |
| virtual void | populateForces () |
| virtual void | setForce (int) |
| \ brief | |
| virtual void | addForce (const QString &, int force) |
| brief Adds a force into the combo | |
| virtual void | hideForces () |
| Hides force label and combo. | |
| virtual void | showForces () |
| Shows force label and combo. | |
| virtual void | clearForces () |
| Clears out force combo. | |
| virtual void | setReadOnly (bool) |
| Sets read only the items on the dialog that should be when in mouse attach mode. | |
| virtual void | addExtension (QWidget *) |
| Add an extension to the dialog. Will add to current extension. | |
| virtual void | removeExtension (QWidget *) |
| Removes an extension. | |
| virtual void | showPropertiesDialog (bool) |
| Show/hide properties dialog for this item. | |
| DtLocationEntryWidget * | locationEntryWidget () |
Public Attributes | |
| Ui_PointObjectDefinitionWidgetUi | myUiImpl |
Protected Slots | |
| virtual void | slot_attachObjectToMouseClicked (bool flag) |
| virtual void | slot_onCreateButtonClicked () |
| virtual void | slot_onUpdateButtonClicked () |
| virtual void | slot_onDoneButtonClicked () |
| virtual void | slot_onNamePrefixEdited () |
| virtual void | slot_onOverlaysComboCurrentIndexChanged (int index) |
| virtual void | slot_onForceComboCurrentIndexChanged (int index) |
| virtual void | slot_onHeadingChanged (double value) |
| virtual void | slot_closePressed () |
| Gets called when the close button is pressed on the titleBarWidget. | |
| virtual void | slot_onAltitudeSelectionTypeChanged (const DtAltitudeClampType &) |
| virtual void | slot_onLocationChanged () |
| virtual void | slot_onAltitudeAboveSeaLevelEdited (double value) |
| virtual void | slot_onAltitudeAboveGroundLevelEdited (double value) |
Protected Member Functions | |
| virtual void | setupGui () |
| Initializes the visuals of this object. | |
| virtual void | setupConnections () |
| virtual void | closeEvent (QCloseEvent *event) |
| This event gets automatically called when the widget is about to be closed. | |
| virtual DtPointObjectDefinitionDialogLogic * | createLogic () |
| Creates a new logic for this dialog. Override to return a subclass of the base logic. | |
Protected Attributes | |
| DtLocationEntryWidget * | myLocationWidget |
| DtPointObjectDefinitionDialogLogic * | myLogic |
| DtDialogInteractionMode | myInteractionMode |
| QString | myDefaultName |
| QWidget * | myParent |
| bool | mySettingGuiUp |
| bool | myBlockSignals |
This class defines the dialog that allows the creation/update of point objects in the scenario (entities, props, waypoints)
| makVrf::DtPointObjectDefinitionDialog::DtPointObjectDefinitionDialog | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const std::string | title = "", |
||
| DtDialogInteractionMode | mode = DtCreationMode |
||
| ) |
| virtual makVrf::DtPointObjectDefinitionDialog::~DtPointObjectDefinitionDialog | ( | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::closeDialog | ( | ) | [virtual] |
Implements makVrf::DtCreateAndEditObjectDialogInterface.
| virtual QString makVrf::DtPointObjectDefinitionDialog::getName | ( | ) | [virtual] |
Returns the point object's name.
Implements makVrf::DtCreateAndEditObjectDialogInterface.
| virtual double makVrf::DtPointObjectDefinitionDialog::getHeading | ( | ) | [virtual] |
Returns the point object's heading.
| virtual DtVector makVrf::DtPointObjectDefinitionDialog::getLocation | ( | ) | [virtual] |
Returns the point object's location.
| virtual double makVrf::DtPointObjectDefinitionDialog::getAltitudeAboveSeaLevel | ( | ) | const [virtual] |
| virtual double makVrf::DtPointObjectDefinitionDialog::getAltitudeAboveGroundLevel | ( | ) | const [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setHeading | ( | double | heading | ) | [virtual] |
Sets the point object's heading.
| virtual void makVrf::DtPointObjectDefinitionDialog::setAltitudeAboveTerrain | ( | double | altitude | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setAltitudeAboveSeaLevel | ( | double | altitude | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setLocation | ( | const DtVector & | pt, |
| bool | resetAltitude = true |
||
| ) | [virtual] |
Sets the point object's location.
| virtual void makVrf::DtPointObjectDefinitionDialog::setName | ( | const QString & | name | ) | [virtual] |
Sets the point object's name.
Implements makVrf::DtCreateAndEditObjectDialogInterface.
| virtual void makVrf::DtPointObjectDefinitionDialog::addOverlay | ( | const QString & | name | ) | [virtual] |
Add an overlay to the object's overlay.
| virtual void makVrf::DtPointObjectDefinitionDialog::removeOverlay | ( | const QString & | name | ) | [virtual] |
Remove an overlay from the object's overlay.
| virtual void makVrf::DtPointObjectDefinitionDialog::renameOverlay | ( | const QString & | oldName, |
| const QString & | newName | ||
| ) | [virtual] |
Rename an overlay int the object's overlay.
| virtual void makVrf::DtPointObjectDefinitionDialog::setOverlay | ( | const QString & | name | ) | [virtual] |
Sets the point object's overlay.
| virtual void makVrf::DtPointObjectDefinitionDialog::clearOverlays | ( | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setNameVisible | ( | bool | flag | ) | [virtual] |
sets the name field to visible
Implements makVrf::DtCreateAndEditObjectDialogInterface.
| virtual void makVrf::DtPointObjectDefinitionDialog::setHeadingVisible | ( | bool | flag | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setHeadingDecimalPlaces | ( | int | decimalPlaces | ) | [virtual] |
Called by DtPointObjectDefinitionDialogLogic::refreshLabels to set the number of decimal places based on the DtSharedDisplayUnitsSettings.
| virtual void makVrf::DtPointObjectDefinitionDialog::setHeadingStep | ( | double | ) | [virtual] |
Sets the step value of the heading spin.
| virtual void makVrf::DtPointObjectDefinitionDialog::setAllowOverlaySelection | ( | bool | flag | ) | [virtual] |
Implements makVrf::DtCreateAndEditObjectDialogInterface.
| virtual void makVrf::DtPointObjectDefinitionDialog::setTitle | ( | const QString & | title | ) | [virtual] |
Reimplemented from makVrf::DtAutoHideDock.
| virtual void makVrf::DtPointObjectDefinitionDialog::setCreateButtonEnabled | ( | bool | flag | ) | [virtual] |
Enables/disables the create button.
| virtual void makVrf::DtPointObjectDefinitionDialog::setCreateButtonText | ( | const QString & | text | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setCreateButtonVisible | ( | bool | flag | ) | [virtual] |
Shows/hides the create button.
| virtual void makVrf::DtPointObjectDefinitionDialog::setUpdateButtonEnabled | ( | bool | flag | ) | [virtual] |
Enables/disables the update button.
| virtual void makVrf::DtPointObjectDefinitionDialog::setUpdateButtonText | ( | const QString & | text | ) | [virtual] |
Enables/disables the update button.
| virtual void makVrf::DtPointObjectDefinitionDialog::setUpdateButtonVisible | ( | bool | flag | ) | [virtual] |
Shows/hides the update button.
| virtual void makVrf::DtPointObjectDefinitionDialog::setCancelButtonEnabled | ( | bool | flag | ) | [virtual] |
Enables/disables the Done button.
| virtual void makVrf::DtPointObjectDefinitionDialog::setCancelButtonVisible | ( | bool | flag | ) | [virtual] |
Shows/hides the Done button.
| virtual void makVrf::DtPointObjectDefinitionDialog::setCancelButtonText | ( | const QString & | text | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setAttachObjectToMouseVisible | ( | bool | flag | ) | [virtual] |
Shows/hides the check to enable/disable the mouse click preview.
| virtual void makVrf::DtPointObjectDefinitionDialog::setAttachObjectToMouseChecked | ( | bool | flag | ) | [virtual] |
| virtual bool makVrf::DtPointObjectDefinitionDialog::attachObjectToMouseEnabled | ( | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setAttachObjectToMouseEnabled | ( | bool | flag | ) | [virtual] |
| virtual DtDialogInteractionMode makVrf::DtPointObjectDefinitionDialog::interactionMode | ( | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::populate | ( | const makVrv::DtUniqueID & | ) | [virtual] |
Implements makVrf::DtCreateAndEditObjectDialogInterface.
Reimplemented in makVrf::DtPropDefinitionDialog.
| virtual void makVrf::DtPointObjectDefinitionDialog::hideDialog | ( | ) | [virtual] |
Hides the dialog.
Implements makVrf::DtCreateAndEditObjectDialogInterface.
| virtual void makVrf::DtPointObjectDefinitionDialog::setCurrentAltitudeTypeSelection | ( | const DtAltitudeClampType & | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setAltitudeAllowed | ( | bool | ) | [virtual] |
Disables (greys out) the entire Altitude Entry box in the dialog if set to false.
| virtual void makVrf::DtPointObjectDefinitionDialog::populate | ( | const DtCreateObjectCommand * | cmd | ) | [virtual] |
Implements makVrf::DtCreateAndEditObjectDialogInterface.
| virtual bool makVrf::DtPointObjectDefinitionDialog::blockSignals | ( | bool | ) | [virtual] |
Implements makVrf::DtCreateAndEditObjectDialogInterface.
| virtual void makVrf::DtPointObjectDefinitionDialog::populateOverlays | ( | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::populateForces | ( | ) | [virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::setForce | ( | int | ) | [virtual] |
\ brief
Implements makVrf::DtCreateAndEditObjectDialogInterface.
| virtual void makVrf::DtPointObjectDefinitionDialog::addForce | ( | const QString & | , |
| int | force | ||
| ) | [virtual] |
brief Adds a force into the combo
| virtual void makVrf::DtPointObjectDefinitionDialog::hideForces | ( | ) | [virtual] |
Hides force label and combo.
| virtual void makVrf::DtPointObjectDefinitionDialog::showForces | ( | ) | [virtual] |
Shows force label and combo.
| virtual void makVrf::DtPointObjectDefinitionDialog::clearForces | ( | ) | [virtual] |
Clears out force combo.
| virtual void makVrf::DtPointObjectDefinitionDialog::setReadOnly | ( | bool | ) | [virtual] |
Sets read only the items on the dialog that should be when in mouse attach mode.
| virtual void makVrf::DtPointObjectDefinitionDialog::addExtension | ( | QWidget * | ) | [virtual] |
Add an extension to the dialog. Will add to current extension.
| virtual void makVrf::DtPointObjectDefinitionDialog::removeExtension | ( | QWidget * | ) | [virtual] |
Removes an extension.
| virtual void makVrf::DtPointObjectDefinitionDialog::showPropertiesDialog | ( | bool | ) | [virtual] |
Show/hide properties dialog for this item.
| virtual void makVrf::DtPointObjectDefinitionDialog::setupGui | ( | ) | [protected, virtual] |
Initializes the visuals of this object.
Reimplemented from makVrf::DtAutoHideDock.
| virtual void makVrf::DtPointObjectDefinitionDialog::setupConnections | ( | ) | [protected, virtual] |
| virtual void makVrf::DtPointObjectDefinitionDialog::closeEvent | ( | QCloseEvent * | event | ) | [protected, virtual] |
This event gets automatically called when the widget is about to be closed.
Reimplemented from makVrf::DtAutoHideDock.
| virtual DtPointObjectDefinitionDialogLogic* makVrf::DtPointObjectDefinitionDialog::createLogic | ( | ) | [protected, virtual] |
Creates a new logic for this dialog. Override to return a subclass of the base logic.
Reimplemented in makVrf::DtPropDefinitionDialog.
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_attachObjectToMouseClicked | ( | bool | flag | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onCreateButtonClicked | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onUpdateButtonClicked | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onDoneButtonClicked | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onNamePrefixEdited | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onOverlaysComboCurrentIndexChanged | ( | int | index | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onForceComboCurrentIndexChanged | ( | int | index | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onHeadingChanged | ( | double | value | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_closePressed | ( | ) | [protected, virtual, slot] |
Gets called when the close button is pressed on the titleBarWidget.
Reimplemented from makVrf::DtAutoHideDock.
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onAltitudeSelectionTypeChanged | ( | const DtAltitudeClampType & | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onLocationChanged | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onAltitudeAboveSeaLevelEdited | ( | double | value | ) | [protected, virtual, slot] |
| virtual void makVrf::DtPointObjectDefinitionDialog::slot_onAltitudeAboveGroundLevelEdited | ( | double | value | ) | [protected, virtual, slot] |
| Ui_PointObjectDefinitionWidgetUi makVrf::DtPointObjectDefinitionDialog::myUiImpl |
QString makVrf::DtPointObjectDefinitionDialog::myDefaultName [protected] |
QWidget* makVrf::DtPointObjectDefinitionDialog::myParent [protected] |