00001 /* 00002 * Copyright 2006 Sony Computer Entertainment Inc. 00003 * 00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website 00005 * http://www.opensource.org/licenses/mit-license.php 00006 * 00007 */ 00008 00009 #ifndef __domTargetableFloat3_h__ 00010 #define __domTargetableFloat3_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00022 class domTargetableFloat3_complexType 00023 { 00024 protected: // Attribute 00030 xsNCName attrSid; 00031 00032 protected: // Value 00036 domFloat3 _value; 00037 00038 public: //Accessors and Mutators 00043 xsNCName getSid() const { return attrSid; } 00048 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid;} 00049 00054 domFloat3 &getValue() { return _value; } 00059 const domFloat3 &getValue() const { return _value; } 00064 void setValue( const domFloat3 &val ) { _value = val; } 00065 00066 protected: 00070 domTargetableFloat3_complexType(DAE& dae, daeElement* elt) : attrSid(), _value() {} 00074 virtual ~domTargetableFloat3_complexType() {} 00078 virtual domTargetableFloat3_complexType &operator=( const domTargetableFloat3_complexType &cpy ) { (void)cpy; return *this; } 00079 }; 00080 00084 class domTargetableFloat3 : public daeElement, public domTargetableFloat3_complexType 00085 { 00086 public: 00087 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TARGETABLEFLOAT3; } 00088 static daeInt ID() { return 5; } 00089 virtual daeInt typeID() const { return ID(); } 00090 00091 public: //Accessors and Mutators 00096 xsNCName getSid() const { return attrSid; } 00101 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; } 00102 00103 protected: 00107 domTargetableFloat3(DAE& dae) : daeElement(dae), domTargetableFloat3_complexType(dae, this) {} 00111 virtual ~domTargetableFloat3() {} 00115 virtual domTargetableFloat3 &operator=( const domTargetableFloat3 &cpy ) { (void)cpy; return *this; } 00116 00117 public: // STATIC METHODS 00122 static DLLSPEC daeElementRef create(DAE& dae); 00128 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00129 }; 00130 00131 00132 #endif