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();
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;
39 
40  //Calls the copy constructor to create a clone
41  virtual DtSimInterfaceContent * clone() const;
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;
81 
82  //Fills in the message from the network buffer
83  virtual bool setFromNet(const char* contentBuffer,
84  unsigned contentSize);
85 
86  //Fills in the network buffer with the message contents
87  virtual bool setToNet();
88 
89  //Prints the formatted contents of the message into the given string
90  virtual void printDataToString(DtString& str);
91 
92  //Static creator function which gets registered with the
93  //DtInterfaceContentFactory
94  static DtSimInterfaceContent* creator();
95 
96 protected:
97 
109 };
110 
111 
112 
113 
114 
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:99
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
double myNavMeshOffset
Definition: ifDebugDrawNavMesh.h:108
virtual int type() const =0
virtual void printDataToString(DtString &str)
DtVector myTopLeftCorner
Definition: ifDebugDrawNavMesh.h:100
double myQueryRadius
Definition: ifDebugDrawNavMesh.h:105
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
DtVector myTopRightCorner
Definition: ifDebugDrawNavMesh.h:101
double myNavMeshColorAlpha
Definition: ifDebugDrawNavMesh.h:107
DtString myProfileString
Definition: ifDebugDrawNavMesh.h:104
DtVector myBottomLeftCorner
Definition: ifDebugDrawNavMesh.h:102
Message used to send draw/delete message from GUI to debugDrawManager.
Definition: ifDebugDrawNavMesh.h:20
bool myDrawNavMesh
Definition: ifDebugDrawNavMesh.h:98
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
DtVector myBottomRightCorner
Definition: ifDebugDrawNavMesh.h:103
virtual DtSimInterfaceContent * clone() const =0
bool myNavMeshColor
Definition: ifDebugDrawNavMesh.h:106

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)