![]() |
VR-Forces Developer's Guide
|
A checkable menu item that controls the application-wide 'Enable Ballistics' flag in DtDeSharedState.
When checked, ballistic visual effects are active. When unchecked, all active projectiles are cleared and new ones are suppressed. The menu text is '&Ballistics'. Register this item by adding its string ID 'DtBallisticsItem' to a DtMenuPath.

Public Member Functions | |
| DtBallisticsItem (DtDe &) | |
| virtual | ~DtBallisticsItem () |
| virtual QAction * | createAction (DtDe &de, QWidget *parent) |
Public Member Functions inherited from makVrv::DtCheckedItem | |
| DtCheckedItem (DtDe &de, const std::string &className) | |
| virtual | ~DtCheckedItem () |
| virtual void | on_settingChanged (bool value) |
| void | updateValue () |
Public Member Functions inherited from makVrv::DtMenuItem | |
| DtMenuItem (const std::string &menuItemIdName) | |
| virtual | ~DtMenuItem () |
| virtual const std::string & | menuItemIdName () const |
Protected Member Functions | |
| virtual void | setValue (bool value) |
| virtual bool | getValue () const |
Protected Member Functions inherited from makVrv::DtCheckedItem | |
| virtual void | on_postInitialize () |
| virtual void | on_triggered () |
Additional Inherited Members | |
Protected Slots inherited from makVrv::DtMenuItem | |
| virtual void | on_checkStateChanged (bool) |
| virtual void | on_aboutToShow () |
Protected Attributes inherited from makVrv::DtCheckedItem | |
| bool | myState |
| QString | myOnText |
| QString | myOffText |
| QString | myToolTip |
| DtQIconConfigurations | myIconConfigurations |
| QAction * | myAction |
| DtDe & | myDe |
Protected Attributes inherited from makVrv::DtMenuItem | |
| std::string | myMenuIdName |
| makVrv::DtBallisticsItem::DtBallisticsItem | ( | DtDe & | ) |
CTOR.
| de | The display engine. |
|
virtual |
DTOR.
Creates the QAction and wires it to DtDeSharedState signal changes.
| de | The display engine. |
| parent | The parent widget. |
Reimplemented from makVrv::DtCheckedItem.
|
protectedvirtual |
Calls DtDeSharedState::setEnableBallistics().
| value | The new value. |
Implements makVrv::DtCheckedItem.
|
protectedvirtual |
Returns true if ballistics are currently enabled; returns true (enabled) if DtDe is not yet initialized.
Implements makVrv::DtCheckedItem.