VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfCreateObj.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 namespace MAKVrExchange {
16 
18 
19  class DtPortalConnection;
20 
21 
25  {
26  public:
27 
28 
30  typedef void (*functionCallback_type) (
31  const DtPortalVrfCreateObjInteraction &interaction, void *userData);
32 
35 
38 
40  static void addCallback( DtPortalConnection* connection,
41  functionCallback_type callbackFunction, void* userData );
42 
44  static void removeCallback( DtPortalConnection* connection,
45  functionCallback_type callbackFunction, void* userData );
46 
48 
49  DtDEC_ATTRIBUTE( DtEntityIdentifier, Address, address );
50  DtDEC_ATTRIBUTE( DtString, Name, name );
51  DtDEC_ATTRIBUTE( DtEntityType, ObjectType, objectType );
52  DtDEC_ATTRIBUTE( DtU32, ForceType, forceType );
53  DtDEC_ATTRIBUTE( DtString, Label, label );
54  DtDEC_ATTRIBUTE( DtReal, Heading, heading );
55  DtDEC_ATTRIBUTE( DtAttributeValuePairList, Vertices, vertices );
56  DtDEC_ATTRIBUTE( bool, Projection, projection );
57  DtDEC_ATTRIBUTE( bool, ClosedFigure, closedFigure );
58  DtDEC_ATTRIBUTE( DtU32, Appearance, appearance );
59  DtDEC_ATTRIBUTE( bool, CreateSubObjects, createSubObjects );
61 
63  public:
64 
66  virtual void addVertex( DtVector point );
67 
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 DtPortalVrfCreateObjInteraction& ) const;
85 
87  bool operator!=( const DtPortalVrfCreateObjInteraction& ) const;
88 
89  }; //end class DtPortalVrfCreateObjInteraction
90 
92  {
94  }
95 
96 }
97 
98 

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)