VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrvMouseEvent.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 
16 namespace MAKVrExchange {
17 
20 
21  class DtPortalConnection;
22 
26  : public DtPortalInteraction
27  {
28  public:
29 
30 
32  typedef void (*functionCallback_type) (
33  const DtPortalVrvMouseEventInteraction &interaction, void *userData);
34 
37 
40 
42  static void addCallback( DtPortalConnection* connection,
43  functionCallback_type callbackFunction, void* userData );
44 
46  static void removeCallback( DtPortalConnection* connection,
47  functionCallback_type callbackFunction, void* userData );
48 
51 
52  DtDEC_ATTRIBUTE( DtString, ObserverName, observerName )
53  DtDEC_ATTRIBUTE( DtString, EventType, eventType );
54  DtDEC_ATTRIBUTE( double, X, x );
55  DtDEC_ATTRIBUTE( double, Y, y );
56  DtDEC_ATTRIBUTE( double, Wheel, wheel );
57  DtDEC_ATTRIBUTE( bool, Left, left );
58  DtDEC_ATTRIBUTE( bool, Middle, middle );
59  DtDEC_ATTRIBUTE( bool, Right, right );
60  DtDEC_ATTRIBUTE( bool, Shift, shift );
61  DtDEC_ATTRIBUTE( bool, Ctrl, ctrl );
62  DtDEC_ATTRIBUTE( bool, Alt, alt );
64 
66  public:
67 
68  static const DtPortalMessageKind theKind;
69 
70  static DtPortalMessage* create();
71 
72  virtual unsigned int netSize() const;
73  virtual void writeSelfToBuffer( void* buffer ) const;
74  virtual void readSelfFromBuffer( const void* buffer );
75 
76  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
77 
78  private:
79 
82 
84  bool operator==( const DtPortalVrvMouseEventInteraction& ) const;
85 
87  bool operator!=( const DtPortalVrvMouseEventInteraction& ) const;
88 
89  }; //end class DtPortalScriptedTaskInteraction
90 
91  inline DtPortalMessage* DtPortalVrvMouseEventInteraction::create()
92  {
93  return new DtPortalVrvMouseEventInteraction();
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)