VR-Engage  2.3
Loading...
Searching...
No Matches
cigiViewControl.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/cigiHostControl.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/simulationAddress.h>
18#include <string>
19#include <vlpi/entityIdentifier.h>
20#include <matrix/vlVector.h>
21
22namespace makVre
23{
24//! \brief Message type identifier for VreCigiViewControlMessage.
25constexpr const char* VreCigiViewControlMessageType = "cigi.control.viewControl";
26
27/**
28 * \class VreCigiViewControlMessage
29 * \brief VR-Engage message of type "cigi.control.viewControl".
30 *
31 * Message type: "cigi.control.viewControl"
32 *
33 * \note This is an auto-generated class. Do not modify directly.
34 */
36{
37public:
38
39 //! \brief Data payload for VreCigiViewControlMessage.
41 {
42 //! \brief Default constructor.
44
45 //! \name Data Members
46 //! \{
47
48 DtSimulationAddress myHostSimAddress;
49 std::string mySessionName;
52 DtEntityIdentifier myAttachTo;
53 DtVector32 myPositionOffset;
54 DtVector32 myRotationOffset;
57 //! \}
58
59 //! \name Operators
60 //! \{
61 bool operator==(const VreCigiViewControlData& rhs) const;
62 bool operator!=(const VreCigiViewControlData& rhs) const;
63 //! \}
64 };
65
66 //! \brief Destructor.
67 virtual ~VreCigiViewControlMessage() override;
68
69 //! \name Static Creators
70 //! \{
71 //! \brief Create a new default instance.
72 //! \return A dynamically allocated default message. Caller takes ownership.
74
75 //! \brief Create a copy of the given message.
76 //! \param origMsg The message to copy. Must not be null.
77 //! \return A dynamically allocated copy. Caller takes ownership.
79
80 //! \brief Create a new message initialized with the given data.
81 //! \param data The data payload to initialize the message with.
82 //! \return A dynamically allocated message. Caller takes ownership.
84 //! \}
85
86 //! \name Type Identity
87 //! \{
88 //! \brief Get the message type string for this message class.
89 static const std::string& theType();
90
91 //! \brief Get the message identifier for this message class.
93
94 //! \brief Get the version number for this message class.
96
97 //! \brief Get the message type string for this instance.
98 virtual const std::string& type() const override;
99
100 //! \brief Get the message identifier for this instance.
101 virtual const makVre::DtVreMessageId& messageId() const override;
102 //! \}
103
104 //! \name Accessors
105 //! \{
106 virtual const DtSimulationAddress& getHostSimAddress() const;
107 virtual void setHostSimAddress(const DtSimulationAddress& val);
108
109 virtual const std::string& getSessionName() const;
110 virtual void setSessionName(const std::string& val);
111
112 virtual int getViewId() const;
113 virtual void setViewId(int val);
114
115 virtual int getGroupId() const;
116 virtual void setGroupId(int val);
117
118 virtual const DtEntityIdentifier& getAttachTo() const;
119 virtual void setAttachTo(const DtEntityIdentifier& val);
120
121 virtual const DtVector32& getPositionOffset() const;
122 virtual void setPositionOffset(const DtVector32& val);
123
124 virtual const DtVector32& getRotationOffset() const;
125 virtual void setRotationOffset(const DtVector32& val);
126
127 virtual int getAttachToPart() const;
128 virtual void setAttachToPart(int val);
129
130 virtual int getAttachType() const;
131 virtual void setAttachType(int val);
132 //! \}
133
134 //! \name Serialization
135 //! \{
136 //! \copydoc makVre::DtVreMessage::messageSize()
137 virtual int messageSize() const override;
138
139 //! \brief Decode a message from a byte buffer.
140 //! \param buffer The raw byte buffer to decode from.
141 //! \param length The length of the buffer in bytes.
142 //! \return A dynamically allocated decoded message. Caller takes ownership.
143 static makVre::DtVreMessage* decode(char* buffer, int length);
144
145 //! \brief Get a copy of the message data.
147
148 //! \brief Get a copy of the message data (const).
150 //! \}
151
152 //! \name Operators
153 //! \{
154 bool operator==(const VreCigiViewControlMessage& rhs) const;
155 bool operator!=(const VreCigiViewControlMessage& rhs) const;
156 //! \}
157
158protected:
160
161 //! \copydoc makVre::DtVreMessage::serialize()
162 virtual void serialize(DtStreamWriter& writer) const override;
163
164 //! \copydoc makVre::DtVreMessage::deserialize()
165 virtual void deserialize(DtStreamReader& reader) override;
166
167protected:
170
172};
173} // namespace makVre
174
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 setAttachTo(const DtEntityIdentifier &val)
virtual int getGroupId() const
virtual const DtVector32 & getRotationOffset() const
virtual void setAttachType(int val)
virtual const DtVector32 & getPositionOffset() const
bool operator!=(const VreCigiViewControlMessage &rhs) const
virtual void setRotationOffset(const DtVector32 &val)
static const std::string & theType()
Get the message type string for this instance.
virtual int getAttachType() const
virtual void setGroupId(int val)
static UInt64 theVersionNumber()
Get the version number for this message class.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setViewId(int val)
virtual int messageSize() const override
Get a copy of the message data.
bool operator==(const VreCigiViewControlMessage &rhs) const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual int getAttachToPart() const
virtual const std::string & getSessionName() const
static UInt64 theVersion
Definition cigiViewControl.h:169
VreCigiViewControlData myData
Definition cigiViewControl.h:171
VreCigiViewControlData getData()
Get a copy of the message data.
virtual ~VreCigiViewControlMessage() override
Destructor.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const DtEntityIdentifier & getAttachTo() const
static VreCigiViewControlMessage * createFrom(VreCigiViewControlMessage *origMsg)
Create a copy of the given message.
virtual void setAttachToPart(int val)
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual const std::string & type() const override
Get the message type string for this instance.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static VreCigiViewControlMessage * createFromData(const VreCigiViewControlData data)
Create a new message initialized with the given data.
static makVre::DtVreMessageId theMessageId
Definition cigiViewControl.h:168
static VreCigiViewControlMessage * create()
Create a copy of the given message.
VreCigiViewControlData getData() const
Get a copy of the message data (const).
virtual const DtSimulationAddress & getHostSimAddress() const
virtual void setPositionOffset(const DtVector32 &val)
virtual void setHostSimAddress(const DtSimulationAddress &val)
virtual void setSessionName(const std::string &val)
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 * VreCigiViewControlMessageType
Message type identifier for VreCigiViewControlMessage.
Definition cigiViewControl.h:25
Data payload for VreCigiViewControlMessage.
Definition cigiViewControl.h:41
DtSimulationAddress myHostSimAddress
Definition cigiViewControl.h:48
DtVector32 myRotationOffset
Definition cigiViewControl.h:54
std::string mySessionName
Definition cigiViewControl.h:49
DtEntityIdentifier myAttachTo
Definition cigiViewControl.h:52
bool operator!=(const VreCigiViewControlData &rhs) const
DtVector32 myPositionOffset
Definition cigiViewControl.h:53
int myAttachToPart
Definition cigiViewControl.h:55
bool operator==(const VreCigiViewControlData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.