VR-Engage  2.2
Loading...
Searching...
No Matches
debugDrawGraph.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 graph. 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* DebugDrawGraphMessageType = "debug.render.graph";
28
29class VREDEBUGMANAGER_DLL DebugDrawGraphMessage : public makVre::DtVreMessage
30{
31public:
32
33
34 // Struct for defining data
35 struct VREDEBUGMANAGER_DLL DebugDrawGraphData
36 {
38
39 std::string myLayerName;
40 std::string myLayerId;
41 std::string myGraph;
42 double myValue;
44 double myDuration;
45
46 bool operator==(const DebugDrawGraphData& rhs) const;
47 };
48
49 // Default static creators to promote the usage of not using new.
53
54 //! \brief static message identity functions
55 static const std::string& theType();
58
59 //! \brief Get the name of the message type
60 virtual const std::string& type() const override;
61 virtual const makVre::DtVreMessageId& messageId() const override;
62
63 // default destructor
64 virtual ~DebugDrawGraphMessage() override;
65
66 virtual const std::string& getLayerName() const;
67 virtual void setLayerName(const std::string& val);
68
69 virtual const std::string& getLayerId() const;
70 virtual void setLayerId(const std::string& val);
71
72 virtual const std::string& getGraph() const;
73 virtual void setGraph(const std::string& val);
74
75 virtual double getValue() const;
76 virtual void setValue(double val);
77
78 virtual const makVre::DtColor& getColor() const;
79 virtual void setColor(const makVre::DtColor& val);
80
81 virtual double getDuration() const;
82 virtual void setDuration(double val);
83
84
85 // Accessors
86 virtual int messageSize() const override;
87 static makVre::DtVreMessage* decode(char* buffer, int length);
90
91 // Operators
92 bool operator==(const DebugDrawGraphMessage& rhs) const;
93
94protected:
95 // Inaccessible default constructor to promote the usage of the static creator functions
97
98 virtual void serialize(DtStreamWriter& writer) const override;
99 virtual void deserialize(DtStreamReader& reader) override;
100
101protected:
104
105 // Store the data for future use
107};
108
109} // ::makVre
110
111
112
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.
DebugDrawGraphData getData() const
static makVre::DtVreMessage * decode(char *buffer, int length)
static DebugDrawGraphMessage * createFromData(const DebugDrawGraphData)
virtual void setValue(double val)
static const makVre::DtVreMessageId & theId()
bool operator==(const DebugDrawGraphMessage &rhs) const
static DebugDrawGraphMessage * createFrom(DebugDrawGraphMessage *)
DebugDrawGraphData myData
Definition debugDrawGraph.h:106
virtual const std::string & getGraph() const
virtual const std::string & type() const override
Get the name of the message type.
virtual void setLayerName(const std::string &val)
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
static UInt64 theVersionNumber()
virtual int messageSize() const override
Static decode function pattern for derived classes.
virtual void setGraph(const std::string &val)
virtual void setColor(const makVre::DtColor &val)
virtual const std::string & getLayerId() const
virtual void setDuration(double val)
static DebugDrawGraphMessage * create()
virtual double getDuration() const
static UInt64 theVersion
Definition debugDrawGraph.h:103
static makVre::DtVreMessageId theMessageId
Definition debugDrawGraph.h:102
virtual const std::string & getLayerName() const
virtual ~DebugDrawGraphMessage() override
DebugDrawGraphData getData()
static const std::string & theType()
static message identity functions
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: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 * DebugDrawGraphMessageType
Definition debugDrawGraph.h:27
bool operator==(const DebugDrawGraphData &rhs) const
makVre::DtColor myColor
Definition debugDrawGraph.h:43
std::string myLayerId
Definition debugDrawGraph.h:40
double myValue
Definition debugDrawGraph.h:42
double myDuration
Definition debugDrawGraph.h:44
std::string myGraph
Definition debugDrawGraph.h:41
std::string myLayerName
Definition debugDrawGraph.h:39
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.