VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfControl.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/dllExport.h>
13 #include <portal/pInteraction.h>
14 
15 namespace MAKVrExchange
16 {
17 
18  class DtPortalConnection;
19 
22 
26  : public DtPortalInteraction
27  {
28  public:
29 
30  static const int DtUnknownControlType = 0;
31  static const int DtPauseControlType = 1;
32  static const int DtRunControlType = 2;
33  static const int DtRunDurationControlType = 3;
34  static const int DtRunCompleteControlType = 4;
35  static const int DtRewindControlType = 5;
36  static const int DtStepControlType = 6;
37 
39  typedef void (*functionCallback_type) (
40  const DtPortalVrfControlInteraction& interaction, void* userData );
41 
44 
47 
49  static void addCallback( DtPortalConnection* connection,
50  functionCallback_type callbackFunction, void* userData );
51 
53  static void removeCallback( DtPortalConnection* connection,
54  functionCallback_type callbackFunction, void* userData );
55 
58 
59  DtDEC_ATTRIBUTE( DtString, ControlType, controlType );
60  DtDEC_ATTRIBUTE( DtFloat64, Time, time );
61 
63 
65  public:
66 
68 
69  static DtPortalMessage* create();
70 
71  virtual unsigned int netSize() const;
72  virtual void writeSelfToBuffer( void* buffer ) const;
73  virtual void readSelfFromBuffer( const void* buffer );
74 
75  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
76 
77  private:
78 
81 
83  bool operator == ( const DtPortalVrfControlInteraction& ) const;
84 
86  bool operator != ( const DtPortalVrfControlInteraction& ) const;
87 
88  };
89 
90 
92  {
93  return new DtPortalVrfControlInteraction();
94  }
95 
96 }

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)