VR-Engage  2.3
Loading...
Searching...
No Matches
vortexCollision.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/framework/vreMessages/vortex.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <string>
18#include <matrix/vlVector.h>
19
20namespace makVre
21{
22//! \brief Message type identifier for VortexCollisionMessage.
23constexpr const char* VortexCollisionMessageType = "sim.vortex.collision";
24
25/**
26 * \class VortexCollisionMessage
27 * \brief Used to report collisions between Vortex entities. Contains data needed to reproduce the collision.
28 *
29 * Message type: "sim.vortex.collision"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Data payload for VortexCollisionMessage.
39 {
40 //! \brief Default constructor.
42
43 //! \name Data Members
44 //! \{
45
46 //! UUID of the first entity involved in the collision. This entity must be a Vortex vehicle on the message issuers sim engine.
47 std::string myUUID1;
48
49 //! UUID of the second entity involved in the collision. This entity need not be local to the issuer
50 std::string myUUID2;
51
52 //! Name of the part being collided with
53 std::string myPartName;
54
55 //! Impulse of the collision, in world coordinates.
56 DtVector myImpulse;
57
58 //! The position of the collision, in Vortex coordinates relative to the receiving entity.
59 DtVector myPosition;
60
61 //! The time of the collision, in absolute real time, used for latency filtering.
62 double myTime;
63 //! \}
64
65 //! \name Operators
66 //! \{
67 bool operator==(const VortexCollisionData& rhs) const;
68 bool operator!=(const VortexCollisionData& rhs) const;
69 //! \}
70 };
71
72 //! \brief Destructor.
73 virtual ~VortexCollisionMessage() override;
74
75 //! \name Static Creators
76 //! \{
77 //! \brief Create a new default instance.
78 //! \return A dynamically allocated default message. Caller takes ownership.
80
81 //! \brief Create a copy of the given message.
82 //! \param origMsg The message to copy. Must not be null.
83 //! \return A dynamically allocated copy. Caller takes ownership.
85
86 //! \brief Create a new message initialized with the given data.
87 //! \param data The data payload to initialize the message with.
88 //! \return A dynamically allocated message. Caller takes ownership.
90 //! \}
91
92 //! \name Type Identity
93 //! \{
94 //! \brief Get the message type string for this message class.
95 static const std::string& theType();
96
97 //! \brief Get the message identifier for this message class.
99
100 //! \brief Get the version number for this message class.
102
103 //! \brief Get the message type string for this instance.
104 virtual const std::string& type() const override;
105
106 //! \brief Get the message identifier for this instance.
107 virtual const makVre::DtVreMessageId& messageId() const override;
108 //! \}
109
110 //! \name Accessors
111 //! \{
112 //! \name UUID1
113 //! \{
114 //! \copydoc VortexCollisionData::myUUID1
115 virtual const std::string& getUUID1() const;
116 //! \copydoc VortexCollisionData::myUUID1
117 virtual void setUUID1(const std::string& val);
118 //! \}
119
120 //! \name UUID2
121 //! \{
122 //! \copydoc VortexCollisionData::myUUID2
123 virtual const std::string& getUUID2() const;
124 //! \copydoc VortexCollisionData::myUUID2
125 virtual void setUUID2(const std::string& val);
126 //! \}
127
128 //! \name PartName
129 //! \{
130 //! \copydoc VortexCollisionData::myPartName
131 virtual const std::string& getPartName() const;
132 //! \copydoc VortexCollisionData::myPartName
133 virtual void setPartName(const std::string& val);
134 //! \}
135
136 //! \name Impulse
137 //! \{
138 //! \copydoc VortexCollisionData::myImpulse
139 virtual const DtVector& getImpulse() const;
140 //! \copydoc VortexCollisionData::myImpulse
141 virtual void setImpulse(const DtVector& val);
142 //! \}
143
144 //! \name Position
145 //! \{
146 //! \copydoc VortexCollisionData::myPosition
147 virtual const DtVector& getPosition() const;
148 //! \copydoc VortexCollisionData::myPosition
149 virtual void setPosition(const DtVector& val);
150 //! \}
151
152 //! \name Time
153 //! \{
154 //! \copydoc VortexCollisionData::myTime
155 virtual double getTime() const;
156 //! \copydoc VortexCollisionData::myTime
157 virtual void setTime(double val);
158 //! \}
159 //! \}
160
161 //! \name Serialization
162 //! \{
163 //! \copydoc makVre::DtVreMessage::messageSize()
164 virtual int messageSize() const override;
165
166 //! \brief Decode a message from a byte buffer.
167 //! \param buffer The raw byte buffer to decode from.
168 //! \param length The length of the buffer in bytes.
169 //! \return A dynamically allocated decoded message. Caller takes ownership.
170 static makVre::DtVreMessage* decode(char* buffer, int length);
171
172 //! \brief Get a copy of the message data.
174
175 //! \brief Get a copy of the message data (const).
177 //! \}
178
179 //! \name Operators
180 //! \{
181 bool operator==(const VortexCollisionMessage& rhs) const;
182 bool operator!=(const VortexCollisionMessage& rhs) const;
183 //! \}
184
185protected:
187
188 //! \copydoc makVre::DtVreMessage::serialize()
189 virtual void serialize(DtStreamWriter& writer) const override;
190
191 //! \copydoc makVre::DtVreMessage::deserialize()
192 virtual void deserialize(DtStreamReader& reader) override;
193
194protected:
197
199};
200} // namespace makVre
201
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
virtual void setImpulse(const DtVector &val)
Impulse of the collision, in world coordinates.
virtual ~VortexCollisionMessage() override
Destructor.
virtual const DtVector & getPosition() const
The position of the collision, in Vortex coordinates relative to the receiving entity.
static UInt64 theVersion
Definition vortexCollision.h:196
virtual void setPartName(const std::string &val)
Name of the part being collided with.
virtual void setUUID1(const std::string &val)
UUID of the first entity involved in the collision. This entity must be a Vortex vehicle on the messa...
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setPosition(const DtVector &val)
The position of the collision, in Vortex coordinates relative to the receiving entity.
bool operator!=(const VortexCollisionMessage &rhs) const
virtual int messageSize() const override
Get a copy of the message data.
static VortexCollisionMessage * createFrom(VortexCollisionMessage *origMsg)
Create a copy of the given message.
virtual const std::string & getPartName() const
Name of the part being collided with.
virtual const std::string & getUUID1() const
UUID of the first entity involved in the collision. This entity must be a Vortex vehicle on the messa...
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 VortexCollisionMessage &rhs) const
virtual void setTime(double val)
The time of the collision, in absolute real time, used for latency filtering.
virtual void setUUID2(const std::string &val)
UUID of the second entity involved in the collision. This entity need not be local to the issuer.
virtual double getTime() const
The time of the collision, in absolute real time, used for latency filtering.
virtual const std::string & getUUID2() const
UUID of the second entity involved in the collision. This entity need not be local to the issuer.
virtual const DtVector & getImpulse() const
Impulse of the collision, in world coordinates.
static VortexCollisionMessage * createFromData(const VortexCollisionData data)
Create a new message initialized with the given data.
VortexCollisionData getData()
Get a copy of the message data.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
VortexCollisionData getData() const
Get a copy of the message data (const).
static const std::string & theType()
Get the message type string for this instance.
static makVre::DtVreMessageId theMessageId
Definition vortexCollision.h:195
static UInt64 theVersionNumber()
Get the version number for this message class.
static VortexCollisionMessage * create()
Create a copy of the given message.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
VortexCollisionData myData
Definition vortexCollision.h:198
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
!
Definition glsVreMessageUtil.h:50
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * VortexCollisionMessageType
Message type identifier for VortexCollisionMessage.
Definition vortexCollision.h:23
Data payload for VortexCollisionMessage.
Definition vortexCollision.h:39
DtVector myImpulse
Impulse of the collision, in world coordinates.
Definition vortexCollision.h:56
double myTime
The time of the collision, in absolute real time, used for latency filtering.
Definition vortexCollision.h:62
std::string myUUID1
UUID of the first entity involved in the collision. This entity must be a Vortex vehicle on the messa...
Definition vortexCollision.h:47
bool operator==(const VortexCollisionData &rhs) const
bool operator!=(const VortexCollisionData &rhs) const
std::string myUUID2
UUID of the second entity involved in the collision. This entity need not be local to the issuer.
Definition vortexCollision.h:50
std::string myPartName
Name of the part being collided with.
Definition vortexCollision.h:53
DtVector myPosition
The position of the collision, in Vortex coordinates relative to the receiving entity.
Definition vortexCollision.h:59
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.