VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifDebugDrawFeature.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 DtIfDebugDrawFeature
21 {
22 public:
23 
24  //default constructor
26 
27  //destructor
28  virtual ~DtIfDebugDrawFeature();
29 
30  //copy constructor
32 
33  //assignment operator
35 
36  //Returns the type of interface content (DtIfDebugDrawFeatureType 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 setDrawPointFeature(bool value);
51  virtual bool drawPointFeature() const;
52 
54  virtual void setDeletePointFeature(bool value);
55  virtual bool deletePointFeature() const;
56 
58  virtual void setDrawLinearFeature(bool value);
59  virtual bool drawLinearFeature() const;
60 
62  virtual void setDeleteLinearFeature(bool value);
63  virtual bool deleteLinearFeature() const;
64 
66  virtual void setDrawArealFeature(bool value);
67  virtual bool drawArealFeature() const;
68 
70  virtual void setDeleteArealFeature(bool value);
71  virtual bool deleteArealFeature() const;
72 
74  virtual void setQueryString(const DtString& value);
75  virtual DtString queryString() const;
76 
78  virtual void setFeatureOffset(const float value);
79  virtual float featureOffset() const;
80 
81  //Returns the size of the full network representation padded to an 8-byte
82  //boundary.
83  virtual int netRepSize() const;
84 
85  //Fills in the message from the network buffer
86  virtual bool setFromNet(const char* contentBuffer,
87  unsigned contentSize);
88 
89  //Fills in the network buffer with the message contents
90  virtual bool setToNet();
91 
92  //Prints the formatted contents of the message into the given string
93  virtual void printDataToString(DtString& str);
94 
95  //Static creator function which gets registered with the
96  //DtInterfaceContentFactory
97  static DtSimInterfaceContent* creator();
98 
99 protected:
100 
113 };
114 
115 
116 
117 
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
double myFeatureOffset
Definition: ifDebugDrawFeature.h:112
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
virtual int type() const =0
Message used to send draw/delete message from GUI to debugDrawManager.
Definition: ifDebugDrawFeature.h:20
DtVector myTopLeftCorner
Definition: ifDebugDrawFeature.h:107
bool myDeletePointFeature
Definition: ifDebugDrawFeature.h:102
bool myDrawPointFeature
Definition: ifDebugDrawFeature.h:101
DtVector myBottomLeftCorner
Definition: ifDebugDrawFeature.h:109
bool myDrawLinearFeature
Definition: ifDebugDrawFeature.h:103
virtual void printDataToString(DtString &str)
DtVector myBottomRightCorner
Definition: ifDebugDrawFeature.h:110
bool myDrawArealFeature
Definition: ifDebugDrawFeature.h:105
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
DtString myQueryString
Definition: ifDebugDrawFeature.h:111
virtual bool setToNet()
Definition: simInterfaceContent.h:83
DtVector myTopRightCorner
Definition: ifDebugDrawFeature.h:108
Definition: simInterfaceContent.h:45
virtual DtSimInterfaceContent * clone() const =0
bool myDeleteLinearFeature
Definition: ifDebugDrawFeature.h:104
bool myDeleteArealFeature
Definition: ifDebugDrawFeature.h:106

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)