The ISimulatorRegistry interface provides methods to add, remove and query different physics simulator objects that can be instantiated using the Physics::ISimulator implementing this interface. More...

#include "murl_physics_i_simulator_registry.h"

Inheritance diagram for Murl::Physics::ISimulatorRegistry:

Public Member Functions

virtual Bool RegisterObjectClass (const IObject::ClassInfo &classInfo)=0
 Register an object class. More...
 
virtual Bool UnregisterObjectClass (const IObject::ClassInfo &classInfo)=0
 Unregister a previously registered object class. More...
 
virtual SInt32 GetRegisteredObjectClassInfoIndex (const IObject::ClassInfo &classInfo) const =0
 Query the index of a registered object class, by its ClassInfo structure. More...
 
virtual SInt32 GetRegisteredObjectClassInfoIndex (const String &className) const =0
 Query the index of a registered object class, by its class name. More...
 
virtual UInt32 GetNumberOfRegisteredObjectClassInfos () const =0
 Get the total number of registered object classes. More...
 
virtual const IObject::ClassInfo * GetRegisteredObjectClassInfo (UInt32 index) const =0
 Get the ClassInfo structure of a registered object class. More...
 

Detailed Description

The ISimulatorRegistry interface provides methods to add, remove and query different physics simulator objects that can be instantiated using the Physics::ISimulator implementing this interface.

Member Function Documentation

◆ RegisterObjectClass()

virtual Bool Murl::Physics::ISimulatorRegistry::RegisterObjectClass ( const IObject::ClassInfo &  classInfo)
pure virtual

Register an object class.

Parameters
classInfoThe ClassInfo structure of the object to register.
Returns
true if successful.

◆ UnregisterObjectClass()

virtual Bool Murl::Physics::ISimulatorRegistry::UnregisterObjectClass ( const IObject::ClassInfo &  classInfo)
pure virtual

Unregister a previously registered object class.

Parameters
classInfoThe ClassInfo structure of the object to unregister.
Returns
true if successful.

◆ GetRegisteredObjectClassInfoIndex() [1/2]

virtual SInt32 Murl::Physics::ISimulatorRegistry::GetRegisteredObjectClassInfoIndex ( const IObject::ClassInfo &  classInfo) const
pure virtual

Query the index of a registered object class, by its ClassInfo structure.

Parameters
classInfoThe class info structure of the object class to query.
Returns
The zero-based index, or -1 if not registered.

◆ GetRegisteredObjectClassInfoIndex() [2/2]

virtual SInt32 Murl::Physics::ISimulatorRegistry::GetRegisteredObjectClassInfoIndex ( const String className) const
pure virtual

Query the index of a registered object class, by its class name.

Parameters
classNameThe name of the object class to query.
Returns
The zero-based index, or -1 if not registered.

◆ GetNumberOfRegisteredObjectClassInfos()

virtual UInt32 Murl::Physics::ISimulatorRegistry::GetNumberOfRegisteredObjectClassInfos ( ) const
pure virtual

Get the total number of registered object classes.

Returns
The number of registered object classes.

◆ GetRegisteredObjectClassInfo()

virtual const IObject::ClassInfo* Murl::Physics::ISimulatorRegistry::GetRegisteredObjectClassInfo ( UInt32  index) const
pure virtual

Get the ClassInfo structure of a registered object class.

Parameters
indexThe index to query, from 0 to GetNumberOfRegisteredObjectClassInfos()-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_simulator_registry.h


Copyright © 2011-2024 Spraylight GmbH.