00001 #ifndef __domFloat_array_h__ 00002 #define __domFloat_array_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 class DAE; 00009 00014 class domFloat_array : public daeElement 00015 { 00016 public: 00017 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT_ARRAY; } 00018 static daeInt ID() { return 9; } 00019 virtual daeInt typeID() const { return ID(); } 00020 protected: // Attributes 00026 xsID attrId; 00030 xsToken attrName; 00035 domUint attrCount; 00041 domDigits attrDigits; 00047 domMagnitude attrMagnitude; 00048 00049 00050 public: //Accessors and Mutators 00055 xsID getId() const { return attrId; } 00060 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; 00061 if( _document != NULL ) _document->changeElementID( this, attrId ); 00062 } 00063 00068 xsToken getName() const { return attrName; } 00073 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00074 00079 domUint getCount() const { return attrCount; } 00084 void setCount( domUint atCount ) { attrCount = atCount; } 00085 00090 domDigits getDigits() const { return attrDigits; } 00095 void setDigits( domDigits atDigits ) { attrDigits = atDigits; } 00096 00101 domMagnitude getMagnitude() const { return attrMagnitude; } 00106 void setMagnitude( domMagnitude atMagnitude ) { attrMagnitude = atMagnitude; } 00107 00112 domList_of_floats& getValue() { return _value; } 00117 void setValue( const domList_of_floats& val ) { _value = val; } 00118 00119 protected: // Value 00123 domList_of_floats _value; 00124 protected: 00128 domFloat_array(DAE& dae) : daeElement(dae), attrId(), attrName(), attrCount(), attrDigits(), attrMagnitude(), _value() {} 00132 virtual ~domFloat_array() {} 00136 virtual domFloat_array &operator=( const domFloat_array &cpy ) { (void)cpy; return *this; } 00137 00138 public: // STATIC METHODS 00143 static DLLSPEC daeElementRef create(DAE& dae); 00149 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00150 }; 00151 00152 00153 #endif