VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtModelSoundCreator.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvAudio/vrvAudio.h>
13 
15 #include <vrvCore/DtUniqueID.h>
16 
17 #include <map>
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtSoundComponent;
23 
76  {
77  public:
78 
80  explicit DtModelSoundCreator(DtDe& de);
81 
83  virtual ~DtModelSoundCreator();
84 
87 
89  DtModelSoundCreator& operator=(const DtModelSoundCreator&) = delete;
90 
91  public:
92 
94  virtual void onModelDefinitionSet(
95  DtModel& model, const DtModelDefinition* definition) override;
96 
98  virtual void onModelDestroyed(DtModel& model) override;
99 
100  private:
101 
103  void destroySoundForModel(const DtUniqueID& id);
104 
105  private:
106 
108 
110  std::map<DtUniqueID, DtSoundComponent*> myComponentMap;
111  };
112 }
Contains makVrv::DtSoundCreatorInterface class.
DtDe & myDe
Definition: DtModelSoundCreator.h:107
Concrete DtSoundCreatorInterface that creates and manages DtSoundComponent objects for models whose d...
Definition: DtModelSoundCreator.h:75
Contains the DLL export macro for vrvAudio classes.
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:44
Per-De abstract interface for creating and destroying model-definition-driven sound components...
Definition: DtSoundCreatorInterface.h:55
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
std::map< DtUniqueID, DtSoundComponent * > myComponentMap
Owned sound components keyed by the unique ID of their DtModel.
Definition: DtModelSoundCreator.h:110
A model which owns a single model instance. A DtModel is a managing container for a single DtModelIns...
Definition: DtModel.h:57
Contains makVrv::DtUniqueID type.
#define DT_DLL_VRVAUDIO
Definition: vrvAudio.h:20
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76

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)