WebLVC 1.7d API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrvMimicView.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 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 
23  : public DtPortalInteraction
24  {
25  public:
26 
28  typedef void (*functionCallback_type) (
29  const DtPortalVrvMimicViewInteraction& interaction, void* userData );
30 
33 
36 
38  static void addCallback( DtPortalConnection* connection,
39  functionCallback_type callbackFunction, void* userData );
40 
42  static void removeCallback( DtPortalConnection* connection,
43  functionCallback_type callbackFunction, void* userData );
44 
47 
48  DtDEC_ATTRIBUTE( DtVector, Offset, offset );
49  DtDEC_ATTRIBUTE( DtTaitBryan, OffsetOri, offsetOri );
50  DtDEC_ATTRIBUTE( DtString, Observer, observer );
51  DtDEC_ATTRIBUTE( DtString, AttachedEntity, attachedEntity );
52 
54 
56  public:
57 
59 
60  static DtPortalMessage* create();
61 
62  virtual unsigned int netSize() const;
63  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
64  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
65 
66  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
67 
68  private:
69 
73 
75  bool operator == ( const DtPortalVrvMimicViewInteraction& ) const;
76 
78  bool operator != ( const DtPortalVrvMimicViewInteraction& ) const;
79 
80  };
81 
82 
84  {
86  }
87 
88 }
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pVrvMimicView.h:58
The base class for all messages passed through the portal.
Definition: pMessage.h:65
Contains the DtPortalInteraction class declaration.
DtPortalInteractions are a special type of DtPortalMessages which are used to transmit simulation dat...
Definition: pInteraction.h:21
Vrv Mimic View Interaction class.
Definition: pVrvMimicView.h:22
Connects a broker to the Portal Data Exchange.
Definition: pConnection.h:49
static DtPortalMessage * create()
Definition: pVrvMimicView.h:83
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23

Document ID: Generated on Wed Jun 21 15:05:44 EDT 2023 from SVN revision 256253
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)