VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ddsBroker/ddsBroker/detInTrans.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 
12 #include <ddsBroker/dllExport.h>
13 
14 // ************************************************************************ //
15 // Use the DIS implementation from VR-Link by temporarily defining DtDIS.
16 // ************************************************************************ //
17 #ifndef DtDIS
18 # define MUST_UNDEF_DTDIS
19 # define DtDIS 1
20 #endif
21 
22 #include <vl/detonationInteraction.h>
24 
25 #ifdef MUST_UNDEF_DTDIS
26 # undef DtDIS
27 #endif
28 // ************************************************************************ //
29 
30 #include <ddsBroker/ddsTrans.h>
31 
32 namespace MAKVrExchange
33 {
34 
35  namespace DtDdsBroker
36  {
37 
38  class DtDdsBroker;
39 
44  : public DtDdsInteractionTranslator<DtPortalDetonationInteraction, simpleOM::simpleDetonationInteraction>
45  {
46  public:
47 
49  Dt_DEF_TRANSLATOR_NAME( "Detonation" );
50 
53 
56 
60 
61  virtual void initializeDdsCallbacks();
62  virtual void removeDdsCallbacks();
63 
65 
67  virtual DtPortalDetonationInteraction* translate( DtPortalDetonationInteraction* destination,
69 
71  virtual simpleOM::simpleDetonationInteraction* translate(
73  const DtPortalDetonationInteraction& source );
74 
75  virtual void printDDSInteraction(
76  const simpleOM::simpleDetonationInteraction& detInter ) const;
77 
78  protected:
79 
80  virtual void loadWarheadTypeMappingFile();
81 
82  private:
83 
86 
89 
91  bool operator == ( const DtDetonationInteractionTranslator& );
92 
94  bool operator != ( const DtDetonationInteractionTranslator& );
95 
96  protected:
97 
98  std::map<unsigned int,unsigned int> myDdsToPortalWarheadMap;
99  std::map<unsigned int,unsigned int> myPortalToDdsWarheadMap;
100 
101  };
102 
103  }
104 }

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)