#include <distypes.h>
Public Member Functions | |
| ArticulatedParts (unsigned int pClass=0, unsigned int typeMetric=0, float value=0.0f) | |
| Constructor. | |
| size_t | EncodedLength () const |
| Returns the encoded length of this object. | |
| void | Encode (char *buf) const |
| Encodes this object into the specified buffer. | |
| void | Decode (const char *buf) |
| Decodes the values contained in the specified buffer. | |
| void | SetClass (unsigned int pClass) |
| Sets the part class. | |
| unsigned int | GetClass () const |
| Returns the part class. | |
| void | SetTypeMetric (unsigned int typeMetric) |
| Sets the type metric. | |
| unsigned int | GetTypeMetric () const |
| Returns the type metric. | |
| void | SetValue (float value) |
| Sets the part value. | |
| float | GetValue () const |
| Returns the part value. | |
| bool | IsEqual (const ArticulatedParts &other) const |
| Returns true this equals another ArticulatedParts object. | |
| dtHLAGM::ArticulatedParts::ArticulatedParts | ( | unsigned int | pClass = 0, |
|
| unsigned int | typeMetric = 0, |
|||
| float | value = 0.0f | |||
| ) |
Constructor.
| pClass | the part class | |
| typeMetric | the type metric | |
| value | the part value |
| size_t dtHLAGM::ArticulatedParts::EncodedLength | ( | ) | const |
Returns the encoded length of this object.
| void dtHLAGM::ArticulatedParts::Encode | ( | char * | buf | ) | const |
Encodes this object into the specified buffer.
| buf | the buffer to contain the encoded object |
| void dtHLAGM::ArticulatedParts::Decode | ( | const char * | buf | ) |
Decodes the values contained in the specified buffer.
| buf | the buffer containing the encoded object |
| void dtHLAGM::ArticulatedParts::SetClass | ( | unsigned int | pClass | ) |
Sets the part class.
| pClass | the part class |
| unsigned int dtHLAGM::ArticulatedParts::GetClass | ( | ) | const |
Returns the part class.
| void dtHLAGM::ArticulatedParts::SetTypeMetric | ( | unsigned int | typeMetric | ) |
Sets the type metric.
| typeMetric | the type metric |
| unsigned int dtHLAGM::ArticulatedParts::GetTypeMetric | ( | ) | const |
Returns the type metric.
| void dtHLAGM::ArticulatedParts::SetValue | ( | float | value | ) |
Sets the part value.
| value | the part value |
| float dtHLAGM::ArticulatedParts::GetValue | ( | ) | const |
Returns the part value.
| bool dtHLAGM::ArticulatedParts::IsEqual | ( | const ArticulatedParts & | other | ) | const |