00001 #ifndef __domKinematics_newparam_h__ 00002 #define __domKinematics_newparam_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 class DAE; 00009 00010 class domKinematics_newparam : public daeElement 00011 { 00012 public: 00013 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::KINEMATICS_NEWPARAM; } 00014 static daeInt ID() { return 416; } 00015 virtual daeInt typeID() const { return ID(); } 00016 public: 00017 class domFloat; 00018 00019 typedef daeSmartRef<domFloat> domFloatRef; 00020 typedef daeTArray<domFloatRef> domFloat_Array; 00021 00022 class domFloat : public daeElement 00023 { 00024 public: 00025 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; } 00026 static daeInt ID() { return 417; } 00027 virtual daeInt typeID() const { return ID(); } 00028 00029 00030 public: //Accessors and Mutators 00035 ::domFloat& getValue() { return _value; } 00040 void setValue( const ::domFloat& val ) { _value = val; } 00041 00042 protected: // Value 00046 ::domFloat _value; 00047 protected: 00051 domFloat(DAE& dae) : daeElement(dae), _value() {} 00055 virtual ~domFloat() {} 00059 virtual domFloat &operator=( const domFloat &cpy ) { (void)cpy; return *this; } 00060 00061 public: // STATIC METHODS 00066 static DLLSPEC daeElementRef create(DAE& dae); 00072 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00073 }; 00074 00075 class domInt; 00076 00077 typedef daeSmartRef<domInt> domIntRef; 00078 typedef daeTArray<domIntRef> domInt_Array; 00079 00080 class domInt : public daeElement 00081 { 00082 public: 00083 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT; } 00084 static daeInt ID() { return 418; } 00085 virtual daeInt typeID() const { return ID(); } 00086 00087 00088 public: //Accessors and Mutators 00093 ::domInt& getValue() { return _value; } 00098 void setValue( const ::domInt& val ) { _value = val; } 00099 00100 protected: // Value 00104 ::domInt _value; 00105 protected: 00109 domInt(DAE& dae) : daeElement(dae), _value() {} 00113 virtual ~domInt() {} 00117 virtual domInt &operator=( const domInt &cpy ) { (void)cpy; return *this; } 00118 00119 public: // STATIC METHODS 00124 static DLLSPEC daeElementRef create(DAE& dae); 00130 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00131 }; 00132 00133 class domSIDREF; 00134 00135 typedef daeSmartRef<domSIDREF> domSIDREFRef; 00136 typedef daeTArray<domSIDREFRef> domSIDREF_Array; 00137 00138 class domSIDREF : public daeElement 00139 { 00140 public: 00141 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SIDREF; } 00142 static daeInt ID() { return 419; } 00143 virtual daeInt typeID() const { return ID(); } 00144 00145 00146 public: //Accessors and Mutators 00151 domSidref getValue() const { return _value; } 00156 void setValue( domSidref val ) { *(daeStringRef*)&_value = val; } 00157 00158 protected: // Value 00162 domSidref _value; 00163 protected: 00167 domSIDREF(DAE& dae) : daeElement(dae), _value() {} 00171 virtual ~domSIDREF() {} 00175 virtual domSIDREF &operator=( const domSIDREF &cpy ) { (void)cpy; return *this; } 00176 00177 public: // STATIC METHODS 00182 static DLLSPEC daeElementRef create(DAE& dae); 00188 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00189 }; 00190 00191 class domBool; 00192 00193 typedef daeSmartRef<domBool> domBoolRef; 00194 typedef daeTArray<domBoolRef> domBool_Array; 00195 00196 class domBool : public daeElement 00197 { 00198 public: 00199 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL; } 00200 static daeInt ID() { return 420; } 00201 virtual daeInt typeID() const { return ID(); } 00202 00203 00204 public: //Accessors and Mutators 00209 xsBoolean& getValue() { return _value; } 00214 void setValue( const xsBoolean& val ) { _value = val; } 00215 00216 protected: // Value 00220 xsBoolean _value; 00221 protected: 00225 domBool(DAE& dae) : daeElement(dae), _value() {} 00229 virtual ~domBool() {} 00233 virtual domBool &operator=( const domBool &cpy ) { (void)cpy; return *this; } 00234 00235 public: // STATIC METHODS 00240 static DLLSPEC daeElementRef create(DAE& dae); 00246 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00247 }; 00248 00249 00250 protected: // Attribute 00251 domSid attrSid; 00252 00253 protected: // Elements 00254 domFloatRef elemFloat; 00255 domIntRef elemInt; 00256 domSIDREFRef elemSIDREF; 00257 domBoolRef elemBool; 00261 daeElementRefArray _contents; 00265 daeUIntArray _contentsOrder; 00266 00270 daeTArray< daeCharArray * > _CMData; 00271 00272 00273 public: //Accessors and Mutators 00278 domSid getSid() const { return attrSid; } 00283 void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid;} 00284 00289 const domFloatRef getFloat() const { return elemFloat; } 00294 const domIntRef getInt() const { return elemInt; } 00299 const domSIDREFRef getSIDREF() const { return elemSIDREF; } 00304 const domBoolRef getBool() const { return elemBool; } 00309 daeElementRefArray &getContents() { return _contents; } 00314 const daeElementRefArray &getContents() const { return _contents; } 00315 00316 protected: 00320 domKinematics_newparam(DAE& dae) : daeElement(dae), attrSid(), elemFloat(), elemInt(), elemSIDREF(), elemBool() {} 00324 virtual ~domKinematics_newparam() { daeElement::deleteCMDataArray(_CMData); } 00328 virtual domKinematics_newparam &operator=( const domKinematics_newparam &cpy ) { (void)cpy; return *this; } 00329 00330 public: // STATIC METHODS 00335 static DLLSPEC daeElementRef create(DAE& dae); 00341 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00342 }; 00343 00344 00345 #endif