![]() |
VR-Forces Development_Version Class Documentation
|
When you create a back-end plug-in, you must include vrfPluginExtension.h in the plug-in module.
The vrfPluginExtension.h header file contains a description of the entry points available to plug-ins for initialization and cleanup.
Use the following plug-in callbacks when you create a plug-in. At least one of these callbacks must be present in a plug-in for it to be loaded:
The DtVrfPluginInformation parameter supplied to these entry points allows you to identify your plug-in. This information is recorded to the plug-in's log file and vrfSim.log file as each plug-in is loaded and initially used. This structure has the following information:
The following entry point is optional and should be used only if the plug-in needs to clean up memory when it is unloaded:
The following example is a plug-in for vrfSim. The plug-in overrides the normal behavior of an actuator.
This example:
The DtCgf class is passed in to the plug-in through the DtInitializeVrfPlugin entry point. In this function, you can register the creation functions for the classes you want to override. You can also register callback functions on important events, such as opening and closing scenarios. For details, please see cgf.h.
Plug-in libraries are placed in the ./bin directory. By default, vrfSim does not load any plug-ins. You can specify which plug-ins to load on the command line or in an xml file in the ./plugins directory. The preferred way to configure loading of plug-ins is through the Plugins dialog box in the front-end. For details, please see "Managing Plug-ins", in VR-Forces Users Guide.
Many of the examples included with VR-Forces are plug-ins. Please see VR-Forces Examples for the complete list of examples.
[<< Using the DtCgf Class] [Home] [Top of Page] [Customizing or Extending the Simulation Engine >>]