WebLVC 1.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrvModelScaling.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 MAK Technologies, Inc.
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 DtPortalVrvModelScalingInteraction &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( DtEntityIdentifier, Vantage, vantage );
49  DtDEC_ATTRIBUTE( DtString, ObserverMode, observerMode );
50  DtDEC_ATTRIBUTE( bool, ModelScaling, modelScaling );
52 
54  public:
55 
57 
58  static DtPortalMessage* create();
59 
60  virtual unsigned int netSize() const;
61  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
62  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
63 
64  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
65 
66  private:
67 
70 
72  bool operator == ( const DtPortalVrvModelScalingInteraction& ) const;
73 
75  bool operator != ( const DtPortalVrvModelScalingInteraction& ) const;
76 
77  };
78 
79 
81  {
83  }
84 
85 }
Vrv Model Scaling Interaction class.
Definition: pVrvModelScaling.h:22
#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
The base class for all messages passed through the portal.
Definition: pMessage.h:66
Contains the DtPortalInteraction class declaration.
DtPortalInteractions are a special type of DtPortalMessages which are used to transmit simulation dat...
Definition: pInteraction.h:21
static DtPortalMessage * create()
Definition: pVrvModelScaling.h:80
Connects a broker to the Portal Data Exchange.
Definition: pConnection.h:49
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pVrvModelScaling.h:56
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23

Document ID: Generated on Wed Mar 12 15:05:17 EDT 2025 from SVN revision 274272
Copyright © 2005-2025 MAK Technologies. All Rights Reserved (www.mak.com)