VR-Engage  2.3
Loading...
Searching...
No Matches
debugDrawTextPanel.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 <vreUtil/color.h>
19
20namespace makVre
21{
22//! \brief Message type identifier for DebugDrawTextPanelMessage.
23constexpr const char* DebugDrawTextPanelMessageType = "debug.render.textPanel";
24
25/**
26 * \class DebugDrawTextPanelMessage
27 * \brief Send to render a text panel. Enable and disable in VR-Engage debug menu in the rendering page.
28 *
29 * Message type: "debug.render.textPanel"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
33class VREDEBUGMANAGER_DLL DebugDrawTextPanelMessage : public makVre::DtVreMessage
34{
35public:
36
37 //! \brief Data payload for DebugDrawTextPanelMessage.
38 struct VREDEBUGMANAGER_DLL DebugDrawTextPanelData
39 {
40 //! \brief Default constructor.
42
43 //! \name Data Members
44 //! \{
45
46 std::string myLayerName;
47 std::string myLayerId;
48 std::string myPanel;
49 std::string myText;
51 bool myTop;
52 double myDuration;
53 //! \}
54
55 //! \name Operators
56 //! \{
57 bool operator==(const DebugDrawTextPanelData& rhs) const;
58 bool operator!=(const DebugDrawTextPanelData& rhs) const;
59 //! \}
60 };
61
62 //! \brief Destructor.
63 virtual ~DebugDrawTextPanelMessage() 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 std::string& getPanel() const;
109 virtual void setPanel(const std::string& 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 bool getTop() const;
118 virtual void setTop(bool val);
119
120 virtual double getDuration() const;
121 virtual void setDuration(double val);
122 //! \}
123
124 //! \name Serialization
125 //! \{
126 //! \copydoc makVre::DtVreMessage::messageSize()
127 virtual int messageSize() const override;
128
129 //! \brief Decode a message from a byte buffer.
130 //! \param buffer The raw byte buffer to decode from.
131 //! \param length The length of the buffer in bytes.
132 //! \return A dynamically allocated decoded message. Caller takes ownership.
133 static makVre::DtVreMessage* decode(char* buffer, int length);
134
135 //! \brief Get a copy of the message data.
137
138 //! \brief Get a copy of the message data (const).
140 //! \}
141
142 //! \name Operators
143 //! \{
144 bool operator==(const DebugDrawTextPanelMessage& rhs) const;
145 bool operator!=(const DebugDrawTextPanelMessage& rhs) const;
146 //! \}
147
148protected:
150
151 //! \copydoc makVre::DtVreMessage::serialize()
152 virtual void serialize(DtStreamWriter& writer) const override;
153
154 //! \copydoc makVre::DtVreMessage::deserialize()
155 virtual void deserialize(DtStreamReader& reader) override;
156
157protected:
160
162};
163} // namespace makVre
164
virtual const std::string & getPanel() const
static DebugDrawTextPanelMessage * createFrom(DebugDrawTextPanelMessage *origMsg)
Create a copy of the given message.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static DebugDrawTextPanelMessage * create()
Create a copy of the given message.
virtual void setLayerId(const std::string &val)
virtual const std::string & getText() const
virtual const std::string & type() const override
Get the message type string for this instance.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
DebugDrawTextPanelData myData
Definition debugDrawTextPanel.h:161
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setPanel(const std::string &val)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual int messageSize() const override
Get a copy of the message data.
virtual void setText(const std::string &val)
virtual const std::string & getLayerName() const
virtual double getDuration() const
virtual void setColor(const makVre::DtColor &val)
static UInt64 theVersionNumber()
Get the version number for this message class.
static const std::string & theType()
Get the message type string for this instance.
virtual void setLayerName(const std::string &val)
virtual void setDuration(double val)
static DebugDrawTextPanelMessage * createFromData(const DebugDrawTextPanelData data)
Create a new message initialized with the given data.
virtual const std::string & getLayerId() const
bool operator==(const DebugDrawTextPanelMessage &rhs) const
DebugDrawTextPanelData getData()
Get a copy of the message data.
virtual const makVre::DtColor & getColor() const
static UInt64 theVersion
Definition debugDrawTextPanel.h:159
DebugDrawTextPanelData getData() const
Get a copy of the message data (const).
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static makVre::DtVreMessageId theMessageId
Definition debugDrawTextPanel.h:158
virtual ~DebugDrawTextPanelMessage() override
Destructor.
virtual void setTop(bool val)
bool operator!=(const DebugDrawTextPanelMessage &rhs) const
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 * DebugDrawTextPanelMessageType
Message type identifier for DebugDrawTextPanelMessage.
Definition debugDrawTextPanel.h:23
Data payload for DebugDrawTextPanelMessage.
Definition debugDrawTextPanel.h:39
bool myTop
Definition debugDrawTextPanel.h:51
std::string myLayerName
Definition debugDrawTextPanel.h:46
double myDuration
Definition debugDrawTextPanel.h:52
std::string myPanel
Definition debugDrawTextPanel.h:48
std::string myText
Definition debugDrawTextPanel.h:49
makVre::DtColor myColor
Definition debugDrawTextPanel.h:50
bool operator!=(const DebugDrawTextPanelData &rhs) const
std::string myLayerId
Definition debugDrawTextPanel.h:47
bool operator==(const DebugDrawTextPanelData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.