updated COLLADA-DOM to the latest bleeding-edge (1.4.1) SVN version of today

This commit is contained in:
ejcoumans
2006-07-26 18:58:09 +00:00
parent 750af5c197
commit 7038e5c736
353 changed files with 21354 additions and 6259 deletions

View File

@@ -58,7 +58,8 @@ public:
* Sets the semantic attribute.
* @param atSemantic The new value for the semantic attribute.
*/
void setSemantic( xsNCName atSemantic ) { attrSemantic = atSemantic; }
void setSemantic( xsNCName atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic;
_validAttributeArray[0] = true; }
/**
* Gets the target attribute.
@@ -69,7 +70,8 @@ public:
* Sets the target attribute.
* @param atTarget The new value for the target attribute.
*/
void setTarget( xsToken atTarget ) { attrTarget = atTarget; }
void setTarget( xsToken atTarget ) { *(daeStringRef*)&attrTarget = atTarget;
_validAttributeArray[1] = true; }
protected:
/**
@@ -110,6 +112,108 @@ public:
static daeMetaElement* _Meta;
};
class domBind_vertex_input;
typedef daeSmartRef<domBind_vertex_input> domBind_vertex_inputRef;
typedef daeTArray<domBind_vertex_inputRef> domBind_vertex_input_Array;
/**
* The bind_vertex_input element binds vertex inputs to effect parameters
* upon instantiation.
*/
class domBind_vertex_input : public daeElement
{
protected: // Attributes
/**
* The semantic attribute specifies which effect parameter to bind.
*/
xsNCName attrSemantic;
/**
* The input_semantic attribute specifies which input semantic to bind.
*/
xsNCName attrInput_semantic;
/**
* The input_set attribute specifies which input set to bind.
*/
domUint attrInput_set;
public: //Accessors and Mutators
/**
* Gets the semantic attribute.
* @return Returns a xsNCName of the semantic attribute.
*/
xsNCName getSemantic() const { return attrSemantic; }
/**
* Sets the semantic attribute.
* @param atSemantic The new value for the semantic attribute.
*/
void setSemantic( xsNCName atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic;
_validAttributeArray[0] = true; }
/**
* Gets the input_semantic attribute.
* @return Returns a xsNCName of the input_semantic attribute.
*/
xsNCName getInput_semantic() const { return attrInput_semantic; }
/**
* Sets the input_semantic attribute.
* @param atInput_semantic The new value for the input_semantic attribute.
*/
void setInput_semantic( xsNCName atInput_semantic ) { *(daeStringRef*)&attrInput_semantic = atInput_semantic;
_validAttributeArray[1] = true; }
/**
* Gets the input_set attribute.
* @return Returns a domUint of the input_set attribute.
*/
domUint getInput_set() const { return attrInput_set; }
/**
* Sets the input_set attribute.
* @param atInput_set The new value for the input_set attribute.
*/
void setInput_set( domUint atInput_set ) { attrInput_set = atInput_set;
_validAttributeArray[2] = true; }
protected:
/**
* Constructor
*/
domBind_vertex_input() : attrSemantic(), attrInput_semantic(), attrInput_set() {}
/**
* Destructor
*/
virtual ~domBind_vertex_input() {}
/**
* Copy Constructor
*/
domBind_vertex_input( const domBind_vertex_input &cpy ) : daeElement() { (void)cpy; }
/**
* Overloaded assignment operator
*/
virtual domBind_vertex_input &operator=( const domBind_vertex_input &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @param bytes The size allocated for this instance.
* @return a daeElementRef referencing an instance of this object.
*/
static daeElementRef create(daeInt bytes);
/**
* 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 daeMetaElement* registerElement();
public: // STATIC MEMBERS
/**
* The daeMetaElement that describes this element in the meta object reflection framework.
*/
static daeMetaElement* _Meta;
};
protected: // Attributes
/**
@@ -122,6 +226,16 @@ protected: // Attributes
* instantiate.
*/
xsAnyURI attrTarget;
/**
* The sid attribute is a text string value containing the sub-identifier
* of this element. This value must be unique within the scope of the parent
* element. Optional attribute.
*/
xsNCName attrSid;
/**
* The name attribute is the text string name of this element. Optional attribute.
*/
xsNCName attrName;
protected: // Elements
/**
@@ -129,6 +243,11 @@ protected: // Elements
* @see domBind
*/
domBind_Array elemBind_array;
/**
* The bind_vertex_input element binds vertex inputs to effect parameters
* upon instantiation. @see domBind_vertex_input
*/
domBind_vertex_input_Array elemBind_vertex_input_array;
/**
* The extra element may appear any number of times. @see domExtra
*/
@@ -144,7 +263,8 @@ public: //Accessors and Mutators
* Sets the symbol attribute.
* @param atSymbol The new value for the symbol attribute.
*/
void setSymbol( xsNCName atSymbol ) { attrSymbol = atSymbol; }
void setSymbol( xsNCName atSymbol ) { *(daeStringRef*)&attrSymbol = atSymbol;
_validAttributeArray[0] = true; }
/**
* Gets the target attribute.
@@ -160,7 +280,32 @@ public: //Accessors and Mutators
* Sets the target attribute.
* @param atTarget The new value for the target attribute.
*/
void setTarget( const xsAnyURI &atTarget ) { attrTarget.setURI( atTarget.getURI() ); }
void setTarget( const xsAnyURI &atTarget ) { attrTarget.setURI( atTarget.getURI() );
_validAttributeArray[1] = true; }
/**
* Gets the sid attribute.
* @return Returns a xsNCName of the sid attribute.
*/
xsNCName getSid() const { return attrSid; }
/**
* Sets the sid attribute.
* @param atSid The new value for the sid attribute.
*/
void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid;
_validAttributeArray[2] = true; }
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName;
_validAttributeArray[3] = true; }
/**
* Gets the bind element array.
@@ -172,6 +317,16 @@ public: //Accessors and Mutators
* @return Returns a constant reference to the array of bind elements.
*/
const domBind_Array &getBind_array() const { return elemBind_array; }
/**
* Gets the bind_vertex_input element array.
* @return Returns a reference to the array of bind_vertex_input elements.
*/
domBind_vertex_input_Array &getBind_vertex_input_array() { return elemBind_vertex_input_array; }
/**
* Gets the bind_vertex_input element array.
* @return Returns a constant reference to the array of bind_vertex_input elements.
*/
const domBind_vertex_input_Array &getBind_vertex_input_array() const { return elemBind_vertex_input_array; }
/**
* Gets the extra element array.
* @return Returns a reference to the array of extra elements.
@@ -186,7 +341,7 @@ protected:
/**
* Constructor
*/
domInstance_material() : attrSymbol(), attrTarget(), elemBind_array(), elemExtra_array() {}
domInstance_material() : attrSymbol(), attrTarget(), attrSid(), attrName(), elemBind_array(), elemBind_vertex_input_array(), elemExtra_array() {}
/**
* Destructor
*/