VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DebugDrawSphereMessage Class Reference

Detailed Description

Enable and disable in VR-Engage debug menu in the rendering page.

Message type: "debug.render.sphere"

Note
This is an auto-generated class. Do not modify directly.

#include <debugDrawSphere.h>

Inheritance diagram for makVre::DebugDrawSphereMessage:
[legend]

Classes

struct  DebugDrawSphereData
 

Public Member Functions

virtual ~DebugDrawSphereMessage () override
 
Accessors
virtual const std::string & getLayerName () const
 
virtual void setLayerName (const std::string &val)
 
virtual const std::string & getLayerId () const
 
virtual void setLayerId (const std::string &val)
 
virtual const DtVector & getPosition () const
 
virtual void setPosition (const DtVector &val)
 
virtual float getRadius () const
 
virtual void setRadius (float val)
 
virtual const makVre::DtColor & getColor () const
 
virtual void setColor (const makVre::DtColor &val)
 
virtual int getFill () const
 
virtual void setFill (int val)
 
virtual bool getClip () const
 
virtual void setClip (bool val)
 
virtual double getDuration () const
 
virtual void setDuration (double val)
 
Operators
bool operator== (const DebugDrawSphereMessage &rhs) const
 
bool operator!= (const DebugDrawSphereMessage &rhs) const
 
- Public Member Functions inherited from makVre::DtVreMessage
 DtVreMessage ()
 
virtual ~DtVreMessage ()
 
virtual char * encode ()
 
virtual void encode (char *buffer, int bufferSize)
 
virtual const UInt64 originatingApplicationId () const
 
virtual void setOriginatingApplicationId (UInt64 appId)
 
virtual void setDelay (double delay)
 
virtual bool isDelayed ()
 
virtual void reduceDelay (double dt)
 
virtual const UInt64 versionNumber () const
 

Static Public Member Functions

Static Creators

Create a new default instance.

Returns
A dynamically allocated default message. Caller takes ownership.
static DebugDrawSphereMessage * create ()
 
static DebugDrawSphereMessage * createFrom (DebugDrawSphereMessage *origMsg)
 
static DebugDrawSphereMessage * createFromData (const DebugDrawSphereData data)
 

Protected Member Functions

 DebugDrawSphereMessage ()
 
virtual void serialize (DtStreamWriter &writer) const override
 
virtual void deserialize (DtStreamReader &reader) override
 

Protected Attributes

DebugDrawSphereData myData
 
- Protected Attributes inherited from makVre::DtVreMessage
double myDelay
 
UInt64 myApplicationId
 
UInt64 myVersion
 

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
 
static const std::string & theType ()
 
static const makVre::DtVreMessageId & theId ()
 
static UInt64 theVersionNumber ()
 

Serialization

Static decode function pattern for derived classes.

Note
Each derived class must implement a static decode function with the signature:
static DtVreMessage* decode(unsigned char* buffer, int length);
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
DtVreMessage()
Default constructor.
This function is used by the message factory to create messages from raw data.

Gets the total size of the serialized message in bytes

Returns
Size of the 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
 
DebugDrawSphereData getData ()
 
DebugDrawSphereData getData () const
 
static makVre::DtVreMessage * decode (char *buffer, int length)
 

Constructor & Destructor Documentation

◆ ~DebugDrawSphereMessage()

virtual makVre::DebugDrawSphereMessage::~DebugDrawSphereMessage ( )
overridevirtual

Destructor.

◆ DebugDrawSphereMessage()

makVre::DebugDrawSphereMessage::DebugDrawSphereMessage ( )
protected

Member Function Documentation

◆ create()

static DebugDrawSphereMessage * makVre::DebugDrawSphereMessage::create ( )
static

Create a copy of the given message.

Parameters
origMsgThe message to copy. Must not be null.
Returns
A dynamically allocated copy. Caller takes ownership.

References DebugDrawSphereMessage().

◆ createFrom()

static DebugDrawSphereMessage * makVre::DebugDrawSphereMessage::createFrom ( DebugDrawSphereMessage * origMsg)
static

Create a copy of the given message.

Parameters
origMsgThe message to copy. Must not be null.
Returns
A dynamically allocated copy. Caller takes ownership.

References DebugDrawSphereMessage().

◆ createFromData()

static DebugDrawSphereMessage * makVre::DebugDrawSphereMessage::createFromData ( const DebugDrawSphereData data)
static

Create a new message initialized with the given data.

Parameters
dataThe data payload to initialize the message with.
Returns
A dynamically allocated message. Caller takes ownership.

References DebugDrawSphereMessage().

◆ theType()

