VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfNavMeshMessage.h
Go to the documentation of this file.
1 
9 
10 #pragma once
11 
16 #include <vrfNavigation/navArea.h>
17 #include <geometry/point.h>
18 
19 #include <string>
20 #include <list>
21 
22 namespace makVrf
23 {
24 
28  {
29  public:
32  virtual ~DtNavMeshAreaRequest();
33 
35  virtual int messageSize();
37  static DtBaseMessage* decode(unsigned char* buffer, int length);
39  virtual DtBaseMessage* clone();
40 
43  virtual void setentityId(const std::string& name);
44  virtual std::string entityId() const;
45 
47  virtual void setDrawNavMesh();
48  virtual bool drawNavMesh() const;
49 
51  virtual void setDeleteNavMesh();
52  virtual bool deleteNavMesh();
53 
55  virtual void setNavMeshColor(bool value);
56  virtual bool navMeshColor() const;
57 
59  virtual void setNavMeshColorAlpha(double value);
60  virtual double navMeshColorAlpha() const;
61 
62  typedef std::list<DtNavArea::DtNavTriangleInfo> triangleListPtrType;
63  typedef std::list<DtNavArea::DtNavTriangleInfoExt> triangleListType;
65  virtual triangleListPtrType& trianglePtrList();
66  virtual triangleListType& triangleList();
68  virtual void setTrianglePtrList(const triangleListPtrType& triangleList);
69  virtual void setTriangleList(const triangleListType& triangleList);
70 
71  protected:
72  virtual void serialize(DtStreamWriter& writer);
73  virtual void deserialize(DtStreamReader& reader);
74 
75  std::string myIdName;
80 
85  };
86 
87 
90  {
91  public:
94  virtual ~DtNavMeshAreaResponse();
95 
96 
98  virtual int messageSize();
100  static DtBaseMessage* decode(unsigned char* buffer, int length);
102  virtual DtBaseMessage* clone();
103 
105  virtual void setSucces(bool success);
106  virtual bool success() const;
107 
109  virtual void setError(const std::string& error);
110  virtual std::string error() const;
111 
112 
113  protected:
114  virtual void serialize(DtStreamWriter& writer);
115  virtual void deserialize(DtStreamReader& reader);
116 
117  bool mySuccess;
118  std::string myError;
119  };
120 }
121 
122 
#define DT_DLL_DEBUGDRAWCONNECTOR
Definition: export.h:15
bool myDeleteNavMesh
Definition: vrfNavMeshMessage.h:77
DtNavMeshAreaResponse is the returned response of DtNavMeshAreaRequest by the debugDrawRenderer.
Definition: vrfNavMeshMessage.h:89
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
std::string myIdName
Definition: vrfNavMeshMessage.h:75
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: vrfMessage.h:25
std::list< DtNavArea::DtNavTriangleInfoExt > triangleListType
Definition: vrfNavMeshMessage.h:63
bool myNavMeshDrawColor
Definition: vrfNavMeshMessage.h:78
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream ...
Definition: byteStream.h:27
double myNavMeshColorAlpha
Definition: vrfNavMeshMessage.h:79
std::list< DtNavArea::DtNavTriangleInfo > triangleListPtrType
Definition: vrfNavMeshMessage.h:62
bool mySuccess
Definition: vrfNavMeshMessage.h:117
std::string myError
Definition: vrfNavMeshMessage.h:118
triangleListPtrType myTrianglesPtrList
Input Nav mesh triangle from the backend.
Definition: vrfNavMeshMessage.h:84
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
Instances of DtStreamWriter encode values into a byte array this writes the data to the stream in lit...
Definition: byteStream.h:74
Definition: asyncJobServer.h:39
bool myDrawNavMesh
Definition: vrfNavMeshMessage.h:76
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
DtNavMeshAreaRequest is a message to draw/delete nav mesh information from the debugDrawManager to th...
Definition: vrfNavMeshMessage.h:27
triangleListType myTrianglesList
front end Nav Mesh copy (hold the values not the pointer)
Definition: vrfNavMeshMessage.h:82

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)