VR-Exchange 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
disBroker/disBroker/activeSonarTranslator.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vl/reflectedActiveSonarList.h>
14 #include <vl/activeSonarPublisher.h>
15 
16 class DtReflectedActiveSonar;
17 class DtActiveSonarStateRepository;
18 
19 #define ACTIVE_SONAR_TEMPLATE_ARGS \
20  DtPortalActiveSonar, DtPortalReflectedActiveSonar, \
21  DtReflectedActiveSonar, DtReflectedActiveSonarList, \
22  DtActiveSonarStateRepository, DtActiveSonarPublisher
23 
24 namespace MAKVrExchange
25 {
26 
27  class DtActiveSonarBeamData;
28 
29  namespace DtDisBroker
30  {
31 
35  : public DtUnderwaterAcousticTranslator<ACTIVE_SONAR_TEMPLATE_ARGS>
36  {
37  public:
38 
40  Dt_DEF_TRANSLATOR_NAME( "Active Sonar" );
41 
43  DtActiveSonarTranslator( DtBroker* disBroker );
44 
46  virtual ~DtActiveSonarTranslator();
47 
48  protected:
49 
58  virtual DtObjectPublisher* instantiateDisPublisher(
59  const DtPortalReflectedActiveSonar* refObj, const DtEntityIdentifier& name );
60 
63  virtual void createDisPublisher( DtBrokerObject* brokerObject );
64 
67  virtual DtString portalObjectName( const DtReflectedActiveSonar* refObj ) const;
68 
73  virtual bool performPortalGlobalIdMapping(
74  const DtPortalActiveSonarPublisher* publisher, const DtReflectedActiveSonar& refObj,
75  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
76  int systemId /* = DtGlobalIdMapper::NoSystemId */,
77  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
78 
82  virtual void receivePortalUpdate( const DtPortalReflectedActiveSonar& object );
83 
87  virtual void deleteDisPublisher( DtBrokerObject* brokerObject );
88 
91  virtual bool isDisPublishable( DtBrokerObject* brokerObj,
92  const DtPortalReflectedActiveSonar* refObj );
93 
95  virtual DtPortalActiveSonar* translate( DtPortalActiveSonar* destination,
96  const DtActiveSonarStateRepository& source, const DtReflectedActiveSonar& refObj );
97 
99  virtual DtActiveSonarStateRepository* translate( DtActiveSonarStateRepository* destination,
100  const DtPortalActiveSonar& source, const DtPortalReflectedActiveSonar& refObj );
101 
103  virtual DtActiveSonarBeamData* translate( DtActiveSonarBeamData* destination,
104  const DtActiveSonarBeamRepository& source );
105 
107  virtual DtActiveSonarBeamRepository* translate( DtActiveSonarBeamRepository* destination,
108  const DtActiveSonarBeamData& source );
109 
110  };
111 
112  }
113 }

Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (www.mak.com)