VR-Exchange 2.1 API Documentation
hlaBroker/stopTrans.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ******************************************************************************/
4 #pragma once
5 
6 
7 
8 
9 #include "interactionTrans.h" //DtInteractionTranslator
10 
11 
12 class DtStopFreezeInteraction;
13 
14 namespace MAKVrExchange {
15  class DtPortalStopInteraction;
16  namespace DtHlaBroker {
17 
18  class DtHlaBroker;
19 
24  {
25  public:
26 
29 
31  virtual ~DtStopInteractionTranslator();
32 
38  static const char* translatorName();
39 
43  virtual const char* virtualTranslatorName() const;
44 
46  virtual void enableTranslator(bool enabled);
47 
64  virtual DtPortalStopInteraction* translate( DtPortalStopInteraction* destination,
65  const DtStopFreezeInteraction& source );
66 
85  virtual DtStopFreezeInteraction* translate( DtStopFreezeInteraction* destination,
86  const DtPortalStopInteraction& source );
87 
88  protected:
89 
98  virtual void createHlaInteraction( const DtPortalStopInteraction &in );
99 
108  virtual void createPortalInteraction( const DtStopFreezeInteraction &in );
109 
119  static void receiveHlaInteraction( DtStopFreezeInteraction *collision,
120  void *userData );
121 
131  static void receivePortalInteraction( const DtPortalStopInteraction &collision,
132  void *userData );
133 
134  private:
135 
137  static const char thisTranslatorName[];
138 
140  static const char thisInteractionName[];
141 
144 
147 
149  int operator==( const DtStopInteractionTranslator & );
150 
152  int operator!=( const DtStopInteractionTranslator & );
153 
154  }; //end class DtStopInteractionTranslator
155 
157  {
158  return thisTranslatorName;
159  }
160 
162  {
163  return translatorName();
164  }
165 
166 
167  }
168 }
169 
170 

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)