static const std::string & makVre::DebugDrawSphereMessage::theType ( )
static

Get the message type string for this instance.

◆ theId()

static const makVre::DtVreMessageId & makVre::DebugDrawSphereMessage::theId ( )
static

Get the message identifier for this message class.

◆ theVersionNumber()

static UInt64 makVre::DebugDrawSphereMessage::theVersionNumber ( )
static

Get the version number for this message class.

◆ type()

virtual const std::string & makVre::DebugDrawSphereMessage::type ( ) const
overridevirtual

Get the message type string for this instance.

Implements makVre::DtVreMessage.

◆ messageId()

virtual const makVre::DtVreMessageId & makVre::DebugDrawSphereMessage::messageId ( ) const
overridevirtual

Get the message identifier for this instance.

Implements makVre::DtVreMessage.

◆ getLayerName()

virtual const std::string & makVre::DebugDrawSphereMessage::getLayerName ( ) const
virtual

◆ setLayerName()

virtual void makVre::DebugDrawSphereMessage::setLayerName ( const std::string & val)
virtual

◆ getLayerId()

virtual const std::string & makVre::DebugDrawSphereMessage::getLayerId ( ) const
virtual

◆ setLayerId()

virtual void makVre::DebugDrawSphereMessage::setLayerId ( const std::string & val)
virtual

◆ getPosition()

virtual const DtVector & makVre::DebugDrawSphereMessage::getPosition ( ) const
virtual

◆ setPosition()

virtual void makVre::DebugDrawSphereMessage::setPosition ( const DtVector & val)
virtual

◆ getRadius()

virtual float makVre::DebugDrawSphereMessage::getRadius ( ) const
virtual

◆ setRadius()

virtual void makVre::DebugDrawSphereMessage::setRadius ( float val)
virtual

◆ getColor()

virtual const makVre::DtColor & makVre::DebugDrawSphereMessage::getColor ( ) const
virtual

◆ setColor()

virtual void makVre::DebugDrawSphereMessage::setColor ( const makVre::DtColor & val)
virtual

◆ getFill()

virtual int makVre::DebugDrawSphereMessage::getFill ( ) const
virtual

◆ setFill()

virtual void makVre::DebugDrawSphereMessage::setFill ( int val)
virtual

◆ getClip()

virtual bool makVre::DebugDrawSphereMessage::getClip ( ) const
virtual

◆ setClip()

virtual void makVre::DebugDrawSphereMessage::setClip ( bool val)
virtual

◆ getDuration()

virtual double makVre::DebugDrawSphereMessage::getDuration ( ) const
virtual

◆ setDuration()

virtual void makVre::DebugDrawSphereMessage::setDuration ( double val)
virtual

◆ messageSize()

virtual int makVre::DebugDrawSphereMessage::messageSize ( ) const
overridevirtual

Get a copy of the message data.

Reimplemented from makVre::DtVreMessage.

◆ decode()

static makVre::DtVreMessage * makVre::DebugDrawSphereMessage::decode ( char * buffer,
int length )
static

Decode a message from a byte buffer.

Parameters
bufferThe raw byte buffer to decode from.
lengthThe length of the buffer in bytes.
Returns
A dynamically allocated decoded message. Caller takes ownership.

◆ getData() [1/2]

DebugDrawSphereData makVre::DebugDrawSphereMessage::getData ( )

Get a copy of the message data.

◆ getData() [2/2]

DebugDrawSphereData makVre::DebugDrawSphereMessage::getData ( ) const

Get a copy of the message data (const).

◆ operator==()

bool makVre::DebugDrawSphereMessage::operator== ( const DebugDrawSphereMessage & rhs) const

◆ operator!=()

bool makVre::DebugDrawSphereMessage::operator!= ( const DebugDrawSphereMessage & rhs) const

◆ serialize()

virtual void makVre::DebugDrawSphereMessage::serialize ( DtStreamWriter & writer) const
overrideprotectedvirtual

Serializes the message to a stream writer.

Parameters
writerReference 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.

◆ deserialize()

virtual void makVre::DebugDrawSphereMessage::deserialize ( DtStreamReader & reader)
overrideprotectedvirtual

Deserializes the message from a stream reader.

Parameters
readerReference 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.

Member Data Documentation

◆ theMessageId

makVre::DtVreMessageId makVre::DebugDrawSphereMessage::theMessageId
staticprotected

◆ theVersion

UInt64 makVre::DebugDrawSphereMessage::theVersion
staticprotected

◆ myData

DebugDrawSphereData makVre::DebugDrawSphereMessage::myData
protected

The documentation for this class was generated from the following file: