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"

Inheritance diagram for Murl::Physics::IFactoryRegistry:

Public Member Functions

virtual Bool RegisterSimulatorClass (const ISimulator::ClassInfo &classInfo)=0
 Register a physics simulator class. More...
 
virtual Bool UnregisterSimulatorClass (const ISimulator::ClassInfo &classInfo)=0
 Unregister a previously registered physics simulator class. More...
 
virtual SInt32 GetRegisteredSimulatorClassInfoIndex (const ISimulator::ClassInfo &classInfo) const =0
 Query the index of a registered physics simulator class, by its ClassInfo structure. More...
 
virtual SInt32 GetRegisteredSimulatorClassInfoIndex (const String &className) const =0
 Query the index of a registered physics simulator class, by its class name. More...
 
virtual UInt32 GetNumberOfRegisteredSimulatorClassInfos () const =0
 Get the total number of registered physics simulator classes. More...
 
virtual const ISimulator::ClassInfo * GetRegisteredSimulatorClassInfo (UInt32 index) const =0
 Get the ClassInfo structure of a registered physics simulator class. More...
 

Detailed Description

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.

Member Function Documentation

◆ RegisterSimulatorClass()

virtual Bool Murl::Physics::IFactoryRegistry::RegisterSimulatorClass ( const ISimulator::ClassInfo &  classInfo)
pure virtual

Register a physics simulator class.

Parameters
classInfoThe 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
classInfoThe 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
classInfoThe 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
classNameThe 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
indexThe index to query, from 0 to GetNumberOfRegisteredSimulatorClassInfos()-1.
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


Copyright © 2011-2024 Spraylight GmbH.