#ifndef __dom150Kinematics_frame_h__ #define __dom150Kinematics_frame_h__ #include #include <1.5/dom/domTypes.h> #include <1.5/dom/domElements.h> #include <1.5/dom/domTranslate.h> #include <1.5/dom/domRotate.h> class DAE; namespace ColladaDOM150 { class domKinematics_frame : public daeElement { public: virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::KINEMATICS_FRAME; } static daeInt ID() { return 421; } virtual daeInt typeID() const { return ID(); } protected: // Attribute xsToken attrLink; protected: // Elements domTranslate_Array elemTranslate_array; domRotate_Array elemRotate_array; /** * Used to preserve order in elements that do not specify strict sequencing of sub-elements. */ daeElementRefArray _contents; /** * Used to preserve order in elements that have a complex content model. */ daeUIntArray _contentsOrder; /** * Used to store information needed for some content model objects. */ daeTArray< daeCharArray * > _CMData; public: //Accessors and Mutators /** * Gets the link attribute. * @return Returns a xsToken of the link attribute. */ xsToken getLink() const { return attrLink; } /** * Sets the link attribute. * @param atLink The new value for the link attribute. */ void setLink( xsToken atLink ) { *(daeStringRef*)&attrLink = atLink;} /** * Gets the translate element array. * @return Returns a reference to the array of translate elements. */ domTranslate_Array &getTranslate_array() { return elemTranslate_array; } /** * Gets the translate element array. * @return Returns a constant reference to the array of translate elements. */ const domTranslate_Array &getTranslate_array() const { return elemTranslate_array; } /** * Gets the rotate element array. * @return Returns a reference to the array of rotate elements. */ domRotate_Array &getRotate_array() { return elemRotate_array; } /** * Gets the rotate element array. * @return Returns a constant reference to the array of rotate elements. */ const domRotate_Array &getRotate_array() const { return elemRotate_array; } /** * Gets the _contents array. * @return Returns a reference to the _contents element array. */ daeElementRefArray &getContents() { return _contents; } /** * Gets the _contents array. * @return Returns a constant reference to the _contents element array. */ const daeElementRefArray &getContents() const { return _contents; } protected: /** * Constructor */ domKinematics_frame(DAE& dae) : daeElement(dae), attrLink(), elemTranslate_array(), elemRotate_array() {} /** * Destructor */ virtual ~domKinematics_frame() { daeElement::deleteCMDataArray(_CMData); } /** * Overloaded assignment operator */ virtual domKinematics_frame &operator=( const domKinematics_frame &cpy ) { (void)cpy; return *this; } public: // STATIC METHODS /** * Creates an instance of this class and returns a daeElementRef referencing it. * @return a daeElementRef referencing an instance of this object. */ static DLLSPEC daeElementRef create(DAE& dae); /** * Creates a daeMetaElement object that describes this element in the meta object reflection framework. * If a daeMetaElement already exists it will return that instead of creating a new one. * @return A daeMetaElement describing this COLLADA element. */ static DLLSPEC daeMetaElement* registerElement(DAE& dae); }; } // ColladaDOM150 #endif