VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makArchives::DtPropRecord Class Reference

A DtPropRecord contains the information to recreate a prop. More...

List of all members.

Public Member Functions

 DtPropRecord ()
 CTOR.
 ~DtPropRecord ()
 DTOR.
 DtPropRecord (const DtPropRecord &orig)
 Copy CTOR.
DtPropRecordoperator= (const DtPropRecord &orig)
 Assignment OP.
void setName (const std::string &name)
 Set the name of the prop.
const std::string & name () const
 Get the name of the prop.
void setPosition (double x, double y, double z)
 Set position.
void getPosition (double &xOut, double &yOut, double &zOut) const
 Get position.
void setOrientation (double x, double y, double z, double w)
 Set orientation (as quaternion).
void getOrientation (double &xOut, double &yOut, double &zOut, double &wOut) const
 Get orientation (as quaternion).
void setPropType (const std::string &propType)
 Set the prop type of this record.
const std::string & propType () const
 Return the prop type of this record.
void setModelDefOrNodeAddress (const std::string &modelDefOrNodeAddress)
 Set the model definition or node address of this record.
const std::string & modelDefOrNodeAddress () const
 Return the model definition or node address of this record.
void setIsModelDef (bool bIsModelDef)
 Set whether modelDefOrNodeAddress() returns a model definition or node address. True is model def, false is node address.
bool isModelDef () const
 Return whether modelDefOrNodeAddress() returns a model definition or node address. True is model def, false is node address.
void setColor (float r, float g, float b, float alpha)
 Set color.
void getColor (float &r, float &g, float &b, float &alpha) const
 Get color.
void setIsVisible (bool flag)
 Set isVisible.
bool isVisible () const
 Get isVisible.

Protected Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 When the class Archive corresponds to an output archive, the & operator is defined similar to <<.

Protected Attributes

std::string myName
double myPosX
double myPosY
double myPosZ
double myOrientationX
double myOrientationY
double myOrientationZ
double myOrientationW
std::string myPropType
std::string myModelDefOrNodeAddress
bool myIsModelDefFlag
float myColorR
float myColorG
float myColorB
float myColorA
bool myIsVisible

Friends

class boost::serialization::access
 Serialization/Deserialization //.

Detailed Description

A DtPropRecord contains the information to recreate a prop.


Constructor & Destructor Documentation

CTOR.

DTOR.

Copy CTOR.


Member Function Documentation

DtPropRecord& makArchives::DtPropRecord::operator= ( const DtPropRecord orig)

Assignment OP.

void makArchives::DtPropRecord::setName ( const std::string &  name)

Set the name of the prop.

const std::string& makArchives::DtPropRecord::name ( ) const

Get the name of the prop.

void makArchives::DtPropRecord::setPosition ( double  x,
double  y,
double  z 
)

Set position.

void makArchives::DtPropRecord::getPosition ( double &  xOut,
double &  yOut,
double &  zOut 
) const

Get position.

void makArchives::DtPropRecord::setOrientation ( double  x,
double  y,
double  z,
double  w 
)

Set orientation (as quaternion).

void makArchives::DtPropRecord::getOrientation ( double &  xOut,
double &  yOut,
double &  zOut,
double &  wOut 
) const

Get orientation (as quaternion).

void makArchives::DtPropRecord::setPropType ( const std::string &  propType)

Set the prop type of this record.

const std::string& makArchives::DtPropRecord::propType ( ) const

Return the prop type of this record.

void makArchives::DtPropRecord::setModelDefOrNodeAddress ( const std::string &  modelDefOrNodeAddress)

Set the model definition or node address of this record.

Return the model definition or node address of this record.

Set whether modelDefOrNodeAddress() returns a model definition or node address. True is model def, false is node address.

Return whether modelDefOrNodeAddress() returns a model definition or node address. True is model def, false is node address.

void makArchives::DtPropRecord::setColor ( float  r,
float  g,
float  b,
float  alpha 
)

Set color.

void makArchives::DtPropRecord::getColor ( float &  r,
float &  g,
float &  b,
float &  alpha 
) const

Get color.

Set isVisible.

Get isVisible.

template<class Archive >
void makArchives::DtPropRecord::serialize ( Archive &  ar,
const unsigned int  version 
) [inline, protected]

When the class Archive corresponds to an output archive, the & operator is defined similar to <<.

Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Serialization/Deserialization //.


Member Data Documentation

std::string makArchives::DtPropRecord::myName [protected]
std::string makArchives::DtPropRecord::myPropType [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)