13 #ifndef DtPropRecord_H_
14 #define DtPropRecord_H_
39 void setName(
const std::string& name);
42 const std::string& name()
const;
45 void setPosition(
double x,
double y,
double z);
48 void getPosition(
double& xOut,
double& yOut,
double& zOut)
const;
51 void setOrientation(
double x,
double y,
double z,
double w);
54 void getOrientation(
double& xOut,
double& yOut,
double& zOut,
double& wOut)
const;
57 void setPropType(
const std::string& propType);
60 const std::string& propType()
const;
63 void setModelDefOrNodeAddress(
const std::string& modelDefOrNodeAddress);
66 const std::string& modelDefOrNodeAddress()
const;
69 void setIsModelDef(
bool bIsModelDef);
72 bool isModelDef()
const;
75 void setColor(
float r,
float g,
float b,
float alpha);
78 void getColor(
float& r,
float& g,
float& b,
float& alpha)
const;
81 void setIsVisible(
bool flag);
84 bool isVisible()
const;
89 friend class boost::serialization::access;
94 template<
class Archive>
95 void serialize(Archive & ar,
const unsigned int version)
97 ar & BOOST_SERIALIZATION_NVP(myName);
98 ar & BOOST_SERIALIZATION_NVP(myPosX);
99 ar & BOOST_SERIALIZATION_NVP(myPosY);
100 ar & BOOST_SERIALIZATION_NVP(myPosZ);
101 ar & BOOST_SERIALIZATION_NVP(myOrientationX);
102 ar & BOOST_SERIALIZATION_NVP(myOrientationY);
103 ar & BOOST_SERIALIZATION_NVP(myOrientationZ);
104 ar & BOOST_SERIALIZATION_NVP(myOrientationW);
105 ar & BOOST_SERIALIZATION_NVP(myPropType);
106 ar & BOOST_SERIALIZATION_NVP(myModelDefOrNodeAddress);
107 ar & BOOST_SERIALIZATION_NVP(myIsModelDefFlag);
108 ar & BOOST_SERIALIZATION_NVP(myColorR);
109 ar & BOOST_SERIALIZATION_NVP(myColorG);
110 ar & BOOST_SERIALIZATION_NVP(myColorB);
111 ar & BOOST_SERIALIZATION_NVP(myColorA);
112 ar & BOOST_SERIALIZATION_NVP(myIsVisible);
std::string myPropType
Definition: DtPropRecord.h:126
std::vector< DtPropRecord > DtPropRecords
Definition: DtPropRecord.h:137
float myColorR
Definition: DtPropRecord.h:129
double myOrientationY
Definition: DtPropRecord.h:123
double myOrientationW
Definition: DtPropRecord.h:125
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the & operator is defined similar to <<...
Definition: DtPropRecord.h:95
Contains DLL export macros.
double myPosY
Definition: DtPropRecord.h:120
bool myIsModelDefFlag
Definition: DtPropRecord.h:128
float myColorA
Definition: DtPropRecord.h:132
float myColorB
Definition: DtPropRecord.h:131
A DtPropRecord contains the information to recreate a prop.
Definition: DtPropRecord.h:22
std::string myName
Definition: DtPropRecord.h:117
double myOrientationZ
Definition: DtPropRecord.h:124
float myColorG
Definition: DtPropRecord.h:130
std::string myModelDefOrNodeAddress
Definition: DtPropRecord.h:127
double myOrientationX
Definition: DtPropRecord.h:122
bool myIsVisible
Definition: DtPropRecord.h:133
double myPosX
Definition: DtPropRecord.h:119
double myPosZ
Definition: DtPropRecord.h:121
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31