VR-Exchange 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rprBroker/rprBroker/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 DtActiveSonarBeamRepository;
18 class DtActiveSonarStateRepository;
19 
20 #define ACTIVE_SONAR_TEMPLATE_ARGS \
21  DtPortalActiveSonar, DtPortalReflectedActiveSonar, \
22  DtReflectedActiveSonar, DtReflectedActiveSonarList, \
23  DtActiveSonarStateRepository, DtActiveSonarPublisher
24 
25 namespace MAKVrExchange
26 {
27 
28  namespace DtRprBroker
29  {
30 
34  : public DtUnderwaterAcousticTranslator<ACTIVE_SONAR_TEMPLATE_ARGS>
35  {
36  public:
37 
39  Dt_DEF_TRANSLATOR_NAME( "Active Sonar" );
40 
43 
45  virtual ~DtActiveSonarTranslator();
46 
49  virtual void initializeRprCallbacks();
50 
53  virtual void initializePortalCallbacks();
54 
55  protected:
56 
59  virtual DtActiveSonarPublisher* instantiateRprPublisher(
60  const DtPortalReflectedActiveSonar* refObj,
61  const DtString& objectName );
62 
65  virtual bool isRprPublishable( DtBrokerObject* brokerObj,
66  const DtPortalReflectedActiveSonar* refObj );
67 
68  public:
69 
71  virtual DtPortalActiveSonar* translate( DtPortalActiveSonar* destination,
72  const DtActiveSonarStateRepository& source, const DtReflectedActiveSonar& refObj );
73 
75  virtual DtActiveSonarStateRepository* translate(
76  DtActiveSonarStateRepository* destination,
77  const DtPortalActiveSonar& source,
78  const DtPortalReflectedActiveSonar& refObj );
79 
81  virtual DtActiveSonarBeamRepository* translate( DtActiveSonarBeamRepository* destination,
82  const DtActiveSonarBeamData& source );
83 
85  virtual DtActiveSonarBeamData* translate( DtActiveSonarBeamData* destination,
86  const DtActiveSonarBeamRepository& source );
87 
88  };
89 
90  }
91 }

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)