VR-Exchange 2.1 API Documentation
disBroker/stopTrans.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3 ******************************************************************************/
4 
5 
6 #ifndef stopTrans_H_
7 #define stopTrans_H_
8 
12 
13 #include "interactionTrans.h"
14 #include <vl/stopInter.h>
15 
16 namespace MAKVrExchange
17 {
18  class DtPortalStopInteraction;
19  namespace DtDisBroker
20  {
21 
22  class DtDisBroker;
23 
29  {
30  public:
31 
36 
40  virtual ~DtStopInteractionTranslator();
41 
47  static const char* translatorName();
48 
52  virtual const char* virtualTranslatorName() const;
53 
55  virtual void enableTranslator(bool enabled);
56 
73  virtual DtPortalStopInteraction* translate(
74  DtPortalStopInteraction* destination, const DtStopFreezeInteraction& source );
75 
94  virtual DtStopFreezeInteraction* translate( DtStopFreezeInteraction* destination,
95  const DtPortalStopInteraction& source );
96 
97  protected:
98 
107  virtual void createDisInteraction( const DtPortalStopInteraction& incoming );
108 
117  virtual void createPortalInteraction( const DtStopFreezeInteraction& incoming );
118 
131  static void receiveDisInteraction( DtStopFreezeInteraction* interaction,
132  void* userData );
133 
146  static void receivePortalInteraction( const DtPortalStopInteraction& interaction,
147  void* userData );
148 
149  private:
150 
152  static const char thisTranslatorName[];
153 
155  static const char thisInteractionName[];
156 
159 
162 
164  int operator==( const DtStopInteractionTranslator& );
165 
167  int operator!=( const DtStopInteractionTranslator& );
168 
169  }; //end class DtStopInteractionTranslator
170 
172  {
173  return thisTranslatorName;
174  }
175 
177  {
178  return translatorName();
179  }
180 
181  }
182 }
183 
184 #endif //end #ifndef stopTrans_H_

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)