![]() |
VR-Forces 4.1.1 Class Documentation
|
A sphere definition to be stored in shared memory. More...

Public Member Functions | |
| DtDebugDrawerSphereMemory () | |
| Constructor. | |
| ~DtDebugDrawerSphereMemory () | |
| Destructor. | |
| virtual char * | encode (char *buffer) |
| Encodes this sphere into a buffer. | |
| virtual const char * | decode (const char *buffer) |
| Decodes a sphere 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 | |
| DtDebugDrawerGeometryMemory () | |
| Constructor. | |
| virtual | ~DtDebugDrawerGeometryMemory () |
| Destructor. | |
Public Attributes | |
| DtVector | myCenter |
| The center of the sphere. | |
| double | myRadius |
| The radius of the sphere. | |
Public Attributes inherited from DtDebugDrawerGeometryMemory | |
| DtDebugDrawerGeometryMemoryColor | myColor |
| The color of this geometry. | |
A sphere definition to be stored in shared memory.
| DtDebugDrawerSphereMemory::DtDebugDrawerSphereMemory | ( | ) |
Constructor.
| DtDebugDrawerSphereMemory::~DtDebugDrawerSphereMemory | ( | ) |
Destructor.
|
virtual |
Encodes this sphere into a buffer.
| buffer | pointer to a character buffer |
Implements DtDebugDrawerGeometryMemory.
|
virtual |
Decodes a sphere 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.
| buffer | Pointer to a character buffer that previously had encode() called on it. |
Implements DtDebugDrawerGeometryMemory.
|
virtual |
Gets the size this object would take in bytes were it encoded with encode().
Implements DtDebugDrawerGeometryMemory.
|
virtual |
Gets the type of this object.
Used to identify the object of this class.
Implements DtDebugDrawerGeometryMemory.
| DtVector DtDebugDrawerSphereMemory::myCenter |
The center of the sphere.
This member was intentionally left public for easier access to the value.
| double DtDebugDrawerSphereMemory::myRadius |
The radius of the sphere.
This member was intentionally left public for easier access to the value.