![]() |
VR-Forces 4.10 Class Documentation
|
It is useful to be able to specify parameter values for components in the object parameter database.
VR-Forces makes this possible by using component descriptors.
Component descriptors describe components and their parameters in the object parameter database. When a simulation object is instantiated, a component is instantiated for each component descriptor in its object parameter database entry. Each component has a const pointer to the DtComponentDescriptor from which it was created in the myComponentDescriptor member of DtSimComponent, the base class for all derived components. If a derived component needs to access its corresponding descriptor, it must cast the myComponentDescriptor pointer to the correct type.
Since component descriptors are read from the object parameter database, they conform to the standard factory mechanism described in "VRForcesFactories. The type names of the component descriptors are in compDescTypes.h.
[<< Fire and Detonation Processing] [Home] [Top of Page] [Ports and Port Groups >>]