VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfTerrainAreaMessage.h
Go to the documentation of this file.
1 
9 
10 #pragma once
11 
18 #include <vrfutil/sphere2.h>
19 #include "geometry/point.h"
20 
21 #include <string>
22 
23 namespace makVrf
24 {
25 
29 {
30  public:
33  virtual ~DtTerrainAreaRequest() override;
34 
36  virtual int messageSize() override;
38  static DtBaseMessage* decode(unsigned char* buffer, int length);
40  virtual DtBaseMessage* clone() override;
41 
44  virtual void setentityId(const std::string& name);
45  virtual std::string entityId() const;
46 
48  virtual void setDrawTerrainEntity();
49  virtual bool drawTerrainEntity() const;
50 
52  virtual void setDeleteTerrainEntity();
53  virtual bool deleteTerrainEntity();
54 
56  virtual void setSkinColorMode(DtIfDebugDrawTerrain::DtSkinColorMode value);
57  virtual DtIfDebugDrawTerrain::DtSkinColorMode skinColorMode() const;
58 
60  virtual void setSkinColorAlpha(double value);
61  virtual double skinColorAlpha() const;
62 
64  virtual void setDrawNormals();
65  virtual bool drawNormals() const;
66 
68  virtual void setDeleteNormals();
69  virtual bool deleteNormals() const;
70 
72  virtual void setDrawElevationTile();
73  virtual bool drawElevationTile() const;
74 
76  virtual void setDeleteElevationTile();
77  virtual bool deleteElevationTile() const;
78 
80  virtual void setDrawProceduralTreeTile();
81  virtual bool drawProceduralTreeTile() const;
82 
84  virtual void setDeleteProceduralTreeTile();
85  virtual bool deleteProceduralTreeTile() const;
86 
88  virtual void setDrawLastIntersects();
89  virtual bool drawLastIntersects() const;
90 
92  virtual void setDeleteLastIntersects();
93  virtual bool deleteLastIntersects() const;
94 
96  virtual void setDrawPageOutNodeBS();
97  virtual bool drawPageOutNodeBS() const;
98 
100  virtual void setDeletePageOutNodeBS();
101  virtual bool deletePageOutNodeBS() const;
102 
104  virtual void setDrawPageInNodeBS();
105  virtual bool drawPageInNodeBS() const;
106 
108  virtual void setDeletePageInNodeBS();
109  virtual bool deletePageInNodeBS() const;
110 
112  virtual void setDrawCollision();
113  virtual bool drawCollision() const;
114 
116  virtual void setDeleteCollision();
117  virtual bool deleteCollision() const;
118 
120  virtual void setDrawQuery();
121  virtual bool drawQuery() const;
122 
124  virtual void setDeleteQuery();
125  virtual bool deleteQuery() const;
126 
127 
128  typedef std::vector<DtTriangle> triangleListType;
130  virtual triangleListType& triangleList();
132  virtual void addTriangle(const DtTriangle& triangle);
133 
134  typedef std::vector<DtLine> lineListType;
136  virtual lineListType& lineList();
138  virtual void addLine(const DtLine& line);
140  virtual void addLines(const lineListType& lineList);
141 
142  typedef std::vector<DtColorPoint> pointListType;
144  virtual pointListType& pointList();
146  virtual void addPoint(const DtColorPoint& point);
148  virtual void addPoints(const pointListType& pointList);
149 
150 
152  virtual DtNodeBoundingList& boundingSphereList();
154  virtual void addBoundingSphere(const DtNodeBoundingList& bsList);
155 
156 
157  protected:
158  virtual void serialize(DtStreamWriter& writer) override;
159  virtual void deserialize(DtStreamReader& reader) override;
160 
161  std::string myIdName;
186 };
187 
188 
191 {
192  public:
195  virtual ~DtTerrainAreaResponse() override;
196 
197 
199  virtual int messageSize() override;
201  static DtBaseMessage* decode(unsigned char* buffer, int length);
203  virtual DtBaseMessage* clone() override;
204 
206  virtual void setSucces(bool success);
207  virtual bool success() const;
208 
210  virtual void setError(const std::string& error);
211  virtual std::string error() const;
212 
213 
214  protected:
215  virtual void serialize(DtStreamWriter& writer) override;
216  virtual void deserialize(DtStreamReader& reader) override;
217 
218  bool mySuccess;
219  std::string myError;
220 };
221 }
222 
bool myDrawLastIntersects
Definition: vrfTerrainAreaMessage.h:170
#define DT_DLL_DEBUGDRAWCONNECTOR
Definition: export.h:15
bool myDeleteElevationTile
Definition: vrfTerrainAreaMessage.h:167
bool myDeleteLastIntersects
Definition: vrfTerrainAreaMessage.h:171
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
bool myDrawElevationTile
Definition: vrfTerrainAreaMessage.h:166
bool myDrawPageOutNodeBS
Definition: vrfTerrainAreaMessage.h:172
DtTerrainAreaResponse is the returned response of DtTerrainAreaRequest by the debugDrawRenderer.
Definition: vrfTerrainAreaMessage.h:190
Definition: vrfPoint.h:16
bool myDeleteProceduralTreeTile
Definition: vrfTerrainAreaMessage.h:169
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: vrfMessage.h:25
DtSkinColorMode
Definition: ifDebugDrawTerrain.h:49
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
bool myDeletePageInNodeBS
Definition: vrfTerrainAreaMessage.h:175
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream ...
Definition: byteStream.h:27
int mySkinDrawMode
Definition: vrfTerrainAreaMessage.h:180
bool myDrawProceduralTreeTile
Definition: vrfTerrainAreaMessage.h:168
std::vector< DtColorPoint > pointListType
Definition: vrfTerrainAreaMessage.h:142
triangleListType myTrianglesList
Definition: vrfTerrainAreaMessage.h:182
bool myDrawQuery
Definition: vrfTerrainAreaMessage.h:178
class that represent a simulation terrain triangle
Definition: vrfTriangle.h:19
DtNodeBoundingList myBoundingSphereList
Definition: vrfTerrainAreaMessage.h:185
lineListType myLinesList
Definition: vrfTerrainAreaMessage.h:183
bool myDeleteTerrainEntity
Definition: vrfTerrainAreaMessage.h:163
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
std::list< DtSphere2 > DtNodeBoundingList
Definition: sphere2.h:20
pointListType myPointsList
Definition: vrfTerrainAreaMessage.h:184
bool myDeleteCollision
Definition: vrfTerrainAreaMessage.h:177
bool myDeleteNormals
Definition: vrfTerrainAreaMessage.h:165
std::string myIdName
Definition: vrfTerrainAreaMessage.h:161
Instances of DtStreamWriter encode values into a byte array this writes the data to the stream in lit...
Definition: byteStream.h:74
std::string myError
Definition: vrfTerrainAreaMessage.h:219
Definition: asyncJobServer.h:39
std::vector< DtLine > lineListType
Definition: vrfTerrainAreaMessage.h:134
Definition: vrfLine.h:16
bool myDeleteQuery
Definition: vrfTerrainAreaMessage.h:179
bool myDrawCollision
Definition: vrfTerrainAreaMessage.h:176
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
bool myDrawTerrainEntity
Definition: vrfTerrainAreaMessage.h:162
bool myDrawPageInNodeBS
Definition: vrfTerrainAreaMessage.h:174
double mySkinColorAlpha
Definition: vrfTerrainAreaMessage.h:181
DtTerrainAreaRequest is a message to draw/delete terrain information from the debugDrawManager to the...
Definition: vrfTerrainAreaMessage.h:28
bool myDeletePageOutNodeBS
Definition: vrfTerrainAreaMessage.h:173
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...
std::vector< DtTriangle > triangleListType
Definition: vrfTerrainAreaMessage.h:128
bool mySuccess
Definition: vrfTerrainAreaMessage.h:218
bool myDrawNormals
Definition: vrfTerrainAreaMessage.h:164
** Copyright (c) 2021 MAK Technologies, Inc. ** All rights reserved.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)