VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
activeSonarPublisherHLA.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2026 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
14 #include "vl/objectPublisherHLA.h"
16 
18 
24 {
25 public:
26 
28  typedef DtActiveSonarStateRepository* (*DtStateRepCreator)();
29 
32  typedef DtGlobalObjectDesignator (*DtActiveSonarBeamNameChooser)(
33  DtActiveSonarPublisher& publisher,
34  DtU8 beamId,
35  void* userData);
36 
37 public:
38 
41  DtActiveSonarStateRepository* stateRepToUse,
42  DtExerciseConn* conn,
43  const char* name = 0,
44  const DtDDMRegionSet* regionSetToUse = 0);
45 
48  RTI::ObjectClassHandle h,
49  DtExerciseConn* conn,
50  const char* name = 0,
51  const DtDDMRegionSet* regionSetToUse = 0);
52 
55  DtExerciseConn* conn,
56  const char* name = 0,
57  const DtDDMRegionSet* regionSetToUse = 0);
58 
64  DtActiveSonarPublisher( DtHlaObjectWithStateRep* obj, DtExerciseConn* conn);
65 
67  virtual ~DtActiveSonarPublisher();
68 
71  virtual DtActiveSonarStateRepository* activeSonarStateRep();
72 
74  virtual DtActiveSonarStateRepository* asr();
75 
78  virtual const char* classToUse() const;
79 
80 
82  virtual bool tick();
83 
87  virtual void forceUpdate();
88 
92  virtual void forceUpdate(const RTI::AttributeHandleSet& set);
93 
98  virtual void setActiveSonarBeamNameChooser(DtActiveSonarBeamNameChooser chooser, void* userData = nullptr);
99 
106  virtual DtString chooseBeamName(DtActiveSonarBeamRepository* bsr);
107 
108 public:
110  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
111 
112 protected:
113 
119  const char* name = 0,
120  const DtDDMRegionSet* regionSetToUse = 0);
121 
125  virtual void syncBeamList();
126 
129  virtual DtActiveSonarBeamPublisher* publisherForAsr(
131 
133  virtual int numBeams() const;
134 
135 protected:
136 
138  DtList myBeamPubs;
139  bool myTickedFirstTime;
140 
142  DtActiveSonarBeamNameChooser myBeamNameChooser;
143 
145  void* myBeamNameChooserUserData;
146 
147  static DtStateRepCreator theStateRepCreator;
148 
149 protected:
152 
155 };
156 
158 {
160 }
161 
163 {
165 }
166 
167 #endif
DtStateRepository * myStateRep
Definition: objectPublisherDIS.h:193
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:63
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
Instances of DtActiveSonarPublisher are used to take care of the details associated with publishing t...
Definition: activeSonarPublisherDIS.h:23
virtual DtActiveSonarStateRepository * asr()
Definition: activeSonarPublisherDIS.h:112
DtObjectId DtGlobalObjectDesignator
In DIS a DtGlobalObjectDesignator is a DtObjectId.
Definition: globalObjectDesignator.h:59
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherDIS.h:36
virtual DtActiveSonarStateRepository * activeSonarStateRep()
Get the active sonar state repository for this active sonar publisher.
virtual void forceUpdate()=0
For publisher to send PDU on next tick.
DtList is deprecated, please use std::list<T>.
Definition: vlList.h:71
class DtActiveSonarStateRepository
Definition: activeSonarStateRepository.h:29
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:149
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
The DtActiveSonarBeamRepository class provides the state repository for the ActiveSonarBeam object...
Definition: activeSonarBeamRepository.h:18
virtual bool tick()=0
Tick (update) this object.
Contains the DtActiveSonarBeamPublisher class declaration.
Instances of DtString are used to represent strings.
Definition: vlString.h:38

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)