WebLVC 1.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pEnvironmentObject.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/pObject.h>
14 
15 namespace MAKVrExchange
16 {
17 
21  {
22  public:
23 
26 
29 
31  virtual ~DtPortalEnvironmentObject();
32 
34  DtPortalEnvironmentObject& operator = ( const DtPortalEnvironmentObject& rhs );
35 
38 
39  bool operator == ( const DtPortalEnvironmentObject& rhs ) const;
40  bool operator != ( const DtPortalEnvironmentObject& rhs ) const;
41 
43 
46 
47  DtDEC_ATTRIBUTE( DtEntityIdentifier, ObjectIdentifier, objectIdentifier );
48  DtDEC_ATTRIBUTE( DtString, ReferencedObjectId, referencedObjectId );
49  DtDEC_ATTRIBUTE( DtU16, UpdateNumber, updateNumber );
50  DtDEC_ATTRIBUTE( DtU8, ForceId, forceId );
51  DtDEC_ATTRIBUTE( DtSyntheticEnvironmentObjectType, ObjectType, objectType );
52  DtDEC_ATTRIBUTE( DtSimulationAddress, RequestorId, requestorId );
53  DtDEC_ATTRIBUTE( DtSimulationAddress, ReceivingId, receivingId );
54 
56 
57  public:
58 
60 
61  static DtPortalMessage* create();
62 
63  virtual unsigned int netSize() const;
64  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
65  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
66 
67  virtual std::ostream& printDataToStream( std::ostream& str ) const;
68 
69  };
70 
71 
73  {
74  return new DtPortalEnvironmentObject();
75  }
76 
77 }
static DtPortalMessage * create()
Definition: pEnvironmentObject.h:72
#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
DtPortalObject are messages which also serve as state repositories for simulated objects.
Definition: pObject.h:23
The base class for all messages passed through the portal.
Definition: pMessage.h:66
Contains the DtPortalReflectedObjectManager class declaration.
static const DtPortalMessageKind theKind
Definition: pEnvironmentObject.h:59
Represents Environment Objects in a simulation.
Definition: pEnvironmentObject.h:20
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
Contains the DtPortalObject class declaration.

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)