VR-Engage  2.3
Loading...
Searching...
No Matches
weaponGeometry.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/weaponGeometry.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <string>
19#include <matrix/vlVector.h>
20#include <matrix/vlTaitBryan.h>
21
22namespace makVre
23{
24//! \brief Message type identifier for WeaponGeometryMessage.
25constexpr const char* WeaponGeometryMessageType = "system.input.weaponGeometry";
26
27/**
28 * \class WeaponGeometryMessage
29 * \brief Sent by the DtGunnerControlLogic to align the sim engine's weapon with the GUI when firing a weapon.
30 *
31 * Message type: "system.input.weaponGeometry"
32 *
33 * \note This is an auto-generated class. Do not modify directly.
34 */
36{
37public:
38
39 //! \brief Data payload for WeaponGeometryMessage.
41 {
42 //! \brief Default constructor.
44
45 //! \name Data Members
46 //! \{
47
48 DtEntityIdentifier myEntityId;
49 std::string myWeaponGroup;
51 DtTaitBryan myWorldOrientation;
52 //! \}
53
54 //! \name Operators
55 //! \{
56 bool operator==(const WeaponGeometryData& rhs) const;
57 bool operator!=(const WeaponGeometryData& rhs) const;
58 //! \}
59 };
60
61 //! \brief Destructor.
62 virtual ~WeaponGeometryMessage() override;
63
64 //! \name Static Creators
65 //! \{
66 //! \brief Create a new default instance.
67 //! \return A dynamically allocated default message. Caller takes ownership.
69
70 //! \brief Create a copy of the given message.
71 //! \param origMsg The message to copy. Must not be null.
72 //! \return A dynamically allocated copy. Caller takes ownership.
74
75 //! \brief Create a new message initialized with the given data.
76 //! \param data The data payload to initialize the message with.
77 //! \return A dynamically allocated message. Caller takes ownership.
79 //! \}
80
81 //! \name Type Identity
82 //! \{
83 //! \brief Get the message type string for this message class.
84 static const std::string& theType();
85
86 //! \brief Get the message identifier for this message class.
88
89 //! \brief Get the version number for this message class.
91
92 //! \brief Get the message type string for this instance.
93 virtual const std::string& type() const override;
94
95 //! \brief Get the message identifier for this instance.
96 virtual const makVre::DtVreMessageId& messageId() const override;
97 //! \}
98
99 //! \name Accessors
100 //! \{
101 virtual const DtEntityIdentifier& getEntityId() const;
102 virtual void setEntityId(const DtEntityIdentifier& val);
103
104 virtual const std::string& getWeaponGroup() const;
105 virtual void setWeaponGroup(const std::string& val);
106
107 virtual const DtVector& getWorldPosition() const;
108 virtual void setWorldPosition(const DtVector& val);
109
110 virtual const DtTaitBryan& getWorldOrientation() const;
111 virtual void setWorldOrientation(const DtTaitBryan& val);
112 //! \}
113
114 //! \name Serialization
115 //! \{
116 //! \copydoc makVre::DtVreMessage::messageSize()
117 virtual int messageSize() const override;
118
119 //! \brief Decode a message from a byte buffer.
120 //! \param buffer The raw byte buffer to decode from.
121 //! \param length The length of the buffer in bytes.
122 //! \return A dynamically allocated decoded message. Caller takes ownership.
123 static makVre::DtVreMessage* decode(char* buffer, int length);
124
125 //! \brief Get a copy of the message data.
127
128 //! \brief Get a copy of the message data (const).
130 //! \}
131
132 //! \name Operators
133 //! \{
134 bool operator==(const WeaponGeometryMessage& rhs) const;
135 bool operator!=(const WeaponGeometryMessage& rhs) const;
136 //! \}
137
138protected:
140
141 //! \copydoc makVre::DtVreMessage::serialize()
142 virtual void serialize(DtStreamWriter& writer) const override;
143
144 //! \copydoc makVre::DtVreMessage::deserialize()
145 virtual void deserialize(DtStreamReader& reader) override;
146
147protected:
150
152};
153} // namespace makVre
154
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 setEntityId(const DtEntityIdentifier &val)
static UInt64 theVersionNumber()
Get the version number for this message class.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static makVre::DtVreMessageId theMessageId
Definition weaponGeometry.h:148
static WeaponGeometryMessage * create()
Create a copy of the given message.
virtual ~WeaponGeometryMessage() override
Destructor.
virtual int messageSize() const override
Get a copy of the message data.
WeaponGeometryData getData() const
Get a copy of the message data (const).
virtual const DtTaitBryan & getWorldOrientation() const
virtual const DtVector & getWorldPosition() const
WeaponGeometryData myData
Definition weaponGeometry.h:151
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static UInt64 theVersion
Definition weaponGeometry.h:149
virtual void setWorldOrientation(const DtTaitBryan &val)
bool operator==(const WeaponGeometryMessage &rhs) const
virtual void setWorldPosition(const DtVector &val)
virtual const std::string & type() const override
Get the message type string for this instance.
static WeaponGeometryMessage * createFromData(const WeaponGeometryData data)
Create a new message initialized with the given data.
static const std::string & theType()
Get the message type string for this instance.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const DtEntityIdentifier & getEntityId() const
virtual const std::string & getWeaponGroup() const
virtual void setWeaponGroup(const std::string &val)
static WeaponGeometryMessage * createFrom(WeaponGeometryMessage *origMsg)
Create a copy of the given message.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
bool operator!=(const WeaponGeometryMessage &rhs) const
WeaponGeometryData getData()
Get a copy of the message data.
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 * WeaponGeometryMessageType
Message type identifier for WeaponGeometryMessage.
Definition weaponGeometry.h:25
Data payload for WeaponGeometryMessage.
Definition weaponGeometry.h:41
bool operator==(const WeaponGeometryData &rhs) const
bool operator!=(const WeaponGeometryData &rhs) const
std::string myWeaponGroup
Definition weaponGeometry.h:49
DtTaitBryan myWorldOrientation
Definition weaponGeometry.h:51
DtVector myWorldPosition
Definition weaponGeometry.h:50
DtEntityIdentifier myEntityId
Definition weaponGeometry.h:48
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.