VR-Engage  2.2
Loading...
Searching...
No Matches
debugDrawTextPanel.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 text panel. Enable and disable in VR-Engage debug menu in the rendering page.
13-------------------COMMENT----------------------*/
14#pragma once
15
19#include <string>
20#include <vreUtil/color.h>
21
22
23namespace makVre
24{
25
26
27constexpr const char* DebugDrawTextPanelMessageType = "debug.render.textPanel";
28
29class VREDEBUGMANAGER_DLL DebugDrawTextPanelMessage : public makVre::DtVreMessage
30{
31public:
32
33
34 // Struct for defining data
35 struct VREDEBUGMANAGER_DLL DebugDrawTextPanelData
36 {
38
39 std::string myLayerName;
40 std::string myLayerId;
41 std::string myPanel;
42 std::string myText;
44 bool myTop;
45 double myDuration;
46
47 bool operator==(const DebugDrawTextPanelData& rhs) const;
48 };
49
50 // Default static creators to promote the usage of not using new.
54
55 //! \brief static message identity functions
56 static const std::string& theType();
59
60 //! \brief Get the name of the message type
61 virtual const std::string& type() const override;
62 virtual const makVre::DtVreMessageId& messageId() const override;
63
64 // default destructor
65 virtual ~DebugDrawTextPanelMessage() override;
66
67 virtual const std::string& getLayerName() const;
68 virtual void setLayerName(const std::string& val);
69
70 virtual const std::string& getLayerId() const;
71 virtual void setLayerId(const std::string& val);
72
73 virtual const std::string& getPanel() const;
74 virtual void setPanel(const std::string& val);
75
76 virtual const std::string& getText() const;
77 virtual void setText(const std::string& val);
78
79 virtual const makVre::DtColor& getColor() const;
80 virtual void setColor(const makVre::DtColor& val);
81
82 virtual bool getTop() const;
83 virtual void setTop(bool val);
84
85 virtual double getDuration() const;
86 virtual void setDuration(double val);
87
88
89 // Accessors
90 virtual int messageSize() const override;
91 static makVre::DtVreMessage* decode(char* buffer, int length);
94
95 // Operators
96 bool operator==(const DebugDrawTextPanelMessage& rhs) const;
97
98protected:
99 // Inaccessible default constructor to promote the usage of the static creator functions
101
102 virtual void serialize(DtStreamWriter& writer) const override;
103 virtual void deserialize(DtStreamReader& reader) override;
104
105protected:
108
109 // Store the data for future use
111};
112
113} // ::makVre
114
115
116
virtual const std::string & getPanel() const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static DebugDrawTextPanelMessage * create()
virtual void setLayerId(const std::string &val)
virtual const std::string & getText() const
virtual const std::string & type() const override
Get the name of the message type.
static const makVre::DtVreMessageId & theId()
DebugDrawTextPanelData myData
Definition debugDrawTextPanel.h:110
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)
virtual int messageSize() const override
Static decode function pattern for derived classes.
virtual void setText(const std::string &val)
static DebugDrawTextPanelMessage * createFrom(DebugDrawTextPanelMessage *)
virtual const std::string & getLayerName() const
static DebugDrawTextPanelMessage * createFromData(const DebugDrawTextPanelData)
virtual double getDuration() const
virtual void setColor(const makVre::DtColor &val)
static const std::string & theType()
static message identity functions
virtual void setLayerName(const std::string &val)
virtual void setDuration(double val)
virtual const std::string & getLayerId() const
bool operator==(const DebugDrawTextPanelMessage &rhs) const
DebugDrawTextPanelData getData()
virtual const makVre::DtColor & getColor() const
static UInt64 theVersion
Definition debugDrawTextPanel.h:107
DebugDrawTextPanelData getData() const
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
static makVre::DtVreMessageId theMessageId
Definition debugDrawTextPanel.h:106
virtual ~DebugDrawTextPanelMessage() override
virtual void setTop(bool val)
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 * DebugDrawTextPanelMessageType
Definition debugDrawTextPanel.h:27
bool myTop
Definition debugDrawTextPanel.h:44
std::string myLayerName
Definition debugDrawTextPanel.h:39
double myDuration
Definition debugDrawTextPanel.h:45
std::string myPanel
Definition debugDrawTextPanel.h:41
std::string myText
Definition debugDrawTextPanel.h:42
makVre::DtColor myColor
Definition debugDrawTextPanel.h:43
std::string myLayerId
Definition debugDrawTextPanel.h:40
bool operator==(const DebugDrawTextPanelData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.