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

Public Member Functions | |
| DtMissileTargetDefinitionDialog (makVrv::DtDe &de, QWidget *parent, const QString &title="", DtDialogInteractionMode mode=DtCreationMode) | |
| Constructor. More... | |
| virtual | ~DtMissileTargetDefinitionDialog () |
| Destructor. More... | |
| virtual DtPointObjectDefinitionDialogLogic * | createLogic () |
| Initialization method; called by creator class. More... | |
| virtual int | simulationTime () const |
| Returns the current value in the parameter one text box. More... | |
| virtual double | incomingHeading () const |
| Returns the current value in the parameter two text box. More... | |
| virtual QString | scriptedMovementObject () const |
| Returns the scripted movement object file. More... | |
| virtual void | clearScriptedMovementObjects () |
| Clears out current fly out files. More... | |
| virtual void | addScriptedMovementObject (const QString &displayName, const QString &description) |
| Adds a new scripted movement object file. More... | |
| virtual void | setSimulationTime (int) |
| Populates the Parameter One text box with an int. More... | |
| virtual void | setIncomingHeading (double) |
| Populates the Parameter One text box with a double. More... | |
| virtual void | setScriptedMovementObject (const std::string &) |
| Populates for scripted movement object file to use. More... | |
Public Member Functions inherited from makVrf::DtPointObjectDefinitionDialog | |
| DtPointObjectDefinitionDialog (makVrv::DtDe &de, QWidget *parent, const QString &title="", DtDialogInteractionMode mode=DtCreationMode, const std::string &className="DtPointObjectDefinitionDialog") | |
| virtual | ~DtPointObjectDefinitionDialog () |
| virtual void | init (const DtEntityType &, DtCreateAndEditObjectDialogInterface::DtDialogInteractionMode) |
| virtual void | closeDialog () |
| virtual QString | getName () |
| Returns the point object's name. More... | |
| virtual double | getHeading () |
| Returns the point object's heading. More... | |
| virtual double | getPitch () |
| Returns the point object's pitch. More... | |
| virtual DtVector | getLocation () |
| Returns the point object's location. More... | |
| virtual double | getAltitudeAboveSeaLevel () const |
| virtual void | setEmbarkationAllowed (bool flag) |
| Sets whether or not attachment (embarkation) of this object is allowed on another object. More... | |
| virtual void | setEmbarkationWidgetVisible (bool flag) |
| Sets whether or not attachment (embarkation) is vibiel. More... | |
| virtual double | getAltitudeAboveGroundLevel () const |
| virtual void | setHeading (double heading) |
| Sets the point object's heading. More... | |
| virtual void | setPitch (double heading) |
| Sets the point object's pitch. More... | |
| 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. More... | |
| virtual void | setName (const QString &name) |
| Sets the point object's name. More... | |
| virtual void | setLabel (const QString &name) |
| Sets the point object's label. More... | |
| virtual void | setExtendedLabels (const std::map< int, DtString > &lab) |
| Sets the point object's extended labels. More... | |
| virtual void | addOverlay (const QString &name, bool translate=true) |
| Add an overlay to the object's overlay. More... | |
| virtual void | removeOverlay (const QString &name) |
| Remove an overlay from the object's overlay. More... | |
| virtual void | renameOverlay (const QString &oldName, const QString &newName) |
| Rename an overlay int the object's overlay. More... | |
| virtual void | setOverlay (const QString &name) |
| Sets the point object's overlay. More... | |
| virtual void | setPublishObjectVisible (bool) |
| virtual void | setPublishObject (bool) |
| virtual bool | publishObject () const |
| virtual void | refreshLabels () |
| virtual void | clearOverlays () |
| virtual void | setNameVisible (bool flag) |
| sets the name field to visible More... | |
| virtual void | setSetActivationTimeVisible (bool flag) |
| virtual void | setHeadingVisible (bool flag) |
| virtual void | setPitchVisible (bool flag) |
| virtual void | setHeadingDecimalPlaces (int decimalPlaces) |
| Called by DtPointObjectDefinitionDialogLogic::refreshLabels to set the number of decimal places based on the DtSharedDisplayUnitsSettings. More... | |
| virtual void | setHeadingStep (double) |
| Sets the step value of the heading spin. More... | |
| virtual void | setAllowOverlaySelection (bool flag) |
| virtual void | setAllowVisualMetaDataSelection (bool flag) |
| virtual void | setTitle (const QString &title) |
| virtual void | setCreateButtonEnabled (bool flag) |
| Enables/disables the create button. More... | |
| virtual void | setCreateButtonText (const QString &text) |
| virtual void | setCreateButtonVisible (bool flag) |
| Shows/hides the create button. More... | |
| virtual void | setUpdateButtonEnabled (bool flag) |
| Enables/disables the update button. More... | |
| virtual void | setUpdateButtonText (const QString &text) |
| Enables/disables the update button. More... | |
| virtual void | setUpdateButtonVisible (bool flag) |
| Shows/hides the update button. More... | |
| virtual void | setCancelButtonEnabled (bool flag) |
| Enables/disables the Done button. More... | |
| virtual void | setCancelButtonVisible (bool flag) |
| Shows/hides the Done button. More... | |
| virtual void | setNameLabel (const QString &text) |
| Sets the name label. More... | |
| virtual void | setCancelButtonText (const QString &text) |
| virtual void | setAttachObjectToMouseVisible (bool flag) |
| Shows/hides the check to enable/disable the mouse click preview. More... | |
| virtual void | setAttachObjectToMouseChecked (bool flag) |
| virtual bool | attachObjectToMouseEnabled () |
| virtual void | setLabelEntryVisible (bool) |
| virtual void | setAttachObjectToMouseEnabled (bool flag) |
| virtual DtDialogInteractionMode | interactionMode () |
| virtual void | populate (const makVrv::DtUniqueID &) |
| virtual void | hideDialog () |
| Hides the dialog. More... | |
| 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. More... | |
| virtual void | setAltitudeSelectionEnabled (bool) |
| Enables Z selection. More... | |
| virtual void | populate (const DtCreateObjectCommand *cmd) |
| virtual bool | blockSignals (bool) |
| virtual void | populateOverlays () |
| virtual void | populateVisualMetaData (const DtEntityType &) |
| virtual void | populateVisualMetaData (makVrv::DtUniqueID) |
| virtual void | populateVisualMetaData (const DtEntityType &type, const DtRwStringAttributeList *atrList) |
| virtual void | setForce (int) |
| Set force. More... | |
| virtual void | hideForces () |
| Hides force label and combo. More... | |
| virtual void | showForces () |
| Shows force label and combo. More... | |
| virtual void | setReadOnly (bool) |
| Sets read only the items on the dialog that should be when in mouse attach mode. More... | |
| virtual void | addExtension (QWidget *) |
| Add an extension to the dialog. Will add to current extension. More... | |
| virtual void | removeExtension (QWidget *) |
| Removes an extension. More... | |
| virtual void | updateEmbarkationWidget (const DtVector &pt) |
| virtual void | showPropertiesDialog (bool) |
| Show/hide properties dialog for this item. More... | |
| DtLocationEntryWidget * | locationEntryWidget () |
| DtEmbarkationWidget * | embarkationWidget () |
| virtual void | setShowStyleButton (bool) |
| virtual void | includeSpacer (bool flag) |
| virtual void | setVisualMarking (const std::string &linkageName, const std::string &value) |
| virtual void | setCacheMarkingSelections (bool) |
| virtual void | setupVariants (const std::map< std::string, std::string > &) |
Public Member Functions inherited from makVrf::DtAutoHideDock | |
| DtAutoHideDock (makVrv::DtDe &de, const QString &title="", const std::string &className="", QWidget *parent=0, Qt::WindowFlags flags=0) | |
| Ctor. More... | |
| ~DtAutoHideDock () | |
| Dtor. More... | |
| virtual const QIcon & | icon () |
| Set/Get the icon. More... | |
| virtual void | setIcon (const QIcon &icon) |
| virtual DtAutoHideDockType | dockType () const |
| Set/Get the type of dock this item represents. More... | |
| virtual void | setDockType (DtAutoHideDockType t) |
| virtual bool | pinned () const |
| Set/Get the pin status. More... | |
| virtual void | setPinned (bool flag) |
| virtual void | setAdjustToMinimumSize (bool) |
| Whether or not to adjust the size of the doc (on open) to minimum size. Default is true. More... | |
| virtual bool | adjustToMinimumSize () const |
| const std::string & | className () const |
| virtual bool | keepAlive () const |
| Return true to keep this dock on display even after the mouse have left the dock widget. More... | |
Public Member Functions inherited from makVrf::DtCreateAndEditObjectDialogInterface | |
| virtual | ~DtCreateAndEditObjectDialogInterface () |
Protected Slots | |
| virtual void | slot_onUserDataChanged () |
| virtual void | onValueChanged () |
Protected Slots inherited from makVrf::DtPointObjectDefinitionDialog | |
| virtual void | markingChanged (QComboBox *, const QString &, const QString &) |
| virtual void | slot_onBtnStyleClicked () |
| 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_onSetActivationTime () |
| virtual void | slot_onLabelEdited () |
| virtual void | slot_onExtendedLabelsEdited () |
| virtual void | slot_onOverlaysComboCurrentIndexChanged (int index) |
| virtual void | slot_onForceComboCurrentIndexChanged (int index) |
| virtual void | slot_onHeadingChanged (double value) |
| virtual void | slot_onPitchChanged (double value) |
| virtual void | slot_closePressed () |
| virtual void | slot_onAltitudeSelectionTypeChanged (const DtAltitudeClampType &) |
| virtual void | slot_onLocationChanged () |
| virtual void | slot_onAltitudeAboveSeaLevelEdited (double value) |
| virtual void | slot_onAltitudeAboveGroundLevelEdited (double value) |
| virtual void | slot_onPublishObjectChanged () |
Protected Slots inherited from makVrf::DtAutoHideDock | |
| virtual void | slot_closePressed () |
| Gets called when the close button is pressed on the titleBarWidget. More... | |
| virtual void | slot_pinPressed (bool flag) |
| Gets called when the pin is pressed on the titleBarWidget. More... | |
| virtual void | slot_topLevelChanged (bool) |
| Gets called when the widget changes its floating status. More... | |
Protected Member Functions | |
| virtual void | setupGui () |
| void | setupConnections () |
Protected Member Functions inherited from makVrf::DtPointObjectDefinitionDialog | |
| virtual void | closeEvent (QCloseEvent *event) |
| This event gets automatically called when the widget is about to be closed. More... | |
| virtual void | showEvent (QShowEvent *) |
| virtual bool | needsNameCheck () const |
Protected Member Functions inherited from makVrf::DtAutoHideDock | |
| virtual bool | eventFilter (QObject *p, QEvent *e) |
| Event filter installed to listen for mouse events from the titleBarWidget. More... | |
| virtual void | enterEvent (QEvent *event) |
| Automatic event that gets triggered when the mouse enters the widget. More... | |
| virtual void | leaveEvent (QEvent *event) |
| Automatic event that gets triggered when the mouse leaves the widget. More... | |
| virtual void | paintEvent (QPaintEvent *p) |
| This event gets automatically called when the widget is about to be painted on screen. More... | |
| virtual void | resizeEvent (QResizeEvent *event) |
Protected Attributes | |
| DtMissileTargetDefinitionDialogLogic * | myCustomLogic |
| DtTimeEntryWidget * | mySimulationTime |
| DtAngleEntryWidget * | myIncomingHeading |
| DtSimpleComboVariableWidget * | myScriptedMovementObjects |
Protected Attributes inherited from makVrf::DtPointObjectDefinitionDialog | |
| bool | myActivationTimeVisible |
| DtPointObjectDefinitionDialogLogic * | myLogic |
| DtDialogInteractionMode | myInteractionMode |
| QString | myDefaultName |
| bool | mySettingGuiUp |
| bool | myBlockSignals |
| DtEntityType | myEditingType |
| bool | myEditingLocation |
| bool | myCreated |
| bool | myAllowVisualMetaDataSelection |
| bool | myAltitudeAllowed |
| bool | myEmbarkationAllowed |
| makVrv::DtSignalConnectionManager | myConnectionManager |
| DtCreateAndEditObjectDialogInterface::DtDialogInteractionMode | myCreationMode |
Protected Attributes inherited from makVrf::DtAutoHideDock | |
| makVrv::DtDe & | myDe |
| DtExtendedTitleBarWidget * | myTitleBarWidget |
| QIcon | myIcon |
| DtAutoHideDockType | myDockType |
| bool | myAdjustToMinimumSize |
| std::string | myClassName |
Additional Inherited Members | |
Public Types inherited from makVrf::DtAutoHideDock | |
| enum | DtAutoHideDockType { Palette = 0, Dialog } |
Public Types inherited from makVrf::DtCreateAndEditObjectDialogInterface | |
| enum | DtDialogInteractionMode { DtCreationMode = 0, DtEditingMode } |
Signals inherited from makVrf::DtAutoHideDock | |
| void | signal_closing (DtAutoHideDock *dock) |
| This signal gets emitted when the widget is closing. More... | |
| void | signal_pinPressed (DtAutoHideDock *dock) |
| This signal gets emitted when the pin button is pressed on this widget. More... | |
| void | signal_topLevelChanged (DtAutoHideDock *dock) |
| This signal gets emitted when this widget changes its status from docked to floating and vice versa. More... | |
| void | signal_resized (DtAutoHideDock *dock) |
| This signal gets emitted when this widget is resized. More... | |
| void | signal_destroyed (DtAutoHideDock *dock) |
| This signal gets emitted when this widget is about to be destroyed. More... | |
| void | signal_enter (DtAutoHideDock *dock) |
| This signal gets emitted when the mouse enters on this widget. More... | |
| void | signal_leave (DtAutoHideDock *dock) |
| This signal gets emitted when the mouse leaves this widget. More... | |
Public Attributes inherited from makVrf::DtPointObjectDefinitionDialog | |
| Ui_PointObjectDefinitionWidgetUi | myUiImpl |
| DtForceSelectionEntryWidget * | myForces |
| QWidget * | myParent |
| DtExtendedLabelsEntryWidget * | myExtendedLabelsEntryWidget |
| DtLocationEntryWidget * | myLocationWidget |
| DtEmbarkationWidget * | myEmbarkationWidget |
| DtOverlayParentEntryWidget * | myOverlaysCombo |
| DtVisualMetaDataSelectionWidget * | myVisualMetaDataSelectionWidget |
Public Attributes inherited from makVrf::DtCreateAndEditObjectDialogInterface | |
| boost::signals2::signal< void()> | signal_dialogClosing |
| This signal gets emitted when the dialog is closing. More... | |
| boost::signals2::signal< void()> | signal_dialogUpdated |
| This signal gets emitted when the dialog is updated. More... | |
| boost::signals2::signal< void(const std::string &)> | signal_nameChanged |
| This signal gets emitted when the name is updated. More... | |
| boost::signals2::signal< void(const std::string &)> | signal_labelChanged |
| This signal gets emitted when the label is updated. More... | |
| boost::signals2::signal< void(const std::map< int, DtString > &)> | signal_extendedLabelsChanged |
| This signal gets emitted when the label is updated. More... | |
| boost::signals2::signal< void(bool)> | signal_reviewMouseClicks |
| This signal get emitted when the "enable/disable mouse clicks
for automatic creation" option is toggled. More... | |
| boost::signals2::signal< void(const DtVector &)> | signal_locationAdded |
| This signal gets emitted when a location is added to the dialog. More... | |
| boost::signals2::signal< void(const DtVector &)> | signal_locationSet |
| This signal gets emitted when a location is set into the dialog. More... | |
| boost::signals2::signal< void(const std::string &)> | signal_overlayNameChanged |
| This signal gets emitted when the overlay name changes in the dialog. More... | |
| boost::signals2::signal< void(int)> | signal_forceChanged |
| This signal gets emitted when the force changes in the dialog. More... | |
| boost::signals2::signal< void(bool)> | signal_publishObjectChanged |
| This signal gets sent when object publication changes. More... | |
| boost::signals2::signal< void(int)> | signal_colorChanged |
| This signal gets sent when color has changed. More... | |
The dialog class is derived here from DtPointbjectDefinitionDialog, which is ultimately multiply derived from a base interface class and QDockWidget, a Qt object.
While dialogs in the VR-Forces API have their own UI object classes, this example derives from DtShapeObjectDefinitionDialog and makes direct post de facto modifications to the Qt layout, adding on mutators and accessors.
| makVrf::DtMissileTargetDefinitionDialog::DtMissileTargetDefinitionDialog | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const QString & | title = "", |
||
| DtDialogInteractionMode | mode = DtCreationMode |
||
| ) |
Constructor.
Registration of the Dialog class as a Q_OBJECT is centrally important to being able to register Qt signals - in this example these signals are sent whenever either of
the parameter text boxes (called QLineEdit objects) are modified by the user.
|
virtual |
Destructor.
|
virtual |
Initialization method; called by creator class.
Reimplemented from makVrf::DtPointObjectDefinitionDialog.
|
virtual |
Returns the current value in the parameter one text box.
|
virtual |
Returns the current value in the parameter two text box.
|
virtual |
Returns the scripted movement object file.
|
virtual |
Clears out current fly out files.
|
virtual |
Adds a new scripted movement object file.
|
virtual |
Populates the Parameter One text box with an int.
|
virtual |
Populates the Parameter One text box with a double.
|
virtual |
Populates for scripted movement object file to use.
|
protectedvirtual |
called during initialization, setupGui() first calls the method of the same name of the base class, which instantiates the Qt dialog.
The derived logic then modifies the base dialog, inserting new UI elements.
Reimplemented from makVrf::DtPointObjectDefinitionDialog.
|
protectedvirtual |
sets up connections between the Qt dialog elements and local methods. This override wraps the base method and connects the additional signals
between the new LineEdit elements and slot_onUserDataChanged()
Reimplemented from makVrf::DtPointObjectDefinitionDialog.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protected |
The base class DtShapeObjectDefinitionDialog has a pointer to its base logic class DtShapeObjectDefinitionDialogLogic called myLogic.
This example derives its own custom logic class from this and and instantiates it vduring initialization, so myLogic is pointed to the derived logic class.
|
protected |
|
protected |
|
protected |