VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ddsBroker/ddsBroker/detonationTranslator.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 
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 
31 
32 namespace MAKVrExchange
33 {
34 
35  namespace DtDdsBroker
36  {
37 
38  class DtDdsBroker;
39 
43  : public DtDdsInteractionTranslator<DtPortalDetonationInteraction, simpleOM::simpleDetonationInteraction>
44  {
45  public:
46 
48  Dt_DEF_TRANSLATOR_NAME( "Detonation" );
49 
52 
54  virtual ~DtDetonationTranslator();
55 
59 
60  virtual void initializeDdsCallbacks();
61  virtual void removeDdsCallbacks();
62 
64 
66  virtual DtPortalDetonationInteraction* translate( DtPortalDetonationInteraction* destination,
68 
70  virtual simpleOM::simpleDetonationInteraction* translate(
72  const DtPortalDetonationInteraction& source );
73 
74  virtual void printDDSInteraction(
75  const simpleOM::simpleDetonationInteraction& detInter ) const;
76 
77  protected:
78 
79  virtual void loadWarheadTypeMappingFile();
80 
81  private:
82 
85 
87  DtDetonationTranslator& operator = ( const DtDetonationTranslator& other );
88 
90  bool operator == ( const DtDetonationTranslator& );
91 
93  bool operator != ( const DtDetonationTranslator& );
94 
95  protected:
96 
97  std::map<unsigned int,unsigned int> myDdsToPortalWarheadMap;
98  std::map<unsigned int,unsigned int> myPortalToDdsWarheadMap;
99 
100  };
101 
102  }
103 }

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)