VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifDebugDrawNavMesh.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
7 //VR-Forces includes
9 #include <vrfmsgs/messageTypes.h>
10 
11 //VR-Link includes
12 #include <vlutil/vlString.h>
13 #include <vlutil/vlNetTypes.h>
14 
15 #include <matrix/vlVector.h>
16 
17 //Class DtIfDebugDrawNavMesh
21 {
22 public:
23 
24  //default constructor
26 
27  //destructor
28  virtual ~DtIfDebugDrawNavMesh() override;
29 
30  //copy constructor
32 
33  //assignment operator
35 
36  //Returns the type of interface content (DtIfDebugDrawNavMeshType as defined
37  //above).
38  virtual int type() const override;
39 
40  //Calls the copy constructor to create a clone
41  virtual DtSimInterfaceContent * clone() const override;
42 
44  virtual void setBoundingBox(DtVector& topLeftCorner, DtVector& topRightCorner,
45  DtVector& bottomLeftCorner, DtVector& bottomRightCorner);
46  virtual void boundingBox(DtVector& topLeftCorner, DtVector& topRightCorner,
47  DtVector& bottomLeftCorner, DtVector& bottomRightCorner) const;
48 
50  virtual void setDrawNavMesh(bool value);
51  virtual bool drawNavMesh() const;
52 
54  virtual void setQueryRadius(double value);
55  virtual double queryRadius() const;
56 
58  virtual void setDeleteNavMesh(bool value);
59  virtual bool deleteNavMesh() const;
60 
62  virtual void setProfileString(const DtString& value);
63  virtual DtString profileString() const;
64 
66  virtual void setNavMeshColor(bool value);
67  virtual bool navMeshColor() const;
68 
70  virtual void setNavMeshColorAlpha(float value);
71  virtual float navMeshColorAlpha() const;
72 
74  virtual void setNavMeshOffset(float value);
75  virtual float navMeshOfsset() const;
76 
77 
78  //Returns the size of the full network representation padded to an 8-byte
79  //boundary.
80  virtual int netRepSize() const override;
81 
82  //Fills in the message from the network buffer
83  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
84 
85  //Fills in the network buffer with the message contents
86  virtual bool setToNet() override;
87 
88  //Prints the formatted contents of the message into the given string
89  virtual void printDataToString(DtString& str) override;
90 
91  //Static creator function which gets registered with the
92  //DtInterfaceContentFactory
93  static DtSimInterfaceContent* creator();
94 
95 protected:
96 
99  DtVector myTopLeftCorner;
108 };
109 
110 
111 
112 
113 
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
bool myDeleteNavMesh
Definition: ifDebugDrawNavMesh.h:98
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
double myNavMeshOffset
Definition: ifDebugDrawNavMesh.h:107
virtual int type() const =0
virtual void printDataToString(DtString &str)
DtVector myTopLeftCorner
Definition: ifDebugDrawNavMesh.h:99
double myQueryRadius
Definition: ifDebugDrawNavMesh.h:104
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
DtVector myTopRightCorner
Definition: ifDebugDrawNavMesh.h:100
double myNavMeshColorAlpha
Definition: ifDebugDrawNavMesh.h:106
DtString myProfileString
Definition: ifDebugDrawNavMesh.h:103
DtVector myBottomLeftCorner
Definition: ifDebugDrawNavMesh.h:101
Message used to send draw/delete message from GUI to debugDrawManager.
Definition: ifDebugDrawNavMesh.h:20
bool myDrawNavMesh
Definition: ifDebugDrawNavMesh.h:97
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
DtVector myBottomRightCorner
Definition: ifDebugDrawNavMesh.h:102
virtual DtSimInterfaceContent * clone() const =0
bool myNavMeshColor
Definition: ifDebugDrawNavMesh.h:105

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)