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