VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedActiveSonarHLA.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
14 #include <vl/reflectedObjectHLA.h>
16 
18 
21 typedef void (*DtActiveSonarCallbackFunction)(
22  DtReflectedActiveSonar* obj, void* usr );
23 
29 {
30 public:
31 
33  typedef DtActiveSonarStateRepository* (*DtStateRepCreator)();
34 
35 public:
36 
40  DtReflectedActiveSonar( DtHlaObject* obj, DtExerciseConn* conn,
41  bool beamsUpdateSystem = true );
42 
46  const DtGlobalObjectDesignator& des, DtExerciseConn* conn,
47  bool beamsUpdateSystem = true );
48 
50  virtual ~DtReflectedActiveSonar();
51 
53  static DtStateRepCreator setStateRepCreator( DtStateRepCreator creator );
54 
56  virtual DtActiveSonarStateRepository* activeSonarRep() const;
57 
59  virtual DtActiveSonarStateRepository* asr() const;
60 
63  virtual DtReflectedActiveSonar* next() const;
64 
67  virtual DtReflectedActiveSonar* prev() const;
68 
71  virtual DtReflectedActiveSonar* wrapNext() const;
72 
75  virtual DtReflectedActiveSonar* wrapPrev() const;
76 
79  virtual void addPostUpdateCallback( DtActiveSonarCallbackFunction cb,
80  void* usr );
81 
84  virtual void removePostUpdateCallback( DtActiveSonarCallbackFunction cb,
85  void* usr );
86 
89  virtual void setAsr( DtActiveSonarStateRepository* asr );
90 
92  virtual void beamUpdated();
93 
94 protected:
95 
98 
101 
102 protected:
103 
105  static DtStateRepCreator theStateRepCreator;
106 
107  DtActiveSonarStateRepository* myConstructedAsr;
108 
109  bool myBeamsUpdateSystem;
110 
111 };
112 
114 {
115  return (DtActiveSonarStateRepository*) myStateRep;
116 }
117 
119 {
120  return (DtActiveSonarStateRepository*) myStateRep;
121 }
122 
123 #endif // DtHLA
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtReflectedActiveSonar represent active sonar object simulated by remote applications...
Definition: reflectedActiveSonarDIS.h:28
Contains the DtActiveSonarStateRepository class declaration.
virtual DtActiveSonarStateRepository * activeSonarRep() const
Get the sonar&#39;s state repository.
Definition: reflectedActiveSonarDIS.h:47
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
virtual DtActiveSonarStateRepository * asr() const
Synonym for activeSonarRep().
Definition: reflectedActiveSonarDIS.h:53
class DtActiveSonarStateRepository
Definition: activeSonarStateRepository.h:29
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
void * prev() const
Definition: vlList.h:277
void * wrapNext() const
Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit...
Definition: vlList.h:282
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
void(* DtActiveSonarCallbackFunction)(DtReflectedActiveSonar *, void *)
Callback function that takes a DtReflectedActiveSonar and user data.
Definition: reflectedActiveSonarDIS.h:23
void * wrapPrev() const
Definition: vlList.h:288

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)