VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dynamicTerrainPublisherDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
10 
11 #pragma once
12 
13 #if DtDIS
14 
15 #include <vl/objectPublisherDIS.h>
19 #include <vl/objectId.h>
20 #include <vlpi/entityIdentifier.h>
21 
22 
23 
25 
31 {
32 public:
34  typedef DtDynamicTerrainStateRepository* (*DtStateRepCreator)();
35 
36 public:
39  DtDynamicTerrainStateRepository* stateRepToUse,
40  DtExerciseConn* conn,
41  const DtObjectId& id = DtObjectId::nullId());
42 
45  DtExerciseConn* conn,
46  const DtObjectId& id = DtObjectId::nullId());
47 
49  virtual ~DtDynamicTerrainPublisher();
50 
51 private:
54 
56  DtDynamicTerrainPublisher& operator=(
57  const DtDynamicTerrainPublisher& orig);
58 
59 public:
60 
63  virtual DtDynamicTerrainStateRepository* dynamicTerrainStateRep();
64 
66  virtual DtDynamicTerrainStateRepository* dsr();
67 
69  virtual void tick();
70 
72  virtual void forceUpdate();
73 
75  virtual const DtObjectId& id() const;
76 
78  virtual const DtObjectId& localId() const;
79 
81  virtual const DtGlobalObjectDesignator& globalId() const;
82 
84  virtual void sendFinalPdu();
85 
86 public:
88  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
89 
90 protected:
91  static DtStateRepCreator theStateRepCreator;
92  DtObjectId myId;
95 
96 };
97 
99 {
100  return (DtDynamicTerrainStateRepository*) myStateRep;
101 }
102 
104 {
105  return (DtDynamicTerrainStateRepository*) myStateRep;
106 }
107 
108 
109 
110 #endif

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)