VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVrlinkAudioProcessor.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2017 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
10 
11 #pragma once
12 
14 
18 
19 #include <matrix/vlTaitBryan.h>
20 #include <matrix/vlVector.h>
21 
22 #include <vl/fireInteraction.h>
23 #include <vl/detonationInteraction.h>
24 #include <vl/signalInteraction.h>
25 
26 #include <map>
27 
28 
29 namespace makVrv
30 {
31  class DtDe;
32  class DtVrlinkDriver;
33 
34  namespace DT_PROTOCOL_NAMESPACE
35  {
37  class DtVrlinkEntitySoundModel;
38 
43  {
44  public:
45 
49 
51  virtual ~DtVrlinkAudioProcessor();
52 
54  static void registerInstance(DtVrlinkConnection& conn,
55  DtVrlinkAudioProcessor* instance);
56 
57  static void unregisterInstance(DtVrlinkConnection& conn);
58 
60  static DtVrlinkAudioProcessor* findInstance(DtVrlinkConnection& conn);
61 
62  void setDriver(DtVrlinkDriver* drv);
63 
64  protected:
67 
68  void handlePostTick();
69  void handleEntityDiscovered(DtVrlinkEntityStateListener& ent);
70  void handleEntityRemoved(DtVrlinkEntityStateListener& ent);
71  void handleDetonationInteraction(const DtDetonationInteraction& det);
72  void handleFireInteraction(const DtFireInteraction& fire);
73  void handleSignalInteraction(const DtSignalInteraction& sig);
74 
75  void playOneTime(std::string filename, float decibels, DtVector loc, DtVector vel, int priority);
76 
78 
79  typedef std::map<DtVrlinkEntityStateListener*, DtVrlinkEntitySoundModel*> EntitySoundMap;
81 
83  };
84 
85  }
86 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)