T3DSceneClient Class Reference#include <T3DSceneClient.h>
Inheritance diagram for T3DSceneClient: ![]()
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
onComponentRegister is called on each component by it's owner. If a component has no owner, onComponentRegister will not be called on it. The purpose of onComponentRegister is to allow a component to check for any external interfaces, or other dependencies which it needs to function. If any component in a component hierarchy returns false from it's onComponentRegister call the entire hierarchy is invalid, and SimObject::onAdd will fail on the top-level component. To put it another way, if a component contains other components, it will be registered successfully with Sim iff each subcomponent returns true from onComponentRegister. If a component does not contain other components, it will not receive an onComponentRegister call. When onComponentRegister is called on a component, it can be assumed that all *interfaces* are registered, but not that all components are registered. To perform initialization operations, please use onComponentPostRegister.
/// bool FooComponent::onComponentRegister( SimComponent *owner ) /// { /// if( !Parent::onComponentRegister( owner ) ) /// return false; /// ... /// } /// Reimplemented from SimComponent.
registerInterfaces is called on each component as it's owner is registering it's interfaces. This is called before onComponentRegister, and should be used to register all interfaces exposed by your component, as well as all callbacks needed by your component. Reimplemented from SimComponent.
Member Data Documentation
|