VR-Forces 4.8 Class Documentation
 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> triangleListType;
64  virtual triangleListType& triangleList();
66  virtual void setTriangleList(const triangleListType& triangleList);
67 
68  protected:
69  virtual void serialize(DtStreamWriter& writer);
70  virtual void deserialize(DtStreamReader& reader);
71 
72  std::string myIdName;
77 
79  };
80 
81 
84  {
85  public:
88  virtual ~DtNavMeshAreaResponse();
89 
90 
92  virtual int messageSize();
94  static DtBaseMessage* decode(unsigned char* buffer, int length);
96  virtual DtBaseMessage* clone();
97 
99  virtual void setSucces(bool success);
100  virtual bool success() const;
101 
103  virtual void setError(const std::string& error);
104  virtual std::string error() const;
105 
106 
107  protected:
108  virtual void serialize(DtStreamWriter& writer);
109  virtual void deserialize(DtStreamReader& reader);
110 
111  bool mySuccess;
112  std::string myError;
113  };
114 }
115 
116 
#define DT_DLL_DEBUGDRAWCONNECTOR
Definition: export.h:15
bool myDeleteNavMesh
Definition: vrfNavMeshMessage.h:74
DtNavMeshAreaResponse is the returned response of DtNavMeshAreaRequest by the debugDrawRenderer.
Definition: vrfNavMeshMessage.h:83
** Copyright (c) 2019 MAK Technologies, Inc.
std::string myIdName
Definition: vrfNavMeshMessage.h:72
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: vrfMessage.h:25
bool myNavMeshDrawColor
Definition: vrfNavMeshMessage.h:75
** Copyright (c) 2019 MAK Technologies, Inc.
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:76
bool mySuccess
Definition: vrfNavMeshMessage.h:111
std::string myError
Definition: vrfNavMeshMessage.h:112
** Copyright (c) 2019 MAK Technologies, Inc.
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:73
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
std::list< DtNavArea::DtNavTriangleInfo > triangleListType
Definition: vrfNavMeshMessage.h:62
triangleListType myTrianglesList
Definition: vrfNavMeshMessage.h:78

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)