VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifIntersectionInformationResponse.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vrfmsgs/vrfmsgsDefines.h"
13 #include "vrfmsgs/messageTypes.h"
14 #include "vrfutil/rwUUID.h"
15 
16 #include <matrix/vlVector.h>
17 
21 
23 {
24 public:
27 
30 
32  virtual ~DtIntersectionInformation();
33 
35 
36  virtual void setIntersectionPoint(const DtVector&);
37  const DtVector& intersectionPoint() const
38  {
39  return myIntersectionPoint;
40  }
41 
42  virtual void setIntersectionTime(double);
43  double intersectionTime() const
44  {
45  return myIntersectionTime;
46  }
47 
48  virtual void setSoilType(int mySoilType);
49  bool soilTypeDefined() const
50  {
51  return mySoilTypeDefined;
52  }
53 
54  int soilType() const
55  {
56  return mySoilType;
57  }
58 
59  virtual void setEntityIntersected(const DtUUID&);
60  const DtUUID& entityIntersected() const
61  {
62  return myEntityIntersected;
63  }
64 
65  virtual char* setToNet(char* buffer) const;
66  virtual const char* setFromNet(const char* buffer);
67  virtual int netRepSize() const;
68 
69 protected:
73  int mySoilType;
75 };
76 
77 namespace DtBufferSerialize
78 {
80  DT_DLL_vrfmsgs const char* decode (DtIntersectionInformation&, const char*);
81  DT_DLL_vrfmsgs char* encode(const DtIntersectionInformation&, char*);
82 }
83 
85 {
86 public:
87  typedef std::vector<DtIntersectionInformation> IntersectionInformation;
88  typedef std::vector<IntersectionInformation> IntersectionPairInformation;
89 
92 
95 
98 
100 
101  virtual int type() const;
102 
103  virtual DtSimInterfaceContent* clone() const;
104 
105  virtual int netRepSize() const;
106  virtual bool setFromNet(const char* contentBuffer,
107  unsigned contentSize);
108  virtual bool setToNet();
109 
110  virtual void printDataToString(DtString& str);
111 
112  static DtSimInterfaceContent* creator();
113 
115  virtual void setResponseId(unsigned long);
116  unsigned long responseId() const
117  {
118  return myResponseId;
119  }
120 
124  virtual void addIntersectionFor(int intersectionPairIndex, const DtIntersectionInformation&);
125  virtual IntersectionInformation intersectionsFor(int intersectionPairIndex);
126  int numResponses() const
127  {
128  return myIntersectionPairInformation.size();
129  }
130 
132  virtual void setResponseSetSize(int size);
133 
134  const IntersectionPairInformation& intersectionPairInformation() const
135  {
136  return myIntersectionPairInformation;
137  }
138 
139 protected:
142 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)