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 __domTranslate_h__ 00010 #define __domTranslate_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domTargetableFloat3.h> 00017 class DAE; 00018 00023 class domTranslate : public daeElement, public domTargetableFloat3_complexType 00024 { 00025 public: 00026 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TRANSLATE; } 00027 static daeInt ID() { return 634; } 00028 virtual daeInt typeID() const { return ID(); } 00029 00034 xsNCName getSid() const { return attrSid; } 00039 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; } 00040 00041 protected: 00045 domTranslate(DAE& dae) : daeElement(dae), domTargetableFloat3_complexType(dae, this) {} 00049 virtual ~domTranslate() {} 00053 virtual domTranslate &operator=( const domTranslate &cpy ) { (void)cpy; return *this; } 00054 00055 public: // STATIC METHODS 00060 static DLLSPEC daeElementRef create(DAE& dae); 00066 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00067 }; 00068 00069 00070 #endif