The IFactoryRegistry interface provides methods to add, remove and query different physics simulator classes that can be instantiated using the Physics::IFactory implementing this interface.
More...
#include "murl_physics_i_factory_registry.h"
The IFactoryRegistry interface provides methods to add, remove and query different physics simulator classes that can be instantiated using the Physics::IFactory implementing this interface.
◆ RegisterSimulatorClass()
virtual Bool Murl::Physics::IFactoryRegistry::RegisterSimulatorClass |
( |
const ISimulator::ClassInfo & |
classInfo | ) |
|
|
pure virtual |
Register a physics simulator class.
- Parameters
-
classInfo | The ClassInfo structure of the simulator to register. |
- Returns
- true if successful.
◆ UnregisterSimulatorClass()
virtual Bool Murl::Physics::IFactoryRegistry::UnregisterSimulatorClass |
( |
const ISimulator::ClassInfo & |
classInfo | ) |
|
|
pure virtual |
Unregister a previously registered physics simulator class.
- Parameters
-
classInfo | The ClassInfo structure of the simulator to unregister. |
- Returns
- true if successful.
◆ GetRegisteredSimulatorClassInfoIndex() [1/2]
virtual SInt32 Murl::Physics::IFactoryRegistry::GetRegisteredSimulatorClassInfoIndex |
( |
const ISimulator::ClassInfo & |
classInfo | ) |
const |
|
pure virtual |
Query the index of a registered physics simulator class, by its ClassInfo structure.
- Parameters
-
classInfo | The class info structure of the simulator class to query. |
- Returns
- The zero-based index, or -1 if not registered.
◆ GetRegisteredSimulatorClassInfoIndex() [2/2]
virtual SInt32 Murl::Physics::IFactoryRegistry::GetRegisteredSimulatorClassInfoIndex |
( |
const String & |
className | ) |
const |
|
pure virtual |
Query the index of a registered physics simulator class, by its class name.
- Parameters
-
className | The name of the simulator class to query. |
- Returns
- The zero-based index, or -1 if not registered.
◆ GetNumberOfRegisteredSimulatorClassInfos()
virtual UInt32 Murl::Physics::IFactoryRegistry::GetNumberOfRegisteredSimulatorClassInfos |
( |
| ) |
const |
|
pure virtual |
Get the total number of registered physics simulator classes.
- Returns
- The number of registered simulator classes.
◆ GetRegisteredSimulatorClassInfo()
virtual const ISimulator::ClassInfo* Murl::Physics::IFactoryRegistry::GetRegisteredSimulatorClassInfo |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
Get the ClassInfo structure of a registered physics simulator class.
- Parameters
-
- Returns
- The class info, or null if the index is out of range.
The documentation for this interface was generated from the following file:
- murl_physics_i_factory_registry.h