VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
activeSonarTrans.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 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 
47  protected:
48 
51  virtual DtActiveSonarPublisher* instantiateRprPublisher(
52  const DtPortalReflectedActiveSonar* refObj,
53  const DtString& objectName );
54 
57  virtual bool isRprPublishable( const DtBrokerObject* brokerObj,
58  const DtPortalReflectedActiveSonar* refObj );
59 
61  virtual void updatePortalBrokerObject( DtBrokerObject* brokerObj,
62  const DtPortalActiveSonar& sr );
63 
64  public:
65 
67  virtual DtPortalActiveSonar* translate( DtPortalActiveSonar* destination,
68  const DtActiveSonarStateRepository& source, const DtReflectedActiveSonar& refObj );
69 
71  virtual DtActiveSonarStateRepository* translate(
72  DtActiveSonarStateRepository* destination,
73  const DtPortalActiveSonar& source,
74  const DtPortalReflectedActiveSonar& refObj );
75 
77  virtual DtActiveSonarBeamRepository* translate( DtActiveSonarBeamRepository* destination,
78  const DtActiveSonarBeamData& source );
79 
81  virtual DtActiveSonarBeamData* translate( DtActiveSonarBeamData* destination,
82  const DtActiveSonarBeamRepository& source );
83 
84  };
85 
86  }
87 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)