VR-Forces 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 
15 #include <vrfNavigation/navArea.h>
16 #include <geometry/point.h>
17 
18 #include <string>
19 #include <list>
20 
21 namespace makVrf
22 {
23 
27  {
28  public:
31  virtual ~DtNavMeshAreaRequest() override;
32 
34  virtual int messageSize() override;
36  static DtBaseMessage* decode(unsigned char* buffer, int length);
38  virtual DtBaseMessage* clone() override;
39 
42  virtual void setentityId(const std::string& name);
43  virtual std::string entityId() const;
44 
46  virtual void setDrawNavMesh();
47  virtual bool drawNavMesh() const;
48 
50  virtual void setDeleteNavMesh();
51  virtual bool deleteNavMesh();
52 
54  virtual void setNavMeshColor(bool value);
55  virtual bool navMeshColor() const;
56 
58  virtual void setNavMeshColorAlpha(double value);
59  virtual double navMeshColorAlpha() const;
60 
61  typedef std::list<DtNavArea::DtNavTriangleInfo> triangleListPtrType;
62  typedef std::list<DtNavArea::DtNavTriangleInfoExt> triangleListType;
64  virtual triangleListPtrType& trianglePtrList();
65  virtual triangleListType& triangleList();
67  virtual void setTrianglePtrList(const triangleListPtrType& triangleList);
68  virtual void setTriangleList(const triangleListType& triangleList);
69 
70  protected:
71  virtual void serialize(DtStreamWriter& writer) override;
72  virtual void deserialize(DtStreamReader& reader) override;
73 
74  std::string myIdName;
79 
84  };
85 
86 
89  {
90  public:
93  virtual ~DtNavMeshAreaResponse() override;
94 
95 
97  virtual int messageSize() override;
99  static DtBaseMessage* decode(unsigned char* buffer, int length);
101  virtual DtBaseMessage* clone() override;
102 
104  virtual void setSucces(bool success);
105  virtual bool success() const;
106 
108  virtual void setError(const std::string& error);
109  virtual std::string error() const;
110 
111 
112  protected:
113  virtual void serialize(DtStreamWriter& writer) override;
114  virtual void deserialize(DtStreamReader& reader) override;
115 
116  bool mySuccess;
117  std::string myError;
118  };
119 }
120 
121 
#define DT_DLL_DEBUGDRAWCONNECTOR
Definition: export.h:15
bool myDeleteNavMesh
Definition: vrfNavMeshMessage.h:76
DtNavMeshAreaResponse is the returned response of DtNavMeshAreaRequest by the debugDrawRenderer.
Definition: vrfNavMeshMessage.h:88
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
std::string myIdName
Definition: vrfNavMeshMessage.h:74
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:62
bool myNavMeshDrawColor
Definition: vrfNavMeshMessage.h:77
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:78
std::list< DtNavArea::DtNavTriangleInfo > triangleListPtrType
Definition: vrfNavMeshMessage.h:61
bool mySuccess
Definition: vrfNavMeshMessage.h:116
std::string myError
Definition: vrfNavMeshMessage.h:117
triangleListPtrType myTrianglesPtrList
Input Nav mesh triangle from the backend.
Definition: vrfNavMeshMessage.h:83
** 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
void serialize(Archive &ar, DtAttributeFilter &f, const unsigned int)
Definition: DtProceduralSoundscapesSettingsRecord.h:33
Definition: asyncJobServer.h:39
bool myDrawNavMesh
Definition: vrfNavMeshMessage.h:75
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:26
triangleListType myTrianglesList
front end Nav Mesh copy (hold the values not the pointer)
Definition: vrfNavMeshMessage.h:81

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)