VR-Forces 4.1 Class Documentation
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 an entity 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 Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)