18#include <matrix/vlVector.h>
104 virtual const std::string&
type()
const override;
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
VortexCollisionData()
Default constructor.
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.