VR-Engage  2.3
Loading...
Searching...
No Matches
cigiViewDefinition.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
20namespace makVre
21{
22//! \brief Message type identifier for VreCigiViewDefinitionMessage.
23constexpr const char* VreCigiViewDefinitionMessageType = "cigi.control.viewDefinition";
24
25/**
26 * \class VreCigiViewDefinitionMessage
27 * \brief VR-Engage message of type "cigi.control.viewDefinition".
28 *
29 * Message type: "cigi.control.viewDefinition"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Data payload for VreCigiViewDefinitionMessage.
39 {
40 //! \brief Default constructor.
42
43 //! \name Data Members
44 //! \{
45
46 DtSimulationAddress myHostSimAddress;
47 std::string mySessionName;
52 bool myOrtho;
54 std::string mySensor;
55 float myNear;
56 float myFar;
57 float myLeft;
58 float myRight;
59 float myTop;
60 float myBottom;
64 //! \}
65
66 //! \name Operators
67 //! \{
68 bool operator==(const VreCigiViewDefinitionData& rhs) const;
69 bool operator!=(const VreCigiViewDefinitionData& rhs) const;
70 //! \}
71 };
72
73 //! \brief Destructor.
75
76 //! \name Static Creators
77 //! \{
78 //! \brief Create a new default instance.
79 //! \return A dynamically allocated default message. Caller takes ownership.
81
82 //! \brief Create a copy of the given message.
83 //! \param origMsg The message to copy. Must not be null.
84 //! \return A dynamically allocated copy. Caller takes ownership.
86
87 //! \brief Create a new message initialized with the given data.
88 //! \param data The data payload to initialize the message with.
89 //! \return A dynamically allocated message. Caller takes ownership.
91 //! \}
92
93 //! \name Type Identity
94 //! \{
95 //! \brief Get the message type string for this message class.
96 static const std::string& theType();
97
98 //! \brief Get the message identifier for this message class.
100
101 //! \brief Get the version number for this message class.
103
104 //! \brief Get the message type string for this instance.
105 virtual const std::string& type() const override;
106
107 //! \brief Get the message identifier for this instance.
108 virtual const makVre::DtVreMessageId& messageId() const override;
109 //! \}
110
111 //! \name Accessors
112 //! \{
113 virtual const DtSimulationAddress& getHostSimAddress() const;
114 virtual void setHostSimAddress(const DtSimulationAddress& val);
115
116 virtual const std::string& getSessionName() const;
117 virtual void setSessionName(const std::string& val);
118
119 virtual int getViewId() const;
120 virtual void setViewId(int val);
121
122 virtual int getGroupId() const;
123 virtual void setGroupId(int val);
124
125 virtual bool getMirror() const;
126 virtual void setMirror(bool val);
127
128 virtual int getPixelZoom() const;
129 virtual void setPixelZoom(int val);
130
131 virtual bool getOrtho() const;
132 virtual void setOrtho(bool val);
133
134 virtual bool getKeepOnTop() const;
135 virtual void setKeepOnTop(bool val);
136
137 virtual const std::string& getSensor() const;
138 virtual void setSensor(const std::string& val);
139
140 virtual float getNear() const;
141 virtual void setNear(float val);
142
143 virtual float getFar() const;
144 virtual void setFar(float val);
145
146 virtual float getLeft() const;
147 virtual void setLeft(float val);
148
149 virtual float getRight() const;
150 virtual void setRight(float val);
151
152 virtual float getTop() const;
153 virtual void setTop(float val);
154
155 virtual float getBottom() const;
156 virtual void setBottom(float val);
157
158 virtual float getMaxViewDistance() const;
159 virtual void setMaxViewDistance(float val);
160
161 virtual float getMinFovDistance() const;
162 virtual void setMinFovDistance(float val);
163
164 virtual float getMaxFireFxDistance() const;
165 virtual void setMaxFireFxDistance(float val);
166 //! \}
167
168 //! \name Serialization
169 //! \{
170 //! \copydoc makVre::DtVreMessage::messageSize()
171 virtual int messageSize() const override;
172
173 //! \brief Decode a message from a byte buffer.
174 //! \param buffer The raw byte buffer to decode from.
175 //! \param length The length of the buffer in bytes.
176 //! \return A dynamically allocated decoded message. Caller takes ownership.
177 static makVre::DtVreMessage* decode(char* buffer, int length);
178
179 //! \brief Get a copy of the message data.
181
182 //! \brief Get a copy of the message data (const).
184 //! \}
185
186 //! \name Operators
187 //! \{
190 //! \}
191
192protected:
194
195 //! \copydoc makVre::DtVreMessage::serialize()
196 virtual void serialize(DtStreamWriter& writer) const override;
197
198 //! \copydoc makVre::DtVreMessage::deserialize()
199 virtual void deserialize(DtStreamReader& reader) override;
200
201protected:
204
206};
207} // namespace makVre
208
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 const std::string & type() const override
Get the message type string for this instance.
virtual void setOrtho(bool val)
virtual const std::string & getSensor() const
VreCigiViewDefinitionData myData
Definition cigiViewDefinition.h:205
virtual void setPixelZoom(int val)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setRight(float val)
virtual void setHostSimAddress(const DtSimulationAddress &val)
virtual void setSessionName(const std::string &val)
virtual void setMaxFireFxDistance(float val)
VreCigiViewDefinitionData getData() const
Get a copy of the message data (const).
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static VreCigiViewDefinitionMessage * create()
Create a copy of the given message.
virtual const DtSimulationAddress & getHostSimAddress() const
virtual float getMaxViewDistance() const
static VreCigiViewDefinitionMessage * createFrom(VreCigiViewDefinitionMessage *origMsg)
Create a copy of the given message.
virtual int messageSize() const override
Get a copy of the message data.
static makVre::DtVreMessageId theMessageId
Definition cigiViewDefinition.h:202
VreCigiViewDefinitionData getData()
Get a copy of the message data.
virtual const std::string & getSessionName() const
static VreCigiViewDefinitionMessage * createFromData(const VreCigiViewDefinitionData data)
Create a new message initialized with the given data.
virtual void setGroupId(int val)
bool operator==(const VreCigiViewDefinitionMessage &rhs) const
virtual ~VreCigiViewDefinitionMessage() override
Destructor.
virtual void setMaxViewDistance(float val)
static UInt64 theVersion
Definition cigiViewDefinition.h:203
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual void setMirror(bool val)
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual float getMinFovDistance() const
virtual void setKeepOnTop(bool val)
virtual void setMinFovDistance(float val)
virtual float getMaxFireFxDistance() const
virtual void setSensor(const std::string &val)
virtual void setTop(float val)
static UInt64 theVersionNumber()
Get the version number for this message class.
static const std::string & theType()
Get the message type string for this instance.
virtual void setLeft(float val)
virtual void setNear(float val)
virtual void setFar(float val)
bool operator!=(const VreCigiViewDefinitionMessage &rhs) const
virtual void setBottom(float val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
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 * VreCigiViewDefinitionMessageType
Message type identifier for VreCigiViewDefinitionMessage.
Definition cigiViewDefinition.h:23
Data payload for VreCigiViewDefinitionMessage.
Definition cigiViewDefinition.h:39
bool operator!=(const VreCigiViewDefinitionData &rhs) const
std::string mySessionName
Definition cigiViewDefinition.h:47
float myMaxFireFxDistance
Definition cigiViewDefinition.h:63
float myMaxViewDistance
Definition cigiViewDefinition.h:61
float myMinFovDistance
Definition cigiViewDefinition.h:62
bool operator==(const VreCigiViewDefinitionData &rhs) const
std::string mySensor
Definition cigiViewDefinition.h:54
DtSimulationAddress myHostSimAddress
Definition cigiViewDefinition.h:46
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.