![]() |
VR-Forces 5.0.1 Developer's Guide
|
The state component factory contains creators for all the state components that can have double buffered data. When the instance is referenced, if no instance exists a new instance is created. To replace a state component creator reuse the Type of a current state component.
Public Member Functions | |
| DtStateComponentFactory () | |
| virtual | ~DtStateComponentFactory () |
| virtual DtStateComponent::StateComponentType | addStateComponentCreator (const char *stateComponent, DtStateComponent::StateComponentType, DtStateComponentCreatorInterface *) |
| virtual DtStateComponent * | createStateComponent (DtStateComponent::StateComponentType, DtStateData *) const |
| virtual DtStateComponent * | createStateComponent (const std::string &name, DtStateData *) const |
| virtual void | registerLegionComponents (Legion::SimulationDatabase *db) |
| virtual void | addAdditionalTableColumns (Legion::SimulationDatabase *db) |
| virtual bool | hasCreator (DtStateComponent::StateComponentType) const |
| virtual DtStateComponent::StateComponentType | stateComponentTypeWithCreator (const std::string &creator) const |
| virtual bool | autoCreateForRemoteObject (DtStateComponent::StateComponentType) const |
Static Public Member Functions | |
| static DtStateComponentFactory * | instance () |
Protected Types | |
| typedef std::map < DtStateComponent::StateComponentType, DtStateComponentCreatorInterface * > | StateComponentCreatorMap |
| typedef std::map< std::string, DtStateComponentCreatorInterface * > | StateComponentCreatorByNameMap |
Protected Attributes | |
| StateComponentCreatorMap | myStateComponentCreatorMap |
| StateComponentCreatorByNameMap | myStateComponentCreatorByNameMap |
|
protected |
|
protected |
| makVrf::DtStateComponentFactory::DtStateComponentFactory | ( | ) |
CTOR.
|
virtual |
DTOR.
|
static |
Returns the static instance of this factory.
|
virtual |
Add/replace an existing creator. This class will take ownership of the creators. The StateComponentType returned will be a new type that has the high word of the unique creator id and the low word of the actual component type.
|
virtual |
Creates a state component given the type. If no state component of that type exists returns NULL. The state component type coming in is assumed to be the full type of CREATOR_TYPE | COMPONENT_TYPE. If just CREATOR_TYPE is passed in this method will fail.
|
virtual |
Creates a state component given the type. If no state component of that type exists returns NULL.
|
virtual |
Asks all the current creators to register their legion specific components.
|
virtual |
Asks all the current creators to register additional columns with existing legion components they may represent.
|
virtual |
Returns true if this creator exists.
|
virtual |
|
virtual |
Returns true if this component should be automatically created for a reflected object (vs. letting the reflected object determine if it should be created). Default is true.
|
protected |
|
protected |