VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
DtDebugDrawerTextMemory Class Reference

A text definition to be stored in shared memory. More...

Inheritance diagram for DtDebugDrawerTextMemory:
Inheritance graph
[legend]

Public Member Functions

 DtDebugDrawerTextMemory ()
 Constructor.
virtual charencode (char *buffer)
 Encodes into a buffer.
virtual const chardecode (const char *buffer)
 Decodes text from a buffer into this object.
virtual int getSize ()
 Gets the size this object would take in bytes were it encoded with encode().
virtual int type ()
 Gets the type of this object.
- Public Member Functions inherited from DtDebugDrawerGeometryMemory
virtual ~DtDebugDrawerGeometryMemory ()
 Destructor.

Public Attributes

DtString myText
 Data.
DtVector myLocation
 Location of text.
unsigned char mySize
 Point size of text.
bool myAbsoluteFlag
 Render is absolute coordinates (default: false)
- Public Attributes inherited from DtDebugDrawerGeometryMemory
DtDebugDrawerGeometryMemoryColor myColor
 The color of this geometry.

Detailed Description

A text definition to be stored in shared memory.

Constructor & Destructor Documentation

DtDebugDrawerTextMemory::DtDebugDrawerTextMemory ( )

Constructor.

Member Function Documentation

virtual char* DtDebugDrawerTextMemory::encode ( char buffer)
virtual

Encodes into a buffer.

Parameters
bufferpointer to a character buffer
Returns
Returns a pointer to the buffer after where this function wrote data from the buffer param.

Implements DtDebugDrawerGeometryMemory.

virtual const char* DtDebugDrawerTextMemory::decode ( const char buffer)
virtual

Decodes text from a buffer into this object.

This should only be called when it is certain that the the first set of data in the buffer is of this particular shape.

Parameters
bufferPointer to a character buffer that previously had encode() called on it.
Returns
Returns a pointer to the buffer after where this function read data from the buffer param. It is important to note that this reads the buffer like a queue rather than a stack.

Implements DtDebugDrawerGeometryMemory.

virtual int DtDebugDrawerTextMemory::getSize ( )
virtual

Gets the size this object would take in bytes were it encoded with encode().

Returns
A size in bytes. See description.

Implements DtDebugDrawerGeometryMemory.

virtual int DtDebugDrawerTextMemory::type ( )
virtual

Gets the type of this object.

Used to identify the object of this class.

Returns
Returns the integer value 2.

Implements DtDebugDrawerGeometryMemory.

Member Data Documentation

DtString DtDebugDrawerTextMemory::myText

Data.

DtVector DtDebugDrawerTextMemory::myLocation

Location of text.

unsigned char DtDebugDrawerTextMemory::mySize

Point size of text.

bool DtDebugDrawerTextMemory::myAbsoluteFlag

Render is absolute coordinates (default: false)


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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)