VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pVrfCreateObj.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  {
24  public:
25 
27  typedef void (*functionCallback_type) (
28  const DtPortalVrfCreateObjInteraction &interaction, void *userData);
29 
32 
35 
37  static void addCallback( DtPortalConnection* connection,
38  functionCallback_type callbackFunction, void* userData );
39 
41  static void removeCallback( DtPortalConnection* connection,
42  functionCallback_type callbackFunction, void* userData );
43 
46  DtDEC_ATTRIBUTE( DtEntityIdentifier, Address, address );
47  DtDEC_ATTRIBUTE( DtString, Name, name );
48  DtDEC_ATTRIBUTE( DtEntityType, ObjectType, objectType );
49  DtDEC_ATTRIBUTE( DtU32, ForceType, forceType );
50  DtDEC_ATTRIBUTE( DtString, Label, label );
51  DtDEC_ATTRIBUTE( DtReal, Heading, heading );
52  DtDEC_ATTRIBUTE( DtAttributeValuePairList, Vertices, vertices );
53  DtDEC_ATTRIBUTE( bool, Projection, projection );
54  DtDEC_ATTRIBUTE( bool, ClosedFigure, closedFigure );
55  DtDEC_ATTRIBUTE( DtU32, Appearance, appearance );
56  DtDEC_ATTRIBUTE( bool, CreateSubObjects, createSubObjects );
58 
60  public:
61 
63  virtual void addVertex( DtVector point );
64 
66 
67  static DtPortalMessage* create();
68 
69  virtual unsigned int netSize() const;
70  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
71  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
72 
73  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
74 
75  private:
76 
79 
81  bool operator == ( const DtPortalVrfCreateObjInteraction& ) const;
82 
84  bool operator != ( const DtPortalVrfCreateObjInteraction& ) const;
85 
86  };
87 
88 
90  {
92  }
93 
94 }

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)