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