VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
makVrv::DtSoundCreatorInterface Class Referenceabstract

Per-De abstract interface for creating and destroying model-definition-driven sound components.

This interface is stored as a per-De instance (via DtDe::registerInstance) and is accessible to any vrvCore code that holds a DtDe reference. The concrete implementation is provided by vrvAudio (DtModelSoundCreator) and registered during DtAudioManager construction. When vrvAudio is not present, findInstance() returns nullptr and all call sites silently skip sound creation.

Supported model definition parameters:

Inheritance diagram for makVrv::DtSoundCreatorInterface:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtSoundCreatorInterface ()
 
virtual void onModelDefinitionSet (DtModel &model, const DtModelDefinition *definition)=0
 
virtual void onModelDestroyed (DtModel &model)=0
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtSoundCreatorInterface * findInstance (DtDe &de)
 
static void registerInstance (DtDe &de, DtSoundCreatorInterface *creator)
 
static const std::string & theClassName ()
 

Protected Member Functions

 DtSoundCreatorInterface ()
 
 DtSoundCreatorInterface (const DtSoundCreatorInterface &)=delete
 
DtSoundCreatorInterface & operator= (const DtSoundCreatorInterface &)=delete
 

Constructor & Destructor Documentation

virtual makVrv::DtSoundCreatorInterface::~DtSoundCreatorInterface ( )
virtual

DTOR.

makVrv::DtSoundCreatorInterface::DtSoundCreatorInterface ( )
protected

CTOR.

makVrv::DtSoundCreatorInterface::DtSoundCreatorInterface ( const DtSoundCreatorInterface &  )
protecteddelete

Copy constructor not implemented - copy not allowed.

Member Function Documentation

static DtSoundCreatorInterface* makVrv::DtSoundCreatorInterface::findInstance ( DtDe &  de)
static

Look up the per-De instance.

Returns
nullptr if no implementation has been registered.
static void makVrv::DtSoundCreatorInterface::registerInstance ( DtDe &  de,
DtSoundCreatorInterface *  creator 
)
static

Register the per-De instance. Called once per De during DtAudioManager construction. The De takes ownership.

static const std::string& makVrv::DtSoundCreatorInterface::theClassName ( )
static

Return the class name used for registration.

virtual void makVrv::DtSoundCreatorInterface::onModelDefinitionSet ( DtModel &  model,
const DtModelDefinition *  definition 
)
pure virtual

Called whenever a model definition is applied to a DtModel.

Implementations must destroy any previously created sound for model.uniqueId(), then inspect definition for sound parameters. If sound parameters are present a new DtSoundComponent is created, configured, and played. If definition is nullptr or carries no sound parameters only the destroy step is performed.

Parameters
modelThe model whose definition changed.
definitionThe new model definition, or nullptr if the definition name was empty or unknown.

Implemented in makVrv::DtModelSoundCreator.

virtual void makVrv::DtSoundCreatorInterface::onModelDestroyed ( DtModel &  model)
pure virtual

Called from DtModel::~DtModel() when the De is not destructing.

Implementations must destroy and remove the sound component owned for model.uniqueId().

Parameters
modelThe model being destroyed.

Implemented in makVrv::DtModelSoundCreator.

DtSoundCreatorInterface& makVrv::DtSoundCreatorInterface::operator= ( const DtSoundCreatorInterface &  )
protecteddelete

Assignment operator not implemented - copy not allowed.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)