VR-Exchange 2.1 API Documentation
genericInTrans.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 #pragma once
6 
10 
11 #include <portal/pGenericInter.h>
12 #include <hlaBroker/interactionTrans.h> //DtInteractionTranslator
13 
14 class DtUnknownInteraction;
15 
16 namespace MAKVrExchange
17 {
18  namespace DtHlaBroker
19  {
20 
21  class DtHlaBroker;
22 
25  //
31  {
32  public:
33 
35  const DtString& interactionClassName);
37 
38  virtual const char* virtualTranslatorName() const;
39 
40  static const char* translatorName() { return "Generic Interaction"; }
41 
43  virtual void enableTranslator(bool enabled);
44 
61  virtual DtPortalGenericInteraction* translate( DtPortalGenericInteraction* destination,
62  const DtUnknownInteraction& source );
63 
83  virtual DtUnknownInteraction* translate( DtUnknownInteraction* destination,
84  const DtPortalGenericInteraction& source );
85 
86  protected:
87  virtual void createHlaInteraction(const DtPortalGenericInteraction& in);
88  virtual void createPortalInteraction( const DtUnknownInteraction& incomming );
89 
90 
91  protected:
92 
93  static void receiveHlaInteraction(DtUnknownInteraction *inter, void *usr);
94  static void receivePortalInteraction( const DtPortalGenericInteraction &inter, void *usr);
95 
96  protected:
99  };
100  }
101 }

Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)