VR-Engage  2.3
Loading...
Searching...
No Matches
debugDrawText2d.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 DebugDrawText2dMessage.
24constexpr const char* DebugDrawText2dMessageType = "debug.render.text2d";
25
26/**
27 * \class DebugDrawText2dMessage
28 * \brief Send to render 2d text. Enable and disable in VR-Engage debug menu in the rendering page.
29 *
30 * Message type: "debug.render.text2d"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
34class VREDEBUGMANAGER_DLL DebugDrawText2dMessage : public makVre::DtVreMessage
35{
36public:
37
38 //! \brief Data payload for DebugDrawText2dMessage.
39 struct VREDEBUGMANAGER_DLL DebugDrawText2dData
40 {
41 //! \brief Default constructor.
43
44 //! \name Data Members
45 //! \{
46
47 std::string myLayerName;
48 std::string myLayerId;
49 DtVector myPosition;
50 std::string myText;
52 double myDuration;
53 //! \}
54
55 //! \name Operators
56 //! \{
57 bool operator==(const DebugDrawText2dData& rhs) const;
58 bool operator!=(const DebugDrawText2dData& rhs) const;
59 //! \}
60 };
61
62 //! \brief Destructor.
63 virtual ~DebugDrawText2dMessage() override;
64
65 //! \name Static Creators
66 //! \{
67 //! \brief Create a new default instance.
68 //! \return A dynamically allocated default message. Caller takes ownership.
70
71 //! \brief Create a copy of the given message.
72 //! \param origMsg The message to copy. Must not be null.
73 //! \return A dynamically allocated copy. Caller takes ownership.
75
76 //! \brief Create a new message initialized with the given data.
77 //! \param data The data payload to initialize the message with.
78 //! \return A dynamically allocated message. Caller takes ownership.
80 //! \}
81
82 //! \name Type Identity
83 //! \{
84 //! \brief Get the message type string for this message class.
85 static const std::string& theType();
86
87 //! \brief Get the message identifier for this message class.
89
90 //! \brief Get the version number for this message class.
92
93 //! \brief Get the message type string for this instance.
94 virtual const std::string& type() const override;
95
96 //! \brief Get the message identifier for this instance.
97 virtual const makVre::DtVreMessageId& messageId() const override;
98 //! \}
99
100 //! \name Accessors
101 //! \{
102 virtual const std::string& getLayerName() const;
103 virtual void setLayerName(const std::string& val);
104
105 virtual const std::string& getLayerId() const;
106 virtual void setLayerId(const std::string& val);
107
108 virtual const DtVector& getPosition() const;
109 virtual void setPosition(const DtVector& val);
110
111 virtual const std::string& getText() const;
112 virtual void setText(const std::string& val);
113
114 virtual const makVre::DtColor& getColor() const;
115 virtual void setColor(const makVre::DtColor& val);
116
117 virtual double getDuration() const;
118 virtual void setDuration(double val);
119 //! \}
120
121 //! \name Serialization
122 //! \{
123 //! \copydoc makVre::DtVreMessage::messageSize()
124 virtual int messageSize() const override;
125
126 //! \brief Decode a message from a byte buffer.
127 //! \param buffer The raw byte buffer to decode from.
128 //! \param length The length of the buffer in bytes.
129 //! \return A dynamically allocated decoded message. Caller takes ownership.
130 static makVre::DtVreMessage* decode(char* buffer, int length);
131
132 //! \brief Get a copy of the message data.
134
135 //! \brief Get a copy of the message data (const).
137 //! \}
138
139 //! \name Operators
140 //! \{
141 bool operator==(const DebugDrawText2dMessage& rhs) const;
142 bool operator!=(const DebugDrawText2dMessage& rhs) const;
143 //! \}
144
145protected:
147
148 //! \copydoc makVre::DtVreMessage::serialize()
149 virtual void serialize(DtStreamWriter& writer) const override;
150
151 //! \copydoc makVre::DtVreMessage::deserialize()
152 virtual void deserialize(DtStreamReader& reader) override;
153
154protected:
157
159};
160} // namespace makVre
161
virtual const makVre::DtColor & getColor() const
virtual void setLayerId(const std::string &val)
virtual void setColor(const makVre::DtColor &val)
virtual void setDuration(double val)
virtual const std::string & getLayerName() const
static const std::string & theType()
Get the message type string for this instance.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual void setLayerName(const std::string &val)
DebugDrawText2dData getData()
Get a copy of the message data.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static DebugDrawText2dMessage * createFromData(const DebugDrawText2dData data)
Create a new message initialized with the given data.
virtual const std::string & getLayerId() const
static UInt64 theVersion
Definition debugDrawText2d.h:156
virtual const std::string & getText() const
virtual ~DebugDrawText2dMessage() override
Destructor.
static DebugDrawText2dMessage * createFrom(DebugDrawText2dMessage *origMsg)
Create a copy of the given message.
virtual void setText(const std::string &val)
static makVre::DtVreMessageId theMessageId
Definition debugDrawText2d.h:155
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
DebugDrawText2dData getData() const
Get a copy of the message data (const).
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & type() const override
Get the message type string for this instance.
bool operator==(const DebugDrawText2dMessage &rhs) const
virtual int messageSize() const override
Get a copy of the message data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static DebugDrawText2dMessage * create()
Create a copy of the given message.
virtual const DtVector & getPosition() const
virtual double getDuration() const
bool operator!=(const DebugDrawText2dMessage &rhs) const
virtual void setPosition(const DtVector &val)
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
DebugDrawText2dData myData
Definition debugDrawText2d.h:158
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
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * DebugDrawText2dMessageType
Message type identifier for DebugDrawText2dMessage.
Definition debugDrawText2d.h:24
Data payload for DebugDrawText2dMessage.
Definition debugDrawText2d.h:40
bool operator!=(const DebugDrawText2dData &rhs) const
makVre::DtColor myColor
Definition debugDrawText2d.h:51
double myDuration
Definition debugDrawText2d.h:52
std::string myLayerId
Definition debugDrawText2d.h:48
bool operator==(const DebugDrawText2dData &rhs) const
std::string myText
Definition debugDrawText2d.h:50
std::string myLayerName
Definition debugDrawText2d.h:47
DtVector myPosition
Definition debugDrawText2d.h:49
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.