VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
activeSonarSimDataProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrfGuiNetworkCommon/vrfComponentProcessorInterface.inl>
16 #include <vrfGuiCore/DtVrlinkActiveSonarStateObjectAgent.hpp>
17 
18 namespace makVrv
19 {
20  class DtAgentManagerInterface;
21 }
22 
23 namespace makVrf
24 {
25  struct DtVrlinkActiveSonarState;
26  struct DtVrlinkActiveSonarBeamState;
27 
29  class DT_DLL_vrfGuiNetworkCommon DtActiveSonarSimDataProcessor : public DtVrfComponentProcessor<DtVrlinkActiveSonarStateObjectAgent, DtActiveSonarStateComponent>
30  {
31  public:
33 
36 
39 
41  virtual void createAndSendState(const std::set<const DtFrameStateInterface*>& interfaces,
42  makVrv::DtSimStateObjectAgent& objectDriver, bool force = false);
43 
44  virtual const makVrv::DtSimState& emptyState() const;
45 
46  static const char* ProcessorName() { return "DtActiveSonarSimDataProcessor"; };
47  virtual const char* processorName() const { return ProcessorName(); };
48 
49  protected:
50 
52  {
53  typedef std::set<const DtFrameStateInterface*> FrameStateInterfaces;
56  };
57 
58  virtual bool setState(const std::set<const DtFrameStateInterface*>&, FrameStateData& state) const;
59  virtual bool setState(const DtActiveSonarStateComponent*, DtVrlinkActiveSonarState&) const;
60  virtual bool setState(const DtActiveSonarBeamStateData*, DtVrlinkActiveSonarBeamState&) const;
61 
62  virtual bool componentDiscovered(const DtFrameStateInterface*);
63  virtual void componentRemoved(UInt64 lid, makVrv::DtUniqueID id, const DtFrameStateInterface*) override;
64 
65  protected:
66  typedef std::map<makVrv::DtUniqueID, FrameStateData> Cache;
68  };
69 
71  {
72  public:
75 
77 
80  static void registerInstance(makVrv::DtBaseConnection& conn, DtActiveSonarSimDataProcessorCreator* instance);
81 
83  };
84 }
85 
std::map< makVrv::DtUniqueID, FrameStateData > Cache
Definition: activeSonarSimDataProcessor.h:66
Contains makVrv::DtSimDataProcessorInterface class.
The DtActiveSonarStateComponentList is a collection of emitter systems and the beams they represent...
Definition: activeSonarStateComponent.h:17
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Cache myCache
Definition: activeSonarSimDataProcessor.h:67
Definition: activeSonarSimDataProcessor.h:51
FrameStateInterfaces frameStateInterfaces
Definition: activeSonarSimDataProcessor.h:54
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:38
Definition: activeSonarSimDataProcessor.h:70
DtVrlinkActiveSonars activeSonarStateData
Definition: activeSonarSimDataProcessor.h:55
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: activeSonarStateComponent.h:286
virtual const char * processorName() const
Used to uniquely identify for registration.
Definition: activeSonarSimDataProcessor.h:47
#define DT_DLL_vrfGuiNetworkCommon
This file is used to determine how to build.
Definition: vrfGuiNetworkCommonDefines.h:24
static const char * ProcessorName()
Definition: activeSonarSimDataProcessor.h:46
std::set< const DtFrameStateInterface * > FrameStateInterfaces
Definition: activeSonarSimDataProcessor.h:53
A DtSimState is the base class for all state objects. Derived instances of DtSimState will be created...
Definition: DtSimState.h:19
Class to transfer DtStateData for ActiveSonar objects into entity sim data.
Definition: activeSonarSimDataProcessor.h:29
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:282
Definition: vrfComponentProcessorInterface.h:31
This class holds the state data that represents each simulation object in the system.
Definition: stateDataManager.h:71

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)