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

@@ -17,13 +17,15 @@
#include <dom/domElements.h>
#include <dom/domFx_profile_abstract.h>
#include <dom/domAsset.h>
#include <dom/domImage.h>
#include <dom/domExtra.h>
#include <dom/domFx_code_profile.h>
#include <dom/domFx_include_common.h>
#include <dom/domGlsl_newparam.h>
#include <dom/domFx_annotate_common.h>
#include <dom/domGlsl_setparam.h>
#include <dom/domGl_pipeline_settings.h>
#include <dom/domFx_annotate_common.h>
#include <dom/domFx_colortarget_common.h>
#include <dom/domFx_depthtarget_common.h>
#include <dom/domFx_stenciltarget_common.h>
@@ -160,14 +162,14 @@ public:
public: //Accessors and Mutators
/**
* Gets the value of this element.
* @return a xsNMTOKEN of the value.
* @return Returns a xsNMTOKEN of the value.
*/
xsNMTOKEN getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNMTOKEN val ) { _value = val; }
void setValue( xsNMTOKEN val ) { *(daeStringRef*)&_value = val; }
protected:
/**
@@ -228,14 +230,14 @@ public:
public: //Accessors and Mutators
/**
* Gets the value of this element.
* @return a xsString of the value.
* @return Returns a xsString of the value.
*/
xsString getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsString val ) { _value = val; }
void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
protected:
/**
@@ -305,18 +307,19 @@ public:
* Sets the source attribute.
* @param atSource The new value for the source attribute.
*/
void setSource( xsNCName atSource ) { attrSource = atSource; }
void setSource( xsNCName atSource ) { *(daeStringRef*)&attrSource = atSource;
_validAttributeArray[0] = true; }
/**
* Gets the value of this element.
* @return a xsNCName of the value.
* @return Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { _value = val; }
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
@@ -389,7 +392,8 @@ public:
* Sets the ref attribute.
* @param atRef The new value for the ref attribute.
*/
void setRef( xsString atRef ) { attrRef = atRef; }
void setRef( xsString atRef ) { *(daeStringRef*)&attrRef = atRef;
_validAttributeArray[0] = true; }
protected:
/**
@@ -445,6 +449,10 @@ public:
* 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;
public: //Accessors and Mutators
@@ -457,7 +465,8 @@ public:
* 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 glsl_param_type element.
@@ -558,7 +567,8 @@ public:
* Sets the stage attribute.
* @param atStage The new value for the stage attribute.
*/
void setStage( domGlsl_pipeline_stage atStage ) { attrStage = atStage; }
void setStage( domGlsl_pipeline_stage atStage ) { attrStage = atStage;
_validAttributeArray[0] = true; }
/**
* Gets the annotate element array.
@@ -658,10 +668,15 @@ public:
* a pass. @see domShader
*/
domShader_Array elemShader_array;
domExtra_Array elemExtra_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;
public: //Accessors and Mutators
@@ -674,7 +689,8 @@ public:
* Sets the sid attribute.
* @param atSid The new value for the sid attribute.
*/
void setSid( xsNCName atSid ) { attrSid = atSid; }
void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid;
_validAttributeArray[0] = true; }
/**
* Gets the annotate element array.
@@ -771,6 +787,16 @@ public:
* @return Returns a constant reference to the array of shader elements.
*/
const domShader_Array &getShader_array() const { return elemShader_array; }
/**
* Gets the extra element array.
* @return Returns a reference to the array of extra elements.
*/
domExtra_Array &getExtra_array() { return elemExtra_array; }
/**
* Gets the extra element array.
* @return Returns a constant reference to the array of extra elements.
*/
const domExtra_Array &getExtra_array() const { return elemExtra_array; }
/**
* Gets the _contents array.
* @return Returns a reference to the _contents element array.
@@ -786,7 +812,7 @@ public:
/**
* Constructor
*/
domPass() : attrSid(), elemAnnotate_array(), elemColor_target_array(), elemDepth_target_array(), elemStencil_target_array(), elemColor_clear_array(), elemDepth_clear_array(), elemStencil_clear_array(), elemDraw(), elemGl_pipeline_settings_array(), elemShader_array() {}
domPass() : attrSid(), elemAnnotate_array(), elemColor_target_array(), elemDepth_target_array(), elemStencil_target_array(), elemColor_clear_array(), elemDepth_clear_array(), elemStencil_clear_array(), elemDraw(), elemGl_pipeline_settings_array(), elemShader_array(), elemExtra_array() {}
/**
* Destructor
*/
@@ -837,6 +863,7 @@ public:
xsNCName attrSid;
protected: // Elements
domFx_annotate_common_Array elemAnnotate_array;
domFx_code_profile_Array elemCode_array;
domFx_include_common_Array elemInclude_array;
domImage_Array elemImage_array;
@@ -847,10 +874,15 @@ public:
* one rendering pipeline. @see domPass
*/
domPass_Array elemPass_array;
domExtra_Array elemExtra_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;
public: //Accessors and Mutators
@@ -863,7 +895,8 @@ public:
* Sets the id attribute.
* @param atId The new value for the id attribute.
*/
void setId( xsID atId ) { attrId = atId; }
void setId( xsID atId ) { *(daeStringRef*)&attrId = atId;
_validAttributeArray[0] = true; }
/**
* Gets the sid attribute.
@@ -874,8 +907,19 @@ public:
* Sets the sid attribute.
* @param atSid The new value for the sid attribute.
*/
void setSid( xsNCName atSid ) { attrSid = atSid; }
void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid;
_validAttributeArray[1] = true; }
/**
* Gets the annotate element array.
* @return Returns a reference to the array of annotate elements.
*/
domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; }
/**
* Gets the annotate element array.
* @return Returns a constant reference to the array of annotate elements.
*/
const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; }
/**
* Gets the code element array.
* @return Returns a reference to the array of code elements.
@@ -936,6 +980,16 @@ public:
* @return Returns a constant reference to the array of pass elements.
*/
const domPass_Array &getPass_array() const { return elemPass_array; }
/**
* Gets the extra element array.
* @return Returns a reference to the array of extra elements.
*/
domExtra_Array &getExtra_array() { return elemExtra_array; }
/**
* Gets the extra element array.
* @return Returns a constant reference to the array of extra elements.
*/
const domExtra_Array &getExtra_array() const { return elemExtra_array; }
/**
* Gets the _contents array.
* @return Returns a reference to the _contents element array.
@@ -951,7 +1005,7 @@ public:
/**
* Constructor
*/
domTechnique() : attrId(), attrSid(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemSetparam_array(), elemPass_array() {}
domTechnique() : attrId(), attrSid(), elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemSetparam_array(), elemPass_array(), elemExtra_array() {}
/**
* Destructor
*/
@@ -987,8 +1041,16 @@ public:
};
protected: // Attribute
/**
* The id attribute is a text string containing the unique identifier of
* this element. This value must be unique within the instance document.
* Optional attribute.
*/
xsID attrId;
protected: // Elements
domAssetRef elemAsset;
domFx_code_profile_Array elemCode_array;
domFx_include_common_Array elemInclude_array;
domImage_Array elemImage_array;
@@ -998,13 +1060,35 @@ protected: // Elements
* passes necessary for rendering this effect using one method. @see domTechnique
*/
domTechnique_Array elemTechnique_array;
domExtra_Array elemExtra_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;
public: //Accessors and Mutators
/**
* Gets the id attribute.
* @return Returns a xsID of the id attribute.
*/
xsID getId() const { return attrId; }
/**
* Sets the id attribute.
* @param atId The new value for the id attribute.
*/
void setId( xsID atId ) { *(daeStringRef*)&attrId = atId;
_validAttributeArray[0] = true; }
/**
* Gets the asset element.
* @return a daeSmartRef to the asset element.
*/
const domAssetRef getAsset() const { return elemAsset; }
/**
* Gets the code element array.
* @return Returns a reference to the array of code elements.
@@ -1055,6 +1139,16 @@ public: //Accessors and Mutators
* @return Returns a constant reference to the array of technique elements.
*/
const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; }
/**
* Gets the extra element array.
* @return Returns a reference to the array of extra elements.
*/
domExtra_Array &getExtra_array() { return elemExtra_array; }
/**
* Gets the extra element array.
* @return Returns a constant reference to the array of extra elements.
*/
const domExtra_Array &getExtra_array() const { return elemExtra_array; }
/**
* Gets the _contents array.
* @return Returns a reference to the _contents element array.
@@ -1070,7 +1164,7 @@ protected:
/**
* Constructor
*/
domProfile_GLSL() : elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemTechnique_array() {}
domProfile_GLSL() : attrId(), elemAsset(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemTechnique_array(), elemExtra_array() {}
/**
* Destructor
*/