VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
5.8 - Specifying Parameters for Components

Table of Contents

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.

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


Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)