VR-Engage  2.2
Loading...
Searching...
No Matches
debugDrawSphere.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2025 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7!!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9Generated from: /data/exports/DEV-CAM-BML-043/nightly/3085/libsrc/utilities/vreDebugManager/debugRenderer.lua
10*/
11/*-----------------COMMENT----------------------
12Send to render a sphere. Enable and disable in VR-Engage debug menu in the rendering page.
13-------------------COMMENT----------------------*/
14#pragma once
15
19#include <string>
20#include <matrix/vlVector.h>
21#include <vreUtil/color.h>
22
23
24namespace makVre
25{
26
27
28constexpr const char* DebugDrawSphereMessageType = "debug.render.sphere";
29
30class VREDEBUGMANAGER_DLL DebugDrawSphereMessage : public makVre::DtVreMessage
31{
32public:
33
34
35 // Struct for defining data
36 struct VREDEBUGMANAGER_DLL DebugDrawSphereData
37 {
39
40 std::string myLayerName;
41 std::string myLayerId;
42 DtVector myPosition;
43 float myRadius;
45 int myFill;
46 bool myClip;
47 double myDuration;
48
49 bool operator==(const DebugDrawSphereData& rhs) const;
50 };
51
52 // Default static creators to promote the usage of not using new.
56
57 //! \brief static message identity functions
58 static const std::string& theType();
61
62 //! \brief Get the name of the message type
63 virtual const std::string& type() const override;
64 virtual const makVre::DtVreMessageId& messageId() const override;
65
66 // default destructor
67 virtual ~DebugDrawSphereMessage() override;
68
69 virtual const std::string& getLayerName() const;
70 virtual void setLayerName(const std::string& val);
71
72 virtual const std::string& getLayerId() const;
73 virtual void setLayerId(const std::string& val);
74
75 virtual const DtVector& getPosition() const;
76 virtual void setPosition(const DtVector& val);
77
78 virtual float getRadius() const;
79 virtual void setRadius(float val);
80
81 virtual const makVre::DtColor& getColor() const;
82 virtual void setColor(const makVre::DtColor& val);
83
84 virtual int getFill() const;
85 virtual void setFill(int val);
86
87 virtual bool getClip() const;
88 virtual void setClip(bool val);
89
90 virtual double getDuration() const;
91 virtual void setDuration(double val);
92
93
94 // Accessors
95 virtual int messageSize() const override;
96 static makVre::DtVreMessage* decode(char* buffer, int length);
99
100 // Operators
101 bool operator==(const DebugDrawSphereMessage& rhs) const;
102
103protected:
104 // Inaccessible default constructor to promote the usage of the static creator functions
106
107 virtual void serialize(DtStreamWriter& writer) const override;
108 virtual void deserialize(DtStreamReader& reader) override;
109
110protected:
113
114 // Store the data for future use
116};
117
118} // ::makVre
119
120
121
DebugDrawSphereData getData() const
bool operator==(const DebugDrawSphereMessage &rhs) const
virtual void setColor(const makVre::DtColor &val)
virtual const DtVector & getPosition() const
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
virtual void setClip(bool val)
static DebugDrawSphereMessage * create()
virtual bool getClip() const
static DebugDrawSphereMessage * createFromData(const DebugDrawSphereData)
virtual int getFill() const
virtual void setRadius(float val)
virtual void setLayerName(const std::string &val)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static const makVre::DtVreMessageId & theId()
static DebugDrawSphereMessage * createFrom(DebugDrawSphereMessage *)
virtual const std::string & getLayerId() const
virtual ~DebugDrawSphereMessage() override
DebugDrawSphereData myData
Definition debugDrawSphere.h:115
static makVre::DtVreMessageId theMessageId
Definition debugDrawSphere.h:111
static const std::string & theType()
static message identity functions
virtual void setLayerId(const std::string &val)
virtual const std::string & type() const override
Get the name of the message type.
static UInt64 theVersion
Definition debugDrawSphere.h:112
virtual void setFill(int val)
virtual double getDuration() const
virtual int messageSize() const override
Static decode function pattern for derived classes.
virtual void setDuration(double val)
DebugDrawSphereData getData()
virtual void setPosition(const DtVector &val)
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual const makVre::DtColor & getColor() const
static UInt64 theVersionNumber()
virtual float getRadius() const
static makVre::DtVreMessage * decode(char *buffer, int length)
virtual const std::string & getLayerName() const
Class for representing and manipulating RGBA colors.
Definition color.h:22
Reader class for decoding values from a byte array.
Definition byteStream.h:42
Writer class for encoding values into a byte array.
Definition byteStream.h:161
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
Provides color representation and manipulation functionality.
Defines export macros for the VREngage Debug Manager library.
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * DebugDrawSphereMessageType
Definition debugDrawSphere.h:28
float myRadius
Definition debugDrawSphere.h:43
bool myClip
Definition debugDrawSphere.h:46
double myDuration
Definition debugDrawSphere.h:47
int myFill
Definition debugDrawSphere.h:45
bool operator==(const DebugDrawSphereData &rhs) const
std::string myLayerName
Definition debugDrawSphere.h:40
makVre::DtColor myColor
Definition debugDrawSphere.h:44
std::string myLayerId
Definition debugDrawSphere.h:41
DtVector myPosition
Definition debugDrawSphere.h:42
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.