VR-Link API Documentation for DIS
dRefUndwaAcoustics.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/undwaAcousticSR.h>
15 #include <vl/dUndwaAcousticDec.h>
16 #include <vl/dReflectedObj.h>
17 #include <vl/objIdHashKey.h>
18 
20 
24 
30 {
31 public:
32 
34  typedef DtUnderwaterAcousticsStateRepository* (*DtStateRepCreator)();
35 
36 public:
37 
40  const DtGlobalObjectDesignator& hostEntity );
41 
44 
45 public:
46 
48  virtual inline DtUnderwaterAcousticsStateRepository* underwaterAcousticsStateRep() const
49  {
50  return myStateRepository;
51  }
52 
54  virtual inline DtUnderwaterAcousticsStateRepository* usr() const { return myStateRepository; }
55 
58  virtual inline DtStateRepository* stateRep() const { return myStateRepository; }
59 
61  virtual inline DtUnderwaterAcousticsDecoder* decoder() { return &myDecoder; }
62 
65  virtual void processStateMessage( const DtStateMsg& msg );
66 
68  virtual DtReflectedUnderwaterAcoustics* next() const;
69 
71  virtual DtReflectedUnderwaterAcoustics* prev() const;
72 
76 
80 
82  virtual void addPostUpdateCallback( DtUnderwaterAcousticsCallbackFunction cb, void* usr );
83 
84  virtual void removePostUpdateCallback( DtUnderwaterAcousticsCallbackFunction cb, void* usr );
85 
87  virtual inline const DtBaseHashKey& hashKey() const { return myHashKey; }
88 
90  virtual inline DtString idString() const { return myIdString; }
91 
94  virtual const DtGlobalObjectDesignator& globalId() const;
95 
96 public:
97 
99  static void setStateRepCreator( DtStateRepCreator creator );
100  static DtStateRepCreator stateRepCreator();
101 
102 protected:
103 
106 
109 
110 protected:
111 
112  static DtStateRepCreator theStateRepCreator;
113 
118 
119 };
120 
121 #endif // DtDIS

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)