VR-Link API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
soundInteractionHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2026 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef soundInteractionHLA_H_
8 #define soundInteractionHLA_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithEncDec.h"
13 #include "hostStructs.h"
14 #include "eventId.h"
15 #include <matrix/vlMath.h>
16 
17 
18 
22 
25 
26 
28 typedef void (*DtSoundInteractionCb)
29  (DtSoundInteraction* inter, void* usr);
30 
31 
36 {
37 public:
38 
41 
43  virtual ~DtSoundInteraction();
44 
47 
50 
52  virtual void printData() const;
53 
55  virtual void printDataToStream(std::ostream& stream) const;
56 
58  virtual void setSourceId(const DtGlobalObjectDesignator& id);
59  virtual const DtGlobalObjectDesignator& sourceId() const;
60 
62  virtual void setSoundType(const DtEntityType& type);
63  virtual DtEntityType soundType() const;
64 
66  virtual void setLocation(const DtVector& loc);
67  virtual const DtVector& location() const;
68 
70  virtual void setRelativeLocation(const DtVector32& loc);
71  virtual const DtVector32& relativeLocation() const;
72 
74  virtual void setDecibelLevel(DtFloat32 intensity);
75  virtual DtFloat32 decibelLevel() const;
76 
78  virtual const char* name() const;
79 
80 public:
81 
84  static DtInteraction* create();
85 
88  static void addCallback(DtExerciseConn* conn,
89  DtSoundInteractionCb cb, void* usr,
90  DtDDMRegionSP region = DtDDMRegionSP());
91  static void removeCallback(DtExerciseConn* conn,
92  DtSoundInteractionCb cb, void* usr,
93  DtDDMRegionSP region = DtDDMRegionSP());
94 
95 protected:
96 
102 };
103 
104 #endif
105 #endif
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
Instances of DtSoundInteraction are used to represent Sound Interactions in the RPR FOM...
Definition: soundInteractionHLA.h:35
DtVector myLocation
Definition: soundInteractionHLA.h:100
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:62
DtInteractionWithEncDec & operator=(const DtInteractionWithEncDec &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
DtVector32 myRelativePosition
Definition: soundInteractionHLA.h:99
DtEntityType mySoundType
Definition: soundInteractionHLA.h:98
DtGlobalObjectDesignator mySourceId
Definition: soundInteractionHLA.h:97
static void removeCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
This file defines math constants and methods which may be useful in simulations.
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
Definition: interactionHLA.h:358
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the stream.
Definition: interactionHLA.h:366
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
Definition: vlVector.h:224
std::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
static void addCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Register/Deregister callback function cb with conn, on all interaction class name (char*) contained i...
Definition: vlVector.h:162
void(* DtSoundInteractionCb)(DtSoundInteraction *inter, void *usr)
Sound interaction callback function signature.
Definition: soundInteractionHLA.h:29
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
This file provides a declaration of the class DtInteractionWithEncDec.
class DtInteractionWithEncDec:
Definition: interactionWithEncDec.h:44
DtFloat32 myDecibelLevel
Definition: soundInteractionHLA.h:101
Contains the DtEventId class declaration.
Instances of DtString are used to represent strings.
Definition: vlString.h:38
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)