VR-Engage  2.3
Loading...
Searching...
No Matches
debugDrawCube.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2026 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/**
7* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8* !!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
9* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10* Generated from: /home/data/exports/DEV-CAM-BML-305/nightly/3375/libsrc/utilities/vreDebugManager/debugRenderer.lua
11*/
12#pragma once
13
17#include <string>
18#include <matrix/vlVector.h>
19#include <vreUtil/color.h>
20
21namespace makVre
22{
23//! \brief Message type identifier for DebugDrawCubeMessage.
24constexpr const char* DebugDrawCubeMessageType = "debug.render.cube";
25
26/**
27 * \class DebugDrawCubeMessage
28 * \brief Send to render a cube. Enable and disable in VR-Engage debug menu in the rendering page.
29 *
30 * Message type: "debug.render.cube"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
34class VREDEBUGMANAGER_DLL DebugDrawCubeMessage : public makVre::DtVreMessage
35{
36public:
37
38 //! \brief Data payload for DebugDrawCubeMessage.
39 struct VREDEBUGMANAGER_DLL DebugDrawCubeData
40 {
41 //! \brief Default constructor.
43
44 //! \name Data Members
45 //! \{
46
47 std::string myLayerName;
48 std::string myLayerId;
49 DtVector myMin;
50 DtVector myMax;
52 int myFill;
53 bool myClip;
54 double myDuration;
55 //! \}
56
57 //! \name Operators
58 //! \{
59 bool operator==(const DebugDrawCubeData& rhs) const;
60 bool operator!=(const DebugDrawCubeData& rhs) const;
61 //! \}
62 };
63
64 //! \brief Destructor.
65 virtual ~DebugDrawCubeMessage() override;
66
67 //! \name Static Creators
68 //! \{
69 //! \brief Create a new default instance.
70 //! \return A dynamically allocated default message. Caller takes ownership.
72
73 //! \brief Create a copy of the given message.
74 //! \param origMsg The message to copy. Must not be null.
75 //! \return A dynamically allocated copy. Caller takes ownership.
77
78 //! \brief Create a new message initialized with the given data.
79 //! \param data The data payload to initialize the message with.
80 //! \return A dynamically allocated message. Caller takes ownership.
82 //! \}
83
84 //! \name Type Identity
85 //! \{
86 //! \brief Get the message type string for this message class.
87 static const std::string& theType();
88
89 //! \brief Get the message identifier for this message class.
91
92 //! \brief Get the version number for this message class.
94
95 //! \brief Get the message type string for this instance.
96 virtual const std::string& type() const override;
97
98 //! \brief Get the message identifier for this instance.
99 virtual const makVre::DtVreMessageId& messageId() const override;
100 //! \}
101
102 //! \name Accessors
103 //! \{
104 virtual const std::string& getLayerName() const;
105 virtual void setLayerName(const std::string& val);
106
107 virtual const std::string& getLayerId() const;
108 virtual void setLayerId(const std::string& val);
109
110 virtual const DtVector& getMin() const;
111 virtual void setMin(const DtVector& val);
112
113 virtual const DtVector& getMax() const;
114 virtual void setMax(const DtVector& val);
115
116 virtual const makVre::DtColor& getColor() const;
117 virtual void setColor(const makVre::DtColor& val);
118
119 virtual int getFill() const;
120 virtual void setFill(int val);
121
122 virtual bool getClip() const;
123 virtual void setClip(bool val);
124
125 virtual double getDuration() const;
126 virtual void setDuration(double val);
127 //! \}
128
129 //! \name Serialization
130 //! \{
131 //! \copydoc makVre::DtVreMessage::messageSize()
132 virtual int messageSize() const override;
133
134 //! \brief Decode a message from a byte buffer.
135 //! \param buffer The raw byte buffer to decode from.
136 //! \param length The length of the buffer in bytes.
137 //! \return A dynamically allocated decoded message. Caller takes ownership.
138 static makVre::DtVreMessage* decode(char* buffer, int length);
139
140 //! \brief Get a copy of the message data.
142
143 //! \brief Get a copy of the message data (const).
145 //! \}
146
147 //! \name Operators
148 //! \{
149 bool operator==(const DebugDrawCubeMessage& rhs) const;
150 bool operator!=(const DebugDrawCubeMessage& rhs) const;
151 //! \}
152
153protected:
155
156 //! \copydoc makVre::DtVreMessage::serialize()
157 virtual void serialize(DtStreamWriter& writer) const override;
158
159 //! \copydoc makVre::DtVreMessage::deserialize()
160 virtual void deserialize(DtStreamReader& reader) override;
161
162protected:
165
167};
168} // namespace makVre
169
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setClip(bool val)
static DebugDrawCubeMessage * createFromData(const DebugDrawCubeData data)
Create a new message initialized with the given data.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setMax(const DtVector &val)
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual void setDuration(double val)
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static DebugDrawCubeMessage * create()
Create a copy of the given message.
DebugDrawCubeData getData() const
Get a copy of the message data (const).
DebugDrawCubeData myData
Definition debugDrawCube.h:166
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setLayerId(const std::string &val)
virtual void setLayerName(const std::string &val)
static const std::string & theType()
Get the message type string for this instance.
virtual const std::string & getLayerId() const
bool operator!=(const DebugDrawCubeMessage &rhs) const
virtual int getFill() const
virtual const DtVector & getMax() const
virtual int messageSize() const override
Get a copy of the message data.
bool operator==(const DebugDrawCubeMessage &rhs) const
virtual const std::string & getLayerName() const
virtual void setMin(const DtVector &val)
virtual ~DebugDrawCubeMessage() override
Destructor.
virtual void setFill(int val)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual const DtVector & getMin() const
static DebugDrawCubeMessage * createFrom(DebugDrawCubeMessage *origMsg)
Create a copy of the given message.
virtual double getDuration() const
virtual void setColor(const makVre::DtColor &val)
virtual const makVre::DtColor & getColor() const
virtual bool getClip() const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
DebugDrawCubeData getData()
Get a copy of the message data.
static makVre::DtVreMessageId theMessageId
Definition debugDrawCube.h:163
static UInt64 theVersion
Definition debugDrawCube.h:164
Class for representing and manipulating RGBA colors.
Definition color.h:22
Reader class for decoding values from a byte array.
Definition byteStream.h:43
Writer class for encoding values into a byte array.
Definition byteStream.h:166
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.
!
Definition glsVreMessageUtil.h:50
constexpr const char * DebugDrawCubeMessageType
Message type identifier for DebugDrawCubeMessage.
Definition debugDrawCube.h:24
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
Data payload for DebugDrawCubeMessage.
Definition debugDrawCube.h:40
bool operator!=(const DebugDrawCubeData &rhs) const
double myDuration
Definition debugDrawCube.h:54
makVre::DtColor myColor
Definition debugDrawCube.h:51
DtVector myMax
Definition debugDrawCube.h:50
std::string myLayerId
Definition debugDrawCube.h:48
DtVector myMin
Definition debugDrawCube.h:49
bool myClip
Definition debugDrawCube.h:53
bool operator==(const DebugDrawCubeData &rhs) const
std::string myLayerName
Definition debugDrawCube.h:47
int myFill
Definition debugDrawCube.h:52
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.