|
VR-Engage
2.3
|
Sets the human's view mode to either first or third person.
Message type: "human.setViewMode"
#include <setViewMode.h>
Classes | |
| struct | SetViewModeData |
Public Types | |
| enum | ViewMode { ViewMode_FIRST_PERSON , ViewMode_THIRD_PERSON , ViewMode_FIRST_PERSON , ViewMode_THIRD_PERSON } |
| enum | ViewMode { ViewMode_FIRST_PERSON , ViewMode_THIRD_PERSON , ViewMode_FIRST_PERSON , ViewMode_THIRD_PERSON } |
Public Member Functions | |
| virtual | ~SetViewModeMessage () override |
| virtual | ~SetViewModeMessage () override |
Accessors | |
| virtual ViewMode | getMode () const |
| virtual void | setMode (ViewMode val) |
| virtual ViewMode | getMode () const |
| virtual void | setMode (ViewMode val) |
Operators | |
| bool | operator== (const SetViewModeMessage &rhs) const |
| bool | operator!= (const SetViewModeMessage &rhs) const |
| bool | operator== (const SetViewModeMessage &rhs) const |
| bool | operator!= (const SetViewModeMessage &rhs) const |
Static Public Member Functions | |
Static Creators | |
Create a new default instance.
| |
| static SetViewModeMessage * | create () |
| static SetViewModeMessage * | createFrom (SetViewModeMessage *origMsg) |
| static SetViewModeMessage * | createFromData (const SetViewModeData data) |
| static SetViewModeMessage * | create () |
| static SetViewModeMessage * | createFrom (SetViewModeMessage *origMsg) |
| static SetViewModeMessage * | createFromData (const SetViewModeData data) |
Protected Member Functions | |
| SetViewModeMessage () | |
| virtual void | serialize (DtStreamWriter &writer) const override |
| virtual void | deserialize (DtStreamReader &reader) override |
| SetViewModeMessage () | |
| virtual void | serialize (DtStreamWriter &writer) const override |
| virtual void | deserialize (DtStreamReader &reader) override |
Protected Attributes | |
| SetViewModeData | myData |
Static Protected Attributes | |
| static makVre::DtVreMessageId | theMessageId |
| static UInt64 | theVersion |
Type Identity | |
Get the message type string for this message class. | |
| virtual const std::string & | type () const override |
| virtual const makVre::DtVreMessageId & | messageId () const override |
| virtual const std::string & | type () const override |
| virtual const makVre::DtVreMessageId & | messageId () const override |
| static const std::string & | theType () |
| static const makVre::DtVreMessageId & | theId () |
| static UInt64 | theVersionNumber () |
| static const std::string & | theType () |
| static const makVre::DtVreMessageId & | theId () |
| static UInt64 | theVersionNumber () |
Serialization | |
Static decode function pattern for derived classes.
Gets the total size of the serialized message in bytes
This method calculates the total size of the message when serialized, including the base message header (message size, type hash, application ID, version, and delay) and any data added by derived classes. Derived classes should override this method to include their own data size while calling the base class implementation. | |
| virtual int | messageSize () const override |
| SetViewModeData | getData () |
| SetViewModeData | getData () const |
| virtual int | messageSize () const override |
| SetViewModeData | getData () |
| SetViewModeData | getData () const |
| static makVre::DtVreMessage * | decode (char *buffer, int length) |
| static makVre::DtVreMessage * | decode (char *buffer, int length) |
ViewMode enumeration.
| Enumerator | |
|---|---|
| ViewMode_FIRST_PERSON | |
| ViewMode_THIRD_PERSON | |
| ViewMode_FIRST_PERSON | |
| ViewMode_THIRD_PERSON | |
ViewMode enumeration.
| Enumerator | |
|---|---|
| ViewMode_FIRST_PERSON | |
| ViewMode_THIRD_PERSON | |
| ViewMode_FIRST_PERSON | |
| ViewMode_THIRD_PERSON | |
|
overridevirtual |
Destructor.
|
protected |
Referenced by create(), createFrom(), createFromData(), operator!=(), and operator==().
|
overridevirtual |
Destructor.
|
protected |
|
static |
Create a copy of the given message.
| origMsg | The message to copy. Must not be null. |
References SetViewModeMessage().
|
static |
Create a copy of the given message.
| origMsg | The message to copy. Must not be null. |
References SetViewModeMessage().
|
static |
Create a new message initialized with the given data.
| data | The data payload to initialize the message with. |
References SetViewModeMessage().
|
static |
Get the message type string for this instance.
|
static |
Get the message identifier for this message class.
|
static |
Get the version number for this message class.
|
overridevirtual |
Get the message type string for this instance.
Implements makVre::DtVreMessage.
|
overridevirtual |
Get the message identifier for this instance.
Implements makVre::DtVreMessage.
|
virtual |
|
virtual |
|
overridevirtual |
Get a copy of the message data.
Reimplemented from makVre::DtVreMessage.
|
static |
Decode a message from a byte buffer.
| buffer | The raw byte buffer to decode from. |
| length | The length of the buffer in bytes. |
| SetViewModeData makVre::SetViewModeMessage::getData | ( | ) |
Get a copy of the message data.
| SetViewModeData makVre::SetViewModeMessage::getData | ( | ) | const |
Get a copy of the message data (const).
| bool makVre::SetViewModeMessage::operator== | ( | const SetViewModeMessage & | rhs | ) | const |
References SetViewModeMessage().
| bool makVre::SetViewModeMessage::operator!= | ( | const SetViewModeMessage & | rhs | ) | const |
References SetViewModeMessage().
|
overrideprotectedvirtual |
Serializes the message to a stream writer.
| writer | Reference to the stream writer |
This method writes the message header fields to the stream writer. Derived classes should override this method to add their own fields while calling the base class implementation.
Reimplemented from makVre::DtVreMessage.
|
overrideprotectedvirtual |
Deserializes the message from a stream reader.
| reader | Reference to the stream reader |
This method reads the message header fields from the stream reader. Derived classes should override this method to read their own fields while calling the base class implementation.
Reimplemented from makVre::DtVreMessage.
|
static |
Create a copy of the given message.
| origMsg | The message to copy. Must not be null. |
References SetViewModeMessage().
|
static |
Create a copy of the given message.
| origMsg | The message to copy. Must not be null. |
References SetViewModeMessage().
|
static |
Create a new message initialized with the given data.
| data | The data payload to initialize the message with. |
References SetViewModeMessage().
|
static |
Get the message type string for this instance.
|
static |
Get the message identifier for this message class.
|
static |
Get the version number for this message class.
|
overridevirtual |
Get the message type string for this instance.
Implements makVre::DtVreMessage.
|
overridevirtual |
Get the message identifier for this instance.
Implements makVre::DtVreMessage.
|
virtual |
|
virtual |
|
overridevirtual |
Get a copy of the message data.
Reimplemented from makVre::DtVreMessage.
|
static |
Decode a message from a byte buffer.
| buffer | The raw byte buffer to decode from. |
| length | The length of the buffer in bytes. |
| SetViewModeData makVre::SetViewModeMessage::getData | ( | ) |
Get a copy of the message data.
| SetViewModeData makVre::SetViewModeMessage::getData | ( | ) | const |
Get a copy of the message data (const).
| bool makVre::SetViewModeMessage::operator== | ( | const SetViewModeMessage & | rhs | ) | const |
References SetViewModeMessage().
| bool makVre::SetViewModeMessage::operator!= | ( | const SetViewModeMessage & | rhs | ) | const |
References SetViewModeMessage().
|
overrideprotectedvirtual |
Serializes the message to a stream writer.
| writer | Reference to the stream writer |
This method writes the message header fields to the stream writer. Derived classes should override this method to add their own fields while calling the base class implementation.
Reimplemented from makVre::DtVreMessage.
|
overrideprotectedvirtual |
Deserializes the message from a stream reader.
| reader | Reference to the stream reader |
This method reads the message header fields from the stream reader. Derived classes should override this method to read their own fields while calling the base class implementation.
Reimplemented from makVre::DtVreMessage.
References myData, theMessageId, and theVersion.
|
staticprotected |
Referenced by deserialize().
|
staticprotected |
Referenced by deserialize().
|
protected |
Referenced by deserialize().