![]() |
VR-Forces Development_Version Class Documentation
|
There are two ways to add a new task for a simulation object,
If you are using VR-Forces as a back-end only, if you have created your own front-end through which you can configure your own user-defined tasks, or if you are willing to extend the VR-Forces GUI using the GUI API, we recommend that you derive a new task from DtSimTask.
If you want to use a new task without extending the VR-Forces front-end, use DtUserTask as a wrapper around the new task. It has a simple interface that takes a string task name, which identifies the new kind of task being defined, and up to four string arguments. You must also create one or more controllers to handle a DtUserTask containing the new task. Users will be able to specify the new task in the User Task dialog box to task a simulation object or add it to a plan.
The advantage of deriving a new task from DtSimTask is that you can customize the interface to the task class, making the application code cleaner.
[<< Task Messages] [Home] [Top of Page] [Deriving a New Task from DtSimTask >>]