00001 #ifndef __domAxis_h__ 00002 #define __domAxis_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 class DAE; 00009 00010 class domAxis : public daeElement 00011 { 00012 public: 00013 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AXIS; } 00014 static daeInt ID() { return 460; } 00015 virtual daeInt typeID() const { return ID(); } 00016 protected: // Attributes 00017 domSid attrSid; 00018 xsToken attrName; 00019 00020 00021 public: //Accessors and Mutators 00026 domSid getSid() const { return attrSid; } 00031 void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid;} 00032 00037 xsToken getName() const { return attrName; } 00042 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00043 00048 domFloat3& getValue() { return _value; } 00053 void setValue( const domFloat3& val ) { _value = val; } 00054 00055 protected: // Value 00059 domFloat3 _value; 00060 protected: 00064 domAxis(DAE& dae) : daeElement(dae), attrSid(), attrName(), _value() {} 00068 virtual ~domAxis() {} 00072 virtual domAxis &operator=( const domAxis &cpy ) { (void)cpy; return *this; } 00073 00074 public: // STATIC METHODS 00079 static DLLSPEC daeElementRef create(DAE& dae); 00085 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00086 }; 00087 00088 00089 #endif