![]() |
VR-Forces 5.0.2 Developer's Guide
|
This example adds a new Set that is sent from the GUI and received and processed by the addSetEncumbranceSim example.
The effect of these plugins it so allow manual setting of the cargo weight of a rotary wing aircraft to alter its flight behaviors and fuel consumption. This is simillar to the addSetGui example. Please check this example for a detailed explanation of adding a set. The larger architecture of GUI and Menus in the VR Forces Front End is described in VR-Vantage Architecture Walkthrough - The GUI Layer and GUI Architecture.
This example demonstrates how to add a new kind of set data request (set heading and ordered speed).
In the Launcher, click the Plug-ins button to bring up the Plug-ins Selection dialog. Enable the EncumberedFlight plugin.
To view the new behavior:
| DtSetEncumbranceMenuItem | The menu item that will register the dialog to be shown when this set is requested. |
| DtSetEncumbranceDialog | The Qt widget that generates the dialog box used to enter the encumerance information. |
| DtSetEncumbranceRequest | The subclass of DtSetDataRequest that is used to communicate the new set request between the front-end and the back-end. |