VR-Engage  2.2
Loading...
Searching...
No Matches
debugDrawCube.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 cube. 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* DebugDrawCubeMessageType = "debug.render.cube";
29
30class VREDEBUGMANAGER_DLL DebugDrawCubeMessage : public makVre::DtVreMessage
31{
32public:
33
34
35 // Struct for defining data
36 struct VREDEBUGMANAGER_DLL DebugDrawCubeData
37 {
39
40 std::string myLayerName;
41 std::string myLayerId;
42 DtVector myMin;
43 DtVector myMax;
45 int myFill;
46 bool myClip;
47 double myDuration;
48
49 bool operator==(const DebugDrawCubeData& rhs) const;
50 };
51
52 // Default static creators to promote the usage of not using new.
56
57 //! \brief static message identity functions
58 static const std::string& theType();
61
62 //! \brief Get the name of the message type
63 virtual const std::string& type() const override;
64 virtual const makVre::DtVreMessageId& messageId() const override;
65
66 // default destructor
67 virtual ~DebugDrawCubeMessage() override;
68
69 virtual const std::string& getLayerName() const;
70 virtual void setLayerName(const std::string& val);
71
72 virtual const std::string& getLayerId() const;
73 virtual void setLayerId(const std::string& val);
74
75 virtual const DtVector& getMin() const;
76 virtual void setMin(const DtVector& val);
77
78 virtual const DtVector& getMax() const;
79 virtual void setMax(const DtVector& val);
80
81 virtual const makVre::DtColor& getColor() const;
82 virtual void setColor(const makVre::DtColor& val);
83
84 virtual int getFill() const;
85 virtual void setFill(int val);
86
87 virtual bool getClip() const;
88 virtual void setClip(bool val);
89
90 virtual double getDuration() const;
91 virtual void setDuration(double val);
92
93
94 // Accessors
95 virtual int messageSize() const override;
96 static makVre::DtVreMessage* decode(char* buffer, int length);
99
100 // Operators
101 bool operator==(const DebugDrawCubeMessage& rhs) const;
102
103protected:
104 // Inaccessible default constructor to promote the usage of the static creator functions
106
107 virtual void serialize(DtStreamWriter& writer) const override;
108 virtual void deserialize(DtStreamReader& reader) override;
109
110protected:
113
114 // Store the data for future use
116};
117
118} // ::makVre
119
120
121
virtual const std::string & type() const override
Get the name of the message type.
virtual void setClip(bool val)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setMax(const DtVector &val)
static UInt64 theVersionNumber()
virtual void setDuration(double val)
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static DebugDrawCubeMessage * create()
DebugDrawCubeData getData() const
DebugDrawCubeData myData
Definition debugDrawCube.h:115
static DebugDrawCubeMessage * createFromData(const DebugDrawCubeData)
static const makVre::DtVreMessageId & theId()
virtual void setLayerId(const std::string &val)
virtual void setLayerName(const std::string &val)
static const std::string & theType()
static message identity functions
virtual const std::string & getLayerId() const
virtual int getFill() const
virtual const DtVector & getMax() const
virtual int messageSize() const override
Static decode function pattern for derived classes.
bool operator==(const DebugDrawCubeMessage &rhs) const
virtual const std::string & getLayerName() const
virtual void setMin(const DtVector &val)
virtual ~DebugDrawCubeMessage() override
virtual void setFill(int val)
static makVre::DtVreMessage * decode(char *buffer, int length)
virtual const DtVector & getMin() const
virtual double getDuration() const
virtual void setColor(const makVre::DtColor &val)
virtual const makVre::DtColor & getColor() const
virtual bool getClip() const
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
DebugDrawCubeData getData()
static makVre::DtVreMessageId theMessageId
Definition debugDrawCube.h:111
static DebugDrawCubeMessage * createFrom(DebugDrawCubeMessage *)
static UInt64 theVersion
Definition debugDrawCube.h:112
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
constexpr const char * DebugDrawCubeMessageType
Definition debugDrawCube.h:28
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
double myDuration
Definition debugDrawCube.h:47
makVre::DtColor myColor
Definition debugDrawCube.h:44
DtVector myMax
Definition debugDrawCube.h:43
std::string myLayerId
Definition debugDrawCube.h:41
DtVector myMin
Definition debugDrawCube.h:42
bool myClip
Definition debugDrawCube.h:46
bool operator==(const DebugDrawCubeData &rhs) const
std::string myLayerName
Definition debugDrawCube.h:40
int myFill
Definition debugDrawCube.h:45
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.