VR-Engage  2.2
Loading...
Searching...
No Matches
weaponGeometry.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/framework/vreMessages/weaponGeometry.lua
10*/
11/*-----------------COMMENT----------------------
12Sent by the DtGunnerControlLogic to align the sim engine's weapon with the GUI when firing a weapon.
13-------------------COMMENT----------------------*/
14#pragma once
15
18#include <vreMessages/export.h>
19#include <vlpi/entityIdentifier.h>
20#include <string>
21#include <matrix/vlVector.h>
22#include <matrix/vlTaitBryan.h>
23
24
25namespace makVre
26{
27
28
29constexpr const char* WeaponGeometryMessageType = "system.input.weaponGeometry";
30
32{
33public:
34
35
36 // Struct for defining data
38 {
40
41 DtEntityIdentifier myEntityId;
42 std::string myWeaponGroup;
44 DtTaitBryan myWorldOrientation;
45
46 bool operator==(const WeaponGeometryData& 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 ~WeaponGeometryMessage() override;
65
66 virtual const DtEntityIdentifier& getEntityId() const;
67 virtual void setEntityId(const DtEntityIdentifier& val);
68
69 virtual const std::string& getWeaponGroup() const;
70 virtual void setWeaponGroup(const std::string& val);
71
72 virtual const DtVector& getWorldPosition() const;
73 virtual void setWorldPosition(const DtVector& val);
74
75 virtual const DtTaitBryan& getWorldOrientation() const;
76 virtual void setWorldOrientation(const DtTaitBryan& val);
77
78
79 // Accessors
80 virtual int messageSize() const override;
81 static makVre::DtVreMessage* decode(char* buffer, int length);
84
85 // Operators
86 bool operator==(const WeaponGeometryMessage& rhs) const;
87
88protected:
89 // Inaccessible default constructor to promote the usage of the static creator functions
91
92 virtual void serialize(DtStreamWriter& writer) const override;
93 virtual void deserialize(DtStreamReader& reader) override;
94
95protected:
98
99 // Store the data for future use
101};
102
103} // ::makVre
104
105
106
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
virtual void setEntityId(const DtEntityIdentifier &val)
static UInt64 theVersionNumber()
static makVre::DtVreMessage * decode(char *buffer, int length)
static makVre::DtVreMessageId theMessageId
Definition weaponGeometry.h:96
static WeaponGeometryMessage * create()
virtual ~WeaponGeometryMessage() override
static WeaponGeometryMessage * createFrom(WeaponGeometryMessage *)
virtual int messageSize() const override
Static decode function pattern for derived classes.
WeaponGeometryData getData() const
virtual const DtTaitBryan & getWorldOrientation() const
virtual const DtVector & getWorldPosition() const
WeaponGeometryData myData
Definition weaponGeometry.h:100
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
static UInt64 theVersion
Definition weaponGeometry.h:97
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 name of the message type.
static WeaponGeometryMessage * createFromData(const WeaponGeometryData)
static const std::string & theType()
static message identity functions
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 const makVre::DtVreMessageId & theId()
WeaponGeometryData getData()
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
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 * WeaponGeometryMessageType
Definition weaponGeometry.h:29
bool operator==(const WeaponGeometryData &rhs) const
std::string myWeaponGroup
Definition weaponGeometry.h:42
DtTaitBryan myWorldOrientation
Definition weaponGeometry.h:44
DtVector myWorldPosition
Definition weaponGeometry.h:43
DtEntityIdentifier myEntityId
Definition weaponGeometry.h:41
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.