VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
emitterSystemLocalNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 #include <vl/emitterSystemPublisher.h>
12 #include <tbb/spin_mutex.h>
13 
15 
16 namespace makVrf
17 {
18  class DtEmitterSystemStateComponent;
19  struct DtEmitterSystemBeamStateData;
20 
27  {
28  private:
31 
34 
37  orig);
38 
39  public:
40 
45  DtEmitterSystemLocalNetInterface(DtStateData * simObject, DtVrlinkNetworkInterface* objectManager, bool publishObject = true);
46 
49 
52  virtual bool init(const DtStateComponent*);
53 
56  virtual DtString type() const;
57 
58  static DtSimObjectNetInterface * creator(
59  DtStateData* vrfObject, DtVrlinkNetworkInterface* mgr, bool publishObject);
60 
61  virtual bool isLocal() const
62  {
63  return true;
64  }
65 
66  virtual bool wantsToCreatePublisher() const;
67 
68  protected:
69  virtual DtObjectPublisher* createPublisher(const DtEmitterSystemStateComponent*);
70  virtual void updatePublisher(DtObjectPublisher*, const DtEmitterSystemStateComponent*);
71  virtual void updateBeam(DtEmitterBeamRepository*, const DtEmitterSystemBeamStateData*);
72 
73  virtual void updatePublisher();
74 
75  protected:
77  };
78 
79 
80 #if DtHLA
83  {
84  public:
85  DtVrfEmitterSystemPublisher(DtExerciseConn* conn, const char* name = 0, const DtDDMRegionSet* regionSetToUse = 0);
86 
89  virtual void syncBeamList();
90 
91  protected:
92 
94  virtual DtEmitterBeamPublisher* createBeamPublisher(DtEmitterBeamRepository* bsr, const DtString& beamName, DtDDMRegionSet* regSet);
95 
96  };
97 
99  {
100  public:
101  DtEmitterSystemPublisher* createPublisher(DtExerciseConn* conn, const DtGlobalObjectDesignator& hostId, const DtString& name = "");
102  };
103 #endif
104 
105 }
DtVrfEmitterSystemPublisher(DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0)
const DtEmitterSystemStateComponent * myEmitterComponent
Definition: emitterSystemLocalNetInterface.h:76
Class Description: DtEmitterSystemLocalNetInterface.
Definition: emitterSystemLocalNetInterface.h:26
DtEmitterSystemPublisher * createPublisher(DtExerciseConn *conn, const DtGlobalObjectDesignator &hostId, const DtString &name="")
Definition: emitterSystemLocalNetInterface.h:98
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:339
In HLA, the publisher is overridden to protect the creation and deletion of beam publishers.
Definition: emitterSystemLocalNetInterface.h:82
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:50
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: emitterSystemStateComponent.h:466
Definition: localStateComponentNetInterface.h:22
Definition: stateComponent.h:51
virtual bool isLocal() const
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: emitterSystemLocalNetInterface.h:61
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
virtual void syncBeamList()
Determines whether a new beam needs to be created or destroyed and does so. Makes sure beams are crea...
The DtEmitterSystemStateComponentList is a collection of emitter systems and the beams they represent...
Definition: emitterSystemStateComponent.h:25
virtual DtEmitterBeamPublisher * createBeamPublisher(DtEmitterBeamRepository *bsr, const DtString &beamName, DtDDMRegionSet *regSet)
Creates and initializes a new beam publisher.
Definition: vrfVrlinkPublisherFactory.h:110

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)