VR-Exchange 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
disBroker/disBroker/emitterSystemTranslator.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/reflectedEmitterSystemList.h>
14 #include <vl/emitterSystemPublisher.h>
15 
16 class DtEmitterBeamRepository;
17 class DtReflectedEmitterSystem;
18 class DtEmitterSystemRepository;
19 
20 #define EMITTER_TEMPLATE_ARGS \
21  DtPortalEmitterSystemObject, DtPortalReflectedEmitterSystemObject, \
22  DtReflectedEmitterSystem, DtReflectedEmitterSystemList, \
23  DtEmitterSystemRepository, DtEmitterSystemPublisher
24 
25 namespace MAKVrExchange
26 {
27 
28  namespace DtDisBroker
29  {
30 
34  : public DtEmbeddedSystemTranslator<EMITTER_TEMPLATE_ARGS>
35  {
36  public:
37 
39  Dt_DEF_TRANSLATOR_NAME( "Emitter System" );
40 
42  DtEmitterSystemTranslator( DtBroker* disBroker );
43 
45  virtual ~DtEmitterSystemTranslator();
46 
47  protected:
48 
51  virtual bool isDisPublishable( DtBrokerObject* brokerObj,
53 
58  virtual bool performDisGlobalIdMapping( const DtObjectPublisher* publisher,
60  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
61  int systemId /* = DtGlobalIdMapper::NoSystemId */,
62  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
63 
66  virtual DtString portalObjectName( const DtReflectedEmitterSystem* refObj ) const;
67 
71  virtual bool performPortalGlobalIdMapping(
72  const DtPortalEmitterSystemObjectPublisher* publisher,
73  const DtReflectedEmitterSystem& refObj,
74  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
75  int systemId /* = DtGlobalIdMapper::NoSystemId */,
76  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
77 
80  virtual void deleteDisPublisher( DtBrokerObject* brokerObject );
81 
83  virtual DtPortalEmitterSystemObject* translate( DtPortalEmitterSystemObject* destination,
84  const DtEmitterSystemRepository& source, const DtReflectedEmitterSystem& refObj );
85 
87  virtual DtEmitterBeamData* translate( DtEmitterBeamData* destination,
88  const DtEmitterBeamRepository& source );
89 
91  virtual DtEmitterSystemRepository* translate( DtEmitterSystemRepository* destination,
93 
95  virtual DtEmitterBeamRepository* translate( DtEmitterBeamRepository* destination,
96  const DtEmitterBeamData& source );
97 
98  };
99 
100  }
101 }
102 

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)