VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
12.3 - Adding a New Task for a Simulation Object

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 >>]


Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)