dtHLAGM::WorldCoordinate Class Reference

A DIS/RPR-FOM world coordinate type. More...

#include <distypes.h>

List of all members.

Public Member Functions

 WorldCoordinate (double x=0.0, double y=0.0, double z=0.0)
 Constructor.
 WorldCoordinate (const osg::Vec3d &copyVec)
 Allow the superclass copy 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 SetX (double x)
 Sets the value of the x field.
double GetX () const
 Returns the value of the x field.
void SetY (double y)
 Sets the value of the y field.
double GetY () const
 Returns the value of the y field.
void SetZ (double z)
 Sets the value of the z field.
double GetZ () const
 Returns the value of the z field.


Detailed Description

A DIS/RPR-FOM world coordinate type.

Constructor & Destructor Documentation

dtHLAGM::WorldCoordinate::WorldCoordinate ( double  x = 0.0,
double  y = 0.0,
double  z = 0.0 
)

Constructor.

Parameters:
x the value of the x field
y the value of the y field
z the value of the z field

dtHLAGM::WorldCoordinate::WorldCoordinate ( const osg::Vec3d &  copyVec  )  [inline]

Allow the superclass copy constructor.


Member Function Documentation

size_t dtHLAGM::WorldCoordinate::EncodedLength (  )  const

Returns the encoded length of this object.

Returns:
the encoded length of this object, in bytes

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

Encodes this object into the specified buffer.

Parameters:
buf the buffer to contain the encoded object

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

Decodes the values contained in the specified buffer.

Parameters:
buf the buffer containing the encoded object

void dtHLAGM::WorldCoordinate::SetX ( double  newX  ) 

Sets the value of the x field.

Parameters:
x the value of the x field

double dtHLAGM::WorldCoordinate::GetX (  )  const

Returns the value of the x field.

Returns:
the value of the x field

void dtHLAGM::WorldCoordinate::SetY ( double  newY  ) 

Sets the value of the y field.

Parameters:
y the value of the y field

double dtHLAGM::WorldCoordinate::GetY (  )  const

Returns the value of the y field.

Returns:
the value of the y field

void dtHLAGM::WorldCoordinate::SetZ ( double  newZ  ) 

Sets the value of the z field.

Parameters:
z the value of the z field

double dtHLAGM::WorldCoordinate::GetZ (  )  const

Returns the value of the z field.

Returns:
the value of the z field


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