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 __domRotate_h__ 00010 #define __domRotate_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00022 class domRotate : public daeElement 00023 { 00024 public: 00025 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ROTATE; } 00026 static daeInt ID() { return 631; } 00027 virtual daeInt typeID() const { return ID(); } 00028 protected: // Attribute 00034 xsNCName attrSid; 00035 00036 protected: // Value 00040 domFloat4 _value; 00041 00042 public: //Accessors and Mutators 00047 xsNCName getSid() const { return attrSid; } 00052 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; } 00053 00058 domFloat4 &getValue() { return _value; } 00063 const domFloat4 &getValue() const { return _value; } 00068 void setValue( const domFloat4 &val ) { _value = val; } 00069 00070 protected: 00074 domRotate(DAE& dae) : daeElement(dae), attrSid(), _value() {} 00078 virtual ~domRotate() {} 00082 virtual domRotate &operator=( const domRotate &cpy ) { (void)cpy; return *this; } 00083 00084 public: // STATIC METHODS 00089 static DLLSPEC daeElementRef create(DAE& dae); 00095 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00096 }; 00097 00098 00099 #endif