dtHLAGM::ArticulatedParts Class Reference

A DIS/RPR-FOM articulated part. More...

#include <distypes.h>

List of all members.

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.


Detailed Description

A DIS/RPR-FOM articulated part.

Constructor & Destructor Documentation

dtHLAGM::ArticulatedParts::ArticulatedParts ( unsigned int  pClass = 0,
unsigned int  typeMetric = 0,
float  value = 0.0f 
)

Constructor.

Parameters:
pClass the part class
typeMetric the type metric
value the part value


Member Function Documentation

size_t dtHLAGM::ArticulatedParts::EncodedLength (  )  const

Returns the encoded length of this object.

Returns:
the encoded length of this object, in bytes

void dtHLAGM::ArticulatedParts::Encode ( char *  buf  )  const

Encodes this object into the specified buffer.

Parameters:
buf the buffer to contain the encoded object

void dtHLAGM::ArticulatedParts::Decode ( const char *  buf  ) 

Decodes the values contained in the specified buffer.

Parameters:
buf the buffer containing the encoded object

void dtHLAGM::ArticulatedParts::SetClass ( unsigned int  pClass  ) 

Sets the part class.

Parameters:
pClass the part class

unsigned int dtHLAGM::ArticulatedParts::GetClass (  )  const

Returns the part class.

Returns:
the part class

void dtHLAGM::ArticulatedParts::SetTypeMetric ( unsigned int  typeMetric  ) 

Sets the type metric.

Parameters:
typeMetric the type metric

unsigned int dtHLAGM::ArticulatedParts::GetTypeMetric (  )  const

Returns the type metric.

Returns:
the type metric

void dtHLAGM::ArticulatedParts::SetValue ( float  value  ) 

Sets the part value.

Parameters:
value the part value

float dtHLAGM::ArticulatedParts::GetValue (  )  const

Returns the part value.

Returns:
the part value

bool dtHLAGM::ArticulatedParts::IsEqual ( const ArticulatedParts other  )  const

Returns true this equals another ArticulatedParts object.

Returns:
true if this is equal to other


http://www.delta3d.org
2.0.0 generated 14 Feb 2008