diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domAccessor.h b/Extras/COLLADA_DOM/include/1.4/dom/domAccessor.h new file mode 100644 index 000000000..19a6545d2 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domAccessor.h @@ -0,0 +1,158 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domAccessor_h__ +#define __domAccessor_h__ + +#include +#include + +#include + +/** + * The accessor element declares an access pattern to one of the array elements: + * float_array, int_array, Name_array, bool_array, and IDREF_array. The accessor + * element describes access to arrays that are organized in either an interleaved + * or non-interleaved manner, depending on the offset and stride attributes. + */ +class domAccessor : public daeElement +{ +protected: // Attributes +/** + * The count attribute indicates the number of times the array is accessed. + * Required attribute. + */ + domUint attrCount; +/** + * The offset attribute indicates the index of the first value to be read + * from the array. The default value is 0. Optional attribute. + */ + domUint attrOffset; +/** + * The source attribute indicates the location of the array to access using + * a URL expression. Required attribute. + */ + xsAnyURI attrSource; +/** + * The stride attribute indicates number of values to be considered a unit + * during each access to the array. The default value is 1, indicating that + * a single value is accessed. Optional attribute. + */ + domUint attrStride; + +protected: // Element +/** + * The accessor element may have any number of param elements. @see domParam + */ + domParam_Array elemParam_array; + +public: //Accessors and Mutators + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the offset attribute. + * @return Returns a domUint of the offset attribute. + */ + domUint getOffset() const { return attrOffset; } + /** + * Sets the offset attribute. + * @param atOffset The new value for the offset attribute. + */ + void setOffset( domUint atOffset ) { attrOffset = atOffset; } + + /** + * Gets the source attribute. + * @return Returns a xsAnyURI reference of the source attribute. + */ + xsAnyURI &getSource() { return attrSource; } + /** + * Gets the source attribute. + * @return Returns a constant xsAnyURI reference of the source attribute. + */ + const xsAnyURI &getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( const xsAnyURI &atSource ) { attrSource.setURI( atSource.getURI() ); } + + /** + * Gets the stride attribute. + * @return Returns a domUint of the stride attribute. + */ + domUint getStride() const { return attrStride; } + /** + * Sets the stride attribute. + * @param atStride The new value for the stride attribute. + */ + void setStride( domUint atStride ) { attrStride = atStride; } + + /** + * Gets the param element array. + * @return Returns a reference to the array of param elements. + */ + domParam_Array &getParam_array() { return elemParam_array; } + /** + * Gets the param element array. + * @return Returns a constant reference to the array of param elements. + */ + const domParam_Array &getParam_array() const { return elemParam_array; } +protected: + /** + * Constructor + */ + domAccessor() : attrCount(), attrOffset(), attrSource(), attrStride(), elemParam_array() {} + /** + * Destructor + */ + virtual ~domAccessor() {} + /** + * Copy Constructor + */ + domAccessor( const domAccessor &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAccessor &operator=( const domAccessor &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domAnimation.h b/Extras/COLLADA_DOM/include/1.4/dom/domAnimation.h new file mode 100644 index 000000000..8265a634d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domAnimation.h @@ -0,0 +1,210 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domAnimation_h__ +#define __domAnimation_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include + +/** + * The animation element categorizes the declaration of animation information. + * The animation hierarchy contains elements that describe the animation’s + * key-frame data and sampler functions, ordered in such a way to group together + * animations that should be executed together. + */ +class domAnimation : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The animation element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The animation element may contain any number of source elements. @see + * domSource + */ + domSource_Array elemSource_array; +/** + * The animation element may contain any number of sampler elements. @see + * domSampler + */ + domSampler_Array elemSampler_array; +/** + * The animation element may contain any number of channel elements. @see + * domChannel + */ + domChannel_Array elemChannel_array; +/** + * The animation may be hierarchical and may contain any number of other + * animation elements. @see domAnimation + */ + domAnimation_Array elemAnimation_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the source element array. + * @return Returns a reference to the array of source elements. + */ + domSource_Array &getSource_array() { return elemSource_array; } + /** + * Gets the source element array. + * @return Returns a constant reference to the array of source elements. + */ + const domSource_Array &getSource_array() const { return elemSource_array; } + /** + * Gets the sampler element array. + * @return Returns a reference to the array of sampler elements. + */ + domSampler_Array &getSampler_array() { return elemSampler_array; } + /** + * Gets the sampler element array. + * @return Returns a constant reference to the array of sampler elements. + */ + const domSampler_Array &getSampler_array() const { return elemSampler_array; } + /** + * Gets the channel element array. + * @return Returns a reference to the array of channel elements. + */ + domChannel_Array &getChannel_array() { return elemChannel_array; } + /** + * Gets the channel element array. + * @return Returns a constant reference to the array of channel elements. + */ + const domChannel_Array &getChannel_array() const { return elemChannel_array; } + /** + * Gets the animation element array. + * @return Returns a reference to the array of animation elements. + */ + domAnimation_Array &getAnimation_array() { return elemAnimation_array; } + /** + * Gets the animation element array. + * @return Returns a constant reference to the array of animation elements. + */ + const domAnimation_Array &getAnimation_array() const { return elemAnimation_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. + */ + 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 + */ + domAnimation() : attrId(), attrName(), elemAsset(), elemSource_array(), elemSampler_array(), elemChannel_array(), elemAnimation_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domAnimation() {} + /** + * Copy Constructor + */ + domAnimation( const domAnimation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAnimation &operator=( const domAnimation &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domAnimation_clip.h b/Extras/COLLADA_DOM/include/1.4/dom/domAnimation_clip.h new file mode 100644 index 000000000..80a443fdc --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domAnimation_clip.h @@ -0,0 +1,181 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domAnimation_clip_h__ +#define __domAnimation_clip_h__ + +#include +#include + +#include +#include +#include + +/** + * The animation_clip element defines a section of the animation curves to + * be used together as an animation clip. + */ +class domAnimation_clip : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The start attribute is the time in seconds of the beginning of the clip. + * This time is the same as that used in the key-frame data and is used to + * determine which set of key-frames will be included in the clip. The start + * time does not specify when the clip will be played. If the time falls + * between two keyframes of a referenced animation, an interpolated value + * should be used. The default value is 0.0. Optional attribute. + */ + xsDouble attrStart; +/** + * The end attribute is the time in seconds of the end of the clip. This + * is used in the same way as the start time. If end is not specified, the + * value is taken to be the end time of the longest animation. Optional + * attribute. + */ + xsDouble attrEnd; + +protected: // Elements +/** + * The animation_clip element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The animation_clip must instance at least one animation element. @see domInstance_animation + */ + domInstanceWithExtra_Array elemInstance_animation_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the start attribute. + * @return Returns a xsDouble of the start attribute. + */ + xsDouble getStart() const { return attrStart; } + /** + * Sets the start attribute. + * @param atStart The new value for the start attribute. + */ + void setStart( xsDouble atStart ) { attrStart = atStart; } + + /** + * Gets the end attribute. + * @return Returns a xsDouble of the end attribute. + */ + xsDouble getEnd() const { return attrEnd; } + /** + * Sets the end attribute. + * @param atEnd The new value for the end attribute. + */ + void setEnd( xsDouble atEnd ) { attrEnd = atEnd; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the instance_animation element array. + * @return Returns a reference to the array of instance_animation elements. + */ + domInstanceWithExtra_Array &getInstance_animation_array() { return elemInstance_animation_array; } + /** + * Gets the instance_animation element array. + * @return Returns a constant reference to the array of instance_animation elements. + */ + const domInstanceWithExtra_Array &getInstance_animation_array() const { return elemInstance_animation_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; } +protected: + /** + * Constructor + */ + domAnimation_clip() : attrId(), attrName(), attrStart(), attrEnd(), elemAsset(), elemInstance_animation_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domAnimation_clip() {} + /** + * Copy Constructor + */ + domAnimation_clip( const domAnimation_clip &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAnimation_clip &operator=( const domAnimation_clip &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domAsset.h b/Extras/COLLADA_DOM/include/1.4/dom/domAsset.h new file mode 100644 index 000000000..aa37f9003 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domAsset.h @@ -0,0 +1,1203 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domAsset_h__ +#define __domAsset_h__ + +#include +#include + + +/** + * The asset element defines asset management information regarding its parent + * element. + */ +class domAsset : public daeElement +{ +public: + class domContributor; + + typedef daeSmartRef domContributorRef; + typedef daeTArray domContributor_Array; + +/** + * The contributor element defines authoring information for asset management + */ + class domContributor : public daeElement + { + public: + class domAuthor; + + typedef daeSmartRef domAuthorRef; + typedef daeTArray domAuthor_Array; + +/** + * The author element contains a string with the author's name. There may + * be only one author element. + */ + class domAuthor : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domAuthor() : _value() {} + /** + * Destructor + */ + virtual ~domAuthor() {} + /** + * Copy Constructor + */ + domAuthor( const domAuthor &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAuthor &operator=( const domAuthor &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; + }; + + class domAuthoring_tool; + + typedef daeSmartRef domAuthoring_toolRef; + typedef daeTArray domAuthoring_tool_Array; + +/** + * The authoring_tool element contains a string with the authoring tool's + * name. There may be only one authoring_tool element. + */ + class domAuthoring_tool : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domAuthoring_tool() : _value() {} + /** + * Destructor + */ + virtual ~domAuthoring_tool() {} + /** + * Copy Constructor + */ + domAuthoring_tool( const domAuthoring_tool &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAuthoring_tool &operator=( const domAuthoring_tool &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; + }; + + class domComments; + + typedef daeSmartRef domCommentsRef; + typedef daeTArray domComments_Array; + +/** + * The comments element contains a string with comments from this contributor. + * There may be only one comments element. + */ + class domComments : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domComments() : _value() {} + /** + * Destructor + */ + virtual ~domComments() {} + /** + * Copy Constructor + */ + domComments( const domComments &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domComments &operator=( const domComments &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; + }; + + class domCopyright; + + typedef daeSmartRef domCopyrightRef; + typedef daeTArray domCopyright_Array; + +/** + * The copyright element contains a string with copyright information. There + * may be only one copyright element. + */ + class domCopyright : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domCopyright() : _value() {} + /** + * Destructor + */ + virtual ~domCopyright() {} + /** + * Copy Constructor + */ + domCopyright( const domCopyright &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCopyright &operator=( const domCopyright &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; + }; + + class domSource_data; + + typedef daeSmartRef domSource_dataRef; + typedef daeTArray domSource_data_Array; + +/** + * The source_data element contains a URI reference to the source data used + * for this asset. There may be only one source_data element. + */ + class domSource_data : public daeElement + { + + protected: // Value + /** + * The xsAnyURI value of the text data of this element. + */ + xsAnyURI _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return Returns a xsAnyURI of the value. + */ + xsAnyURI &getValue() { return _value; } + /** + * Gets the value of this element. + * @return Returns a constant xsAnyURI of the value. + */ + const xsAnyURI &getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( const xsAnyURI &val ) { _value.setURI( val.getURI() ); } + + protected: + /** + * Constructor + */ + domSource_data() : _value() {} + /** + * Destructor + */ + virtual ~domSource_data() {} + /** + * Copy Constructor + */ + domSource_data( const domSource_data &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSource_data &operator=( const domSource_data &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: // Elements +/** + * The author element contains a string with the author's name. There may + * be only one author element. @see domAuthor + */ + domAuthorRef elemAuthor; +/** + * The authoring_tool element contains a string with the authoring tool's + * name. There may be only one authoring_tool element. @see domAuthoring_tool + */ + domAuthoring_toolRef elemAuthoring_tool; +/** + * The comments element contains a string with comments from this contributor. + * There may be only one comments element. @see domComments + */ + domCommentsRef elemComments; +/** + * The copyright element contains a string with copyright information. There + * may be only one copyright element. @see domCopyright + */ + domCopyrightRef elemCopyright; +/** + * The source_data element contains a URI reference to the source data used + * for this asset. There may be only one source_data element. @see domSource_data + */ + domSource_dataRef elemSource_data; + + public: //Accessors and Mutators + /** + * Gets the author element. + * @return a daeSmartRef to the author element. + */ + const domAuthorRef getAuthor() const { return elemAuthor; } + /** + * Gets the authoring_tool element. + * @return a daeSmartRef to the authoring_tool element. + */ + const domAuthoring_toolRef getAuthoring_tool() const { return elemAuthoring_tool; } + /** + * Gets the comments element. + * @return a daeSmartRef to the comments element. + */ + const domCommentsRef getComments() const { return elemComments; } + /** + * Gets the copyright element. + * @return a daeSmartRef to the copyright element. + */ + const domCopyrightRef getCopyright() const { return elemCopyright; } + /** + * Gets the source_data element. + * @return a daeSmartRef to the source_data element. + */ + const domSource_dataRef getSource_data() const { return elemSource_data; } + protected: + /** + * Constructor + */ + domContributor() : elemAuthor(), elemAuthoring_tool(), elemComments(), elemCopyright(), elemSource_data() {} + /** + * Destructor + */ + virtual ~domContributor() {} + /** + * Copy Constructor + */ + domContributor( const domContributor &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domContributor &operator=( const domContributor &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; + }; + + class domCreated; + + typedef daeSmartRef domCreatedRef; + typedef daeTArray domCreated_Array; + +/** + * The created element contains the date and time that the parent element + * was created and is represented in an ISO 8601 format. The created element + * may appear zero or one time. + */ + class domCreated : public daeElement + { + + protected: // Value + /** + * The xsDateTime value of the text data of this element. + */ + xsDateTime _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsDateTime of the value. + */ + xsDateTime getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsDateTime val ) { _value = val; } + + protected: + /** + * Constructor + */ + domCreated() : _value() {} + /** + * Destructor + */ + virtual ~domCreated() {} + /** + * Copy Constructor + */ + domCreated( const domCreated &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCreated &operator=( const domCreated &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; + }; + + class domKeywords; + + typedef daeSmartRef domKeywordsRef; + typedef daeTArray domKeywords_Array; + +/** + * The keywords element contains a list of words used as search criteria for + * the parent element. The keywords element may appear zero or more times. + */ + class domKeywords : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domKeywords() : _value() {} + /** + * Destructor + */ + virtual ~domKeywords() {} + /** + * Copy Constructor + */ + domKeywords( const domKeywords &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domKeywords &operator=( const domKeywords &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; + }; + + class domModified; + + typedef daeSmartRef domModifiedRef; + typedef daeTArray domModified_Array; + +/** + * The modified element contains the date and time that the parent element + * was last modified and represented in an ISO 8601 format. The modified + * element may appear zero or one time. + */ + class domModified : public daeElement + { + + protected: // Value + /** + * The xsDateTime value of the text data of this element. + */ + xsDateTime _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsDateTime of the value. + */ + xsDateTime getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsDateTime val ) { _value = val; } + + protected: + /** + * Constructor + */ + domModified() : _value() {} + /** + * Destructor + */ + virtual ~domModified() {} + /** + * Copy Constructor + */ + domModified( const domModified &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domModified &operator=( const domModified &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; + }; + + class domRevision; + + typedef daeSmartRef domRevisionRef; + typedef daeTArray domRevision_Array; + +/** + * The revision element contains the revision information for the parent element. + * The revision element may appear zero or one time. + */ + class domRevision : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domRevision() : _value() {} + /** + * Destructor + */ + virtual ~domRevision() {} + /** + * Copy Constructor + */ + domRevision( const domRevision &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRevision &operator=( const domRevision &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; + }; + + class domSubject; + + typedef daeSmartRef domSubjectRef; + typedef daeTArray domSubject_Array; + +/** + * The subject element contains a description of the topical subject of the + * parent element. The subject element may appear zero or one time. + */ + class domSubject : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSubject() : _value() {} + /** + * Destructor + */ + virtual ~domSubject() {} + /** + * Copy Constructor + */ + domSubject( const domSubject &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSubject &operator=( const domSubject &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; + }; + + class domTitle; + + typedef daeSmartRef domTitleRef; + typedef daeTArray domTitle_Array; + +/** + * The title element contains the title information for the parent element. + * The title element may appear zero or one time. + */ + class domTitle : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domTitle() : _value() {} + /** + * Destructor + */ + virtual ~domTitle() {} + /** + * Copy Constructor + */ + domTitle( const domTitle &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTitle &operator=( const domTitle &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; + }; + + class domUnit; + + typedef daeSmartRef domUnitRef; + typedef daeTArray domUnit_Array; + +/** + * The unit element contains descriptive information about unit of measure. + * It has attributes for the name of the unit and the measurement with respect + * to the meter. The unit element may appear zero or one time. + */ + class domUnit : public daeElement + { + protected: // Attributes +/** + * The meter attribute specifies the measurement with respect to the meter. + * The default value for the meter attribute is “1.0”. + */ + domFloat attrMeter; +/** + * The name attribute specifies the name of the unit. The default value for + * the name attribute is “meter”. + */ + xsNMTOKEN attrName; + + + public: //Accessors and Mutators + /** + * Gets the meter attribute. + * @return Returns a domFloat of the meter attribute. + */ + domFloat getMeter() const { return attrMeter; } + /** + * Sets the meter attribute. + * @param atMeter The new value for the meter attribute. + */ + void setMeter( domFloat atMeter ) { attrMeter = atMeter; } + + /** + * Gets the name attribute. + * @return Returns a xsNMTOKEN of the name attribute. + */ + xsNMTOKEN getName() const { return attrName; } + /** + * Sets the name attribute. + * @param atName The new value for the name attribute. + */ + void setName( xsNMTOKEN atName ) { attrName = atName; } + + protected: + /** + * Constructor + */ + domUnit() : attrMeter(), attrName() {} + /** + * Destructor + */ + virtual ~domUnit() {} + /** + * Copy Constructor + */ + domUnit( const domUnit &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domUnit &operator=( const domUnit &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; + }; + + class domUp_axis; + + typedef daeSmartRef domUp_axisRef; + typedef daeTArray domUp_axis_Array; + +/** + * The up_axis element contains descriptive information about coordinate system + * of the geometric data. All coordinates are right-handed by definition. + * This element specifies which axis is considered up. The default is the + * Y-axis. The up_axis element may appear zero or one time. + */ + class domUp_axis : public daeElement + { + + protected: // Value + /** + * The domUpAxisType value of the text data of this element. + */ + domUpAxisType _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domUpAxisType of the value. + */ + domUpAxisType getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domUpAxisType val ) { _value = val; } + + protected: + /** + * Constructor + */ + domUp_axis() : _value() {} + /** + * Destructor + */ + virtual ~domUp_axis() {} + /** + * Copy Constructor + */ + domUp_axis( const domUp_axis &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domUp_axis &operator=( const domUp_axis &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: // Elements +/** + * The contributor element defines authoring information for asset management + * @see domContributor + */ + domContributor_Array elemContributor_array; +/** + * The created element contains the date and time that the parent element + * was created and is represented in an ISO 8601 format. The created element + * may appear zero or one time. @see domCreated + */ + domCreatedRef elemCreated; +/** + * The keywords element contains a list of words used as search criteria for + * the parent element. The keywords element may appear zero or more times. + * @see domKeywords + */ + domKeywordsRef elemKeywords; +/** + * The modified element contains the date and time that the parent element + * was last modified and represented in an ISO 8601 format. The modified + * element may appear zero or one time. @see domModified + */ + domModifiedRef elemModified; +/** + * The revision element contains the revision information for the parent element. + * The revision element may appear zero or one time. @see domRevision + */ + domRevisionRef elemRevision; +/** + * The subject element contains a description of the topical subject of the + * parent element. The subject element may appear zero or one time. @see + * domSubject + */ + domSubjectRef elemSubject; +/** + * The title element contains the title information for the parent element. + * The title element may appear zero or one time. @see domTitle + */ + domTitleRef elemTitle; +/** + * The unit element contains descriptive information about unit of measure. + * It has attributes for the name of the unit and the measurement with respect + * to the meter. The unit element may appear zero or one time. @see domUnit + */ + domUnitRef elemUnit; +/** + * The up_axis element contains descriptive information about coordinate system + * of the geometric data. All coordinates are right-handed by definition. + * This element specifies which axis is considered up. The default is the + * Y-axis. The up_axis element may appear zero or one time. @see domUp_axis + */ + domUp_axisRef elemUp_axis; + +public: //Accessors and Mutators + /** + * Gets the contributor element array. + * @return Returns a reference to the array of contributor elements. + */ + domContributor_Array &getContributor_array() { return elemContributor_array; } + /** + * Gets the contributor element array. + * @return Returns a constant reference to the array of contributor elements. + */ + const domContributor_Array &getContributor_array() const { return elemContributor_array; } + /** + * Gets the created element. + * @return a daeSmartRef to the created element. + */ + const domCreatedRef getCreated() const { return elemCreated; } + /** + * Gets the keywords element. + * @return a daeSmartRef to the keywords element. + */ + const domKeywordsRef getKeywords() const { return elemKeywords; } + /** + * Gets the modified element. + * @return a daeSmartRef to the modified element. + */ + const domModifiedRef getModified() const { return elemModified; } + /** + * Gets the revision element. + * @return a daeSmartRef to the revision element. + */ + const domRevisionRef getRevision() const { return elemRevision; } + /** + * Gets the subject element. + * @return a daeSmartRef to the subject element. + */ + const domSubjectRef getSubject() const { return elemSubject; } + /** + * Gets the title element. + * @return a daeSmartRef to the title element. + */ + const domTitleRef getTitle() const { return elemTitle; } + /** + * Gets the unit element. + * @return a daeSmartRef to the unit element. + */ + const domUnitRef getUnit() const { return elemUnit; } + /** + * Gets the up_axis element. + * @return a daeSmartRef to the up_axis element. + */ + const domUp_axisRef getUp_axis() const { return elemUp_axis; } +protected: + /** + * Constructor + */ + domAsset() : elemContributor_array(), elemCreated(), elemKeywords(), elemModified(), elemRevision(), elemSubject(), elemTitle(), elemUnit(), elemUp_axis() {} + /** + * Destructor + */ + virtual ~domAsset() {} + /** + * Copy Constructor + */ + domAsset( const domAsset &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAsset &operator=( const domAsset &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domBind_material.h b/Extras/COLLADA_DOM/include/1.4/dom/domBind_material.h new file mode 100644 index 000000000..06c43ebf6 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domBind_material.h @@ -0,0 +1,186 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domBind_material_h__ +#define __domBind_material_h__ + +#include +#include + +#include +#include +#include + +/** + * Bind a specific material to a piece of geometry, binding varying and uniform + * parameters at the same time. + */ +class domBind_material : public daeElement +{ +public: + class domTechnique_common; + + typedef daeSmartRef domTechnique_commonRef; + typedef daeTArray domTechnique_common_Array; + +/** + * The technique_common element specifies the instance_rigid_body information + * for the common profile which all COLLADA implementations need to support. + */ + class domTechnique_common : public daeElement + { + + protected: // Element +/** + * The instance_material element specifies the information needed to bind + * a geometry to a material. This element must appear at least once. @see + * domInstance_material + */ + domInstance_material_Array elemInstance_material_array; + + public: //Accessors and Mutators + /** + * Gets the instance_material element array. + * @return Returns a reference to the array of instance_material elements. + */ + domInstance_material_Array &getInstance_material_array() { return elemInstance_material_array; } + /** + * Gets the instance_material element array. + * @return Returns a constant reference to the array of instance_material elements. + */ + const domInstance_material_Array &getInstance_material_array() const { return elemInstance_material_array; } + protected: + /** + * Constructor + */ + domTechnique_common() : elemInstance_material_array() {} + /** + * Destructor + */ + virtual ~domTechnique_common() {} + /** + * Copy Constructor + */ + domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_common &operator=( const domTechnique_common &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: // Elements +/** + * The bind_material element may contain any number of param elements. @see + * domParam + */ + domParam_Array elemParam_array; +/** + * The technique_common element specifies the instance_rigid_body information + * for the common profile which all COLLADA implementations need to support. + * @see domTechnique_common + */ + domTechnique_commonRef elemTechnique_common; +/** + * This element may contain any number of non-common profile techniques. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; + +public: //Accessors and Mutators + /** + * Gets the param element array. + * @return Returns a reference to the array of param elements. + */ + domParam_Array &getParam_array() { return elemParam_array; } + /** + * Gets the param element array. + * @return Returns a constant reference to the array of param elements. + */ + const domParam_Array &getParam_array() const { return elemParam_array; } + /** + * Gets the technique_common element. + * @return a daeSmartRef to the technique_common element. + */ + const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @return Returns a constant reference to the array of technique elements. + */ + const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } +protected: + /** + * Constructor + */ + domBind_material() : elemParam_array(), elemTechnique_common(), elemTechnique_array() {} + /** + * Destructor + */ + virtual ~domBind_material() {} + /** + * Copy Constructor + */ + domBind_material( const domBind_material &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBind_material &operator=( const domBind_material &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domBool_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domBool_array.h new file mode 100644 index 000000000..5d5bacb94 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domBool_array.h @@ -0,0 +1,139 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domBool_array_h__ +#define __domBool_array_h__ + +#include +#include + + +/** + * The bool_array element declares the storage for a homogenous array of boolean + * values. + */ +class domBool_array : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of values in the array. Required + * attribute. + */ + domUint attrCount; + +protected: // Value + /** + * The domListOfBools value of the text data of this element. + */ + domListOfBools _value; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the _value array. + * @return Returns a domListOfBools reference of the _value array. + */ + domListOfBools &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfBools reference of the _value array. + */ + const domListOfBools &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfBools &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domBool_array() : attrId(), attrName(), attrCount(), _value() {} + /** + * Destructor + */ + virtual ~domBool_array() {} + /** + * Copy Constructor + */ + domBool_array( const domBool_array &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool_array &operator=( const domBool_array &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domBox.h b/Extras/COLLADA_DOM/include/1.4/dom/domBox.h new file mode 100644 index 000000000..beb384675 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domBox.h @@ -0,0 +1,168 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domBox_h__ +#define __domBox_h__ + +#include +#include + +#include + +/** + * An axis-aligned, centered box primitive. + */ +class domBox : public daeElement +{ +public: + class domHalf_extents; + + typedef daeSmartRef domHalf_extentsRef; + typedef daeTArray domHalf_extents_Array; + +/** + * 3 float values that represent the extents of the box + */ + class domHalf_extents : public daeElement + { + + protected: // Value + /** + * The domFloat3 value of the text data of this element. + */ + domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat3 reference of the _value array. + */ + domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat3 reference of the _value array. + */ + const domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf_extents() : _value() {} + /** + * Destructor + */ + virtual ~domHalf_extents() {} + /** + * Copy Constructor + */ + domHalf_extents( const domHalf_extents &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf_extents &operator=( const domHalf_extents &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: // Elements +/** + * 3 float values that represent the extents of the box @see domHalf_extents + */ + domHalf_extentsRef elemHalf_extents; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the half_extents element. + * @return a daeSmartRef to the half_extents element. + */ + const domHalf_extentsRef getHalf_extents() const { return elemHalf_extents; } + /** + * 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; } +protected: + /** + * Constructor + */ + domBox() : elemHalf_extents(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domBox() {} + /** + * Copy Constructor + */ + domBox( const domBox &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBox &operator=( const domBox &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCOLLADA.h b/Extras/COLLADA_DOM/include/1.4/dom/domCOLLADA.h new file mode 100644 index 000000000..009c2b6b8 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCOLLADA.h @@ -0,0 +1,502 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCOLLADA_h__ +#define __domCOLLADA_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * The COLLADA element declares the root of the document that comprises some + * of the content in the COLLADA schema. + */ +class domCOLLADA : public daeElement +{ +public: + class domScene; + + typedef daeSmartRef domSceneRef; + typedef daeTArray domScene_Array; + +/** + * The scene embodies the entire set of information that can be visualized + * from the contents of a COLLADA resource. The scene element declares the + * base of the scene hierarchy or scene graph. The scene contains elements + * that comprise much of the visual and transformational information content + * as created by the authoring tools. + */ + class domScene : public daeElement + { + + protected: // Elements +/** + * The instance_physics_scene element declares the instantiation of a COLLADA + * physics_scene resource. The instance_physics_scene element may only appear + * once. @see domInstance_physics_scene + */ + domInstanceWithExtra_Array elemInstance_physics_scene_array; +/** + * The instance_visual_scene element declares the instantiation of a COLLADA + * visual_scene resource. The instance_visual_scene element may only appear + * once. @see domInstance_visual_scene + */ + domInstanceWithExtraRef elemInstance_visual_scene; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + + public: //Accessors and Mutators + /** + * Gets the instance_physics_scene element array. + * @return Returns a reference to the array of instance_physics_scene elements. + */ + domInstanceWithExtra_Array &getInstance_physics_scene_array() { return elemInstance_physics_scene_array; } + /** + * Gets the instance_physics_scene element array. + * @return Returns a constant reference to the array of instance_physics_scene elements. + */ + const domInstanceWithExtra_Array &getInstance_physics_scene_array() const { return elemInstance_physics_scene_array; } + /** + * Gets the instance_visual_scene element. + * @return a daeSmartRef to the instance_visual_scene element. + */ + const domInstanceWithExtraRef getInstance_visual_scene() const { return elemInstance_visual_scene; } + /** + * 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; } + protected: + /** + * Constructor + */ + domScene() : elemInstance_physics_scene_array(), elemInstance_visual_scene(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domScene() {} + /** + * Copy Constructor + */ + domScene( const domScene &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domScene &operator=( const domScene &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: // Attribute + /** + * This element may specify its own xmlns. + */ + xsAnyURI attrXmlns; +/** + * The version attribute is the COLLADA schema revision with which the instance + * document conforms. Required Attribute. + */ + domVersionType attrVersion; + +protected: // Elements +/** + * The COLLADA element must contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The COLLADA element may contain any number of library_animations elements. + * @see domLibrary_animations + */ + domLibrary_animations_Array elemLibrary_animations_array; +/** + * The COLLADA element may contain any number of library_animation_clips + * elements. @see domLibrary_animation_clips + */ + domLibrary_animation_clips_Array elemLibrary_animation_clips_array; +/** + * The COLLADA element may contain any number of library_cameras elements. + * @see domLibrary_cameras + */ + domLibrary_cameras_Array elemLibrary_cameras_array; +/** + * The COLLADA element may contain any number of library_controllerss elements. + * @see domLibrary_controllers + */ + domLibrary_controllers_Array elemLibrary_controllers_array; +/** + * The COLLADA element may contain any number of library_geometriess elements. + * @see domLibrary_geometries + */ + domLibrary_geometries_Array elemLibrary_geometries_array; +/** + * The COLLADA element may contain any number of library_effects elements. + * @see domLibrary_effects + */ + domLibrary_effects_Array elemLibrary_effects_array; +/** + * The COLLADA element may contain any number of library_force_fields elements. + * @see domLibrary_force_fields + */ + domLibrary_force_fields_Array elemLibrary_force_fields_array; +/** + * The COLLADA element may contain any number of library_images elements. + * @see domLibrary_images + */ + domLibrary_images_Array elemLibrary_images_array; +/** + * The COLLADA element may contain any number of library_lights elements. + * @see domLibrary_lights + */ + domLibrary_lights_Array elemLibrary_lights_array; +/** + * The COLLADA element may contain any number of library_materials elements. + * @see domLibrary_materials + */ + domLibrary_materials_Array elemLibrary_materials_array; +/** + * The COLLADA element may contain any number of library_nodes elements. + * @see domLibrary_nodes + */ + domLibrary_nodes_Array elemLibrary_nodes_array; +/** + * The COLLADA element may contain any number of library_materials elements. + * @see domLibrary_physics_materials + */ + domLibrary_physics_materials_Array elemLibrary_physics_materials_array; +/** + * The COLLADA element may contain any number of library_physics_models elements. + * @see domLibrary_physics_models + */ + domLibrary_physics_models_Array elemLibrary_physics_models_array; +/** + * The COLLADA element may contain any number of library_physics_scenes elements. + * @see domLibrary_physics_scenes + */ + domLibrary_physics_scenes_Array elemLibrary_physics_scenes_array; +/** + * The COLLADA element may contain any number of library_visual_scenes elements. + * @see domLibrary_visual_scenes + */ + domLibrary_visual_scenes_Array elemLibrary_visual_scenes_array; +/** + * The scene embodies the entire set of information that can be visualized + * from the contents of a COLLADA resource. The scene element declares the + * base of the scene hierarchy or scene graph. The scene contains elements + * that comprise much of the visual and transformational information content + * as created by the authoring tools. @see domScene + */ + domSceneRef elemScene; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the xmlns attribute. + * @return Returns a xsAnyURI reference of the xmlns attribute. + */ + xsAnyURI &getXmlns() { return attrXmlns; } + /** + * Gets the xmlns attribute. + * @return Returns a constant xsAnyURI reference of the xmlns attribute. + */ + const xsAnyURI &getXmlns() const { return attrXmlns; } + /** + * Sets the xmlns attribute. + * @param xmlns The new value for the xmlns attribute. + */ + void setXmlns( const xsAnyURI &xmlns ) { attrXmlns.setURI( xmlns.getURI() ); } + + /** + * Gets the version attribute. + * @return Returns a domVersionType of the version attribute. + */ + domVersionType getVersion() const { return attrVersion; } + /** + * Sets the version attribute. + * @param atVersion The new value for the version attribute. + */ + void setVersion( domVersionType atVersion ) { attrVersion = atVersion; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the library_animations element array. + * @return Returns a reference to the array of library_animations elements. + */ + domLibrary_animations_Array &getLibrary_animations_array() { return elemLibrary_animations_array; } + /** + * Gets the library_animations element array. + * @return Returns a constant reference to the array of library_animations elements. + */ + const domLibrary_animations_Array &getLibrary_animations_array() const { return elemLibrary_animations_array; } + /** + * Gets the library_animation_clips element array. + * @return Returns a reference to the array of library_animation_clips elements. + */ + domLibrary_animation_clips_Array &getLibrary_animation_clips_array() { return elemLibrary_animation_clips_array; } + /** + * Gets the library_animation_clips element array. + * @return Returns a constant reference to the array of library_animation_clips elements. + */ + const domLibrary_animation_clips_Array &getLibrary_animation_clips_array() const { return elemLibrary_animation_clips_array; } + /** + * Gets the library_cameras element array. + * @return Returns a reference to the array of library_cameras elements. + */ + domLibrary_cameras_Array &getLibrary_cameras_array() { return elemLibrary_cameras_array; } + /** + * Gets the library_cameras element array. + * @return Returns a constant reference to the array of library_cameras elements. + */ + const domLibrary_cameras_Array &getLibrary_cameras_array() const { return elemLibrary_cameras_array; } + /** + * Gets the library_controllers element array. + * @return Returns a reference to the array of library_controllers elements. + */ + domLibrary_controllers_Array &getLibrary_controllers_array() { return elemLibrary_controllers_array; } + /** + * Gets the library_controllers element array. + * @return Returns a constant reference to the array of library_controllers elements. + */ + const domLibrary_controllers_Array &getLibrary_controllers_array() const { return elemLibrary_controllers_array; } + /** + * Gets the library_geometries element array. + * @return Returns a reference to the array of library_geometries elements. + */ + domLibrary_geometries_Array &getLibrary_geometries_array() { return elemLibrary_geometries_array; } + /** + * Gets the library_geometries element array. + * @return Returns a constant reference to the array of library_geometries elements. + */ + const domLibrary_geometries_Array &getLibrary_geometries_array() const { return elemLibrary_geometries_array; } + /** + * Gets the library_effects element array. + * @return Returns a reference to the array of library_effects elements. + */ + domLibrary_effects_Array &getLibrary_effects_array() { return elemLibrary_effects_array; } + /** + * Gets the library_effects element array. + * @return Returns a constant reference to the array of library_effects elements. + */ + const domLibrary_effects_Array &getLibrary_effects_array() const { return elemLibrary_effects_array; } + /** + * Gets the library_force_fields element array. + * @return Returns a reference to the array of library_force_fields elements. + */ + domLibrary_force_fields_Array &getLibrary_force_fields_array() { return elemLibrary_force_fields_array; } + /** + * Gets the library_force_fields element array. + * @return Returns a constant reference to the array of library_force_fields elements. + */ + const domLibrary_force_fields_Array &getLibrary_force_fields_array() const { return elemLibrary_force_fields_array; } + /** + * Gets the library_images element array. + * @return Returns a reference to the array of library_images elements. + */ + domLibrary_images_Array &getLibrary_images_array() { return elemLibrary_images_array; } + /** + * Gets the library_images element array. + * @return Returns a constant reference to the array of library_images elements. + */ + const domLibrary_images_Array &getLibrary_images_array() const { return elemLibrary_images_array; } + /** + * Gets the library_lights element array. + * @return Returns a reference to the array of library_lights elements. + */ + domLibrary_lights_Array &getLibrary_lights_array() { return elemLibrary_lights_array; } + /** + * Gets the library_lights element array. + * @return Returns a constant reference to the array of library_lights elements. + */ + const domLibrary_lights_Array &getLibrary_lights_array() const { return elemLibrary_lights_array; } + /** + * Gets the library_materials element array. + * @return Returns a reference to the array of library_materials elements. + */ + domLibrary_materials_Array &getLibrary_materials_array() { return elemLibrary_materials_array; } + /** + * Gets the library_materials element array. + * @return Returns a constant reference to the array of library_materials elements. + */ + const domLibrary_materials_Array &getLibrary_materials_array() const { return elemLibrary_materials_array; } + /** + * Gets the library_nodes element array. + * @return Returns a reference to the array of library_nodes elements. + */ + domLibrary_nodes_Array &getLibrary_nodes_array() { return elemLibrary_nodes_array; } + /** + * Gets the library_nodes element array. + * @return Returns a constant reference to the array of library_nodes elements. + */ + const domLibrary_nodes_Array &getLibrary_nodes_array() const { return elemLibrary_nodes_array; } + /** + * Gets the library_physics_materials element array. + * @return Returns a reference to the array of library_physics_materials elements. + */ + domLibrary_physics_materials_Array &getLibrary_physics_materials_array() { return elemLibrary_physics_materials_array; } + /** + * Gets the library_physics_materials element array. + * @return Returns a constant reference to the array of library_physics_materials elements. + */ + const domLibrary_physics_materials_Array &getLibrary_physics_materials_array() const { return elemLibrary_physics_materials_array; } + /** + * Gets the library_physics_models element array. + * @return Returns a reference to the array of library_physics_models elements. + */ + domLibrary_physics_models_Array &getLibrary_physics_models_array() { return elemLibrary_physics_models_array; } + /** + * Gets the library_physics_models element array. + * @return Returns a constant reference to the array of library_physics_models elements. + */ + const domLibrary_physics_models_Array &getLibrary_physics_models_array() const { return elemLibrary_physics_models_array; } + /** + * Gets the library_physics_scenes element array. + * @return Returns a reference to the array of library_physics_scenes elements. + */ + domLibrary_physics_scenes_Array &getLibrary_physics_scenes_array() { return elemLibrary_physics_scenes_array; } + /** + * Gets the library_physics_scenes element array. + * @return Returns a constant reference to the array of library_physics_scenes elements. + */ + const domLibrary_physics_scenes_Array &getLibrary_physics_scenes_array() const { return elemLibrary_physics_scenes_array; } + /** + * Gets the library_visual_scenes element array. + * @return Returns a reference to the array of library_visual_scenes elements. + */ + domLibrary_visual_scenes_Array &getLibrary_visual_scenes_array() { return elemLibrary_visual_scenes_array; } + /** + * Gets the library_visual_scenes element array. + * @return Returns a constant reference to the array of library_visual_scenes elements. + */ + const domLibrary_visual_scenes_Array &getLibrary_visual_scenes_array() const { return elemLibrary_visual_scenes_array; } + /** + * Gets the scene element. + * @return a daeSmartRef to the scene element. + */ + const domSceneRef getScene() const { return elemScene; } + /** + * 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. + */ + 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 + */ + domCOLLADA() : attrVersion(), elemAsset(), elemLibrary_animations_array(), elemLibrary_animation_clips_array(), elemLibrary_cameras_array(), elemLibrary_controllers_array(), elemLibrary_geometries_array(), elemLibrary_effects_array(), elemLibrary_force_fields_array(), elemLibrary_images_array(), elemLibrary_lights_array(), elemLibrary_materials_array(), elemLibrary_nodes_array(), elemLibrary_physics_materials_array(), elemLibrary_physics_models_array(), elemLibrary_physics_scenes_array(), elemLibrary_visual_scenes_array(), elemScene(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domCOLLADA() {} + /** + * Copy Constructor + */ + domCOLLADA( const domCOLLADA &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCOLLADA &operator=( const domCOLLADA &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCamera.h b/Extras/COLLADA_DOM/include/1.4/dom/domCamera.h new file mode 100644 index 000000000..83627bfe1 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCamera.h @@ -0,0 +1,668 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCamera_h__ +#define __domCamera_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * The camera element declares a view into the scene hierarchy or scene graph. + * The camera contains elements that describe the camera’s optics and imager. + */ +class domCamera : public daeElement +{ +public: + class domOptics; + + typedef daeSmartRef domOpticsRef; + typedef daeTArray domOptics_Array; + +/** + * Optics represents the apparatus on a camera that projects the image onto + * the image sensor. + */ + class domOptics : public daeElement + { + public: + class domTechnique_common; + + typedef daeSmartRef domTechnique_commonRef; + typedef daeTArray domTechnique_common_Array; + +/** + * The technique_common element specifies the optics information for the common + * profile which all COLLADA implementations need to support. + */ + class domTechnique_common : public daeElement + { + public: + class domOrthographic; + + typedef daeSmartRef domOrthographicRef; + typedef daeTArray domOrthographic_Array; + +/** + * The orthographic element describes the field of view of an orthographic + * camera. + */ + class domOrthographic : public daeElement + { + + protected: // Elements +/** + * The xmag element contains a floating point number describing the horizontal + * magnification of the view. @see domXmag + */ + domTargetableFloatRef elemXmag; +/** + * The ymag element contains a floating point number describing the vertical + * magnification of the view. It can also have a sid. @see domYmag + */ + domTargetableFloatRef elemYmag; +/** + * The aspect_ratio element contains a floating point number describing the + * aspect ratio of the field of view. If the aspect_ratio element is not + * present the aspect ratio is to be calculated from the xmag or ymag elements + * and the current viewport. @see domAspect_ratio + */ + domTargetableFloatRef elemAspect_ratio; +/** + * The znear element contains a floating point number that describes the distance + * to the near clipping plane. The znear element must occur exactly once. + * @see domZnear + */ + domTargetableFloatRef elemZnear; +/** + * The zfar element contains a floating point number that describes the distance + * to the far clipping plane. The zfar element must occur exactly once. @see + * domZfar + */ + domTargetableFloatRef elemZfar; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the xmag element. + * @return a daeSmartRef to the xmag element. + */ + const domTargetableFloatRef getXmag() const { return elemXmag; } + /** + * Gets the ymag element. + * @return a daeSmartRef to the ymag element. + */ + const domTargetableFloatRef getYmag() const { return elemYmag; } + /** + * Gets the aspect_ratio element. + * @return a daeSmartRef to the aspect_ratio element. + */ + const domTargetableFloatRef getAspect_ratio() const { return elemAspect_ratio; } + /** + * Gets the znear element. + * @return a daeSmartRef to the znear element. + */ + const domTargetableFloatRef getZnear() const { return elemZnear; } + /** + * Gets the zfar element. + * @return a daeSmartRef to the zfar element. + */ + const domTargetableFloatRef getZfar() const { return elemZfar; } + /** + * 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 + */ + domOrthographic() : elemXmag(), elemYmag(), elemAspect_ratio(), elemZnear(), elemZfar() {} + /** + * Destructor + */ + virtual ~domOrthographic() {} + /** + * Copy Constructor + */ + domOrthographic( const domOrthographic &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domOrthographic &operator=( const domOrthographic &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; + }; + + class domPerspective; + + typedef daeSmartRef domPerspectiveRef; + typedef daeTArray domPerspective_Array; + +/** + * The perspective element describes the optics of a perspective camera. + */ + class domPerspective : public daeElement + { + + protected: // Elements +/** + * The xfov element contains a floating point number describing the horizontal + * field of view in degrees. @see domXfov + */ + domTargetableFloatRef elemXfov; +/** + * The yfov element contains a floating point number describing the horizontal + * field of view in degrees. @see domYfov + */ + domTargetableFloatRef elemYfov; +/** + * The aspect_ratio element contains a floating point number describing the + * aspect ratio of the field of view. If the aspect_ratio element is not + * present the aspect ratio is to be calculated from the xfov or yfov elements + * and the current viewport. @see domAspect_ratio + */ + domTargetableFloatRef elemAspect_ratio; +/** + * The znear element contains a floating point number that describes the distance + * to the near clipping plane. The znear element must occur exactly once. + * @see domZnear + */ + domTargetableFloatRef elemZnear; +/** + * The zfar element contains a floating point number that describes the distance + * to the far clipping plane. The zfar element must occur exactly once. @see + * domZfar + */ + domTargetableFloatRef elemZfar; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the xfov element. + * @return a daeSmartRef to the xfov element. + */ + const domTargetableFloatRef getXfov() const { return elemXfov; } + /** + * Gets the yfov element. + * @return a daeSmartRef to the yfov element. + */ + const domTargetableFloatRef getYfov() const { return elemYfov; } + /** + * Gets the aspect_ratio element. + * @return a daeSmartRef to the aspect_ratio element. + */ + const domTargetableFloatRef getAspect_ratio() const { return elemAspect_ratio; } + /** + * Gets the znear element. + * @return a daeSmartRef to the znear element. + */ + const domTargetableFloatRef getZnear() const { return elemZnear; } + /** + * Gets the zfar element. + * @return a daeSmartRef to the zfar element. + */ + const domTargetableFloatRef getZfar() const { return elemZfar; } + /** + * 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 + */ + domPerspective() : elemXfov(), elemYfov(), elemAspect_ratio(), elemZnear(), elemZfar() {} + /** + * Destructor + */ + virtual ~domPerspective() {} + /** + * Copy Constructor + */ + domPerspective( const domPerspective &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPerspective &operator=( const domPerspective &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: // Elements +/** + * The orthographic element describes the field of view of an orthographic + * camera. @see domOrthographic + */ + domOrthographicRef elemOrthographic; +/** + * The perspective element describes the optics of a perspective camera. @see + * domPerspective + */ + domPerspectiveRef elemPerspective; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the orthographic element. + * @return a daeSmartRef to the orthographic element. + */ + const domOrthographicRef getOrthographic() const { return elemOrthographic; } + /** + * Gets the perspective element. + * @return a daeSmartRef to the perspective element. + */ + const domPerspectiveRef getPerspective() const { return elemPerspective; } + /** + * 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 + */ + domTechnique_common() : elemOrthographic(), elemPerspective() {} + /** + * Destructor + */ + virtual ~domTechnique_common() {} + /** + * Copy Constructor + */ + domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_common &operator=( const domTechnique_common &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: // Elements +/** + * The technique_common element specifies the optics information for the common + * profile which all COLLADA implementations need to support. @see domTechnique_common + */ + domTechnique_commonRef elemTechnique_common; +/** + * This element may contain any number of non-common profile techniques. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + + public: //Accessors and Mutators + /** + * Gets the technique_common element. + * @return a daeSmartRef to the technique_common element. + */ + const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @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; } + protected: + /** + * Constructor + */ + domOptics() : elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domOptics() {} + /** + * Copy Constructor + */ + domOptics( const domOptics &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domOptics &operator=( const domOptics &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; + }; + + class domImager; + + typedef daeSmartRef domImagerRef; + typedef daeTArray domImager_Array; + +/** + * Imagers represent the image sensor of a camera (for example film or CCD). + */ + class domImager : public daeElement + { + + protected: // Elements +/** + * This element may contain any number of non-common profile techniques. + * There is no common technique for imager. @see domTechnique + */ + domTechnique_Array elemTechnique_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + + public: //Accessors and Mutators + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @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; } + protected: + /** + * Constructor + */ + domImager() : elemTechnique_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domImager() {} + /** + * Copy Constructor + */ + domImager( const domImager &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domImager &operator=( const domImager &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 +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The camera element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * Optics represents the apparatus on a camera that projects the image onto + * the image sensor. @see domOptics + */ + domOpticsRef elemOptics; +/** + * Imagers represent the image sensor of a camera (for example film or CCD). + * @see domImager + */ + domImagerRef elemImager; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the optics element. + * @return a daeSmartRef to the optics element. + */ + const domOpticsRef getOptics() const { return elemOptics; } + /** + * Gets the imager element. + * @return a daeSmartRef to the imager element. + */ + const domImagerRef getImager() const { return elemImager; } + /** + * 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; } +protected: + /** + * Constructor + */ + domCamera() : attrId(), attrName(), elemAsset(), elemOptics(), elemImager(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domCamera() {} + /** + * Copy Constructor + */ + domCamera( const domCamera &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCamera &operator=( const domCamera &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCapsule.h b/Extras/COLLADA_DOM/include/1.4/dom/domCapsule.h new file mode 100644 index 000000000..68ce76c91 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCapsule.h @@ -0,0 +1,248 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCapsule_h__ +#define __domCapsule_h__ + +#include +#include + +#include + +/** + * A capsule primitive that is centered on and aligned with the local Y axis. + */ +class domCapsule : public daeElement +{ +public: + class domHeight; + + typedef daeSmartRef domHeightRef; + typedef daeTArray domHeight_Array; + +/** + * A float value that represents the length of the line segment connecting + * the centers of the capping hemispheres. + */ + class domHeight : public daeElement + { + + protected: // Value + /** + * The domFloat value of the text data of this element. + */ + domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFloat of the value. + */ + domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHeight() : _value() {} + /** + * Destructor + */ + virtual ~domHeight() {} + /** + * Copy Constructor + */ + domHeight( const domHeight &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHeight &operator=( const domHeight &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; + }; + + class domRadius; + + typedef daeSmartRef domRadiusRef; + typedef daeTArray domRadius_Array; + +/** + * Two float values that represent the radii of the capsule (it may be elliptical) + */ + class domRadius : public daeElement + { + + protected: // Value + /** + * The domFloat2 value of the text data of this element. + */ + domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat2 reference of the _value array. + */ + domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat2 reference of the _value array. + */ + const domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domRadius() : _value() {} + /** + * Destructor + */ + virtual ~domRadius() {} + /** + * Copy Constructor + */ + domRadius( const domRadius &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRadius &operator=( const domRadius &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: // Elements +/** + * A float value that represents the length of the line segment connecting + * the centers of the capping hemispheres. @see domHeight + */ + domHeightRef elemHeight; +/** + * Two float values that represent the radii of the capsule (it may be elliptical) + * @see domRadius + */ + domRadiusRef elemRadius; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the height element. + * @return a daeSmartRef to the height element. + */ + const domHeightRef getHeight() const { return elemHeight; } + /** + * Gets the radius element. + * @return a daeSmartRef to the radius element. + */ + const domRadiusRef getRadius() const { return elemRadius; } + /** + * 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; } +protected: + /** + * Constructor + */ + domCapsule() : elemHeight(), elemRadius(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domCapsule() {} + /** + * Copy Constructor + */ + domCapsule( const domCapsule &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCapsule &operator=( const domCapsule &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_connect_param.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_connect_param.h new file mode 100644 index 000000000..5e6b48d53 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_connect_param.h @@ -0,0 +1,105 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_connect_param_h__ +#define __domCg_connect_param_h__ + +#include +#include + + +/** + * Creates a symbolic connection between two previously defined parameters. + */ +class domCg_connect_param_complexType +{ +protected: // Attribute + domCg_identifier attrRef; + + +public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a domCg_identifier of the ref attribute. + */ + domCg_identifier getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( domCg_identifier atRef ) { attrRef = atRef; } + +protected: + /** + * Constructor + */ + domCg_connect_param_complexType() : attrRef() {} + /** + * Destructor + */ + virtual ~domCg_connect_param_complexType() {} + /** + * Copy Constructor + */ + domCg_connect_param_complexType( const domCg_connect_param_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_connect_param_complexType &operator=( const domCg_connect_param_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_connect_param_complexType. + */ +class domCg_connect_param : public daeElement, public domCg_connect_param_complexType +{ +protected: + /** + * Constructor + */ + domCg_connect_param() {} + /** + * Destructor + */ + virtual ~domCg_connect_param() {} + /** + * Copy Constructor + */ + domCg_connect_param( const domCg_connect_param &cpy ) : daeElement(), domCg_connect_param_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_connect_param &operator=( const domCg_connect_param &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_newarray_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_newarray_type.h new file mode 100644 index 000000000..a6156e350 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_newarray_type.h @@ -0,0 +1,180 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_newarray_type_h__ +#define __domCg_newarray_type_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * Creates a parameter of a one-dimensional array type. + */ +class domCg_newarray_type_complexType +{ +protected: // Attribute +/** + * The length attribute specifies the length of the array. + */ + xsPositiveInteger attrLength; + +protected: // Elements + domCg_param_type_Array elemCg_param_type_array; +/** + * Nested array elements allow you to create multidemensional arrays. @see + * domArray + */ + domCg_newarray_type_Array elemArray_array; +/** + * The usertype element allows you to create arrays of usertypes. @see domUsertype + */ + domCg_setuser_type_Array elemUsertype_array; + domCg_connect_param_Array elemConnect_param_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the length attribute. + * @return Returns a xsPositiveInteger of the length attribute. + */ + xsPositiveInteger getLength() const { return attrLength; } + /** + * Sets the length attribute. + * @param atLength The new value for the length attribute. + */ + void setLength( xsPositiveInteger atLength ) { attrLength = atLength; } + + /** + * Gets the cg_param_type element array. + * @return Returns a reference to the array of cg_param_type elements. + */ + domCg_param_type_Array &getCg_param_type_array() { return elemCg_param_type_array; } + /** + * Gets the cg_param_type element array. + * @return Returns a constant reference to the array of cg_param_type elements. + */ + const domCg_param_type_Array &getCg_param_type_array() const { return elemCg_param_type_array; } + /** + * Gets the array element array. + * @return Returns a reference to the array of array elements. + */ + domCg_newarray_type_Array &getArray_array() { return elemArray_array; } + /** + * Gets the array element array. + * @return Returns a constant reference to the array of array elements. + */ + const domCg_newarray_type_Array &getArray_array() const { return elemArray_array; } + /** + * Gets the usertype element array. + * @return Returns a reference to the array of usertype elements. + */ + domCg_setuser_type_Array &getUsertype_array() { return elemUsertype_array; } + /** + * Gets the usertype element array. + * @return Returns a constant reference to the array of usertype elements. + */ + const domCg_setuser_type_Array &getUsertype_array() const { return elemUsertype_array; } + /** + * Gets the connect_param element array. + * @return Returns a reference to the array of connect_param elements. + */ + domCg_connect_param_Array &getConnect_param_array() { return elemConnect_param_array; } + /** + * Gets the connect_param element array. + * @return Returns a constant reference to the array of connect_param elements. + */ + const domCg_connect_param_Array &getConnect_param_array() const { return elemConnect_param_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 + */ + domCg_newarray_type_complexType() : attrLength(), elemCg_param_type_array(), elemArray_array(), elemUsertype_array(), elemConnect_param_array() {} + /** + * Destructor + */ + virtual ~domCg_newarray_type_complexType() {} + /** + * Copy Constructor + */ + domCg_newarray_type_complexType( const domCg_newarray_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_newarray_type_complexType &operator=( const domCg_newarray_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_newarray_type_complexType. + */ +class domCg_newarray_type : public daeElement, public domCg_newarray_type_complexType +{ +protected: + /** + * Constructor + */ + domCg_newarray_type() {} + /** + * Destructor + */ + virtual ~domCg_newarray_type() {} + /** + * Copy Constructor + */ + domCg_newarray_type( const domCg_newarray_type &cpy ) : daeElement(), domCg_newarray_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_newarray_type &operator=( const domCg_newarray_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_newparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_newparam.h new file mode 100644 index 000000000..ccb29dc0d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_newparam.h @@ -0,0 +1,318 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_newparam_h__ +#define __domCg_newparam_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * Create a new, named param object in the CG Runtime, assign it a type, an + * initial value, and additional attributes at declaration time. + */ +class domCg_newparam_complexType +{ +public: + class domSemantic; + + typedef daeSmartRef domSemanticRef; + typedef daeTArray domSemantic_Array; + +/** + * The semantic element allows you to specify a semantic for this new param. + */ + class domSemantic : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSemantic() : _value() {} + /** + * Destructor + */ + virtual ~domSemantic() {} + /** + * Copy Constructor + */ + domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSemantic &operator=( const domSemantic &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; + }; + + class domModifier; + + typedef daeSmartRef domModifierRef; + typedef daeTArray domModifier_Array; + +/** + * The modifier element allows you to specify a modifier for this new param. + */ + class domModifier : public daeElement + { + + protected: // Value + /** + * The domFx_modifier_enum_common value of the text data of this element. + */ + domFx_modifier_enum_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_modifier_enum_common of the value. + */ + domFx_modifier_enum_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_modifier_enum_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domModifier() : _value() {} + /** + * Destructor + */ + virtual ~domModifier() {} + /** + * Copy Constructor + */ + domModifier( const domModifier &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domModifier &operator=( const domModifier &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: // Attribute + domCg_identifier attrSid; + +protected: // Elements +/** + * The annotate element allows you to specify an annotation for this new param. + * @see domAnnotate + */ + domFx_annotate_common_Array elemAnnotate_array; +/** + * The semantic element allows you to specify a semantic for this new param. + * @see domSemantic + */ + domSemanticRef elemSemantic; +/** + * The modifier element allows you to specify a modifier for this new param. + * @see domModifier + */ + domModifierRef elemModifier; + domCg_param_typeRef elemCg_param_type; + domCg_setuser_typeRef elemUsertype; + domCg_newarray_typeRef elemArray; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the sid attribute. + * @return Returns a domCg_identifier of the sid attribute. + */ + domCg_identifier getSid() const { return attrSid; } + /** + * Sets the sid attribute. + * @param atSid The new value for the sid attribute. + */ + void setSid( domCg_identifier atSid ) { attrSid = atSid; } + + /** + * 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 semantic element. + * @return a daeSmartRef to the semantic element. + */ + const domSemanticRef getSemantic() const { return elemSemantic; } + /** + * Gets the modifier element. + * @return a daeSmartRef to the modifier element. + */ + const domModifierRef getModifier() const { return elemModifier; } + /** + * Gets the cg_param_type element. + * @return a daeSmartRef to the cg_param_type element. + */ + const domCg_param_typeRef getCg_param_type() const { return elemCg_param_type; } + /** + * Gets the usertype element. + * @return a daeSmartRef to the usertype element. + */ + const domCg_setuser_typeRef getUsertype() const { return elemUsertype; } + /** + * Gets the array element. + * @return a daeSmartRef to the array element. + */ + const domCg_newarray_typeRef getArray() const { return elemArray; } + /** + * 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 + */ + domCg_newparam_complexType() : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemCg_param_type(), elemUsertype(), elemArray() {} + /** + * Destructor + */ + virtual ~domCg_newparam_complexType() {} + /** + * Copy Constructor + */ + domCg_newparam_complexType( const domCg_newparam_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_newparam_complexType &operator=( const domCg_newparam_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_newparam_complexType. + */ +class domCg_newparam : public daeElement, public domCg_newparam_complexType +{ +protected: + /** + * Constructor + */ + domCg_newparam() {} + /** + * Destructor + */ + virtual ~domCg_newparam() {} + /** + * Copy Constructor + */ + domCg_newparam( const domCg_newparam &cpy ) : daeElement(), domCg_newparam_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_newparam &operator=( const domCg_newparam &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_param_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_param_type.h new file mode 100644 index 000000000..fc3edee3e --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_param_type.h @@ -0,0 +1,8208 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_param_type_h__ +#define __domCg_param_type_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +/** + * A group that specifies the allowable types for CG profile parameters. + */ +class domCg_param_type : public daeElement +{ +public: + class domBool; + + typedef daeSmartRef domBoolRef; + typedef daeTArray domBool_Array; + + class domBool : public daeElement + { + + protected: // Value + /** + * The domCg_bool value of the text data of this element. + */ + domCg_bool _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_bool of the value. + */ + domCg_bool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_bool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool() : _value() {} + /** + * Destructor + */ + virtual ~domBool() {} + /** + * Copy Constructor + */ + domBool( const domBool &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool &operator=( const domBool &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; + }; + + class domBool1; + + typedef daeSmartRef domBool1Ref; + typedef daeTArray domBool1_Array; + + class domBool1 : public daeElement + { + + protected: // Value + /** + * The domCg_bool1 value of the text data of this element. + */ + domCg_bool1 _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_bool1 of the value. + */ + domCg_bool1 getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_bool1 val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool1() : _value() {} + /** + * Destructor + */ + virtual ~domBool1() {} + /** + * Copy Constructor + */ + domBool1( const domBool1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool1 &operator=( const domBool1 &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; + }; + + class domBool2; + + typedef daeSmartRef domBool2Ref; + typedef daeTArray domBool2_Array; + + class domBool2 : public daeElement + { + + protected: // Value + /** + * The domCg_bool2 value of the text data of this element. + */ + domCg_bool2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool2 reference of the _value array. + */ + domCg_bool2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool2 reference of the _value array. + */ + const domCg_bool2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool2() : _value() {} + /** + * Destructor + */ + virtual ~domBool2() {} + /** + * Copy Constructor + */ + domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool2 &operator=( const domBool2 &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; + }; + + class domBool3; + + typedef daeSmartRef domBool3Ref; + typedef daeTArray domBool3_Array; + + class domBool3 : public daeElement + { + + protected: // Value + /** + * The domCg_bool3 value of the text data of this element. + */ + domCg_bool3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool3 reference of the _value array. + */ + domCg_bool3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool3 reference of the _value array. + */ + const domCg_bool3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool3() : _value() {} + /** + * Destructor + */ + virtual ~domBool3() {} + /** + * Copy Constructor + */ + domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool3 &operator=( const domBool3 &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; + }; + + class domBool4; + + typedef daeSmartRef domBool4Ref; + typedef daeTArray domBool4_Array; + + class domBool4 : public daeElement + { + + protected: // Value + /** + * The domCg_bool4 value of the text data of this element. + */ + domCg_bool4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool4 reference of the _value array. + */ + domCg_bool4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool4 reference of the _value array. + */ + const domCg_bool4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool4() : _value() {} + /** + * Destructor + */ + virtual ~domBool4() {} + /** + * Copy Constructor + */ + domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool4 &operator=( const domBool4 &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; + }; + + class domBool1x1; + + typedef daeSmartRef domBool1x1Ref; + typedef daeTArray domBool1x1_Array; + + class domBool1x1 : public daeElement + { + + protected: // Value + /** + * The domCg_bool1x1 value of the text data of this element. + */ + domCg_bool1x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool1x1 reference of the _value array. + */ + domCg_bool1x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool1x1 reference of the _value array. + */ + const domCg_bool1x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool1x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool1x1() : _value() {} + /** + * Destructor + */ + virtual ~domBool1x1() {} + /** + * Copy Constructor + */ + domBool1x1( const domBool1x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool1x1 &operator=( const domBool1x1 &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; + }; + + class domBool1x2; + + typedef daeSmartRef domBool1x2Ref; + typedef daeTArray domBool1x2_Array; + + class domBool1x2 : public daeElement + { + + protected: // Value + /** + * The domCg_bool1x2 value of the text data of this element. + */ + domCg_bool1x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool1x2 reference of the _value array. + */ + domCg_bool1x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool1x2 reference of the _value array. + */ + const domCg_bool1x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool1x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool1x2() : _value() {} + /** + * Destructor + */ + virtual ~domBool1x2() {} + /** + * Copy Constructor + */ + domBool1x2( const domBool1x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool1x2 &operator=( const domBool1x2 &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; + }; + + class domBool1x3; + + typedef daeSmartRef domBool1x3Ref; + typedef daeTArray domBool1x3_Array; + + class domBool1x3 : public daeElement + { + + protected: // Value + /** + * The domCg_bool1x3 value of the text data of this element. + */ + domCg_bool1x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool1x3 reference of the _value array. + */ + domCg_bool1x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool1x3 reference of the _value array. + */ + const domCg_bool1x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool1x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool1x3() : _value() {} + /** + * Destructor + */ + virtual ~domBool1x3() {} + /** + * Copy Constructor + */ + domBool1x3( const domBool1x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool1x3 &operator=( const domBool1x3 &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; + }; + + class domBool1x4; + + typedef daeSmartRef domBool1x4Ref; + typedef daeTArray domBool1x4_Array; + + class domBool1x4 : public daeElement + { + + protected: // Value + /** + * The domCg_bool1x4 value of the text data of this element. + */ + domCg_bool1x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool1x4 reference of the _value array. + */ + domCg_bool1x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool1x4 reference of the _value array. + */ + const domCg_bool1x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool1x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool1x4() : _value() {} + /** + * Destructor + */ + virtual ~domBool1x4() {} + /** + * Copy Constructor + */ + domBool1x4( const domBool1x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool1x4 &operator=( const domBool1x4 &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; + }; + + class domBool2x1; + + typedef daeSmartRef domBool2x1Ref; + typedef daeTArray domBool2x1_Array; + + class domBool2x1 : public daeElement + { + + protected: // Value + /** + * The domCg_bool2x1 value of the text data of this element. + */ + domCg_bool2x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool2x1 reference of the _value array. + */ + domCg_bool2x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool2x1 reference of the _value array. + */ + const domCg_bool2x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool2x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool2x1() : _value() {} + /** + * Destructor + */ + virtual ~domBool2x1() {} + /** + * Copy Constructor + */ + domBool2x1( const domBool2x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool2x1 &operator=( const domBool2x1 &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; + }; + + class domBool2x2; + + typedef daeSmartRef domBool2x2Ref; + typedef daeTArray domBool2x2_Array; + + class domBool2x2 : public daeElement + { + + protected: // Value + /** + * The domCg_bool2x2 value of the text data of this element. + */ + domCg_bool2x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool2x2 reference of the _value array. + */ + domCg_bool2x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool2x2 reference of the _value array. + */ + const domCg_bool2x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool2x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool2x2() : _value() {} + /** + * Destructor + */ + virtual ~domBool2x2() {} + /** + * Copy Constructor + */ + domBool2x2( const domBool2x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool2x2 &operator=( const domBool2x2 &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; + }; + + class domBool2x3; + + typedef daeSmartRef domBool2x3Ref; + typedef daeTArray domBool2x3_Array; + + class domBool2x3 : public daeElement + { + + protected: // Value + /** + * The domCg_bool2x3 value of the text data of this element. + */ + domCg_bool2x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool2x3 reference of the _value array. + */ + domCg_bool2x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool2x3 reference of the _value array. + */ + const domCg_bool2x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool2x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool2x3() : _value() {} + /** + * Destructor + */ + virtual ~domBool2x3() {} + /** + * Copy Constructor + */ + domBool2x3( const domBool2x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool2x3 &operator=( const domBool2x3 &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; + }; + + class domBool2x4; + + typedef daeSmartRef domBool2x4Ref; + typedef daeTArray domBool2x4_Array; + + class domBool2x4 : public daeElement + { + + protected: // Value + /** + * The domCg_bool2x4 value of the text data of this element. + */ + domCg_bool2x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool2x4 reference of the _value array. + */ + domCg_bool2x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool2x4 reference of the _value array. + */ + const domCg_bool2x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool2x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool2x4() : _value() {} + /** + * Destructor + */ + virtual ~domBool2x4() {} + /** + * Copy Constructor + */ + domBool2x4( const domBool2x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool2x4 &operator=( const domBool2x4 &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; + }; + + class domBool3x1; + + typedef daeSmartRef domBool3x1Ref; + typedef daeTArray domBool3x1_Array; + + class domBool3x1 : public daeElement + { + + protected: // Value + /** + * The domCg_bool3x1 value of the text data of this element. + */ + domCg_bool3x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool3x1 reference of the _value array. + */ + domCg_bool3x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool3x1 reference of the _value array. + */ + const domCg_bool3x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool3x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool3x1() : _value() {} + /** + * Destructor + */ + virtual ~domBool3x1() {} + /** + * Copy Constructor + */ + domBool3x1( const domBool3x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool3x1 &operator=( const domBool3x1 &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; + }; + + class domBool3x2; + + typedef daeSmartRef domBool3x2Ref; + typedef daeTArray domBool3x2_Array; + + class domBool3x2 : public daeElement + { + + protected: // Value + /** + * The domCg_bool3x2 value of the text data of this element. + */ + domCg_bool3x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool3x2 reference of the _value array. + */ + domCg_bool3x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool3x2 reference of the _value array. + */ + const domCg_bool3x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool3x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool3x2() : _value() {} + /** + * Destructor + */ + virtual ~domBool3x2() {} + /** + * Copy Constructor + */ + domBool3x2( const domBool3x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool3x2 &operator=( const domBool3x2 &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; + }; + + class domBool3x3; + + typedef daeSmartRef domBool3x3Ref; + typedef daeTArray domBool3x3_Array; + + class domBool3x3 : public daeElement + { + + protected: // Value + /** + * The domCg_bool3x3 value of the text data of this element. + */ + domCg_bool3x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool3x3 reference of the _value array. + */ + domCg_bool3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool3x3 reference of the _value array. + */ + const domCg_bool3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool3x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool3x3() : _value() {} + /** + * Destructor + */ + virtual ~domBool3x3() {} + /** + * Copy Constructor + */ + domBool3x3( const domBool3x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool3x3 &operator=( const domBool3x3 &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; + }; + + class domBool3x4; + + typedef daeSmartRef domBool3x4Ref; + typedef daeTArray domBool3x4_Array; + + class domBool3x4 : public daeElement + { + + protected: // Value + /** + * The domCg_bool3x4 value of the text data of this element. + */ + domCg_bool3x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool3x4 reference of the _value array. + */ + domCg_bool3x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool3x4 reference of the _value array. + */ + const domCg_bool3x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool3x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool3x4() : _value() {} + /** + * Destructor + */ + virtual ~domBool3x4() {} + /** + * Copy Constructor + */ + domBool3x4( const domBool3x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool3x4 &operator=( const domBool3x4 &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; + }; + + class domBool4x1; + + typedef daeSmartRef domBool4x1Ref; + typedef daeTArray domBool4x1_Array; + + class domBool4x1 : public daeElement + { + + protected: // Value + /** + * The domCg_bool4x1 value of the text data of this element. + */ + domCg_bool4x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool4x1 reference of the _value array. + */ + domCg_bool4x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool4x1 reference of the _value array. + */ + const domCg_bool4x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool4x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool4x1() : _value() {} + /** + * Destructor + */ + virtual ~domBool4x1() {} + /** + * Copy Constructor + */ + domBool4x1( const domBool4x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool4x1 &operator=( const domBool4x1 &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; + }; + + class domBool4x2; + + typedef daeSmartRef domBool4x2Ref; + typedef daeTArray domBool4x2_Array; + + class domBool4x2 : public daeElement + { + + protected: // Value + /** + * The domCg_bool4x2 value of the text data of this element. + */ + domCg_bool4x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool4x2 reference of the _value array. + */ + domCg_bool4x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool4x2 reference of the _value array. + */ + const domCg_bool4x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool4x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool4x2() : _value() {} + /** + * Destructor + */ + virtual ~domBool4x2() {} + /** + * Copy Constructor + */ + domBool4x2( const domBool4x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool4x2 &operator=( const domBool4x2 &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; + }; + + class domBool4x3; + + typedef daeSmartRef domBool4x3Ref; + typedef daeTArray domBool4x3_Array; + + class domBool4x3 : public daeElement + { + + protected: // Value + /** + * The domCg_bool4x3 value of the text data of this element. + */ + domCg_bool4x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool4x3 reference of the _value array. + */ + domCg_bool4x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool4x3 reference of the _value array. + */ + const domCg_bool4x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool4x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool4x3() : _value() {} + /** + * Destructor + */ + virtual ~domBool4x3() {} + /** + * Copy Constructor + */ + domBool4x3( const domBool4x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool4x3 &operator=( const domBool4x3 &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; + }; + + class domBool4x4; + + typedef daeSmartRef domBool4x4Ref; + typedef daeTArray domBool4x4_Array; + + class domBool4x4 : public daeElement + { + + protected: // Value + /** + * The domCg_bool4x4 value of the text data of this element. + */ + domCg_bool4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_bool4x4 reference of the _value array. + */ + domCg_bool4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_bool4x4 reference of the _value array. + */ + const domCg_bool4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_bool4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool4x4() : _value() {} + /** + * Destructor + */ + virtual ~domBool4x4() {} + /** + * Copy Constructor + */ + domBool4x4( const domBool4x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool4x4 &operator=( const domBool4x4 &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; + }; + + class domFloat; + + typedef daeSmartRef domFloatRef; + typedef daeTArray domFloat_Array; + + class domFloat : public daeElement + { + + protected: // Value + /** + * The domCg_float value of the text data of this element. + */ + domCg_float _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_float of the value. + */ + domCg_float getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_float val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat() : _value() {} + /** + * Destructor + */ + virtual ~domFloat() {} + /** + * Copy Constructor + */ + domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat &operator=( const domFloat &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; + }; + + class domFloat1; + + typedef daeSmartRef domFloat1Ref; + typedef daeTArray domFloat1_Array; + + class domFloat1 : public daeElement + { + + protected: // Value + /** + * The domCg_float1 value of the text data of this element. + */ + domCg_float1 _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_float1 of the value. + */ + domCg_float1 getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_float1 val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1() {} + /** + * Copy Constructor + */ + domFloat1( const domFloat1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1 &operator=( const domFloat1 &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; + }; + + class domFloat2; + + typedef daeSmartRef domFloat2Ref; + typedef daeTArray domFloat2_Array; + + class domFloat2 : public daeElement + { + + protected: // Value + /** + * The domCg_float2 value of the text data of this element. + */ + domCg_float2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float2 reference of the _value array. + */ + domCg_float2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float2 reference of the _value array. + */ + const domCg_float2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2() {} + /** + * Copy Constructor + */ + domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2 &operator=( const domFloat2 &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; + }; + + class domFloat3; + + typedef daeSmartRef domFloat3Ref; + typedef daeTArray domFloat3_Array; + + class domFloat3 : public daeElement + { + + protected: // Value + /** + * The domCg_float3 value of the text data of this element. + */ + domCg_float3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float3 reference of the _value array. + */ + domCg_float3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float3 reference of the _value array. + */ + const domCg_float3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3() {} + /** + * Copy Constructor + */ + domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3 &operator=( const domFloat3 &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; + }; + + class domFloat4; + + typedef daeSmartRef domFloat4Ref; + typedef daeTArray domFloat4_Array; + + class domFloat4 : public daeElement + { + + protected: // Value + /** + * The domCg_float4 value of the text data of this element. + */ + domCg_float4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float4 reference of the _value array. + */ + domCg_float4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float4 reference of the _value array. + */ + const domCg_float4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4() {} + /** + * Copy Constructor + */ + domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4 &operator=( const domFloat4 &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; + }; + + class domFloat1x1; + + typedef daeSmartRef domFloat1x1Ref; + typedef daeTArray domFloat1x1_Array; + + class domFloat1x1 : public daeElement + { + + protected: // Value + /** + * The domCg_float1x1 value of the text data of this element. + */ + domCg_float1x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float1x1 reference of the _value array. + */ + domCg_float1x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float1x1 reference of the _value array. + */ + const domCg_float1x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float1x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x1() {} + /** + * Copy Constructor + */ + domFloat1x1( const domFloat1x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x1 &operator=( const domFloat1x1 &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; + }; + + class domFloat1x2; + + typedef daeSmartRef domFloat1x2Ref; + typedef daeTArray domFloat1x2_Array; + + class domFloat1x2 : public daeElement + { + + protected: // Value + /** + * The domCg_float1x2 value of the text data of this element. + */ + domCg_float1x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float1x2 reference of the _value array. + */ + domCg_float1x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float1x2 reference of the _value array. + */ + const domCg_float1x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float1x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x2() {} + /** + * Copy Constructor + */ + domFloat1x2( const domFloat1x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x2 &operator=( const domFloat1x2 &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; + }; + + class domFloat1x3; + + typedef daeSmartRef domFloat1x3Ref; + typedef daeTArray domFloat1x3_Array; + + class domFloat1x3 : public daeElement + { + + protected: // Value + /** + * The domCg_float1x3 value of the text data of this element. + */ + domCg_float1x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float1x3 reference of the _value array. + */ + domCg_float1x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float1x3 reference of the _value array. + */ + const domCg_float1x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float1x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x3() {} + /** + * Copy Constructor + */ + domFloat1x3( const domFloat1x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x3 &operator=( const domFloat1x3 &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; + }; + + class domFloat1x4; + + typedef daeSmartRef domFloat1x4Ref; + typedef daeTArray domFloat1x4_Array; + + class domFloat1x4 : public daeElement + { + + protected: // Value + /** + * The domCg_float1x4 value of the text data of this element. + */ + domCg_float1x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float1x4 reference of the _value array. + */ + domCg_float1x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float1x4 reference of the _value array. + */ + const domCg_float1x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float1x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x4() {} + /** + * Copy Constructor + */ + domFloat1x4( const domFloat1x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x4 &operator=( const domFloat1x4 &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; + }; + + class domFloat2x1; + + typedef daeSmartRef domFloat2x1Ref; + typedef daeTArray domFloat2x1_Array; + + class domFloat2x1 : public daeElement + { + + protected: // Value + /** + * The domCg_float2x1 value of the text data of this element. + */ + domCg_float2x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float2x1 reference of the _value array. + */ + domCg_float2x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float2x1 reference of the _value array. + */ + const domCg_float2x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float2x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x1() {} + /** + * Copy Constructor + */ + domFloat2x1( const domFloat2x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x1 &operator=( const domFloat2x1 &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; + }; + + class domFloat2x2; + + typedef daeSmartRef domFloat2x2Ref; + typedef daeTArray domFloat2x2_Array; + + class domFloat2x2 : public daeElement + { + + protected: // Value + /** + * The domCg_float2x2 value of the text data of this element. + */ + domCg_float2x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float2x2 reference of the _value array. + */ + domCg_float2x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float2x2 reference of the _value array. + */ + const domCg_float2x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float2x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x2() {} + /** + * Copy Constructor + */ + domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x2 &operator=( const domFloat2x2 &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; + }; + + class domFloat2x3; + + typedef daeSmartRef domFloat2x3Ref; + typedef daeTArray domFloat2x3_Array; + + class domFloat2x3 : public daeElement + { + + protected: // Value + /** + * The domCg_float2x3 value of the text data of this element. + */ + domCg_float2x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float2x3 reference of the _value array. + */ + domCg_float2x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float2x3 reference of the _value array. + */ + const domCg_float2x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float2x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x3() {} + /** + * Copy Constructor + */ + domFloat2x3( const domFloat2x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x3 &operator=( const domFloat2x3 &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; + }; + + class domFloat2x4; + + typedef daeSmartRef domFloat2x4Ref; + typedef daeTArray domFloat2x4_Array; + + class domFloat2x4 : public daeElement + { + + protected: // Value + /** + * The domCg_float2x4 value of the text data of this element. + */ + domCg_float2x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float2x4 reference of the _value array. + */ + domCg_float2x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float2x4 reference of the _value array. + */ + const domCg_float2x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float2x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x4() {} + /** + * Copy Constructor + */ + domFloat2x4( const domFloat2x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x4 &operator=( const domFloat2x4 &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; + }; + + class domFloat3x1; + + typedef daeSmartRef domFloat3x1Ref; + typedef daeTArray domFloat3x1_Array; + + class domFloat3x1 : public daeElement + { + + protected: // Value + /** + * The domCg_float3x1 value of the text data of this element. + */ + domCg_float3x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float3x1 reference of the _value array. + */ + domCg_float3x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float3x1 reference of the _value array. + */ + const domCg_float3x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float3x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x1() {} + /** + * Copy Constructor + */ + domFloat3x1( const domFloat3x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x1 &operator=( const domFloat3x1 &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; + }; + + class domFloat3x2; + + typedef daeSmartRef domFloat3x2Ref; + typedef daeTArray domFloat3x2_Array; + + class domFloat3x2 : public daeElement + { + + protected: // Value + /** + * The domCg_float3x2 value of the text data of this element. + */ + domCg_float3x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float3x2 reference of the _value array. + */ + domCg_float3x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float3x2 reference of the _value array. + */ + const domCg_float3x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float3x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x2() {} + /** + * Copy Constructor + */ + domFloat3x2( const domFloat3x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x2 &operator=( const domFloat3x2 &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; + }; + + class domFloat3x3; + + typedef daeSmartRef domFloat3x3Ref; + typedef daeTArray domFloat3x3_Array; + + class domFloat3x3 : public daeElement + { + + protected: // Value + /** + * The domCg_float3x3 value of the text data of this element. + */ + domCg_float3x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float3x3 reference of the _value array. + */ + domCg_float3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float3x3 reference of the _value array. + */ + const domCg_float3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float3x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x3() {} + /** + * Copy Constructor + */ + domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x3 &operator=( const domFloat3x3 &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; + }; + + class domFloat3x4; + + typedef daeSmartRef domFloat3x4Ref; + typedef daeTArray domFloat3x4_Array; + + class domFloat3x4 : public daeElement + { + + protected: // Value + /** + * The domCg_float3x4 value of the text data of this element. + */ + domCg_float3x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float3x4 reference of the _value array. + */ + domCg_float3x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float3x4 reference of the _value array. + */ + const domCg_float3x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float3x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x4() {} + /** + * Copy Constructor + */ + domFloat3x4( const domFloat3x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x4 &operator=( const domFloat3x4 &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; + }; + + class domFloat4x1; + + typedef daeSmartRef domFloat4x1Ref; + typedef daeTArray domFloat4x1_Array; + + class domFloat4x1 : public daeElement + { + + protected: // Value + /** + * The domCg_float4x1 value of the text data of this element. + */ + domCg_float4x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float4x1 reference of the _value array. + */ + domCg_float4x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float4x1 reference of the _value array. + */ + const domCg_float4x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float4x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x1() {} + /** + * Copy Constructor + */ + domFloat4x1( const domFloat4x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x1 &operator=( const domFloat4x1 &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; + }; + + class domFloat4x2; + + typedef daeSmartRef domFloat4x2Ref; + typedef daeTArray domFloat4x2_Array; + + class domFloat4x2 : public daeElement + { + + protected: // Value + /** + * The domCg_float4x2 value of the text data of this element. + */ + domCg_float4x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float4x2 reference of the _value array. + */ + domCg_float4x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float4x2 reference of the _value array. + */ + const domCg_float4x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float4x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x2() {} + /** + * Copy Constructor + */ + domFloat4x2( const domFloat4x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x2 &operator=( const domFloat4x2 &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; + }; + + class domFloat4x3; + + typedef daeSmartRef domFloat4x3Ref; + typedef daeTArray domFloat4x3_Array; + + class domFloat4x3 : public daeElement + { + + protected: // Value + /** + * The domCg_float4x3 value of the text data of this element. + */ + domCg_float4x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float4x3 reference of the _value array. + */ + domCg_float4x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float4x3 reference of the _value array. + */ + const domCg_float4x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float4x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x3() {} + /** + * Copy Constructor + */ + domFloat4x3( const domFloat4x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x3 &operator=( const domFloat4x3 &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; + }; + + class domFloat4x4; + + typedef daeSmartRef domFloat4x4Ref; + typedef daeTArray domFloat4x4_Array; + + class domFloat4x4 : public daeElement + { + + protected: // Value + /** + * The domCg_float4x4 value of the text data of this element. + */ + domCg_float4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_float4x4 reference of the _value array. + */ + domCg_float4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_float4x4 reference of the _value array. + */ + const domCg_float4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_float4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x4() {} + /** + * Copy Constructor + */ + domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x4 &operator=( const domFloat4x4 &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; + }; + + class domInt; + + typedef daeSmartRef domIntRef; + typedef daeTArray domInt_Array; + + class domInt : public daeElement + { + + protected: // Value + /** + * The domCg_int value of the text data of this element. + */ + domCg_int _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_int of the value. + */ + domCg_int getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_int val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt() : _value() {} + /** + * Destructor + */ + virtual ~domInt() {} + /** + * Copy Constructor + */ + domInt( const domInt &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt &operator=( const domInt &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; + }; + + class domInt1; + + typedef daeSmartRef domInt1Ref; + typedef daeTArray domInt1_Array; + + class domInt1 : public daeElement + { + + protected: // Value + /** + * The domCg_int1 value of the text data of this element. + */ + domCg_int1 _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_int1 of the value. + */ + domCg_int1 getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_int1 val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt1() : _value() {} + /** + * Destructor + */ + virtual ~domInt1() {} + /** + * Copy Constructor + */ + domInt1( const domInt1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt1 &operator=( const domInt1 &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; + }; + + class domInt2; + + typedef daeSmartRef domInt2Ref; + typedef daeTArray domInt2_Array; + + class domInt2 : public daeElement + { + + protected: // Value + /** + * The domCg_int2 value of the text data of this element. + */ + domCg_int2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int2 reference of the _value array. + */ + domCg_int2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int2 reference of the _value array. + */ + const domCg_int2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt2() : _value() {} + /** + * Destructor + */ + virtual ~domInt2() {} + /** + * Copy Constructor + */ + domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt2 &operator=( const domInt2 &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; + }; + + class domInt3; + + typedef daeSmartRef domInt3Ref; + typedef daeTArray domInt3_Array; + + class domInt3 : public daeElement + { + + protected: // Value + /** + * The domCg_int3 value of the text data of this element. + */ + domCg_int3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int3 reference of the _value array. + */ + domCg_int3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int3 reference of the _value array. + */ + const domCg_int3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt3() : _value() {} + /** + * Destructor + */ + virtual ~domInt3() {} + /** + * Copy Constructor + */ + domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt3 &operator=( const domInt3 &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; + }; + + class domInt4; + + typedef daeSmartRef domInt4Ref; + typedef daeTArray domInt4_Array; + + class domInt4 : public daeElement + { + + protected: // Value + /** + * The domCg_int4 value of the text data of this element. + */ + domCg_int4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int4 reference of the _value array. + */ + domCg_int4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int4 reference of the _value array. + */ + const domCg_int4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt4() : _value() {} + /** + * Destructor + */ + virtual ~domInt4() {} + /** + * Copy Constructor + */ + domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt4 &operator=( const domInt4 &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; + }; + + class domInt1x1; + + typedef daeSmartRef domInt1x1Ref; + typedef daeTArray domInt1x1_Array; + + class domInt1x1 : public daeElement + { + + protected: // Value + /** + * The domCg_int1x1 value of the text data of this element. + */ + domCg_int1x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int1x1 reference of the _value array. + */ + domCg_int1x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int1x1 reference of the _value array. + */ + const domCg_int1x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int1x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt1x1() : _value() {} + /** + * Destructor + */ + virtual ~domInt1x1() {} + /** + * Copy Constructor + */ + domInt1x1( const domInt1x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt1x1 &operator=( const domInt1x1 &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; + }; + + class domInt1x2; + + typedef daeSmartRef domInt1x2Ref; + typedef daeTArray domInt1x2_Array; + + class domInt1x2 : public daeElement + { + + protected: // Value + /** + * The domCg_int1x2 value of the text data of this element. + */ + domCg_int1x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int1x2 reference of the _value array. + */ + domCg_int1x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int1x2 reference of the _value array. + */ + const domCg_int1x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int1x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt1x2() : _value() {} + /** + * Destructor + */ + virtual ~domInt1x2() {} + /** + * Copy Constructor + */ + domInt1x2( const domInt1x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt1x2 &operator=( const domInt1x2 &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; + }; + + class domInt1x3; + + typedef daeSmartRef domInt1x3Ref; + typedef daeTArray domInt1x3_Array; + + class domInt1x3 : public daeElement + { + + protected: // Value + /** + * The domCg_int1x3 value of the text data of this element. + */ + domCg_int1x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int1x3 reference of the _value array. + */ + domCg_int1x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int1x3 reference of the _value array. + */ + const domCg_int1x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int1x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt1x3() : _value() {} + /** + * Destructor + */ + virtual ~domInt1x3() {} + /** + * Copy Constructor + */ + domInt1x3( const domInt1x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt1x3 &operator=( const domInt1x3 &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; + }; + + class domInt1x4; + + typedef daeSmartRef domInt1x4Ref; + typedef daeTArray domInt1x4_Array; + + class domInt1x4 : public daeElement + { + + protected: // Value + /** + * The domCg_int1x4 value of the text data of this element. + */ + domCg_int1x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int1x4 reference of the _value array. + */ + domCg_int1x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int1x4 reference of the _value array. + */ + const domCg_int1x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int1x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt1x4() : _value() {} + /** + * Destructor + */ + virtual ~domInt1x4() {} + /** + * Copy Constructor + */ + domInt1x4( const domInt1x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt1x4 &operator=( const domInt1x4 &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; + }; + + class domInt2x1; + + typedef daeSmartRef domInt2x1Ref; + typedef daeTArray domInt2x1_Array; + + class domInt2x1 : public daeElement + { + + protected: // Value + /** + * The domCg_int2x1 value of the text data of this element. + */ + domCg_int2x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int2x1 reference of the _value array. + */ + domCg_int2x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int2x1 reference of the _value array. + */ + const domCg_int2x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int2x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt2x1() : _value() {} + /** + * Destructor + */ + virtual ~domInt2x1() {} + /** + * Copy Constructor + */ + domInt2x1( const domInt2x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt2x1 &operator=( const domInt2x1 &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; + }; + + class domInt2x2; + + typedef daeSmartRef domInt2x2Ref; + typedef daeTArray domInt2x2_Array; + + class domInt2x2 : public daeElement + { + + protected: // Value + /** + * The domCg_int2x2 value of the text data of this element. + */ + domCg_int2x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int2x2 reference of the _value array. + */ + domCg_int2x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int2x2 reference of the _value array. + */ + const domCg_int2x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int2x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt2x2() : _value() {} + /** + * Destructor + */ + virtual ~domInt2x2() {} + /** + * Copy Constructor + */ + domInt2x2( const domInt2x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt2x2 &operator=( const domInt2x2 &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; + }; + + class domInt2x3; + + typedef daeSmartRef domInt2x3Ref; + typedef daeTArray domInt2x3_Array; + + class domInt2x3 : public daeElement + { + + protected: // Value + /** + * The domCg_int2x3 value of the text data of this element. + */ + domCg_int2x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int2x3 reference of the _value array. + */ + domCg_int2x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int2x3 reference of the _value array. + */ + const domCg_int2x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int2x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt2x3() : _value() {} + /** + * Destructor + */ + virtual ~domInt2x3() {} + /** + * Copy Constructor + */ + domInt2x3( const domInt2x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt2x3 &operator=( const domInt2x3 &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; + }; + + class domInt2x4; + + typedef daeSmartRef domInt2x4Ref; + typedef daeTArray domInt2x4_Array; + + class domInt2x4 : public daeElement + { + + protected: // Value + /** + * The domCg_int2x4 value of the text data of this element. + */ + domCg_int2x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int2x4 reference of the _value array. + */ + domCg_int2x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int2x4 reference of the _value array. + */ + const domCg_int2x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int2x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt2x4() : _value() {} + /** + * Destructor + */ + virtual ~domInt2x4() {} + /** + * Copy Constructor + */ + domInt2x4( const domInt2x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt2x4 &operator=( const domInt2x4 &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; + }; + + class domInt3x1; + + typedef daeSmartRef domInt3x1Ref; + typedef daeTArray domInt3x1_Array; + + class domInt3x1 : public daeElement + { + + protected: // Value + /** + * The domCg_int3x1 value of the text data of this element. + */ + domCg_int3x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int3x1 reference of the _value array. + */ + domCg_int3x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int3x1 reference of the _value array. + */ + const domCg_int3x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int3x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt3x1() : _value() {} + /** + * Destructor + */ + virtual ~domInt3x1() {} + /** + * Copy Constructor + */ + domInt3x1( const domInt3x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt3x1 &operator=( const domInt3x1 &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; + }; + + class domInt3x2; + + typedef daeSmartRef domInt3x2Ref; + typedef daeTArray domInt3x2_Array; + + class domInt3x2 : public daeElement + { + + protected: // Value + /** + * The domCg_int3x2 value of the text data of this element. + */ + domCg_int3x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int3x2 reference of the _value array. + */ + domCg_int3x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int3x2 reference of the _value array. + */ + const domCg_int3x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int3x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt3x2() : _value() {} + /** + * Destructor + */ + virtual ~domInt3x2() {} + /** + * Copy Constructor + */ + domInt3x2( const domInt3x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt3x2 &operator=( const domInt3x2 &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; + }; + + class domInt3x3; + + typedef daeSmartRef domInt3x3Ref; + typedef daeTArray domInt3x3_Array; + + class domInt3x3 : public daeElement + { + + protected: // Value + /** + * The domCg_int3x3 value of the text data of this element. + */ + domCg_int3x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int3x3 reference of the _value array. + */ + domCg_int3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int3x3 reference of the _value array. + */ + const domCg_int3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int3x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt3x3() : _value() {} + /** + * Destructor + */ + virtual ~domInt3x3() {} + /** + * Copy Constructor + */ + domInt3x3( const domInt3x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt3x3 &operator=( const domInt3x3 &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; + }; + + class domInt3x4; + + typedef daeSmartRef domInt3x4Ref; + typedef daeTArray domInt3x4_Array; + + class domInt3x4 : public daeElement + { + + protected: // Value + /** + * The domCg_int3x4 value of the text data of this element. + */ + domCg_int3x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int3x4 reference of the _value array. + */ + domCg_int3x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int3x4 reference of the _value array. + */ + const domCg_int3x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int3x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt3x4() : _value() {} + /** + * Destructor + */ + virtual ~domInt3x4() {} + /** + * Copy Constructor + */ + domInt3x4( const domInt3x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt3x4 &operator=( const domInt3x4 &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; + }; + + class domInt4x1; + + typedef daeSmartRef domInt4x1Ref; + typedef daeTArray domInt4x1_Array; + + class domInt4x1 : public daeElement + { + + protected: // Value + /** + * The domCg_int4x1 value of the text data of this element. + */ + domCg_int4x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int4x1 reference of the _value array. + */ + domCg_int4x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int4x1 reference of the _value array. + */ + const domCg_int4x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int4x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt4x1() : _value() {} + /** + * Destructor + */ + virtual ~domInt4x1() {} + /** + * Copy Constructor + */ + domInt4x1( const domInt4x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt4x1 &operator=( const domInt4x1 &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; + }; + + class domInt4x2; + + typedef daeSmartRef domInt4x2Ref; + typedef daeTArray domInt4x2_Array; + + class domInt4x2 : public daeElement + { + + protected: // Value + /** + * The domCg_int4x2 value of the text data of this element. + */ + domCg_int4x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int4x2 reference of the _value array. + */ + domCg_int4x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int4x2 reference of the _value array. + */ + const domCg_int4x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int4x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt4x2() : _value() {} + /** + * Destructor + */ + virtual ~domInt4x2() {} + /** + * Copy Constructor + */ + domInt4x2( const domInt4x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt4x2 &operator=( const domInt4x2 &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; + }; + + class domInt4x3; + + typedef daeSmartRef domInt4x3Ref; + typedef daeTArray domInt4x3_Array; + + class domInt4x3 : public daeElement + { + + protected: // Value + /** + * The domCg_int4x3 value of the text data of this element. + */ + domCg_int4x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int4x3 reference of the _value array. + */ + domCg_int4x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int4x3 reference of the _value array. + */ + const domCg_int4x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int4x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt4x3() : _value() {} + /** + * Destructor + */ + virtual ~domInt4x3() {} + /** + * Copy Constructor + */ + domInt4x3( const domInt4x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt4x3 &operator=( const domInt4x3 &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; + }; + + class domInt4x4; + + typedef daeSmartRef domInt4x4Ref; + typedef daeTArray domInt4x4_Array; + + class domInt4x4 : public daeElement + { + + protected: // Value + /** + * The domCg_int4x4 value of the text data of this element. + */ + domCg_int4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_int4x4 reference of the _value array. + */ + domCg_int4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_int4x4 reference of the _value array. + */ + const domCg_int4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_int4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt4x4() : _value() {} + /** + * Destructor + */ + virtual ~domInt4x4() {} + /** + * Copy Constructor + */ + domInt4x4( const domInt4x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt4x4 &operator=( const domInt4x4 &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; + }; + + class domHalf; + + typedef daeSmartRef domHalfRef; + typedef daeTArray domHalf_Array; + + class domHalf : public daeElement + { + + protected: // Value + /** + * The domCg_half value of the text data of this element. + */ + domCg_half _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_half of the value. + */ + domCg_half getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_half val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf() : _value() {} + /** + * Destructor + */ + virtual ~domHalf() {} + /** + * Copy Constructor + */ + domHalf( const domHalf &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf &operator=( const domHalf &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; + }; + + class domHalf1; + + typedef daeSmartRef domHalf1Ref; + typedef daeTArray domHalf1_Array; + + class domHalf1 : public daeElement + { + + protected: // Value + /** + * The domCg_half1 value of the text data of this element. + */ + domCg_half1 _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_half1 of the value. + */ + domCg_half1 getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_half1 val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf1() : _value() {} + /** + * Destructor + */ + virtual ~domHalf1() {} + /** + * Copy Constructor + */ + domHalf1( const domHalf1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf1 &operator=( const domHalf1 &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; + }; + + class domHalf2; + + typedef daeSmartRef domHalf2Ref; + typedef daeTArray domHalf2_Array; + + class domHalf2 : public daeElement + { + + protected: // Value + /** + * The domCg_half2 value of the text data of this element. + */ + domCg_half2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half2 reference of the _value array. + */ + domCg_half2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half2 reference of the _value array. + */ + const domCg_half2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf2() : _value() {} + /** + * Destructor + */ + virtual ~domHalf2() {} + /** + * Copy Constructor + */ + domHalf2( const domHalf2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf2 &operator=( const domHalf2 &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; + }; + + class domHalf3; + + typedef daeSmartRef domHalf3Ref; + typedef daeTArray domHalf3_Array; + + class domHalf3 : public daeElement + { + + protected: // Value + /** + * The domCg_half3 value of the text data of this element. + */ + domCg_half3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half3 reference of the _value array. + */ + domCg_half3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half3 reference of the _value array. + */ + const domCg_half3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf3() : _value() {} + /** + * Destructor + */ + virtual ~domHalf3() {} + /** + * Copy Constructor + */ + domHalf3( const domHalf3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf3 &operator=( const domHalf3 &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; + }; + + class domHalf4; + + typedef daeSmartRef domHalf4Ref; + typedef daeTArray domHalf4_Array; + + class domHalf4 : public daeElement + { + + protected: // Value + /** + * The domCg_half4 value of the text data of this element. + */ + domCg_half4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half4 reference of the _value array. + */ + domCg_half4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half4 reference of the _value array. + */ + const domCg_half4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf4() : _value() {} + /** + * Destructor + */ + virtual ~domHalf4() {} + /** + * Copy Constructor + */ + domHalf4( const domHalf4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf4 &operator=( const domHalf4 &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; + }; + + class domHalf1x1; + + typedef daeSmartRef domHalf1x1Ref; + typedef daeTArray domHalf1x1_Array; + + class domHalf1x1 : public daeElement + { + + protected: // Value + /** + * The domCg_half1x1 value of the text data of this element. + */ + domCg_half1x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half1x1 reference of the _value array. + */ + domCg_half1x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half1x1 reference of the _value array. + */ + const domCg_half1x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half1x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf1x1() : _value() {} + /** + * Destructor + */ + virtual ~domHalf1x1() {} + /** + * Copy Constructor + */ + domHalf1x1( const domHalf1x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf1x1 &operator=( const domHalf1x1 &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; + }; + + class domHalf1x2; + + typedef daeSmartRef domHalf1x2Ref; + typedef daeTArray domHalf1x2_Array; + + class domHalf1x2 : public daeElement + { + + protected: // Value + /** + * The domCg_half1x2 value of the text data of this element. + */ + domCg_half1x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half1x2 reference of the _value array. + */ + domCg_half1x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half1x2 reference of the _value array. + */ + const domCg_half1x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half1x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf1x2() : _value() {} + /** + * Destructor + */ + virtual ~domHalf1x2() {} + /** + * Copy Constructor + */ + domHalf1x2( const domHalf1x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf1x2 &operator=( const domHalf1x2 &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; + }; + + class domHalf1x3; + + typedef daeSmartRef domHalf1x3Ref; + typedef daeTArray domHalf1x3_Array; + + class domHalf1x3 : public daeElement + { + + protected: // Value + /** + * The domCg_half1x3 value of the text data of this element. + */ + domCg_half1x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half1x3 reference of the _value array. + */ + domCg_half1x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half1x3 reference of the _value array. + */ + const domCg_half1x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half1x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf1x3() : _value() {} + /** + * Destructor + */ + virtual ~domHalf1x3() {} + /** + * Copy Constructor + */ + domHalf1x3( const domHalf1x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf1x3 &operator=( const domHalf1x3 &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; + }; + + class domHalf1x4; + + typedef daeSmartRef domHalf1x4Ref; + typedef daeTArray domHalf1x4_Array; + + class domHalf1x4 : public daeElement + { + + protected: // Value + /** + * The domCg_half1x4 value of the text data of this element. + */ + domCg_half1x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half1x4 reference of the _value array. + */ + domCg_half1x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half1x4 reference of the _value array. + */ + const domCg_half1x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half1x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf1x4() : _value() {} + /** + * Destructor + */ + virtual ~domHalf1x4() {} + /** + * Copy Constructor + */ + domHalf1x4( const domHalf1x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf1x4 &operator=( const domHalf1x4 &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; + }; + + class domHalf2x1; + + typedef daeSmartRef domHalf2x1Ref; + typedef daeTArray domHalf2x1_Array; + + class domHalf2x1 : public daeElement + { + + protected: // Value + /** + * The domCg_half2x1 value of the text data of this element. + */ + domCg_half2x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half2x1 reference of the _value array. + */ + domCg_half2x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half2x1 reference of the _value array. + */ + const domCg_half2x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half2x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf2x1() : _value() {} + /** + * Destructor + */ + virtual ~domHalf2x1() {} + /** + * Copy Constructor + */ + domHalf2x1( const domHalf2x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf2x1 &operator=( const domHalf2x1 &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; + }; + + class domHalf2x2; + + typedef daeSmartRef domHalf2x2Ref; + typedef daeTArray domHalf2x2_Array; + + class domHalf2x2 : public daeElement + { + + protected: // Value + /** + * The domCg_half2x2 value of the text data of this element. + */ + domCg_half2x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half2x2 reference of the _value array. + */ + domCg_half2x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half2x2 reference of the _value array. + */ + const domCg_half2x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half2x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf2x2() : _value() {} + /** + * Destructor + */ + virtual ~domHalf2x2() {} + /** + * Copy Constructor + */ + domHalf2x2( const domHalf2x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf2x2 &operator=( const domHalf2x2 &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; + }; + + class domHalf2x3; + + typedef daeSmartRef domHalf2x3Ref; + typedef daeTArray domHalf2x3_Array; + + class domHalf2x3 : public daeElement + { + + protected: // Value + /** + * The domCg_half2x3 value of the text data of this element. + */ + domCg_half2x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half2x3 reference of the _value array. + */ + domCg_half2x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half2x3 reference of the _value array. + */ + const domCg_half2x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half2x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf2x3() : _value() {} + /** + * Destructor + */ + virtual ~domHalf2x3() {} + /** + * Copy Constructor + */ + domHalf2x3( const domHalf2x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf2x3 &operator=( const domHalf2x3 &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; + }; + + class domHalf2x4; + + typedef daeSmartRef domHalf2x4Ref; + typedef daeTArray domHalf2x4_Array; + + class domHalf2x4 : public daeElement + { + + protected: // Value + /** + * The domCg_half2x4 value of the text data of this element. + */ + domCg_half2x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half2x4 reference of the _value array. + */ + domCg_half2x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half2x4 reference of the _value array. + */ + const domCg_half2x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half2x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf2x4() : _value() {} + /** + * Destructor + */ + virtual ~domHalf2x4() {} + /** + * Copy Constructor + */ + domHalf2x4( const domHalf2x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf2x4 &operator=( const domHalf2x4 &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; + }; + + class domHalf3x1; + + typedef daeSmartRef domHalf3x1Ref; + typedef daeTArray domHalf3x1_Array; + + class domHalf3x1 : public daeElement + { + + protected: // Value + /** + * The domCg_half3x1 value of the text data of this element. + */ + domCg_half3x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half3x1 reference of the _value array. + */ + domCg_half3x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half3x1 reference of the _value array. + */ + const domCg_half3x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half3x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf3x1() : _value() {} + /** + * Destructor + */ + virtual ~domHalf3x1() {} + /** + * Copy Constructor + */ + domHalf3x1( const domHalf3x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf3x1 &operator=( const domHalf3x1 &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; + }; + + class domHalf3x2; + + typedef daeSmartRef domHalf3x2Ref; + typedef daeTArray domHalf3x2_Array; + + class domHalf3x2 : public daeElement + { + + protected: // Value + /** + * The domCg_half3x2 value of the text data of this element. + */ + domCg_half3x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half3x2 reference of the _value array. + */ + domCg_half3x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half3x2 reference of the _value array. + */ + const domCg_half3x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half3x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf3x2() : _value() {} + /** + * Destructor + */ + virtual ~domHalf3x2() {} + /** + * Copy Constructor + */ + domHalf3x2( const domHalf3x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf3x2 &operator=( const domHalf3x2 &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; + }; + + class domHalf3x3; + + typedef daeSmartRef domHalf3x3Ref; + typedef daeTArray domHalf3x3_Array; + + class domHalf3x3 : public daeElement + { + + protected: // Value + /** + * The domCg_half3x3 value of the text data of this element. + */ + domCg_half3x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half3x3 reference of the _value array. + */ + domCg_half3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half3x3 reference of the _value array. + */ + const domCg_half3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half3x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf3x3() : _value() {} + /** + * Destructor + */ + virtual ~domHalf3x3() {} + /** + * Copy Constructor + */ + domHalf3x3( const domHalf3x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf3x3 &operator=( const domHalf3x3 &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; + }; + + class domHalf3x4; + + typedef daeSmartRef domHalf3x4Ref; + typedef daeTArray domHalf3x4_Array; + + class domHalf3x4 : public daeElement + { + + protected: // Value + /** + * The domCg_half3x4 value of the text data of this element. + */ + domCg_half3x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half3x4 reference of the _value array. + */ + domCg_half3x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half3x4 reference of the _value array. + */ + const domCg_half3x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half3x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf3x4() : _value() {} + /** + * Destructor + */ + virtual ~domHalf3x4() {} + /** + * Copy Constructor + */ + domHalf3x4( const domHalf3x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf3x4 &operator=( const domHalf3x4 &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; + }; + + class domHalf4x1; + + typedef daeSmartRef domHalf4x1Ref; + typedef daeTArray domHalf4x1_Array; + + class domHalf4x1 : public daeElement + { + + protected: // Value + /** + * The domCg_half4x1 value of the text data of this element. + */ + domCg_half4x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half4x1 reference of the _value array. + */ + domCg_half4x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half4x1 reference of the _value array. + */ + const domCg_half4x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half4x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf4x1() : _value() {} + /** + * Destructor + */ + virtual ~domHalf4x1() {} + /** + * Copy Constructor + */ + domHalf4x1( const domHalf4x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf4x1 &operator=( const domHalf4x1 &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; + }; + + class domHalf4x2; + + typedef daeSmartRef domHalf4x2Ref; + typedef daeTArray domHalf4x2_Array; + + class domHalf4x2 : public daeElement + { + + protected: // Value + /** + * The domCg_half4x2 value of the text data of this element. + */ + domCg_half4x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half4x2 reference of the _value array. + */ + domCg_half4x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half4x2 reference of the _value array. + */ + const domCg_half4x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half4x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf4x2() : _value() {} + /** + * Destructor + */ + virtual ~domHalf4x2() {} + /** + * Copy Constructor + */ + domHalf4x2( const domHalf4x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf4x2 &operator=( const domHalf4x2 &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; + }; + + class domHalf4x3; + + typedef daeSmartRef domHalf4x3Ref; + typedef daeTArray domHalf4x3_Array; + + class domHalf4x3 : public daeElement + { + + protected: // Value + /** + * The domCg_half4x3 value of the text data of this element. + */ + domCg_half4x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half4x3 reference of the _value array. + */ + domCg_half4x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half4x3 reference of the _value array. + */ + const domCg_half4x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half4x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf4x3() : _value() {} + /** + * Destructor + */ + virtual ~domHalf4x3() {} + /** + * Copy Constructor + */ + domHalf4x3( const domHalf4x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf4x3 &operator=( const domHalf4x3 &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; + }; + + class domHalf4x4; + + typedef daeSmartRef domHalf4x4Ref; + typedef daeTArray domHalf4x4_Array; + + class domHalf4x4 : public daeElement + { + + protected: // Value + /** + * The domCg_half4x4 value of the text data of this element. + */ + domCg_half4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_half4x4 reference of the _value array. + */ + domCg_half4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_half4x4 reference of the _value array. + */ + const domCg_half4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_half4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHalf4x4() : _value() {} + /** + * Destructor + */ + virtual ~domHalf4x4() {} + /** + * Copy Constructor + */ + domHalf4x4( const domHalf4x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHalf4x4 &operator=( const domHalf4x4 &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; + }; + + class domFixed; + + typedef daeSmartRef domFixedRef; + typedef daeTArray domFixed_Array; + + class domFixed : public daeElement + { + + protected: // Value + /** + * The domCg_fixed value of the text data of this element. + */ + domCg_fixed _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_fixed of the value. + */ + domCg_fixed getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_fixed val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed() : _value() {} + /** + * Destructor + */ + virtual ~domFixed() {} + /** + * Copy Constructor + */ + domFixed( const domFixed &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed &operator=( const domFixed &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; + }; + + class domFixed1; + + typedef daeSmartRef domFixed1Ref; + typedef daeTArray domFixed1_Array; + + class domFixed1 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed1 value of the text data of this element. + */ + domCg_fixed1 _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domCg_fixed1 of the value. + */ + domCg_fixed1 getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domCg_fixed1 val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed1() : _value() {} + /** + * Destructor + */ + virtual ~domFixed1() {} + /** + * Copy Constructor + */ + domFixed1( const domFixed1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed1 &operator=( const domFixed1 &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; + }; + + class domFixed2; + + typedef daeSmartRef domFixed2Ref; + typedef daeTArray domFixed2_Array; + + class domFixed2 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed2 value of the text data of this element. + */ + domCg_fixed2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed2 reference of the _value array. + */ + domCg_fixed2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed2 reference of the _value array. + */ + const domCg_fixed2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed2() : _value() {} + /** + * Destructor + */ + virtual ~domFixed2() {} + /** + * Copy Constructor + */ + domFixed2( const domFixed2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed2 &operator=( const domFixed2 &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; + }; + + class domFixed3; + + typedef daeSmartRef domFixed3Ref; + typedef daeTArray domFixed3_Array; + + class domFixed3 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed3 value of the text data of this element. + */ + domCg_fixed3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed3 reference of the _value array. + */ + domCg_fixed3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed3 reference of the _value array. + */ + const domCg_fixed3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed3() : _value() {} + /** + * Destructor + */ + virtual ~domFixed3() {} + /** + * Copy Constructor + */ + domFixed3( const domFixed3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed3 &operator=( const domFixed3 &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; + }; + + class domFixed4; + + typedef daeSmartRef domFixed4Ref; + typedef daeTArray domFixed4_Array; + + class domFixed4 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed4 value of the text data of this element. + */ + domCg_fixed4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed4 reference of the _value array. + */ + domCg_fixed4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed4 reference of the _value array. + */ + const domCg_fixed4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed4() : _value() {} + /** + * Destructor + */ + virtual ~domFixed4() {} + /** + * Copy Constructor + */ + domFixed4( const domFixed4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed4 &operator=( const domFixed4 &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; + }; + + class domFixed1x1; + + typedef daeSmartRef domFixed1x1Ref; + typedef daeTArray domFixed1x1_Array; + + class domFixed1x1 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed1x1 value of the text data of this element. + */ + domCg_fixed1x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed1x1 reference of the _value array. + */ + domCg_fixed1x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed1x1 reference of the _value array. + */ + const domCg_fixed1x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed1x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed1x1() : _value() {} + /** + * Destructor + */ + virtual ~domFixed1x1() {} + /** + * Copy Constructor + */ + domFixed1x1( const domFixed1x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed1x1 &operator=( const domFixed1x1 &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; + }; + + class domFixed1x2; + + typedef daeSmartRef domFixed1x2Ref; + typedef daeTArray domFixed1x2_Array; + + class domFixed1x2 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed1x2 value of the text data of this element. + */ + domCg_fixed1x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed1x2 reference of the _value array. + */ + domCg_fixed1x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed1x2 reference of the _value array. + */ + const domCg_fixed1x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed1x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed1x2() : _value() {} + /** + * Destructor + */ + virtual ~domFixed1x2() {} + /** + * Copy Constructor + */ + domFixed1x2( const domFixed1x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed1x2 &operator=( const domFixed1x2 &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; + }; + + class domFixed1x3; + + typedef daeSmartRef domFixed1x3Ref; + typedef daeTArray domFixed1x3_Array; + + class domFixed1x3 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed1x3 value of the text data of this element. + */ + domCg_fixed1x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed1x3 reference of the _value array. + */ + domCg_fixed1x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed1x3 reference of the _value array. + */ + const domCg_fixed1x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed1x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed1x3() : _value() {} + /** + * Destructor + */ + virtual ~domFixed1x3() {} + /** + * Copy Constructor + */ + domFixed1x3( const domFixed1x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed1x3 &operator=( const domFixed1x3 &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; + }; + + class domFixed1x4; + + typedef daeSmartRef domFixed1x4Ref; + typedef daeTArray domFixed1x4_Array; + + class domFixed1x4 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed1x4 value of the text data of this element. + */ + domCg_fixed1x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed1x4 reference of the _value array. + */ + domCg_fixed1x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed1x4 reference of the _value array. + */ + const domCg_fixed1x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed1x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed1x4() : _value() {} + /** + * Destructor + */ + virtual ~domFixed1x4() {} + /** + * Copy Constructor + */ + domFixed1x4( const domFixed1x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed1x4 &operator=( const domFixed1x4 &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; + }; + + class domFixed2x1; + + typedef daeSmartRef domFixed2x1Ref; + typedef daeTArray domFixed2x1_Array; + + class domFixed2x1 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed2x1 value of the text data of this element. + */ + domCg_fixed2x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed2x1 reference of the _value array. + */ + domCg_fixed2x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed2x1 reference of the _value array. + */ + const domCg_fixed2x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed2x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed2x1() : _value() {} + /** + * Destructor + */ + virtual ~domFixed2x1() {} + /** + * Copy Constructor + */ + domFixed2x1( const domFixed2x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed2x1 &operator=( const domFixed2x1 &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; + }; + + class domFixed2x2; + + typedef daeSmartRef domFixed2x2Ref; + typedef daeTArray domFixed2x2_Array; + + class domFixed2x2 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed2x2 value of the text data of this element. + */ + domCg_fixed2x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed2x2 reference of the _value array. + */ + domCg_fixed2x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed2x2 reference of the _value array. + */ + const domCg_fixed2x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed2x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed2x2() : _value() {} + /** + * Destructor + */ + virtual ~domFixed2x2() {} + /** + * Copy Constructor + */ + domFixed2x2( const domFixed2x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed2x2 &operator=( const domFixed2x2 &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; + }; + + class domFixed2x3; + + typedef daeSmartRef domFixed2x3Ref; + typedef daeTArray domFixed2x3_Array; + + class domFixed2x3 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed2x3 value of the text data of this element. + */ + domCg_fixed2x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed2x3 reference of the _value array. + */ + domCg_fixed2x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed2x3 reference of the _value array. + */ + const domCg_fixed2x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed2x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed2x3() : _value() {} + /** + * Destructor + */ + virtual ~domFixed2x3() {} + /** + * Copy Constructor + */ + domFixed2x3( const domFixed2x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed2x3 &operator=( const domFixed2x3 &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; + }; + + class domFixed2x4; + + typedef daeSmartRef domFixed2x4Ref; + typedef daeTArray domFixed2x4_Array; + + class domFixed2x4 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed2x4 value of the text data of this element. + */ + domCg_fixed2x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed2x4 reference of the _value array. + */ + domCg_fixed2x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed2x4 reference of the _value array. + */ + const domCg_fixed2x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed2x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed2x4() : _value() {} + /** + * Destructor + */ + virtual ~domFixed2x4() {} + /** + * Copy Constructor + */ + domFixed2x4( const domFixed2x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed2x4 &operator=( const domFixed2x4 &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; + }; + + class domFixed3x1; + + typedef daeSmartRef domFixed3x1Ref; + typedef daeTArray domFixed3x1_Array; + + class domFixed3x1 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed3x1 value of the text data of this element. + */ + domCg_fixed3x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed3x1 reference of the _value array. + */ + domCg_fixed3x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed3x1 reference of the _value array. + */ + const domCg_fixed3x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed3x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed3x1() : _value() {} + /** + * Destructor + */ + virtual ~domFixed3x1() {} + /** + * Copy Constructor + */ + domFixed3x1( const domFixed3x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed3x1 &operator=( const domFixed3x1 &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; + }; + + class domFixed3x2; + + typedef daeSmartRef domFixed3x2Ref; + typedef daeTArray domFixed3x2_Array; + + class domFixed3x2 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed3x2 value of the text data of this element. + */ + domCg_fixed3x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed3x2 reference of the _value array. + */ + domCg_fixed3x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed3x2 reference of the _value array. + */ + const domCg_fixed3x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed3x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed3x2() : _value() {} + /** + * Destructor + */ + virtual ~domFixed3x2() {} + /** + * Copy Constructor + */ + domFixed3x2( const domFixed3x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed3x2 &operator=( const domFixed3x2 &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; + }; + + class domFixed3x3; + + typedef daeSmartRef domFixed3x3Ref; + typedef daeTArray domFixed3x3_Array; + + class domFixed3x3 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed3x3 value of the text data of this element. + */ + domCg_fixed3x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed3x3 reference of the _value array. + */ + domCg_fixed3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed3x3 reference of the _value array. + */ + const domCg_fixed3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed3x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed3x3() : _value() {} + /** + * Destructor + */ + virtual ~domFixed3x3() {} + /** + * Copy Constructor + */ + domFixed3x3( const domFixed3x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed3x3 &operator=( const domFixed3x3 &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; + }; + + class domFixed3x4; + + typedef daeSmartRef domFixed3x4Ref; + typedef daeTArray domFixed3x4_Array; + + class domFixed3x4 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed3x4 value of the text data of this element. + */ + domCg_fixed3x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed3x4 reference of the _value array. + */ + domCg_fixed3x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed3x4 reference of the _value array. + */ + const domCg_fixed3x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed3x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed3x4() : _value() {} + /** + * Destructor + */ + virtual ~domFixed3x4() {} + /** + * Copy Constructor + */ + domFixed3x4( const domFixed3x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed3x4 &operator=( const domFixed3x4 &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; + }; + + class domFixed4x1; + + typedef daeSmartRef domFixed4x1Ref; + typedef daeTArray domFixed4x1_Array; + + class domFixed4x1 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed4x1 value of the text data of this element. + */ + domCg_fixed4x1 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed4x1 reference of the _value array. + */ + domCg_fixed4x1 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed4x1 reference of the _value array. + */ + const domCg_fixed4x1 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed4x1 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed4x1() : _value() {} + /** + * Destructor + */ + virtual ~domFixed4x1() {} + /** + * Copy Constructor + */ + domFixed4x1( const domFixed4x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed4x1 &operator=( const domFixed4x1 &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; + }; + + class domFixed4x2; + + typedef daeSmartRef domFixed4x2Ref; + typedef daeTArray domFixed4x2_Array; + + class domFixed4x2 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed4x2 value of the text data of this element. + */ + domCg_fixed4x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed4x2 reference of the _value array. + */ + domCg_fixed4x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed4x2 reference of the _value array. + */ + const domCg_fixed4x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed4x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed4x2() : _value() {} + /** + * Destructor + */ + virtual ~domFixed4x2() {} + /** + * Copy Constructor + */ + domFixed4x2( const domFixed4x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed4x2 &operator=( const domFixed4x2 &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; + }; + + class domFixed4x3; + + typedef daeSmartRef domFixed4x3Ref; + typedef daeTArray domFixed4x3_Array; + + class domFixed4x3 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed4x3 value of the text data of this element. + */ + domCg_fixed4x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed4x3 reference of the _value array. + */ + domCg_fixed4x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed4x3 reference of the _value array. + */ + const domCg_fixed4x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed4x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed4x3() : _value() {} + /** + * Destructor + */ + virtual ~domFixed4x3() {} + /** + * Copy Constructor + */ + domFixed4x3( const domFixed4x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed4x3 &operator=( const domFixed4x3 &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; + }; + + class domFixed4x4; + + typedef daeSmartRef domFixed4x4Ref; + typedef daeTArray domFixed4x4_Array; + + class domFixed4x4 : public daeElement + { + + protected: // Value + /** + * The domCg_fixed4x4 value of the text data of this element. + */ + domCg_fixed4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domCg_fixed4x4 reference of the _value array. + */ + domCg_fixed4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domCg_fixed4x4 reference of the _value array. + */ + const domCg_fixed4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domCg_fixed4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFixed4x4() : _value() {} + /** + * Destructor + */ + virtual ~domFixed4x4() {} + /** + * Copy Constructor + */ + domFixed4x4( const domFixed4x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFixed4x4 &operator=( const domFixed4x4 &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; + }; + + class domString; + + typedef daeSmartRef domStringRef; + typedef daeTArray domString_Array; + + class domString : public daeElement + { + + protected: // Value + /** + * The ::xsString value of the text data of this element. + */ + ::xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domString() : _value() {} + /** + * Destructor + */ + virtual ~domString() {} + /** + * Copy Constructor + */ + domString( const domString &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domString &operator=( const domString &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; + }; + + class domEnum; + + typedef daeSmartRef domEnumRef; + typedef daeTArray domEnum_Array; + + class domEnum : public daeElement + { + + protected: // Value + /** + * The domGl_enumeration value of the text data of this element. + */ + domGl_enumeration _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGl_enumeration of the value. + */ + domGl_enumeration getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGl_enumeration val ) { _value = val; } + + protected: + /** + * Constructor + */ + domEnum() : _value() {} + /** + * Destructor + */ + virtual ~domEnum() {} + /** + * Copy Constructor + */ + domEnum( const domEnum &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domEnum &operator=( const domEnum &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: // Elements + domBoolRef elemBool; + domBool1Ref elemBool1; + domBool2Ref elemBool2; + domBool3Ref elemBool3; + domBool4Ref elemBool4; + domBool1x1Ref elemBool1x1; + domBool1x2Ref elemBool1x2; + domBool1x3Ref elemBool1x3; + domBool1x4Ref elemBool1x4; + domBool2x1Ref elemBool2x1; + domBool2x2Ref elemBool2x2; + domBool2x3Ref elemBool2x3; + domBool2x4Ref elemBool2x4; + domBool3x1Ref elemBool3x1; + domBool3x2Ref elemBool3x2; + domBool3x3Ref elemBool3x3; + domBool3x4Ref elemBool3x4; + domBool4x1Ref elemBool4x1; + domBool4x2Ref elemBool4x2; + domBool4x3Ref elemBool4x3; + domBool4x4Ref elemBool4x4; + domFloatRef elemFloat; + domFloat1Ref elemFloat1; + domFloat2Ref elemFloat2; + domFloat3Ref elemFloat3; + domFloat4Ref elemFloat4; + domFloat1x1Ref elemFloat1x1; + domFloat1x2Ref elemFloat1x2; + domFloat1x3Ref elemFloat1x3; + domFloat1x4Ref elemFloat1x4; + domFloat2x1Ref elemFloat2x1; + domFloat2x2Ref elemFloat2x2; + domFloat2x3Ref elemFloat2x3; + domFloat2x4Ref elemFloat2x4; + domFloat3x1Ref elemFloat3x1; + domFloat3x2Ref elemFloat3x2; + domFloat3x3Ref elemFloat3x3; + domFloat3x4Ref elemFloat3x4; + domFloat4x1Ref elemFloat4x1; + domFloat4x2Ref elemFloat4x2; + domFloat4x3Ref elemFloat4x3; + domFloat4x4Ref elemFloat4x4; + domIntRef elemInt; + domInt1Ref elemInt1; + domInt2Ref elemInt2; + domInt3Ref elemInt3; + domInt4Ref elemInt4; + domInt1x1Ref elemInt1x1; + domInt1x2Ref elemInt1x2; + domInt1x3Ref elemInt1x3; + domInt1x4Ref elemInt1x4; + domInt2x1Ref elemInt2x1; + domInt2x2Ref elemInt2x2; + domInt2x3Ref elemInt2x3; + domInt2x4Ref elemInt2x4; + domInt3x1Ref elemInt3x1; + domInt3x2Ref elemInt3x2; + domInt3x3Ref elemInt3x3; + domInt3x4Ref elemInt3x4; + domInt4x1Ref elemInt4x1; + domInt4x2Ref elemInt4x2; + domInt4x3Ref elemInt4x3; + domInt4x4Ref elemInt4x4; + domHalfRef elemHalf; + domHalf1Ref elemHalf1; + domHalf2Ref elemHalf2; + domHalf3Ref elemHalf3; + domHalf4Ref elemHalf4; + domHalf1x1Ref elemHalf1x1; + domHalf1x2Ref elemHalf1x2; + domHalf1x3Ref elemHalf1x3; + domHalf1x4Ref elemHalf1x4; + domHalf2x1Ref elemHalf2x1; + domHalf2x2Ref elemHalf2x2; + domHalf2x3Ref elemHalf2x3; + domHalf2x4Ref elemHalf2x4; + domHalf3x1Ref elemHalf3x1; + domHalf3x2Ref elemHalf3x2; + domHalf3x3Ref elemHalf3x3; + domHalf3x4Ref elemHalf3x4; + domHalf4x1Ref elemHalf4x1; + domHalf4x2Ref elemHalf4x2; + domHalf4x3Ref elemHalf4x3; + domHalf4x4Ref elemHalf4x4; + domFixedRef elemFixed; + domFixed1Ref elemFixed1; + domFixed2Ref elemFixed2; + domFixed3Ref elemFixed3; + domFixed4Ref elemFixed4; + domFixed1x1Ref elemFixed1x1; + domFixed1x2Ref elemFixed1x2; + domFixed1x3Ref elemFixed1x3; + domFixed1x4Ref elemFixed1x4; + domFixed2x1Ref elemFixed2x1; + domFixed2x2Ref elemFixed2x2; + domFixed2x3Ref elemFixed2x3; + domFixed2x4Ref elemFixed2x4; + domFixed3x1Ref elemFixed3x1; + domFixed3x2Ref elemFixed3x2; + domFixed3x3Ref elemFixed3x3; + domFixed3x4Ref elemFixed3x4; + domFixed4x1Ref elemFixed4x1; + domFixed4x2Ref elemFixed4x2; + domFixed4x3Ref elemFixed4x3; + domFixed4x4Ref elemFixed4x4; + domCg_surface_typeRef elemSurface; + domCg_sampler1DRef elemSampler1D; + domCg_sampler2DRef elemSampler2D; + domCg_sampler3DRef elemSampler3D; + domCg_samplerRECTRef elemSamplerRECT; + domCg_samplerCUBERef elemSamplerCUBE; + domCg_samplerDEPTHRef elemSamplerDEPTH; + domStringRef elemString; + domEnumRef elemEnum; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the bool element. + * @return a daeSmartRef to the bool element. + */ + const domBoolRef getBool() const { return elemBool; } + /** + * Gets the bool1 element. + * @return a daeSmartRef to the bool1 element. + */ + const domBool1Ref getBool1() const { return elemBool1; } + /** + * Gets the bool2 element. + * @return a daeSmartRef to the bool2 element. + */ + const domBool2Ref getBool2() const { return elemBool2; } + /** + * Gets the bool3 element. + * @return a daeSmartRef to the bool3 element. + */ + const domBool3Ref getBool3() const { return elemBool3; } + /** + * Gets the bool4 element. + * @return a daeSmartRef to the bool4 element. + */ + const domBool4Ref getBool4() const { return elemBool4; } + /** + * Gets the bool1x1 element. + * @return a daeSmartRef to the bool1x1 element. + */ + const domBool1x1Ref getBool1x1() const { return elemBool1x1; } + /** + * Gets the bool1x2 element. + * @return a daeSmartRef to the bool1x2 element. + */ + const domBool1x2Ref getBool1x2() const { return elemBool1x2; } + /** + * Gets the bool1x3 element. + * @return a daeSmartRef to the bool1x3 element. + */ + const domBool1x3Ref getBool1x3() const { return elemBool1x3; } + /** + * Gets the bool1x4 element. + * @return a daeSmartRef to the bool1x4 element. + */ + const domBool1x4Ref getBool1x4() const { return elemBool1x4; } + /** + * Gets the bool2x1 element. + * @return a daeSmartRef to the bool2x1 element. + */ + const domBool2x1Ref getBool2x1() const { return elemBool2x1; } + /** + * Gets the bool2x2 element. + * @return a daeSmartRef to the bool2x2 element. + */ + const domBool2x2Ref getBool2x2() const { return elemBool2x2; } + /** + * Gets the bool2x3 element. + * @return a daeSmartRef to the bool2x3 element. + */ + const domBool2x3Ref getBool2x3() const { return elemBool2x3; } + /** + * Gets the bool2x4 element. + * @return a daeSmartRef to the bool2x4 element. + */ + const domBool2x4Ref getBool2x4() const { return elemBool2x4; } + /** + * Gets the bool3x1 element. + * @return a daeSmartRef to the bool3x1 element. + */ + const domBool3x1Ref getBool3x1() const { return elemBool3x1; } + /** + * Gets the bool3x2 element. + * @return a daeSmartRef to the bool3x2 element. + */ + const domBool3x2Ref getBool3x2() const { return elemBool3x2; } + /** + * Gets the bool3x3 element. + * @return a daeSmartRef to the bool3x3 element. + */ + const domBool3x3Ref getBool3x3() const { return elemBool3x3; } + /** + * Gets the bool3x4 element. + * @return a daeSmartRef to the bool3x4 element. + */ + const domBool3x4Ref getBool3x4() const { return elemBool3x4; } + /** + * Gets the bool4x1 element. + * @return a daeSmartRef to the bool4x1 element. + */ + const domBool4x1Ref getBool4x1() const { return elemBool4x1; } + /** + * Gets the bool4x2 element. + * @return a daeSmartRef to the bool4x2 element. + */ + const domBool4x2Ref getBool4x2() const { return elemBool4x2; } + /** + * Gets the bool4x3 element. + * @return a daeSmartRef to the bool4x3 element. + */ + const domBool4x3Ref getBool4x3() const { return elemBool4x3; } + /** + * Gets the bool4x4 element. + * @return a daeSmartRef to the bool4x4 element. + */ + const domBool4x4Ref getBool4x4() const { return elemBool4x4; } + /** + * Gets the float element. + * @return a daeSmartRef to the float element. + */ + const domFloatRef getFloat() const { return elemFloat; } + /** + * Gets the float1 element. + * @return a daeSmartRef to the float1 element. + */ + const domFloat1Ref getFloat1() const { return elemFloat1; } + /** + * Gets the float2 element. + * @return a daeSmartRef to the float2 element. + */ + const domFloat2Ref getFloat2() const { return elemFloat2; } + /** + * Gets the float3 element. + * @return a daeSmartRef to the float3 element. + */ + const domFloat3Ref getFloat3() const { return elemFloat3; } + /** + * Gets the float4 element. + * @return a daeSmartRef to the float4 element. + */ + const domFloat4Ref getFloat4() const { return elemFloat4; } + /** + * Gets the float1x1 element. + * @return a daeSmartRef to the float1x1 element. + */ + const domFloat1x1Ref getFloat1x1() const { return elemFloat1x1; } + /** + * Gets the float1x2 element. + * @return a daeSmartRef to the float1x2 element. + */ + const domFloat1x2Ref getFloat1x2() const { return elemFloat1x2; } + /** + * Gets the float1x3 element. + * @return a daeSmartRef to the float1x3 element. + */ + const domFloat1x3Ref getFloat1x3() const { return elemFloat1x3; } + /** + * Gets the float1x4 element. + * @return a daeSmartRef to the float1x4 element. + */ + const domFloat1x4Ref getFloat1x4() const { return elemFloat1x4; } + /** + * Gets the float2x1 element. + * @return a daeSmartRef to the float2x1 element. + */ + const domFloat2x1Ref getFloat2x1() const { return elemFloat2x1; } + /** + * Gets the float2x2 element. + * @return a daeSmartRef to the float2x2 element. + */ + const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } + /** + * Gets the float2x3 element. + * @return a daeSmartRef to the float2x3 element. + */ + const domFloat2x3Ref getFloat2x3() const { return elemFloat2x3; } + /** + * Gets the float2x4 element. + * @return a daeSmartRef to the float2x4 element. + */ + const domFloat2x4Ref getFloat2x4() const { return elemFloat2x4; } + /** + * Gets the float3x1 element. + * @return a daeSmartRef to the float3x1 element. + */ + const domFloat3x1Ref getFloat3x1() const { return elemFloat3x1; } + /** + * Gets the float3x2 element. + * @return a daeSmartRef to the float3x2 element. + */ + const domFloat3x2Ref getFloat3x2() const { return elemFloat3x2; } + /** + * Gets the float3x3 element. + * @return a daeSmartRef to the float3x3 element. + */ + const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } + /** + * Gets the float3x4 element. + * @return a daeSmartRef to the float3x4 element. + */ + const domFloat3x4Ref getFloat3x4() const { return elemFloat3x4; } + /** + * Gets the float4x1 element. + * @return a daeSmartRef to the float4x1 element. + */ + const domFloat4x1Ref getFloat4x1() const { return elemFloat4x1; } + /** + * Gets the float4x2 element. + * @return a daeSmartRef to the float4x2 element. + */ + const domFloat4x2Ref getFloat4x2() const { return elemFloat4x2; } + /** + * Gets the float4x3 element. + * @return a daeSmartRef to the float4x3 element. + */ + const domFloat4x3Ref getFloat4x3() const { return elemFloat4x3; } + /** + * Gets the float4x4 element. + * @return a daeSmartRef to the float4x4 element. + */ + const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } + /** + * Gets the int element. + * @return a daeSmartRef to the int element. + */ + const domIntRef getInt() const { return elemInt; } + /** + * Gets the int1 element. + * @return a daeSmartRef to the int1 element. + */ + const domInt1Ref getInt1() const { return elemInt1; } + /** + * Gets the int2 element. + * @return a daeSmartRef to the int2 element. + */ + const domInt2Ref getInt2() const { return elemInt2; } + /** + * Gets the int3 element. + * @return a daeSmartRef to the int3 element. + */ + const domInt3Ref getInt3() const { return elemInt3; } + /** + * Gets the int4 element. + * @return a daeSmartRef to the int4 element. + */ + const domInt4Ref getInt4() const { return elemInt4; } + /** + * Gets the int1x1 element. + * @return a daeSmartRef to the int1x1 element. + */ + const domInt1x1Ref getInt1x1() const { return elemInt1x1; } + /** + * Gets the int1x2 element. + * @return a daeSmartRef to the int1x2 element. + */ + const domInt1x2Ref getInt1x2() const { return elemInt1x2; } + /** + * Gets the int1x3 element. + * @return a daeSmartRef to the int1x3 element. + */ + const domInt1x3Ref getInt1x3() const { return elemInt1x3; } + /** + * Gets the int1x4 element. + * @return a daeSmartRef to the int1x4 element. + */ + const domInt1x4Ref getInt1x4() const { return elemInt1x4; } + /** + * Gets the int2x1 element. + * @return a daeSmartRef to the int2x1 element. + */ + const domInt2x1Ref getInt2x1() const { return elemInt2x1; } + /** + * Gets the int2x2 element. + * @return a daeSmartRef to the int2x2 element. + */ + const domInt2x2Ref getInt2x2() const { return elemInt2x2; } + /** + * Gets the int2x3 element. + * @return a daeSmartRef to the int2x3 element. + */ + const domInt2x3Ref getInt2x3() const { return elemInt2x3; } + /** + * Gets the int2x4 element. + * @return a daeSmartRef to the int2x4 element. + */ + const domInt2x4Ref getInt2x4() const { return elemInt2x4; } + /** + * Gets the int3x1 element. + * @return a daeSmartRef to the int3x1 element. + */ + const domInt3x1Ref getInt3x1() const { return elemInt3x1; } + /** + * Gets the int3x2 element. + * @return a daeSmartRef to the int3x2 element. + */ + const domInt3x2Ref getInt3x2() const { return elemInt3x2; } + /** + * Gets the int3x3 element. + * @return a daeSmartRef to the int3x3 element. + */ + const domInt3x3Ref getInt3x3() const { return elemInt3x3; } + /** + * Gets the int3x4 element. + * @return a daeSmartRef to the int3x4 element. + */ + const domInt3x4Ref getInt3x4() const { return elemInt3x4; } + /** + * Gets the int4x1 element. + * @return a daeSmartRef to the int4x1 element. + */ + const domInt4x1Ref getInt4x1() const { return elemInt4x1; } + /** + * Gets the int4x2 element. + * @return a daeSmartRef to the int4x2 element. + */ + const domInt4x2Ref getInt4x2() const { return elemInt4x2; } + /** + * Gets the int4x3 element. + * @return a daeSmartRef to the int4x3 element. + */ + const domInt4x3Ref getInt4x3() const { return elemInt4x3; } + /** + * Gets the int4x4 element. + * @return a daeSmartRef to the int4x4 element. + */ + const domInt4x4Ref getInt4x4() const { return elemInt4x4; } + /** + * Gets the half element. + * @return a daeSmartRef to the half element. + */ + const domHalfRef getHalf() const { return elemHalf; } + /** + * Gets the half1 element. + * @return a daeSmartRef to the half1 element. + */ + const domHalf1Ref getHalf1() const { return elemHalf1; } + /** + * Gets the half2 element. + * @return a daeSmartRef to the half2 element. + */ + const domHalf2Ref getHalf2() const { return elemHalf2; } + /** + * Gets the half3 element. + * @return a daeSmartRef to the half3 element. + */ + const domHalf3Ref getHalf3() const { return elemHalf3; } + /** + * Gets the half4 element. + * @return a daeSmartRef to the half4 element. + */ + const domHalf4Ref getHalf4() const { return elemHalf4; } + /** + * Gets the half1x1 element. + * @return a daeSmartRef to the half1x1 element. + */ + const domHalf1x1Ref getHalf1x1() const { return elemHalf1x1; } + /** + * Gets the half1x2 element. + * @return a daeSmartRef to the half1x2 element. + */ + const domHalf1x2Ref getHalf1x2() const { return elemHalf1x2; } + /** + * Gets the half1x3 element. + * @return a daeSmartRef to the half1x3 element. + */ + const domHalf1x3Ref getHalf1x3() const { return elemHalf1x3; } + /** + * Gets the half1x4 element. + * @return a daeSmartRef to the half1x4 element. + */ + const domHalf1x4Ref getHalf1x4() const { return elemHalf1x4; } + /** + * Gets the half2x1 element. + * @return a daeSmartRef to the half2x1 element. + */ + const domHalf2x1Ref getHalf2x1() const { return elemHalf2x1; } + /** + * Gets the half2x2 element. + * @return a daeSmartRef to the half2x2 element. + */ + const domHalf2x2Ref getHalf2x2() const { return elemHalf2x2; } + /** + * Gets the half2x3 element. + * @return a daeSmartRef to the half2x3 element. + */ + const domHalf2x3Ref getHalf2x3() const { return elemHalf2x3; } + /** + * Gets the half2x4 element. + * @return a daeSmartRef to the half2x4 element. + */ + const domHalf2x4Ref getHalf2x4() const { return elemHalf2x4; } + /** + * Gets the half3x1 element. + * @return a daeSmartRef to the half3x1 element. + */ + const domHalf3x1Ref getHalf3x1() const { return elemHalf3x1; } + /** + * Gets the half3x2 element. + * @return a daeSmartRef to the half3x2 element. + */ + const domHalf3x2Ref getHalf3x2() const { return elemHalf3x2; } + /** + * Gets the half3x3 element. + * @return a daeSmartRef to the half3x3 element. + */ + const domHalf3x3Ref getHalf3x3() const { return elemHalf3x3; } + /** + * Gets the half3x4 element. + * @return a daeSmartRef to the half3x4 element. + */ + const domHalf3x4Ref getHalf3x4() const { return elemHalf3x4; } + /** + * Gets the half4x1 element. + * @return a daeSmartRef to the half4x1 element. + */ + const domHalf4x1Ref getHalf4x1() const { return elemHalf4x1; } + /** + * Gets the half4x2 element. + * @return a daeSmartRef to the half4x2 element. + */ + const domHalf4x2Ref getHalf4x2() const { return elemHalf4x2; } + /** + * Gets the half4x3 element. + * @return a daeSmartRef to the half4x3 element. + */ + const domHalf4x3Ref getHalf4x3() const { return elemHalf4x3; } + /** + * Gets the half4x4 element. + * @return a daeSmartRef to the half4x4 element. + */ + const domHalf4x4Ref getHalf4x4() const { return elemHalf4x4; } + /** + * Gets the fixed element. + * @return a daeSmartRef to the fixed element. + */ + const domFixedRef getFixed() const { return elemFixed; } + /** + * Gets the fixed1 element. + * @return a daeSmartRef to the fixed1 element. + */ + const domFixed1Ref getFixed1() const { return elemFixed1; } + /** + * Gets the fixed2 element. + * @return a daeSmartRef to the fixed2 element. + */ + const domFixed2Ref getFixed2() const { return elemFixed2; } + /** + * Gets the fixed3 element. + * @return a daeSmartRef to the fixed3 element. + */ + const domFixed3Ref getFixed3() const { return elemFixed3; } + /** + * Gets the fixed4 element. + * @return a daeSmartRef to the fixed4 element. + */ + const domFixed4Ref getFixed4() const { return elemFixed4; } + /** + * Gets the fixed1x1 element. + * @return a daeSmartRef to the fixed1x1 element. + */ + const domFixed1x1Ref getFixed1x1() const { return elemFixed1x1; } + /** + * Gets the fixed1x2 element. + * @return a daeSmartRef to the fixed1x2 element. + */ + const domFixed1x2Ref getFixed1x2() const { return elemFixed1x2; } + /** + * Gets the fixed1x3 element. + * @return a daeSmartRef to the fixed1x3 element. + */ + const domFixed1x3Ref getFixed1x3() const { return elemFixed1x3; } + /** + * Gets the fixed1x4 element. + * @return a daeSmartRef to the fixed1x4 element. + */ + const domFixed1x4Ref getFixed1x4() const { return elemFixed1x4; } + /** + * Gets the fixed2x1 element. + * @return a daeSmartRef to the fixed2x1 element. + */ + const domFixed2x1Ref getFixed2x1() const { return elemFixed2x1; } + /** + * Gets the fixed2x2 element. + * @return a daeSmartRef to the fixed2x2 element. + */ + const domFixed2x2Ref getFixed2x2() const { return elemFixed2x2; } + /** + * Gets the fixed2x3 element. + * @return a daeSmartRef to the fixed2x3 element. + */ + const domFixed2x3Ref getFixed2x3() const { return elemFixed2x3; } + /** + * Gets the fixed2x4 element. + * @return a daeSmartRef to the fixed2x4 element. + */ + const domFixed2x4Ref getFixed2x4() const { return elemFixed2x4; } + /** + * Gets the fixed3x1 element. + * @return a daeSmartRef to the fixed3x1 element. + */ + const domFixed3x1Ref getFixed3x1() const { return elemFixed3x1; } + /** + * Gets the fixed3x2 element. + * @return a daeSmartRef to the fixed3x2 element. + */ + const domFixed3x2Ref getFixed3x2() const { return elemFixed3x2; } + /** + * Gets the fixed3x3 element. + * @return a daeSmartRef to the fixed3x3 element. + */ + const domFixed3x3Ref getFixed3x3() const { return elemFixed3x3; } + /** + * Gets the fixed3x4 element. + * @return a daeSmartRef to the fixed3x4 element. + */ + const domFixed3x4Ref getFixed3x4() const { return elemFixed3x4; } + /** + * Gets the fixed4x1 element. + * @return a daeSmartRef to the fixed4x1 element. + */ + const domFixed4x1Ref getFixed4x1() const { return elemFixed4x1; } + /** + * Gets the fixed4x2 element. + * @return a daeSmartRef to the fixed4x2 element. + */ + const domFixed4x2Ref getFixed4x2() const { return elemFixed4x2; } + /** + * Gets the fixed4x3 element. + * @return a daeSmartRef to the fixed4x3 element. + */ + const domFixed4x3Ref getFixed4x3() const { return elemFixed4x3; } + /** + * Gets the fixed4x4 element. + * @return a daeSmartRef to the fixed4x4 element. + */ + const domFixed4x4Ref getFixed4x4() const { return elemFixed4x4; } + /** + * Gets the surface element. + * @return a daeSmartRef to the surface element. + */ + const domCg_surface_typeRef getSurface() const { return elemSurface; } + /** + * Gets the sampler1D element. + * @return a daeSmartRef to the sampler1D element. + */ + const domCg_sampler1DRef getSampler1D() const { return elemSampler1D; } + /** + * Gets the sampler2D element. + * @return a daeSmartRef to the sampler2D element. + */ + const domCg_sampler2DRef getSampler2D() const { return elemSampler2D; } + /** + * Gets the sampler3D element. + * @return a daeSmartRef to the sampler3D element. + */ + const domCg_sampler3DRef getSampler3D() const { return elemSampler3D; } + /** + * Gets the samplerRECT element. + * @return a daeSmartRef to the samplerRECT element. + */ + const domCg_samplerRECTRef getSamplerRECT() const { return elemSamplerRECT; } + /** + * Gets the samplerCUBE element. + * @return a daeSmartRef to the samplerCUBE element. + */ + const domCg_samplerCUBERef getSamplerCUBE() const { return elemSamplerCUBE; } + /** + * Gets the samplerDEPTH element. + * @return a daeSmartRef to the samplerDEPTH element. + */ + const domCg_samplerDEPTHRef getSamplerDEPTH() const { return elemSamplerDEPTH; } + /** + * Gets the string element. + * @return a daeSmartRef to the string element. + */ + const domStringRef getString() const { return elemString; } + /** + * Gets the enum element. + * @return a daeSmartRef to the enum element. + */ + const domEnumRef getEnum() const { return elemEnum; } + /** + * 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 + */ + domCg_param_type() : elemBool(), elemBool1(), elemBool2(), elemBool3(), elemBool4(), elemBool1x1(), elemBool1x2(), elemBool1x3(), elemBool1x4(), elemBool2x1(), elemBool2x2(), elemBool2x3(), elemBool2x4(), elemBool3x1(), elemBool3x2(), elemBool3x3(), elemBool3x4(), elemBool4x1(), elemBool4x2(), elemBool4x3(), elemBool4x4(), elemFloat(), elemFloat1(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat1x1(), elemFloat1x2(), elemFloat1x3(), elemFloat1x4(), elemFloat2x1(), elemFloat2x2(), elemFloat2x3(), elemFloat2x4(), elemFloat3x1(), elemFloat3x2(), elemFloat3x3(), elemFloat3x4(), elemFloat4x1(), elemFloat4x2(), elemFloat4x3(), elemFloat4x4(), elemInt(), elemInt1(), elemInt2(), elemInt3(), elemInt4(), elemInt1x1(), elemInt1x2(), elemInt1x3(), elemInt1x4(), elemInt2x1(), elemInt2x2(), elemInt2x3(), elemInt2x4(), elemInt3x1(), elemInt3x2(), elemInt3x3(), elemInt3x4(), elemInt4x1(), elemInt4x2(), elemInt4x3(), elemInt4x4(), elemHalf(), elemHalf1(), elemHalf2(), elemHalf3(), elemHalf4(), elemHalf1x1(), elemHalf1x2(), elemHalf1x3(), elemHalf1x4(), elemHalf2x1(), elemHalf2x2(), elemHalf2x3(), elemHalf2x4(), elemHalf3x1(), elemHalf3x2(), elemHalf3x3(), elemHalf3x4(), elemHalf4x1(), elemHalf4x2(), elemHalf4x3(), elemHalf4x4(), elemFixed(), elemFixed1(), elemFixed2(), elemFixed3(), elemFixed4(), elemFixed1x1(), elemFixed1x2(), elemFixed1x3(), elemFixed1x4(), elemFixed2x1(), elemFixed2x2(), elemFixed2x3(), elemFixed2x4(), elemFixed3x1(), elemFixed3x2(), elemFixed3x3(), elemFixed3x4(), elemFixed4x1(), elemFixed4x2(), elemFixed4x3(), elemFixed4x4(), elemSurface(), elemSampler1D(), elemSampler2D(), elemSampler3D(), elemSamplerRECT(), elemSamplerCUBE(), elemSamplerDEPTH(), elemString(), elemEnum() {} + /** + * Destructor + */ + virtual ~domCg_param_type() {} + /** + * Copy Constructor + */ + domCg_param_type( const domCg_param_type &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_param_type &operator=( const domCg_param_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler1D.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler1D.h new file mode 100644 index 000000000..dc25e4340 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler1D.h @@ -0,0 +1,88 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_sampler1D_h__ +#define __domCg_sampler1D_h__ + +#include +#include + +#include + +class domCg_sampler1D_complexType : public domFx_sampler1D_common_complexType +{ + +protected: + /** + * Constructor + */ + domCg_sampler1D_complexType() {} + /** + * Destructor + */ + virtual ~domCg_sampler1D_complexType() {} + /** + * Copy Constructor + */ + domCg_sampler1D_complexType( const domCg_sampler1D_complexType &cpy ) : domFx_sampler1D_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_sampler1D_complexType &operator=( const domCg_sampler1D_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_sampler1D_complexType. + */ +class domCg_sampler1D : public daeElement, public domCg_sampler1D_complexType +{ +protected: + /** + * Constructor + */ + domCg_sampler1D() {} + /** + * Destructor + */ + virtual ~domCg_sampler1D() {} + /** + * Copy Constructor + */ + domCg_sampler1D( const domCg_sampler1D &cpy ) : daeElement(), domCg_sampler1D_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_sampler1D &operator=( const domCg_sampler1D &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler2D.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler2D.h new file mode 100644 index 000000000..a83b4f72a --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler2D.h @@ -0,0 +1,88 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_sampler2D_h__ +#define __domCg_sampler2D_h__ + +#include +#include + +#include + +class domCg_sampler2D_complexType : public domFx_sampler2D_common_complexType +{ + +protected: + /** + * Constructor + */ + domCg_sampler2D_complexType() {} + /** + * Destructor + */ + virtual ~domCg_sampler2D_complexType() {} + /** + * Copy Constructor + */ + domCg_sampler2D_complexType( const domCg_sampler2D_complexType &cpy ) : domFx_sampler2D_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_sampler2D_complexType &operator=( const domCg_sampler2D_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_sampler2D_complexType. + */ +class domCg_sampler2D : public daeElement, public domCg_sampler2D_complexType +{ +protected: + /** + * Constructor + */ + domCg_sampler2D() {} + /** + * Destructor + */ + virtual ~domCg_sampler2D() {} + /** + * Copy Constructor + */ + domCg_sampler2D( const domCg_sampler2D &cpy ) : daeElement(), domCg_sampler2D_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_sampler2D &operator=( const domCg_sampler2D &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler3D.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler3D.h new file mode 100644 index 000000000..a7f3ebc1b --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler3D.h @@ -0,0 +1,88 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_sampler3D_h__ +#define __domCg_sampler3D_h__ + +#include +#include + +#include + +class domCg_sampler3D_complexType : public domFx_sampler3D_common_complexType +{ + +protected: + /** + * Constructor + */ + domCg_sampler3D_complexType() {} + /** + * Destructor + */ + virtual ~domCg_sampler3D_complexType() {} + /** + * Copy Constructor + */ + domCg_sampler3D_complexType( const domCg_sampler3D_complexType &cpy ) : domFx_sampler3D_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_sampler3D_complexType &operator=( const domCg_sampler3D_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_sampler3D_complexType. + */ +class domCg_sampler3D : public daeElement, public domCg_sampler3D_complexType +{ +protected: + /** + * Constructor + */ + domCg_sampler3D() {} + /** + * Destructor + */ + virtual ~domCg_sampler3D() {} + /** + * Copy Constructor + */ + domCg_sampler3D( const domCg_sampler3D &cpy ) : daeElement(), domCg_sampler3D_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_sampler3D &operator=( const domCg_sampler3D &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerCUBE.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerCUBE.h new file mode 100644 index 000000000..6cfcd7f0e --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerCUBE.h @@ -0,0 +1,88 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_samplerCUBE_h__ +#define __domCg_samplerCUBE_h__ + +#include +#include + +#include + +class domCg_samplerCUBE_complexType : public domFx_samplerCUBE_common_complexType +{ + +protected: + /** + * Constructor + */ + domCg_samplerCUBE_complexType() {} + /** + * Destructor + */ + virtual ~domCg_samplerCUBE_complexType() {} + /** + * Copy Constructor + */ + domCg_samplerCUBE_complexType( const domCg_samplerCUBE_complexType &cpy ) : domFx_samplerCUBE_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_samplerCUBE_complexType &operator=( const domCg_samplerCUBE_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_samplerCUBE_complexType. + */ +class domCg_samplerCUBE : public daeElement, public domCg_samplerCUBE_complexType +{ +protected: + /** + * Constructor + */ + domCg_samplerCUBE() {} + /** + * Destructor + */ + virtual ~domCg_samplerCUBE() {} + /** + * Copy Constructor + */ + domCg_samplerCUBE( const domCg_samplerCUBE &cpy ) : daeElement(), domCg_samplerCUBE_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_samplerCUBE &operator=( const domCg_samplerCUBE &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerDEPTH.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerDEPTH.h new file mode 100644 index 000000000..3eba4e8e3 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerDEPTH.h @@ -0,0 +1,88 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_samplerDEPTH_h__ +#define __domCg_samplerDEPTH_h__ + +#include +#include + +#include + +class domCg_samplerDEPTH_complexType : public domFx_samplerDEPTH_common_complexType +{ + +protected: + /** + * Constructor + */ + domCg_samplerDEPTH_complexType() {} + /** + * Destructor + */ + virtual ~domCg_samplerDEPTH_complexType() {} + /** + * Copy Constructor + */ + domCg_samplerDEPTH_complexType( const domCg_samplerDEPTH_complexType &cpy ) : domFx_samplerDEPTH_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_samplerDEPTH_complexType &operator=( const domCg_samplerDEPTH_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_samplerDEPTH_complexType. + */ +class domCg_samplerDEPTH : public daeElement, public domCg_samplerDEPTH_complexType +{ +protected: + /** + * Constructor + */ + domCg_samplerDEPTH() {} + /** + * Destructor + */ + virtual ~domCg_samplerDEPTH() {} + /** + * Copy Constructor + */ + domCg_samplerDEPTH( const domCg_samplerDEPTH &cpy ) : daeElement(), domCg_samplerDEPTH_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_samplerDEPTH &operator=( const domCg_samplerDEPTH &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerRECT.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerRECT.h new file mode 100644 index 000000000..81645886d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerRECT.h @@ -0,0 +1,88 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_samplerRECT_h__ +#define __domCg_samplerRECT_h__ + +#include +#include + +#include + +class domCg_samplerRECT_complexType : public domFx_samplerRECT_common_complexType +{ + +protected: + /** + * Constructor + */ + domCg_samplerRECT_complexType() {} + /** + * Destructor + */ + virtual ~domCg_samplerRECT_complexType() {} + /** + * Copy Constructor + */ + domCg_samplerRECT_complexType( const domCg_samplerRECT_complexType &cpy ) : domFx_samplerRECT_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_samplerRECT_complexType &operator=( const domCg_samplerRECT_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_samplerRECT_complexType. + */ +class domCg_samplerRECT : public daeElement, public domCg_samplerRECT_complexType +{ +protected: + /** + * Constructor + */ + domCg_samplerRECT() {} + /** + * Destructor + */ + virtual ~domCg_samplerRECT() {} + /** + * Copy Constructor + */ + domCg_samplerRECT( const domCg_samplerRECT &cpy ) : daeElement(), domCg_samplerRECT_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_samplerRECT &operator=( const domCg_samplerRECT &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setarray_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setarray_type.h new file mode 100644 index 000000000..23d99ca8e --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setarray_type.h @@ -0,0 +1,168 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_setarray_type_h__ +#define __domCg_setarray_type_h__ + +#include +#include + +#include +#include +#include + +/** + * Creates a parameter of a one-dimensional array type. + */ +class domCg_setarray_type_complexType +{ +protected: // Attribute +/** + * The length attribute specifies the length of the array. + */ + xsPositiveInteger attrLength; + +protected: // Elements + domCg_param_type_Array elemCg_param_type_array; +/** + * Nested array elements allow you to create multidemensional arrays. @see + * domArray + */ + domCg_setarray_type_Array elemArray_array; +/** + * The usertype element allows you to create arrays of usertypes. @see domUsertype + */ + domCg_setuser_type_Array elemUsertype_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the length attribute. + * @return Returns a xsPositiveInteger of the length attribute. + */ + xsPositiveInteger getLength() const { return attrLength; } + /** + * Sets the length attribute. + * @param atLength The new value for the length attribute. + */ + void setLength( xsPositiveInteger atLength ) { attrLength = atLength; } + + /** + * Gets the cg_param_type element array. + * @return Returns a reference to the array of cg_param_type elements. + */ + domCg_param_type_Array &getCg_param_type_array() { return elemCg_param_type_array; } + /** + * Gets the cg_param_type element array. + * @return Returns a constant reference to the array of cg_param_type elements. + */ + const domCg_param_type_Array &getCg_param_type_array() const { return elemCg_param_type_array; } + /** + * Gets the array element array. + * @return Returns a reference to the array of array elements. + */ + domCg_setarray_type_Array &getArray_array() { return elemArray_array; } + /** + * Gets the array element array. + * @return Returns a constant reference to the array of array elements. + */ + const domCg_setarray_type_Array &getArray_array() const { return elemArray_array; } + /** + * Gets the usertype element array. + * @return Returns a reference to the array of usertype elements. + */ + domCg_setuser_type_Array &getUsertype_array() { return elemUsertype_array; } + /** + * Gets the usertype element array. + * @return Returns a constant reference to the array of usertype elements. + */ + const domCg_setuser_type_Array &getUsertype_array() const { return elemUsertype_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 + */ + domCg_setarray_type_complexType() : attrLength(), elemCg_param_type_array(), elemArray_array(), elemUsertype_array() {} + /** + * Destructor + */ + virtual ~domCg_setarray_type_complexType() {} + /** + * Copy Constructor + */ + domCg_setarray_type_complexType( const domCg_setarray_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_setarray_type_complexType &operator=( const domCg_setarray_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_setarray_type_complexType. + */ +class domCg_setarray_type : public daeElement, public domCg_setarray_type_complexType +{ +protected: + /** + * Constructor + */ + domCg_setarray_type() {} + /** + * Destructor + */ + virtual ~domCg_setarray_type() {} + /** + * Copy Constructor + */ + domCg_setarray_type( const domCg_setarray_type &cpy ) : daeElement(), domCg_setarray_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_setarray_type &operator=( const domCg_setarray_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam.h new file mode 100644 index 000000000..d92e048c4 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam.h @@ -0,0 +1,162 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_setparam_h__ +#define __domCg_setparam_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * Assigns a new value to a previously defined parameter. + */ +class domCg_setparam_complexType +{ +protected: // Attributes + domCg_identifier attrRef; + xsNCName attrProgram; + +protected: // Elements + domCg_param_typeRef elemCg_param_type; + domCg_setuser_typeRef elemUsertype; + domCg_setarray_typeRef elemArray; + domCg_connect_paramRef elemConnect_param; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a domCg_identifier of the ref attribute. + */ + domCg_identifier getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( domCg_identifier atRef ) { attrRef = atRef; } + + /** + * Gets the program attribute. + * @return Returns a xsNCName of the program attribute. + */ + xsNCName getProgram() const { return attrProgram; } + /** + * Sets the program attribute. + * @param atProgram The new value for the program attribute. + */ + void setProgram( xsNCName atProgram ) { attrProgram = atProgram; } + + /** + * Gets the cg_param_type element. + * @return a daeSmartRef to the cg_param_type element. + */ + const domCg_param_typeRef getCg_param_type() const { return elemCg_param_type; } + /** + * Gets the usertype element. + * @return a daeSmartRef to the usertype element. + */ + const domCg_setuser_typeRef getUsertype() const { return elemUsertype; } + /** + * Gets the array element. + * @return a daeSmartRef to the array element. + */ + const domCg_setarray_typeRef getArray() const { return elemArray; } + /** + * Gets the connect_param element. + * @return a daeSmartRef to the connect_param element. + */ + const domCg_connect_paramRef getConnect_param() const { return elemConnect_param; } + /** + * 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 + */ + domCg_setparam_complexType() : attrRef(), attrProgram(), elemCg_param_type(), elemUsertype(), elemArray(), elemConnect_param() {} + /** + * Destructor + */ + virtual ~domCg_setparam_complexType() {} + /** + * Copy Constructor + */ + domCg_setparam_complexType( const domCg_setparam_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_setparam_complexType &operator=( const domCg_setparam_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_setparam_complexType. + */ +class domCg_setparam : public daeElement, public domCg_setparam_complexType +{ +protected: + /** + * Constructor + */ + domCg_setparam() {} + /** + * Destructor + */ + virtual ~domCg_setparam() {} + /** + * Copy Constructor + */ + domCg_setparam( const domCg_setparam &cpy ) : daeElement(), domCg_setparam_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_setparam &operator=( const domCg_setparam &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam_simple.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam_simple.h new file mode 100644 index 000000000..e523f8726 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam_simple.h @@ -0,0 +1,122 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_setparam_simple_h__ +#define __domCg_setparam_simple_h__ + +#include +#include + +#include +#include + +class domCg_setparam_simple_complexType +{ +protected: // Attribute + domCg_identifier attrRef; + +protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domCg_param_typeRef elemCg_param_type; + +public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a domCg_identifier of the ref attribute. + */ + domCg_identifier getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( domCg_identifier atRef ) { attrRef = atRef; } + + /** + * 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 cg_param_type element. + * @return a daeSmartRef to the cg_param_type element. + */ + const domCg_param_typeRef getCg_param_type() const { return elemCg_param_type; } +protected: + /** + * Constructor + */ + domCg_setparam_simple_complexType() : attrRef(), elemAnnotate_array(), elemCg_param_type() {} + /** + * Destructor + */ + virtual ~domCg_setparam_simple_complexType() {} + /** + * Copy Constructor + */ + domCg_setparam_simple_complexType( const domCg_setparam_simple_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_setparam_simple_complexType &operator=( const domCg_setparam_simple_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_setparam_simple_complexType. + */ +class domCg_setparam_simple : public daeElement, public domCg_setparam_simple_complexType +{ +protected: + /** + * Constructor + */ + domCg_setparam_simple() {} + /** + * Destructor + */ + virtual ~domCg_setparam_simple() {} + /** + * Copy Constructor + */ + domCg_setparam_simple( const domCg_setparam_simple &cpy ) : daeElement(), domCg_setparam_simple_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_setparam_simple &operator=( const domCg_setparam_simple &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setuser_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setuser_type.h new file mode 100644 index 000000000..c6967653d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setuser_type.h @@ -0,0 +1,170 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_setuser_type_h__ +#define __domCg_setuser_type_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * Creates an instance of a structured class. + */ +class domCg_setuser_type_complexType +{ +protected: // Attribute + domCg_identifier attrName; + +protected: // Elements + domCg_param_type_Array elemCg_param_type_array; + domCg_setarray_type_Array elemArray_array; + domCg_setuser_type_Array elemUsertype_array; + domCg_connect_param_Array elemConnect_param_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the name attribute. + * @return Returns a domCg_identifier of the name attribute. + */ + domCg_identifier getName() const { return attrName; } + /** + * Sets the name attribute. + * @param atName The new value for the name attribute. + */ + void setName( domCg_identifier atName ) { attrName = atName; } + + /** + * Gets the cg_param_type element array. + * @return Returns a reference to the array of cg_param_type elements. + */ + domCg_param_type_Array &getCg_param_type_array() { return elemCg_param_type_array; } + /** + * Gets the cg_param_type element array. + * @return Returns a constant reference to the array of cg_param_type elements. + */ + const domCg_param_type_Array &getCg_param_type_array() const { return elemCg_param_type_array; } + /** + * Gets the array element array. + * @return Returns a reference to the array of array elements. + */ + domCg_setarray_type_Array &getArray_array() { return elemArray_array; } + /** + * Gets the array element array. + * @return Returns a constant reference to the array of array elements. + */ + const domCg_setarray_type_Array &getArray_array() const { return elemArray_array; } + /** + * Gets the usertype element array. + * @return Returns a reference to the array of usertype elements. + */ + domCg_setuser_type_Array &getUsertype_array() { return elemUsertype_array; } + /** + * Gets the usertype element array. + * @return Returns a constant reference to the array of usertype elements. + */ + const domCg_setuser_type_Array &getUsertype_array() const { return elemUsertype_array; } + /** + * Gets the connect_param element array. + * @return Returns a reference to the array of connect_param elements. + */ + domCg_connect_param_Array &getConnect_param_array() { return elemConnect_param_array; } + /** + * Gets the connect_param element array. + * @return Returns a constant reference to the array of connect_param elements. + */ + const domCg_connect_param_Array &getConnect_param_array() const { return elemConnect_param_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 + */ + domCg_setuser_type_complexType() : attrName(), elemCg_param_type_array(), elemArray_array(), elemUsertype_array(), elemConnect_param_array() {} + /** + * Destructor + */ + virtual ~domCg_setuser_type_complexType() {} + /** + * Copy Constructor + */ + domCg_setuser_type_complexType( const domCg_setuser_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_setuser_type_complexType &operator=( const domCg_setuser_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_setuser_type_complexType. + */ +class domCg_setuser_type : public daeElement, public domCg_setuser_type_complexType +{ +protected: + /** + * Constructor + */ + domCg_setuser_type() {} + /** + * Destructor + */ + virtual ~domCg_setuser_type() {} + /** + * Copy Constructor + */ + domCg_setuser_type( const domCg_setuser_type &cpy ) : daeElement(), domCg_setuser_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_setuser_type &operator=( const domCg_setuser_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_surface_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_surface_type.h new file mode 100644 index 000000000..1c1272184 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCg_surface_type.h @@ -0,0 +1,330 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCg_surface_type_h__ +#define __domCg_surface_type_h__ + +#include +#include + +#include +#include +#include +#include +#include + +/** + * Declares a resource that can be used both as the source for texture samples + * and as the target of a rendering pass. + */ +class domCg_surface_type_complexType : public domFx_surface_common_complexType +{ +public: + class domGenerator; + + typedef daeSmartRef domGeneratorRef; + typedef daeTArray domGenerator_Array; + +/** + * A procedural surface generator for the cg profile. + */ + class domGenerator : public daeElement + { + public: + class domName; + + typedef daeSmartRef domNameRef; + typedef daeTArray domName_Array; + +/** + * The entry symbol for the shader function. + */ + class domName : public daeElement + { + protected: // Attribute + xsNCName attrSource; + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the source attribute. + * @return Returns a xsNCName of the source attribute. + */ + xsNCName getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( xsNCName atSource ) { attrSource = atSource; } + + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domName() : attrSource(), _value() {} + /** + * Destructor + */ + virtual ~domName() {} + /** + * Copy Constructor + */ + domName( const domName &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domName &operator=( const domName &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: // Elements +/** + * The annotate element allows you to specify an annotation for this generator. + * @see domAnnotate + */ + domFx_annotate_common_Array elemAnnotate_array; +/** + * The code element allows you to embed cg sourcecode for the surface generator. + * @see domCode + */ + domFx_code_profile_Array elemCode_array; +/** + * The include element imports cg source code or precompiled binary shaders + * into the FX Runtime by referencing an external resource. @see domInclude + */ + domFx_include_common_Array elemInclude_array; +/** + * The entry symbol for the shader function. @see domName + */ + domNameRef elemName; +/** + * Assigns a new value to a previously defined parameter. @see domSetparam + */ + domCg_setparam_simple_Array elemSetparam_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * 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. + */ + domFx_code_profile_Array &getCode_array() { return elemCode_array; } + /** + * Gets the code element array. + * @return Returns a constant reference to the array of code elements. + */ + const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } + /** + * Gets the include element array. + * @return Returns a reference to the array of include elements. + */ + domFx_include_common_Array &getInclude_array() { return elemInclude_array; } + /** + * Gets the include element array. + * @return Returns a constant reference to the array of include elements. + */ + const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } + /** + * Gets the name element. + * @return a daeSmartRef to the name element. + */ + const domNameRef getName() const { return elemName; } + /** + * Gets the setparam element array. + * @return Returns a reference to the array of setparam elements. + */ + domCg_setparam_simple_Array &getSetparam_array() { return elemSetparam_array; } + /** + * Gets the setparam element array. + * @return Returns a constant reference to the array of setparam elements. + */ + const domCg_setparam_simple_Array &getSetparam_array() const { return elemSetparam_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 + */ + domGenerator() : elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemName(), elemSetparam_array() {} + /** + * Destructor + */ + virtual ~domGenerator() {} + /** + * Copy Constructor + */ + domGenerator( const domGenerator &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGenerator &operator=( const domGenerator &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: // Element +/** + * A procedural surface generator for the cg profile. @see domGenerator + */ + domGeneratorRef elemGenerator; + +public: //Accessors and Mutators + /** + * Gets the generator element. + * @return a daeSmartRef to the generator element. + */ + const domGeneratorRef getGenerator() const { return elemGenerator; } +protected: + /** + * Constructor + */ + domCg_surface_type_complexType() : elemGenerator() {} + /** + * Destructor + */ + virtual ~domCg_surface_type_complexType() {} + /** + * Copy Constructor + */ + domCg_surface_type_complexType( const domCg_surface_type_complexType &cpy ) : domFx_surface_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_surface_type_complexType &operator=( const domCg_surface_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCg_surface_type_complexType. + */ +class domCg_surface_type : public daeElement, public domCg_surface_type_complexType +{ +protected: + /** + * Constructor + */ + domCg_surface_type() {} + /** + * Destructor + */ + virtual ~domCg_surface_type() {} + /** + * Copy Constructor + */ + domCg_surface_type( const domCg_surface_type &cpy ) : daeElement(), domCg_surface_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCg_surface_type &operator=( const domCg_surface_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domChannel.h b/Extras/COLLADA_DOM/include/1.4/dom/domChannel.h new file mode 100644 index 000000000..60ae6f801 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domChannel.h @@ -0,0 +1,108 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domChannel_h__ +#define __domChannel_h__ + +#include +#include + + +/** + * The channel element declares an output channel of an animation. + */ +class domChannel : public daeElement +{ +protected: // Attributes +/** + * The source attribute indicates the location of the sampler using a URL + * expression. The sampler must be declared within the same document. Required + * attribute. + */ + domURIFragmentType attrSource; +/** + * The target attribute indicates the location of the element bound to the + * output of the sampler. This text string is a path-name following a simple + * syntax described in Address Syntax. Required attribute. + */ + xsToken attrTarget; + + +public: //Accessors and Mutators + /** + * Gets the source attribute. + * @return Returns a domURIFragmentType reference of the source attribute. + */ + domURIFragmentType &getSource() { return attrSource; } + /** + * Gets the source attribute. + * @return Returns a constant domURIFragmentType reference of the source attribute. + */ + const domURIFragmentType &getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( const domURIFragmentType &atSource ) { attrSource.setURI( atSource.getURI() ); } + + /** + * Gets the target attribute. + * @return Returns a xsToken of the target attribute. + */ + xsToken getTarget() const { return attrTarget; } + /** + * Sets the target attribute. + * @param atTarget The new value for the target attribute. + */ + void setTarget( xsToken atTarget ) { attrTarget = atTarget; } + +protected: + /** + * Constructor + */ + domChannel() : attrSource(), attrTarget() {} + /** + * Destructor + */ + virtual ~domChannel() {} + /** + * Copy Constructor + */ + domChannel( const domChannel &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domChannel &operator=( const domChannel &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_color_or_texture_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_color_or_texture_type.h new file mode 100644 index 000000000..54b5546d5 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_color_or_texture_type.h @@ -0,0 +1,353 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCommon_color_or_texture_type_h__ +#define __domCommon_color_or_texture_type_h__ + +#include +#include + +#include + +class domCommon_color_or_texture_type_complexType +{ +public: + class domColor; + + typedef daeSmartRef domColorRef; + typedef daeTArray domColor_Array; + + class domColor : public daeElement + { + protected: // Attribute + xsNCName attrSid; + + protected: // Value + /** + * The domFx_color_common value of the text data of this element. + */ + domFx_color_common _value; + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the _value array. + * @return Returns a domFx_color_common reference of the _value array. + */ + domFx_color_common &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFx_color_common reference of the _value array. + */ + const domFx_color_common &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFx_color_common &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domColor() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domColor() {} + /** + * Copy Constructor + */ + domColor( const domColor &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domColor &operator=( const domColor &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; + }; + + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + + class domParam : public daeElement + { + protected: // Attribute + xsNCName attrRef; + + + public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a xsNCName of the ref attribute. + */ + xsNCName getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( xsNCName atRef ) { attrRef = atRef; } + + protected: + /** + * Constructor + */ + domParam() : attrRef() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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; + }; + + class domTexture; + + typedef daeSmartRef domTextureRef; + typedef daeTArray domTexture_Array; + + class domTexture : public daeElement + { + protected: // Attributes + xsNCName attrTexture; + xsNCName attrTexcoord; + + protected: // Element + domExtraRef elemExtra; + + public: //Accessors and Mutators + /** + * Gets the texture attribute. + * @return Returns a xsNCName of the texture attribute. + */ + xsNCName getTexture() const { return attrTexture; } + /** + * Sets the texture attribute. + * @param atTexture The new value for the texture attribute. + */ + void setTexture( xsNCName atTexture ) { attrTexture = atTexture; } + + /** + * Gets the texcoord attribute. + * @return Returns a xsNCName of the texcoord attribute. + */ + xsNCName getTexcoord() const { return attrTexcoord; } + /** + * Sets the texcoord attribute. + * @param atTexcoord The new value for the texcoord attribute. + */ + void setTexcoord( xsNCName atTexcoord ) { attrTexcoord = atTexcoord; } + + /** + * Gets the extra element. + * @return a daeSmartRef to the extra element. + */ + const domExtraRef getExtra() const { return elemExtra; } + protected: + /** + * Constructor + */ + domTexture() : attrTexture(), attrTexcoord(), elemExtra() {} + /** + * Destructor + */ + virtual ~domTexture() {} + /** + * Copy Constructor + */ + domTexture( const domTexture &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture &operator=( const domTexture &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: // Elements + domColorRef elemColor; + domParamRef elemParam; + domTextureRef elemTexture; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the color element. + * @return a daeSmartRef to the color element. + */ + const domColorRef getColor() const { return elemColor; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * Gets the texture element. + * @return a daeSmartRef to the texture element. + */ + const domTextureRef getTexture() const { return elemTexture; } + /** + * 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 + */ + domCommon_color_or_texture_type_complexType() : elemColor(), elemParam(), elemTexture() {} + /** + * Destructor + */ + virtual ~domCommon_color_or_texture_type_complexType() {} + /** + * Copy Constructor + */ + domCommon_color_or_texture_type_complexType( const domCommon_color_or_texture_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCommon_color_or_texture_type_complexType &operator=( const domCommon_color_or_texture_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCommon_color_or_texture_type_complexType. + */ +class domCommon_color_or_texture_type : public daeElement, public domCommon_color_or_texture_type_complexType +{ +protected: + /** + * Constructor + */ + domCommon_color_or_texture_type() {} + /** + * Destructor + */ + virtual ~domCommon_color_or_texture_type() {} + /** + * Copy Constructor + */ + domCommon_color_or_texture_type( const domCommon_color_or_texture_type &cpy ) : daeElement(), domCommon_color_or_texture_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCommon_color_or_texture_type &operator=( const domCommon_color_or_texture_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_float_or_param_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_float_or_param_type.h new file mode 100644 index 000000000..a0cf79ddd --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_float_or_param_type.h @@ -0,0 +1,260 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCommon_float_or_param_type_h__ +#define __domCommon_float_or_param_type_h__ + +#include +#include + + +class domCommon_float_or_param_type_complexType +{ +public: + class domFloat; + + typedef daeSmartRef domFloatRef; + typedef daeTArray domFloat_Array; + + class domFloat : public daeElement + { + protected: // Attribute + xsNCName attrSid; + + protected: // Value + /** + * The ::domFloat value of the text data of this element. + */ + ::domFloat _value; + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the value of this element. + * @return a ::domFloat of the value. + */ + ::domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domFloat() {} + /** + * Copy Constructor + */ + domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat &operator=( const domFloat &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; + }; + + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + + class domParam : public daeElement + { + protected: // Attribute + xsNCName attrRef; + + + public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a xsNCName of the ref attribute. + */ + xsNCName getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( xsNCName atRef ) { attrRef = atRef; } + + protected: + /** + * Constructor + */ + domParam() : attrRef() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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: // Elements + domFloatRef elemFloat; + domParamRef elemParam; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the float element. + * @return a daeSmartRef to the float element. + */ + const domFloatRef getFloat() const { return elemFloat; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * 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 + */ + domCommon_float_or_param_type_complexType() : elemFloat(), elemParam() {} + /** + * Destructor + */ + virtual ~domCommon_float_or_param_type_complexType() {} + /** + * Copy Constructor + */ + domCommon_float_or_param_type_complexType( const domCommon_float_or_param_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCommon_float_or_param_type_complexType &operator=( const domCommon_float_or_param_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCommon_float_or_param_type_complexType. + */ +class domCommon_float_or_param_type : public daeElement, public domCommon_float_or_param_type_complexType +{ +protected: + /** + * Constructor + */ + domCommon_float_or_param_type() {} + /** + * Destructor + */ + virtual ~domCommon_float_or_param_type() {} + /** + * Copy Constructor + */ + domCommon_float_or_param_type( const domCommon_float_or_param_type &cpy ) : daeElement(), domCommon_float_or_param_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCommon_float_or_param_type &operator=( const domCommon_float_or_param_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_newparam_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_newparam_type.h new file mode 100644 index 000000000..42155ea78 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_newparam_type.h @@ -0,0 +1,510 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCommon_newparam_type_h__ +#define __domCommon_newparam_type_h__ + +#include +#include + +#include +#include + +class domCommon_newparam_type_complexType +{ +public: + class domSemantic; + + typedef daeSmartRef domSemanticRef; + typedef daeTArray domSemantic_Array; + + class domSemantic : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSemantic() : _value() {} + /** + * Destructor + */ + virtual ~domSemantic() {} + /** + * Copy Constructor + */ + domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSemantic &operator=( const domSemantic &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; + }; + + class domFloat; + + typedef daeSmartRef domFloatRef; + typedef daeTArray domFloat_Array; + + class domFloat : public daeElement + { + + protected: // Value + /** + * The ::domFloat value of the text data of this element. + */ + ::domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domFloat of the value. + */ + ::domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat() : _value() {} + /** + * Destructor + */ + virtual ~domFloat() {} + /** + * Copy Constructor + */ + domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat &operator=( const domFloat &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; + }; + + class domFloat2; + + typedef daeSmartRef domFloat2Ref; + typedef daeTArray domFloat2_Array; + + class domFloat2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2 value of the text data of this element. + */ + ::domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2 reference of the _value array. + */ + ::domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2 reference of the _value array. + */ + const ::domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2() {} + /** + * Copy Constructor + */ + domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2 &operator=( const domFloat2 &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; + }; + + class domFloat3; + + typedef daeSmartRef domFloat3Ref; + typedef daeTArray domFloat3_Array; + + class domFloat3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3 value of the text data of this element. + */ + ::domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3 reference of the _value array. + */ + ::domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3 reference of the _value array. + */ + const ::domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3() {} + /** + * Copy Constructor + */ + domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3 &operator=( const domFloat3 &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; + }; + + class domFloat4; + + typedef daeSmartRef domFloat4Ref; + typedef daeTArray domFloat4_Array; + + class domFloat4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4 value of the text data of this element. + */ + ::domFloat4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4 reference of the _value array. + */ + ::domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4 reference of the _value array. + */ + const ::domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4() {} + /** + * Copy Constructor + */ + domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4 &operator=( const domFloat4 &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: // Attribute +/** + * 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; + +protected: // Elements + domSemanticRef elemSemantic; + domFloatRef elemFloat; + domFloat2Ref elemFloat2; + domFloat3Ref elemFloat3; + domFloat4Ref elemFloat4; + domFx_surface_commonRef elemSurface; + domFx_sampler2D_commonRef elemSampler2D; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the semantic element. + * @return a daeSmartRef to the semantic element. + */ + const domSemanticRef getSemantic() const { return elemSemantic; } + /** + * Gets the float element. + * @return a daeSmartRef to the float element. + */ + const domFloatRef getFloat() const { return elemFloat; } + /** + * Gets the float2 element. + * @return a daeSmartRef to the float2 element. + */ + const domFloat2Ref getFloat2() const { return elemFloat2; } + /** + * Gets the float3 element. + * @return a daeSmartRef to the float3 element. + */ + const domFloat3Ref getFloat3() const { return elemFloat3; } + /** + * Gets the float4 element. + * @return a daeSmartRef to the float4 element. + */ + const domFloat4Ref getFloat4() const { return elemFloat4; } + /** + * Gets the surface element. + * @return a daeSmartRef to the surface element. + */ + const domFx_surface_commonRef getSurface() const { return elemSurface; } + /** + * Gets the sampler2D element. + * @return a daeSmartRef to the sampler2D element. + */ + const domFx_sampler2D_commonRef getSampler2D() const { return elemSampler2D; } + /** + * 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 + */ + domCommon_newparam_type_complexType() : attrSid(), elemSemantic(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemSurface(), elemSampler2D() {} + /** + * Destructor + */ + virtual ~domCommon_newparam_type_complexType() {} + /** + * Copy Constructor + */ + domCommon_newparam_type_complexType( const domCommon_newparam_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCommon_newparam_type_complexType &operator=( const domCommon_newparam_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domCommon_newparam_type_complexType. + */ +class domCommon_newparam_type : public daeElement, public domCommon_newparam_type_complexType +{ +protected: + /** + * Constructor + */ + domCommon_newparam_type() {} + /** + * Destructor + */ + virtual ~domCommon_newparam_type() {} + /** + * Copy Constructor + */ + domCommon_newparam_type( const domCommon_newparam_type &cpy ) : daeElement(), domCommon_newparam_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCommon_newparam_type &operator=( const domCommon_newparam_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domConstants.h b/Extras/COLLADA_DOM/include/1.4/dom/domConstants.h new file mode 100644 index 000000000..21016072b --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domConstants.h @@ -0,0 +1,563 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DOM_CONSTANTS_H__ +#define __DOM_CONSTANTS_H__ + +#include + +//extern daeString COLLADA_VERSION; +//extern daeString COLLADA_NAMESPACE; + +extern daeString COMMON_PROFILE_INPUT_BINORMAL; +extern daeString COMMON_PROFILE_INPUT_COLOR; +extern daeString COMMON_PROFILE_INPUT_IMAGE; +extern daeString COMMON_PROFILE_INPUT_IN_TANGENT; +extern daeString COMMON_PROFILE_INPUT_INPUT; +extern daeString COMMON_PROFILE_INPUT_INTERPOLATION; +extern daeString COMMON_PROFILE_INPUT_INV_BIND_MATRIX; +extern daeString COMMON_PROFILE_INPUT_JOINT; +extern daeString COMMON_PROFILE_INPUT_NORMAL; +extern daeString COMMON_PROFILE_INPUT_OUTPUT; +extern daeString COMMON_PROFILE_INPUT_OUT_TANGENT; +extern daeString COMMON_PROFILE_INPUT_POSITION; +extern daeString COMMON_PROFILE_INPUT_TANGENT; +extern daeString COMMON_PROFILE_INPUT_TEXCOORD; +extern daeString COMMON_PROFILE_INPUT_TEXTURE; +extern daeString COMMON_PROFILE_INPUT_UV; +extern daeString COMMON_PROFILE_INPUT_VERTEX; +extern daeString COMMON_PROFILE_INPUT_WEIGHT; + +extern daeString COMMON_PROFILE_PARAM_A; +extern daeString COMMON_PROFILE_PARAM_ANGLE; +extern daeString COMMON_PROFILE_PARAM_B; +extern daeString COMMON_PROFILE_PARAM_DOUBLE_SIDED; +extern daeString COMMON_PROFILE_PARAM_G; +extern daeString COMMON_PROFILE_PARAM_P; +extern daeString COMMON_PROFILE_PARAM_Q; +extern daeString COMMON_PROFILE_PARAM_R; +extern daeString COMMON_PROFILE_PARAM_S; +extern daeString COMMON_PROFILE_PARAM_T; +extern daeString COMMON_PROFILE_PARAM_TIME; +extern daeString COMMON_PROFILE_PARAM_U; +extern daeString COMMON_PROFILE_PARAM_V; +extern daeString COMMON_PROFILE_PARAM_W; +extern daeString COMMON_PROFILE_PARAM_X; +extern daeString COMMON_PROFILE_PARAM_Y; +extern daeString COMMON_PROFILE_PARAM_Z; + +extern daeString COLLADA_ELEMENT_INPUTGLOBAL; +extern daeString COLLADA_ELEMENT_INPUTLOCAL; +extern daeString COLLADA_ELEMENT_INPUTLOCALOFFSET; +extern daeString COLLADA_ELEMENT_INSTANCEWITHEXTRA; +extern daeString COLLADA_ELEMENT_TARGETABLEFLOAT; +extern daeString COLLADA_ELEMENT_TARGETABLEFLOAT3; +extern daeString COLLADA_ELEMENT_FX_SURFACE_COMMON; +extern daeString COLLADA_ELEMENT_INIT_FROM; +extern daeString COLLADA_ELEMENT_FORMAT; +extern daeString COLLADA_ELEMENT_SIZE; +extern daeString COLLADA_ELEMENT_VIEWPORT_RATIO; +extern daeString COLLADA_ELEMENT_MIP_LEVELS; +extern daeString COLLADA_ELEMENT_MIPMAP_GENERATE; +extern daeString COLLADA_ELEMENT_FX_SAMPLER1D_COMMON; +extern daeString COLLADA_ELEMENT_SOURCE; +extern daeString COLLADA_ELEMENT_WRAP_S; +extern daeString COLLADA_ELEMENT_MINFILTER; +extern daeString COLLADA_ELEMENT_MAGFILTER; +extern daeString COLLADA_ELEMENT_MIPFILTER; +extern daeString COLLADA_ELEMENT_BORDER_COLOR; +extern daeString COLLADA_ELEMENT_MIPMAP_MAXLEVEL; +extern daeString COLLADA_ELEMENT_MIPMAP_BIAS; +extern daeString COLLADA_ELEMENT_FX_SAMPLER2D_COMMON; +extern daeString COLLADA_ELEMENT_WRAP_T; +extern daeString COLLADA_ELEMENT_FX_SAMPLER3D_COMMON; +extern daeString COLLADA_ELEMENT_WRAP_P; +extern daeString COLLADA_ELEMENT_FX_SAMPLERCUBE_COMMON; +extern daeString COLLADA_ELEMENT_FX_SAMPLERRECT_COMMON; +extern daeString COLLADA_ELEMENT_FX_SAMPLERDEPTH_COMMON; +extern daeString COLLADA_ELEMENT_FX_COLORTARGET_COMMON; +extern daeString COLLADA_ELEMENT_FX_DEPTHTARGET_COMMON; +extern daeString COLLADA_ELEMENT_FX_STENCILTARGET_COMMON; +extern daeString COLLADA_ELEMENT_FX_CLEARCOLOR_COMMON; +extern daeString COLLADA_ELEMENT_FX_CLEARDEPTH_COMMON; +extern daeString COLLADA_ELEMENT_FX_CLEARSTENCIL_COMMON; +extern daeString COLLADA_ELEMENT_FX_ANNOTATE_COMMON; +extern daeString COLLADA_ELEMENT_FX_INCLUDE_COMMON; +extern daeString COLLADA_ELEMENT_FX_NEWPARAM_COMMON; +extern daeString COLLADA_ELEMENT_SEMANTIC; +extern daeString COLLADA_ELEMENT_MODIFIER; +extern daeString COLLADA_ELEMENT_FX_SETPARAM_COMMON; +extern daeString COLLADA_ELEMENT_FX_CODE_PROFILE; +extern daeString COLLADA_ELEMENT_GL_SAMPLER1D; +extern daeString COLLADA_ELEMENT_GL_SAMPLER2D; +extern daeString COLLADA_ELEMENT_GL_SAMPLER3D; +extern daeString COLLADA_ELEMENT_GL_SAMPLERCUBE; +extern daeString COLLADA_ELEMENT_GL_SAMPLERRECT; +extern daeString COLLADA_ELEMENT_GL_SAMPLERDEPTH; +extern daeString COLLADA_ELEMENT_GLSL_NEWARRAY_TYPE; +extern daeString COLLADA_ELEMENT_GLSL_SETARRAY_TYPE; +extern daeString COLLADA_ELEMENT_GLSL_SURFACE_TYPE; +extern daeString COLLADA_ELEMENT_GENERATOR; +extern daeString COLLADA_ELEMENT_NAME; +extern daeString COLLADA_ELEMENT_GLSL_NEWPARAM; +extern daeString COLLADA_ELEMENT_GLSL_SETPARAM_SIMPLE; +extern daeString COLLADA_ELEMENT_GLSL_SETPARAM; +extern daeString COLLADA_ELEMENT_COMMON_FLOAT_OR_PARAM_TYPE; +extern daeString COLLADA_ELEMENT_FLOAT; +extern daeString COLLADA_ELEMENT_PARAM; +extern daeString COLLADA_ELEMENT_COMMON_COLOR_OR_TEXTURE_TYPE; +extern daeString COLLADA_ELEMENT_COLOR; +extern daeString COLLADA_ELEMENT_TEXTURE; +extern daeString COLLADA_ELEMENT_COMMON_NEWPARAM_TYPE; +extern daeString COLLADA_ELEMENT_FLOAT2; +extern daeString COLLADA_ELEMENT_FLOAT3; +extern daeString COLLADA_ELEMENT_FLOAT4; +extern daeString COLLADA_ELEMENT_CG_SAMPLER1D; +extern daeString COLLADA_ELEMENT_CG_SAMPLER2D; +extern daeString COLLADA_ELEMENT_CG_SAMPLER3D; +extern daeString COLLADA_ELEMENT_CG_SAMPLERCUBE; +extern daeString COLLADA_ELEMENT_CG_SAMPLERRECT; +extern daeString COLLADA_ELEMENT_CG_SAMPLERDEPTH; +extern daeString COLLADA_ELEMENT_CG_CONNECT_PARAM; +extern daeString COLLADA_ELEMENT_CG_NEWARRAY_TYPE; +extern daeString COLLADA_ELEMENT_CG_SETARRAY_TYPE; +extern daeString COLLADA_ELEMENT_CG_SETUSER_TYPE; +extern daeString COLLADA_ELEMENT_CG_SURFACE_TYPE; +extern daeString COLLADA_ELEMENT_CG_NEWPARAM; +extern daeString COLLADA_ELEMENT_CG_SETPARAM_SIMPLE; +extern daeString COLLADA_ELEMENT_CG_SETPARAM; +extern daeString COLLADA_ELEMENT_GLES_TEXTURE_CONSTANT_TYPE; +extern daeString COLLADA_ELEMENT_GLES_TEXENV_COMMAND_TYPE; +extern daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_ARGUMENTRGB_TYPE; +extern daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_ARGUMENTALPHA_TYPE; +extern daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_COMMANDRGB_TYPE; +extern daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_COMMANDALPHA_TYPE; +extern daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_COMMAND_TYPE; +extern daeString COLLADA_ELEMENT_GLES_TEXTURE_PIPELINE; +extern daeString COLLADA_ELEMENT_GLES_TEXTURE_UNIT; +extern daeString COLLADA_ELEMENT_SURFACE; +extern daeString COLLADA_ELEMENT_SAMPLER_STATE; +extern daeString COLLADA_ELEMENT_TEXCOORD; +extern daeString COLLADA_ELEMENT_GLES_SAMPLER_STATE; +extern daeString COLLADA_ELEMENT_GLES_NEWPARAM; +extern daeString COLLADA_ELEMENT_FX_ANNOTATE_TYPE_COMMON; +extern daeString COLLADA_ELEMENT_BOOL; +extern daeString COLLADA_ELEMENT_BOOL2; +extern daeString COLLADA_ELEMENT_BOOL3; +extern daeString COLLADA_ELEMENT_BOOL4; +extern daeString COLLADA_ELEMENT_INT; +extern daeString COLLADA_ELEMENT_INT2; +extern daeString COLLADA_ELEMENT_INT3; +extern daeString COLLADA_ELEMENT_INT4; +extern daeString COLLADA_ELEMENT_FLOAT2X2; +extern daeString COLLADA_ELEMENT_FLOAT3X3; +extern daeString COLLADA_ELEMENT_FLOAT4X4; +extern daeString COLLADA_ELEMENT_STRING; +extern daeString COLLADA_ELEMENT_FX_BASIC_TYPE_COMMON; +extern daeString COLLADA_ELEMENT_FLOAT1X1; +extern daeString COLLADA_ELEMENT_FLOAT1X2; +extern daeString COLLADA_ELEMENT_FLOAT1X3; +extern daeString COLLADA_ELEMENT_FLOAT1X4; +extern daeString COLLADA_ELEMENT_FLOAT2X1; +extern daeString COLLADA_ELEMENT_FLOAT2X3; +extern daeString COLLADA_ELEMENT_FLOAT2X4; +extern daeString COLLADA_ELEMENT_FLOAT3X1; +extern daeString COLLADA_ELEMENT_FLOAT3X2; +extern daeString COLLADA_ELEMENT_FLOAT3X4; +extern daeString COLLADA_ELEMENT_FLOAT4X1; +extern daeString COLLADA_ELEMENT_FLOAT4X2; +extern daeString COLLADA_ELEMENT_FLOAT4X3; +extern daeString COLLADA_ELEMENT_ENUM; +extern daeString COLLADA_ELEMENT_GL_PIPELINE_SETTINGS; +extern daeString COLLADA_ELEMENT_ALPHA_FUNC; +extern daeString COLLADA_ELEMENT_FUNC; +extern daeString COLLADA_ELEMENT_VALUE; +extern daeString COLLADA_ELEMENT_BLEND_FUNC; +extern daeString COLLADA_ELEMENT_SRC; +extern daeString COLLADA_ELEMENT_DEST; +extern daeString COLLADA_ELEMENT_BLEND_FUNC_SEPARATE; +extern daeString COLLADA_ELEMENT_SRC_RGB; +extern daeString COLLADA_ELEMENT_DEST_RGB; +extern daeString COLLADA_ELEMENT_SRC_ALPHA; +extern daeString COLLADA_ELEMENT_DEST_ALPHA; +extern daeString COLLADA_ELEMENT_BLEND_EQUATION; +extern daeString COLLADA_ELEMENT_BLEND_EQUATION_SEPARATE; +extern daeString COLLADA_ELEMENT_RGB; +extern daeString COLLADA_ELEMENT_ALPHA; +extern daeString COLLADA_ELEMENT_COLOR_MATERIAL; +extern daeString COLLADA_ELEMENT_FACE; +extern daeString COLLADA_ELEMENT_MODE; +extern daeString COLLADA_ELEMENT_CULL_FACE; +extern daeString COLLADA_ELEMENT_DEPTH_FUNC; +extern daeString COLLADA_ELEMENT_FOG_MODE; +extern daeString COLLADA_ELEMENT_FOG_COORD_SRC; +extern daeString COLLADA_ELEMENT_FRONT_FACE; +extern daeString COLLADA_ELEMENT_LIGHT_MODEL_COLOR_CONTROL; +extern daeString COLLADA_ELEMENT_LOGIC_OP; +extern daeString COLLADA_ELEMENT_POLYGON_MODE; +extern daeString COLLADA_ELEMENT_SHADE_MODEL; +extern daeString COLLADA_ELEMENT_STENCIL_FUNC; +extern daeString COLLADA_ELEMENT_REF; +extern daeString COLLADA_ELEMENT_MASK; +extern daeString COLLADA_ELEMENT_STENCIL_OP; +extern daeString COLLADA_ELEMENT_FAIL; +extern daeString COLLADA_ELEMENT_ZFAIL; +extern daeString COLLADA_ELEMENT_ZPASS; +extern daeString COLLADA_ELEMENT_STENCIL_FUNC_SEPARATE; +extern daeString COLLADA_ELEMENT_FRONT; +extern daeString COLLADA_ELEMENT_BACK; +extern daeString COLLADA_ELEMENT_STENCIL_OP_SEPARATE; +extern daeString COLLADA_ELEMENT_STENCIL_MASK_SEPARATE; +extern daeString COLLADA_ELEMENT_LIGHT_ENABLE; +extern daeString COLLADA_ELEMENT_LIGHT_AMBIENT; +extern daeString COLLADA_ELEMENT_LIGHT_DIFFUSE; +extern daeString COLLADA_ELEMENT_LIGHT_SPECULAR; +extern daeString COLLADA_ELEMENT_LIGHT_POSITION; +extern daeString COLLADA_ELEMENT_LIGHT_CONSTANT_ATTENUATION; +extern daeString COLLADA_ELEMENT_LIGHT_LINEAR_ATTENUATION; +extern daeString COLLADA_ELEMENT_LIGHT_QUADRATIC_ATTENUATION; +extern daeString COLLADA_ELEMENT_LIGHT_SPOT_CUTOFF; +extern daeString COLLADA_ELEMENT_LIGHT_SPOT_DIRECTION; +extern daeString COLLADA_ELEMENT_LIGHT_SPOT_EXPONENT; +extern daeString COLLADA_ELEMENT_TEXTURE1D; +extern daeString COLLADA_ELEMENT_TEXTURE2D; +extern daeString COLLADA_ELEMENT_TEXTURE3D; +extern daeString COLLADA_ELEMENT_TEXTURECUBE; +extern daeString COLLADA_ELEMENT_TEXTURERECT; +extern daeString COLLADA_ELEMENT_TEXTUREDEPTH; +extern daeString COLLADA_ELEMENT_TEXTURE1D_ENABLE; +extern daeString COLLADA_ELEMENT_TEXTURE2D_ENABLE; +extern daeString COLLADA_ELEMENT_TEXTURE3D_ENABLE; +extern daeString COLLADA_ELEMENT_TEXTURECUBE_ENABLE; +extern daeString COLLADA_ELEMENT_TEXTURERECT_ENABLE; +extern daeString COLLADA_ELEMENT_TEXTUREDEPTH_ENABLE; +extern daeString COLLADA_ELEMENT_TEXTURE_ENV_COLOR; +extern daeString COLLADA_ELEMENT_TEXTURE_ENV_MODE; +extern daeString COLLADA_ELEMENT_CLIP_PLANE; +extern daeString COLLADA_ELEMENT_CLIP_PLANE_ENABLE; +extern daeString COLLADA_ELEMENT_BLEND_COLOR; +extern daeString COLLADA_ELEMENT_CLEAR_COLOR; +extern daeString COLLADA_ELEMENT_CLEAR_STENCIL; +extern daeString COLLADA_ELEMENT_CLEAR_DEPTH; +extern daeString COLLADA_ELEMENT_COLOR_MASK; +extern daeString COLLADA_ELEMENT_DEPTH_BOUNDS; +extern daeString COLLADA_ELEMENT_DEPTH_MASK; +extern daeString COLLADA_ELEMENT_DEPTH_RANGE; +extern daeString COLLADA_ELEMENT_FOG_DENSITY; +extern daeString COLLADA_ELEMENT_FOG_START; +extern daeString COLLADA_ELEMENT_FOG_END; +extern daeString COLLADA_ELEMENT_FOG_COLOR; +extern daeString COLLADA_ELEMENT_LIGHT_MODEL_AMBIENT; +extern daeString COLLADA_ELEMENT_LIGHTING_ENABLE; +extern daeString COLLADA_ELEMENT_LINE_STIPPLE; +extern daeString COLLADA_ELEMENT_LINE_WIDTH; +extern daeString COLLADA_ELEMENT_MATERIAL_AMBIENT; +extern daeString COLLADA_ELEMENT_MATERIAL_DIFFUSE; +extern daeString COLLADA_ELEMENT_MATERIAL_EMISSION; +extern daeString COLLADA_ELEMENT_MATERIAL_SHININESS; +extern daeString COLLADA_ELEMENT_MATERIAL_SPECULAR; +extern daeString COLLADA_ELEMENT_MODEL_VIEW_MATRIX; +extern daeString COLLADA_ELEMENT_POINT_DISTANCE_ATTENUATION; +extern daeString COLLADA_ELEMENT_POINT_FADE_THRESHOLD_SIZE; +extern daeString COLLADA_ELEMENT_POINT_SIZE; +extern daeString COLLADA_ELEMENT_POINT_SIZE_MIN; +extern daeString COLLADA_ELEMENT_POINT_SIZE_MAX; +extern daeString COLLADA_ELEMENT_POLYGON_OFFSET; +extern daeString COLLADA_ELEMENT_PROJECTION_MATRIX; +extern daeString COLLADA_ELEMENT_SCISSOR; +extern daeString COLLADA_ELEMENT_STENCIL_MASK; +extern daeString COLLADA_ELEMENT_ALPHA_TEST_ENABLE; +extern daeString COLLADA_ELEMENT_AUTO_NORMAL_ENABLE; +extern daeString COLLADA_ELEMENT_BLEND_ENABLE; +extern daeString COLLADA_ELEMENT_COLOR_LOGIC_OP_ENABLE; +extern daeString COLLADA_ELEMENT_CULL_FACE_ENABLE; +extern daeString COLLADA_ELEMENT_DEPTH_BOUNDS_ENABLE; +extern daeString COLLADA_ELEMENT_DEPTH_CLAMP_ENABLE; +extern daeString COLLADA_ELEMENT_DEPTH_TEST_ENABLE; +extern daeString COLLADA_ELEMENT_DITHER_ENABLE; +extern daeString COLLADA_ELEMENT_FOG_ENABLE; +extern daeString COLLADA_ELEMENT_LIGHT_MODEL_LOCAL_VIEWER_ENABLE; +extern daeString COLLADA_ELEMENT_LIGHT_MODEL_TWO_SIDE_ENABLE; +extern daeString COLLADA_ELEMENT_LINE_SMOOTH_ENABLE; +extern daeString COLLADA_ELEMENT_LINE_STIPPLE_ENABLE; +extern daeString COLLADA_ELEMENT_LOGIC_OP_ENABLE; +extern daeString COLLADA_ELEMENT_MULTISAMPLE_ENABLE; +extern daeString COLLADA_ELEMENT_NORMALIZE_ENABLE; +extern daeString COLLADA_ELEMENT_POINT_SMOOTH_ENABLE; +extern daeString COLLADA_ELEMENT_POLYGON_OFFSET_FILL_ENABLE; +extern daeString COLLADA_ELEMENT_POLYGON_OFFSET_LINE_ENABLE; +extern daeString COLLADA_ELEMENT_POLYGON_OFFSET_POINT_ENABLE; +extern daeString COLLADA_ELEMENT_POLYGON_SMOOTH_ENABLE; +extern daeString COLLADA_ELEMENT_POLYGON_STIPPLE_ENABLE; +extern daeString COLLADA_ELEMENT_RESCALE_NORMAL_ENABLE; +extern daeString COLLADA_ELEMENT_SAMPLE_ALPHA_TO_COVERAGE_ENABLE; +extern daeString COLLADA_ELEMENT_SAMPLE_ALPHA_TO_ONE_ENABLE; +extern daeString COLLADA_ELEMENT_SAMPLE_COVERAGE_ENABLE; +extern daeString COLLADA_ELEMENT_SCISSOR_TEST_ENABLE; +extern daeString COLLADA_ELEMENT_STENCIL_TEST_ENABLE; +extern daeString COLLADA_ELEMENT_GLSL_PARAM_TYPE; +extern daeString COLLADA_ELEMENT_CG_PARAM_TYPE; +extern daeString COLLADA_ELEMENT_BOOL1; +extern daeString COLLADA_ELEMENT_BOOL1X1; +extern daeString COLLADA_ELEMENT_BOOL1X2; +extern daeString COLLADA_ELEMENT_BOOL1X3; +extern daeString COLLADA_ELEMENT_BOOL1X4; +extern daeString COLLADA_ELEMENT_BOOL2X1; +extern daeString COLLADA_ELEMENT_BOOL2X2; +extern daeString COLLADA_ELEMENT_BOOL2X3; +extern daeString COLLADA_ELEMENT_BOOL2X4; +extern daeString COLLADA_ELEMENT_BOOL3X1; +extern daeString COLLADA_ELEMENT_BOOL3X2; +extern daeString COLLADA_ELEMENT_BOOL3X3; +extern daeString COLLADA_ELEMENT_BOOL3X4; +extern daeString COLLADA_ELEMENT_BOOL4X1; +extern daeString COLLADA_ELEMENT_BOOL4X2; +extern daeString COLLADA_ELEMENT_BOOL4X3; +extern daeString COLLADA_ELEMENT_BOOL4X4; +extern daeString COLLADA_ELEMENT_FLOAT1; +extern daeString COLLADA_ELEMENT_INT1; +extern daeString COLLADA_ELEMENT_INT1X1; +extern daeString COLLADA_ELEMENT_INT1X2; +extern daeString COLLADA_ELEMENT_INT1X3; +extern daeString COLLADA_ELEMENT_INT1X4; +extern daeString COLLADA_ELEMENT_INT2X1; +extern daeString COLLADA_ELEMENT_INT2X2; +extern daeString COLLADA_ELEMENT_INT2X3; +extern daeString COLLADA_ELEMENT_INT2X4; +extern daeString COLLADA_ELEMENT_INT3X1; +extern daeString COLLADA_ELEMENT_INT3X2; +extern daeString COLLADA_ELEMENT_INT3X3; +extern daeString COLLADA_ELEMENT_INT3X4; +extern daeString COLLADA_ELEMENT_INT4X1; +extern daeString COLLADA_ELEMENT_INT4X2; +extern daeString COLLADA_ELEMENT_INT4X3; +extern daeString COLLADA_ELEMENT_INT4X4; +extern daeString COLLADA_ELEMENT_HALF; +extern daeString COLLADA_ELEMENT_HALF1; +extern daeString COLLADA_ELEMENT_HALF2; +extern daeString COLLADA_ELEMENT_HALF3; +extern daeString COLLADA_ELEMENT_HALF4; +extern daeString COLLADA_ELEMENT_HALF1X1; +extern daeString COLLADA_ELEMENT_HALF1X2; +extern daeString COLLADA_ELEMENT_HALF1X3; +extern daeString COLLADA_ELEMENT_HALF1X4; +extern daeString COLLADA_ELEMENT_HALF2X1; +extern daeString COLLADA_ELEMENT_HALF2X2; +extern daeString COLLADA_ELEMENT_HALF2X3; +extern daeString COLLADA_ELEMENT_HALF2X4; +extern daeString COLLADA_ELEMENT_HALF3X1; +extern daeString COLLADA_ELEMENT_HALF3X2; +extern daeString COLLADA_ELEMENT_HALF3X3; +extern daeString COLLADA_ELEMENT_HALF3X4; +extern daeString COLLADA_ELEMENT_HALF4X1; +extern daeString COLLADA_ELEMENT_HALF4X2; +extern daeString COLLADA_ELEMENT_HALF4X3; +extern daeString COLLADA_ELEMENT_HALF4X4; +extern daeString COLLADA_ELEMENT_FIXED; +extern daeString COLLADA_ELEMENT_FIXED1; +extern daeString COLLADA_ELEMENT_FIXED2; +extern daeString COLLADA_ELEMENT_FIXED3; +extern daeString COLLADA_ELEMENT_FIXED4; +extern daeString COLLADA_ELEMENT_FIXED1X1; +extern daeString COLLADA_ELEMENT_FIXED1X2; +extern daeString COLLADA_ELEMENT_FIXED1X3; +extern daeString COLLADA_ELEMENT_FIXED1X4; +extern daeString COLLADA_ELEMENT_FIXED2X1; +extern daeString COLLADA_ELEMENT_FIXED2X2; +extern daeString COLLADA_ELEMENT_FIXED2X3; +extern daeString COLLADA_ELEMENT_FIXED2X4; +extern daeString COLLADA_ELEMENT_FIXED3X1; +extern daeString COLLADA_ELEMENT_FIXED3X2; +extern daeString COLLADA_ELEMENT_FIXED3X3; +extern daeString COLLADA_ELEMENT_FIXED3X4; +extern daeString COLLADA_ELEMENT_FIXED4X1; +extern daeString COLLADA_ELEMENT_FIXED4X2; +extern daeString COLLADA_ELEMENT_FIXED4X3; +extern daeString COLLADA_ELEMENT_FIXED4X4; +extern daeString COLLADA_ELEMENT_GLES_PIPELINE_SETTINGS; +extern daeString COLLADA_ELEMENT_TEXTURE_PIPELINE; +extern daeString COLLADA_ELEMENT_LIGHT_LINEAR_ATTENUTATION; +extern daeString COLLADA_ELEMENT_COLOR_MATERIAL_ENABLE; +extern daeString COLLADA_ELEMENT_TEXTURE_PIPELINE_ENABLE; +extern daeString COLLADA_ELEMENT_GLES_BASIC_TYPE_COMMON; +extern daeString COLLADA_ELEMENT_COLLADA; +extern daeString COLLADA_ELEMENT_SCENE; +extern daeString COLLADA_ELEMENT_IDREF_ARRAY; +extern daeString COLLADA_ELEMENT_NAME_ARRAY; +extern daeString COLLADA_ELEMENT_BOOL_ARRAY; +extern daeString COLLADA_ELEMENT_FLOAT_ARRAY; +extern daeString COLLADA_ELEMENT_INT_ARRAY; +extern daeString COLLADA_ELEMENT_ACCESSOR; +extern daeString COLLADA_ELEMENT_TECHNIQUE_COMMON; +extern daeString COLLADA_ELEMENT_GEOMETRY; +extern daeString COLLADA_ELEMENT_MESH; +extern daeString COLLADA_ELEMENT_SPLINE; +extern daeString COLLADA_ELEMENT_CONTROL_VERTICES; +extern daeString COLLADA_ELEMENT_P; +extern daeString COLLADA_ELEMENT_LINES; +extern daeString COLLADA_ELEMENT_LINESTRIPS; +extern daeString COLLADA_ELEMENT_POLYGONS; +extern daeString COLLADA_ELEMENT_PH; +extern daeString COLLADA_ELEMENT_H; +extern daeString COLLADA_ELEMENT_POLYLIST; +extern daeString COLLADA_ELEMENT_VCOUNT; +extern daeString COLLADA_ELEMENT_TRIANGLES; +extern daeString COLLADA_ELEMENT_TRIFANS; +extern daeString COLLADA_ELEMENT_TRISTRIPS; +extern daeString COLLADA_ELEMENT_VERTICES; +extern daeString COLLADA_ELEMENT_LOOKAT; +extern daeString COLLADA_ELEMENT_MATRIX; +extern daeString COLLADA_ELEMENT_ROTATE; +extern daeString COLLADA_ELEMENT_SCALE; +extern daeString COLLADA_ELEMENT_SKEW; +extern daeString COLLADA_ELEMENT_TRANSLATE; +extern daeString COLLADA_ELEMENT_IMAGE; +extern daeString COLLADA_ELEMENT_DATA; +extern daeString COLLADA_ELEMENT_LIGHT; +extern daeString COLLADA_ELEMENT_AMBIENT; +extern daeString COLLADA_ELEMENT_DIRECTIONAL; +extern daeString COLLADA_ELEMENT_POINT; +extern daeString COLLADA_ELEMENT_SPOT; +extern daeString COLLADA_ELEMENT_MATERIAL; +extern daeString COLLADA_ELEMENT_CAMERA; +extern daeString COLLADA_ELEMENT_OPTICS; +extern daeString COLLADA_ELEMENT_ORTHOGRAPHIC; +extern daeString COLLADA_ELEMENT_PERSPECTIVE; +extern daeString COLLADA_ELEMENT_IMAGER; +extern daeString COLLADA_ELEMENT_ANIMATION; +extern daeString COLLADA_ELEMENT_ANIMATION_CLIP; +extern daeString COLLADA_ELEMENT_CHANNEL; +extern daeString COLLADA_ELEMENT_SAMPLER; +extern daeString COLLADA_ELEMENT_CONTROLLER; +extern daeString COLLADA_ELEMENT_SKIN; +extern daeString COLLADA_ELEMENT_BIND_SHAPE_MATRIX; +extern daeString COLLADA_ELEMENT_JOINTS; +extern daeString COLLADA_ELEMENT_VERTEX_WEIGHTS; +extern daeString COLLADA_ELEMENT_V; +extern daeString COLLADA_ELEMENT_MORPH; +extern daeString COLLADA_ELEMENT_TARGETS; +extern daeString COLLADA_ELEMENT_ASSET; +extern daeString COLLADA_ELEMENT_CONTRIBUTOR; +extern daeString COLLADA_ELEMENT_AUTHOR; +extern daeString COLLADA_ELEMENT_AUTHORING_TOOL; +extern daeString COLLADA_ELEMENT_COMMENTS; +extern daeString COLLADA_ELEMENT_COPYRIGHT; +extern daeString COLLADA_ELEMENT_SOURCE_DATA; +extern daeString COLLADA_ELEMENT_CREATED; +extern daeString COLLADA_ELEMENT_KEYWORDS; +extern daeString COLLADA_ELEMENT_MODIFIED; +extern daeString COLLADA_ELEMENT_REVISION; +extern daeString COLLADA_ELEMENT_SUBJECT; +extern daeString COLLADA_ELEMENT_TITLE; +extern daeString COLLADA_ELEMENT_UNIT; +extern daeString COLLADA_ELEMENT_UP_AXIS; +extern daeString COLLADA_ELEMENT_EXTRA; +extern daeString COLLADA_ELEMENT_TECHNIQUE; +extern daeString COLLADA_ELEMENT_NODE; +extern daeString COLLADA_ELEMENT_VISUAL_SCENE; +extern daeString COLLADA_ELEMENT_EVALUATE_SCENE; +extern daeString COLLADA_ELEMENT_RENDER; +extern daeString COLLADA_ELEMENT_LAYER; +extern daeString COLLADA_ELEMENT_BIND_MATERIAL; +extern daeString COLLADA_ELEMENT_INSTANCE_CAMERA; +extern daeString COLLADA_ELEMENT_INSTANCE_CONTROLLER; +extern daeString COLLADA_ELEMENT_SKELETON; +extern daeString COLLADA_ELEMENT_INSTANCE_EFFECT; +extern daeString COLLADA_ELEMENT_TECHNIQUE_HINT; +extern daeString COLLADA_ELEMENT_SETPARAM; +extern daeString COLLADA_ELEMENT_INSTANCE_FORCE_FIELD; +extern daeString COLLADA_ELEMENT_INSTANCE_GEOMETRY; +extern daeString COLLADA_ELEMENT_INSTANCE_LIGHT; +extern daeString COLLADA_ELEMENT_INSTANCE_MATERIAL; +extern daeString COLLADA_ELEMENT_BIND; +extern daeString COLLADA_ELEMENT_INSTANCE_NODE; +extern daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_MATERIAL; +extern daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_MODEL; +extern daeString COLLADA_ELEMENT_INSTANCE_RIGID_BODY; +extern daeString COLLADA_ELEMENT_ANGULAR_VELOCITY; +extern daeString COLLADA_ELEMENT_VELOCITY; +extern daeString COLLADA_ELEMENT_DYNAMIC; +extern daeString COLLADA_ELEMENT_MASS_FRAME; +extern daeString COLLADA_ELEMENT_SHAPE; +extern daeString COLLADA_ELEMENT_HOLLOW; +extern daeString COLLADA_ELEMENT_INSTANCE_RIGID_CONSTRAINT; +extern daeString COLLADA_ELEMENT_LIBRARY_ANIMATIONS; +extern daeString COLLADA_ELEMENT_LIBRARY_ANIMATION_CLIPS; +extern daeString COLLADA_ELEMENT_LIBRARY_CAMERAS; +extern daeString COLLADA_ELEMENT_LIBRARY_CONTROLLERS; +extern daeString COLLADA_ELEMENT_LIBRARY_GEOMETRIES; +extern daeString COLLADA_ELEMENT_LIBRARY_EFFECTS; +extern daeString COLLADA_ELEMENT_LIBRARY_FORCE_FIELDS; +extern daeString COLLADA_ELEMENT_LIBRARY_IMAGES; +extern daeString COLLADA_ELEMENT_LIBRARY_LIGHTS; +extern daeString COLLADA_ELEMENT_LIBRARY_MATERIALS; +extern daeString COLLADA_ELEMENT_LIBRARY_NODES; +extern daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_MATERIALS; +extern daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_MODELS; +extern daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_SCENES; +extern daeString COLLADA_ELEMENT_LIBRARY_VISUAL_SCENES; +extern daeString COLLADA_ELEMENT_FX_PROFILE_ABSTRACT; +extern daeString COLLADA_ELEMENT_EFFECT; +extern daeString COLLADA_ELEMENT_GL_HOOK_ABSTRACT; +extern daeString COLLADA_ELEMENT_PROFILE_GLSL; +extern daeString COLLADA_ELEMENT_PASS; +extern daeString COLLADA_ELEMENT_DRAW; +extern daeString COLLADA_ELEMENT_SHADER; +extern daeString COLLADA_ELEMENT_COMPILER_TARGET; +extern daeString COLLADA_ELEMENT_COMPILER_OPTIONS; +extern daeString COLLADA_ELEMENT_PROFILE_COMMON; +extern daeString COLLADA_ELEMENT_CONSTANT; +extern daeString COLLADA_ELEMENT_LAMBERT; +extern daeString COLLADA_ELEMENT_PHONG; +extern daeString COLLADA_ELEMENT_BLINN; +extern daeString COLLADA_ELEMENT_PROFILE_CG; +extern daeString COLLADA_ELEMENT_PROFILE_GLES; +extern daeString COLLADA_ELEMENT_COLOR_TARGET; +extern daeString COLLADA_ELEMENT_DEPTH_TARGET; +extern daeString COLLADA_ELEMENT_STENCIL_TARGET; +extern daeString COLLADA_ELEMENT_COLOR_CLEAR; +extern daeString COLLADA_ELEMENT_DEPTH_CLEAR; +extern daeString COLLADA_ELEMENT_STENCIL_CLEAR; +extern daeString COLLADA_ELEMENT_BOX; +extern daeString COLLADA_ELEMENT_HALF_EXTENTS; +extern daeString COLLADA_ELEMENT_PLANE; +extern daeString COLLADA_ELEMENT_EQUATION; +extern daeString COLLADA_ELEMENT_SPHERE; +extern daeString COLLADA_ELEMENT_RADIUS; +extern daeString COLLADA_ELEMENT_ELLIPSOID; +extern daeString COLLADA_ELEMENT_CYLINDER; +extern daeString COLLADA_ELEMENT_HEIGHT; +extern daeString COLLADA_ELEMENT_TAPERED_CYLINDER; +extern daeString COLLADA_ELEMENT_RADIUS1; +extern daeString COLLADA_ELEMENT_RADIUS2; +extern daeString COLLADA_ELEMENT_CAPSULE; +extern daeString COLLADA_ELEMENT_TAPERED_CAPSULE; +extern daeString COLLADA_ELEMENT_CONVEX_MESH; +extern daeString COLLADA_ELEMENT_FORCE_FIELD; +extern daeString COLLADA_ELEMENT_PHYSICS_MATERIAL; +extern daeString COLLADA_ELEMENT_PHYSICS_SCENE; +extern daeString COLLADA_ELEMENT_RIGID_BODY; +extern daeString COLLADA_ELEMENT_RIGID_CONSTRAINT; +extern daeString COLLADA_ELEMENT_REF_ATTACHMENT; +extern daeString COLLADA_ELEMENT_ATTACHMENT; +extern daeString COLLADA_ELEMENT_ENABLED; +extern daeString COLLADA_ELEMENT_INTERPENETRATE; +extern daeString COLLADA_ELEMENT_LIMITS; +extern daeString COLLADA_ELEMENT_SWING_CONE_AND_TWIST; +extern daeString COLLADA_ELEMENT_LINEAR; +extern daeString COLLADA_ELEMENT_SPRING; +extern daeString COLLADA_ELEMENT_ANGULAR; +extern daeString COLLADA_ELEMENT_PHYSICS_MODEL; + +#endif //__DOM_CONSTANTS_H__ + diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domController.h b/Extras/COLLADA_DOM/include/1.4/dom/domController.h new file mode 100644 index 000000000..4a6bb973b --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domController.h @@ -0,0 +1,167 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domController_h__ +#define __domController_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * The controller element categorizes the declaration of generic control information. + * A controller is a device or mechanism that manages and directs the operations + * of another object. + */ +class domController : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The controller element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The controller element may contain either a skin element or a morph element. + * @see domSkin + */ + domSkinRef elemSkin; +/** + * The controller element may contain either a skin element or a morph element. + * @see domMorph + */ + domMorphRef elemMorph; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the skin element. + * @return a daeSmartRef to the skin element. + */ + const domSkinRef getSkin() const { return elemSkin; } + /** + * Gets the morph element. + * @return a daeSmartRef to the morph element. + */ + const domMorphRef getMorph() const { return elemMorph; } + /** + * 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. + */ + 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 + */ + domController() : attrId(), attrName(), elemAsset(), elemSkin(), elemMorph(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domController() {} + /** + * Copy Constructor + */ + domController( const domController &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domController &operator=( const domController &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domConvex_mesh.h b/Extras/COLLADA_DOM/include/1.4/dom/domConvex_mesh.h new file mode 100644 index 000000000..a748e59a0 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domConvex_mesh.h @@ -0,0 +1,229 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domConvex_mesh_h__ +#define __domConvex_mesh_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * The definition of the convex_mesh element is identical to the mesh element + * with the exception that instead of a complete description (source, vertices, + * polygons etc.), it may simply point to another geometry to derive its + * shape. The latter case means that the convex hull of that geometry should + * be computed and is indicated by the optional “convex_hull_of” attribute. + */ +class domConvex_mesh : public daeElement +{ +protected: // Attribute +/** + * The convex_hull_of attribute is a URI string of geometry to compute the + * convex hull of. Optional attribute. + */ + xsAnyURI attrConvex_hull_of; + +protected: // Elements + domSource_Array elemSource_array; + domVerticesRef elemVertices; + domLines_Array elemLines_array; + domLinestrips_Array elemLinestrips_array; + domPolygons_Array elemPolygons_array; + domPolylist_Array elemPolylist_array; + domTriangles_Array elemTriangles_array; + domTrifans_Array elemTrifans_array; + domTristrips_Array elemTristrips_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the convex_hull_of attribute. + * @return Returns a xsAnyURI reference of the convex_hull_of attribute. + */ + xsAnyURI &getConvex_hull_of() { return attrConvex_hull_of; } + /** + * Gets the convex_hull_of attribute. + * @return Returns a constant xsAnyURI reference of the convex_hull_of attribute. + */ + const xsAnyURI &getConvex_hull_of() const { return attrConvex_hull_of; } + /** + * Sets the convex_hull_of attribute. + * @param atConvex_hull_of The new value for the convex_hull_of attribute. + */ + void setConvex_hull_of( const xsAnyURI &atConvex_hull_of ) { attrConvex_hull_of.setURI( atConvex_hull_of.getURI() ); } + + /** + * Gets the source element array. + * @return Returns a reference to the array of source elements. + */ + domSource_Array &getSource_array() { return elemSource_array; } + /** + * Gets the source element array. + * @return Returns a constant reference to the array of source elements. + */ + const domSource_Array &getSource_array() const { return elemSource_array; } + /** + * Gets the vertices element. + * @return a daeSmartRef to the vertices element. + */ + const domVerticesRef getVertices() const { return elemVertices; } + /** + * Gets the lines element array. + * @return Returns a reference to the array of lines elements. + */ + domLines_Array &getLines_array() { return elemLines_array; } + /** + * Gets the lines element array. + * @return Returns a constant reference to the array of lines elements. + */ + const domLines_Array &getLines_array() const { return elemLines_array; } + /** + * Gets the linestrips element array. + * @return Returns a reference to the array of linestrips elements. + */ + domLinestrips_Array &getLinestrips_array() { return elemLinestrips_array; } + /** + * Gets the linestrips element array. + * @return Returns a constant reference to the array of linestrips elements. + */ + const domLinestrips_Array &getLinestrips_array() const { return elemLinestrips_array; } + /** + * Gets the polygons element array. + * @return Returns a reference to the array of polygons elements. + */ + domPolygons_Array &getPolygons_array() { return elemPolygons_array; } + /** + * Gets the polygons element array. + * @return Returns a constant reference to the array of polygons elements. + */ + const domPolygons_Array &getPolygons_array() const { return elemPolygons_array; } + /** + * Gets the polylist element array. + * @return Returns a reference to the array of polylist elements. + */ + domPolylist_Array &getPolylist_array() { return elemPolylist_array; } + /** + * Gets the polylist element array. + * @return Returns a constant reference to the array of polylist elements. + */ + const domPolylist_Array &getPolylist_array() const { return elemPolylist_array; } + /** + * Gets the triangles element array. + * @return Returns a reference to the array of triangles elements. + */ + domTriangles_Array &getTriangles_array() { return elemTriangles_array; } + /** + * Gets the triangles element array. + * @return Returns a constant reference to the array of triangles elements. + */ + const domTriangles_Array &getTriangles_array() const { return elemTriangles_array; } + /** + * Gets the trifans element array. + * @return Returns a reference to the array of trifans elements. + */ + domTrifans_Array &getTrifans_array() { return elemTrifans_array; } + /** + * Gets the trifans element array. + * @return Returns a constant reference to the array of trifans elements. + */ + const domTrifans_Array &getTrifans_array() const { return elemTrifans_array; } + /** + * Gets the tristrips element array. + * @return Returns a reference to the array of tristrips elements. + */ + domTristrips_Array &getTristrips_array() { return elemTristrips_array; } + /** + * Gets the tristrips element array. + * @return Returns a constant reference to the array of tristrips elements. + */ + const domTristrips_Array &getTristrips_array() const { return elemTristrips_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. + */ + 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 + */ + domConvex_mesh() : attrConvex_hull_of(), elemSource_array(), elemVertices(), elemLines_array(), elemLinestrips_array(), elemPolygons_array(), elemPolylist_array(), elemTriangles_array(), elemTrifans_array(), elemTristrips_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domConvex_mesh() {} + /** + * Copy Constructor + */ + domConvex_mesh( const domConvex_mesh &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domConvex_mesh &operator=( const domConvex_mesh &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCylinder.h b/Extras/COLLADA_DOM/include/1.4/dom/domCylinder.h new file mode 100644 index 000000000..0ca0c11d4 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domCylinder.h @@ -0,0 +1,247 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domCylinder_h__ +#define __domCylinder_h__ + +#include +#include + +#include + +/** + * A cylinder primitive that is centered on, and aligned with. the local Y + * axis. + */ +class domCylinder : public daeElement +{ +public: + class domHeight; + + typedef daeSmartRef domHeightRef; + typedef daeTArray domHeight_Array; + +/** + * A float value that represents the length of the cylinder along the Y axis. + */ + class domHeight : public daeElement + { + + protected: // Value + /** + * The domFloat value of the text data of this element. + */ + domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFloat of the value. + */ + domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHeight() : _value() {} + /** + * Destructor + */ + virtual ~domHeight() {} + /** + * Copy Constructor + */ + domHeight( const domHeight &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHeight &operator=( const domHeight &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; + }; + + class domRadius; + + typedef daeSmartRef domRadiusRef; + typedef daeTArray domRadius_Array; + +/** + * float2 values that represent the radii of the cylinder. + */ + class domRadius : public daeElement + { + + protected: // Value + /** + * The domFloat2 value of the text data of this element. + */ + domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat2 reference of the _value array. + */ + domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat2 reference of the _value array. + */ + const domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domRadius() : _value() {} + /** + * Destructor + */ + virtual ~domRadius() {} + /** + * Copy Constructor + */ + domRadius( const domRadius &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRadius &operator=( const domRadius &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: // Elements +/** + * A float value that represents the length of the cylinder along the Y axis. + * @see domHeight + */ + domHeightRef elemHeight; +/** + * float2 values that represent the radii of the cylinder. @see domRadius + */ + domRadiusRef elemRadius; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the height element. + * @return a daeSmartRef to the height element. + */ + const domHeightRef getHeight() const { return elemHeight; } + /** + * Gets the radius element. + * @return a daeSmartRef to the radius element. + */ + const domRadiusRef getRadius() const { return elemRadius; } + /** + * 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; } +protected: + /** + * Constructor + */ + domCylinder() : elemHeight(), elemRadius(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domCylinder() {} + /** + * Copy Constructor + */ + domCylinder( const domCylinder &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCylinder &operator=( const domCylinder &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domEffect.h b/Extras/COLLADA_DOM/include/1.4/dom/domEffect.h new file mode 100644 index 000000000..3867e42be --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domEffect.h @@ -0,0 +1,207 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domEffect_h__ +#define __domEffect_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include + +/** + * A self contained description of a shader effect. + */ +class domEffect : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The effect element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The annotate element allows you to specify an annotation on this effect. + * @see domAnnotate + */ + domFx_annotate_common_Array elemAnnotate_array; +/** + * The image element allows you to create image resources which can be shared + * by multipe profiles. @see domImage + */ + domImage_Array elemImage_array; +/** + * The newparam element allows you to create new effect parameters which can + * be shared by multipe profiles. @see domNewparam + */ + domFx_newparam_common_Array elemNewparam_array; +/** + * This is the substituion group hook which allows you to swap in other COLLADA + * FX profiles. @see domFx_profile_abstract + */ + domFx_profile_abstract_Array elemFx_profile_abstract_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * 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 image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_array; } + /** + * Gets the newparam element array. + * @return Returns a reference to the array of newparam elements. + */ + domFx_newparam_common_Array &getNewparam_array() { return elemNewparam_array; } + /** + * Gets the newparam element array. + * @return Returns a constant reference to the array of newparam elements. + */ + const domFx_newparam_common_Array &getNewparam_array() const { return elemNewparam_array; } + /** + * Gets the fx_profile_abstract element array. + * @return Returns a reference to the array of fx_profile_abstract elements. + */ + domFx_profile_abstract_Array &getFx_profile_abstract_array() { return elemFx_profile_abstract_array; } + /** + * Gets the fx_profile_abstract element array. + * @return Returns a constant reference to the array of fx_profile_abstract elements. + */ + const domFx_profile_abstract_Array &getFx_profile_abstract_array() const { return elemFx_profile_abstract_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. + */ + 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 + */ + domEffect() : attrId(), attrName(), elemAsset(), elemAnnotate_array(), elemImage_array(), elemNewparam_array(), elemFx_profile_abstract_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domEffect() {} + /** + * Copy Constructor + */ + domEffect( const domEffect &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domEffect &operator=( const domEffect &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domElements.h b/Extras/COLLADA_DOM/include/1.4/dom/domElements.h new file mode 100644 index 000000000..75f2c85ca --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domElements.h @@ -0,0 +1,841 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DOM_ELEMENTS_H__ +#define __DOM_ELEMENTS_H__ + +#include + +class domInputGlobal; + +typedef daeSmartRef domInputGlobalRef; +typedef daeTArray domInputGlobal_Array; + +class domInputLocal; + +typedef daeSmartRef domInputLocalRef; +typedef daeTArray domInputLocal_Array; + +class domInputLocalOffset; + +typedef daeSmartRef domInputLocalOffsetRef; +typedef daeTArray domInputLocalOffset_Array; + +class domInstanceWithExtra; + +typedef daeSmartRef domInstanceWithExtraRef; +typedef daeTArray domInstanceWithExtra_Array; + +class domTargetableFloat; + +typedef daeSmartRef domTargetableFloatRef; +typedef daeTArray domTargetableFloat_Array; + +class domTargetableFloat3; + +typedef daeSmartRef domTargetableFloat3Ref; +typedef daeTArray domTargetableFloat3_Array; + +class domFx_surface_common; + +typedef daeSmartRef domFx_surface_commonRef; +typedef daeTArray domFx_surface_common_Array; + +class domFx_sampler1D_common; + +typedef daeSmartRef domFx_sampler1D_commonRef; +typedef daeTArray domFx_sampler1D_common_Array; + +class domFx_sampler2D_common; + +typedef daeSmartRef domFx_sampler2D_commonRef; +typedef daeTArray domFx_sampler2D_common_Array; + +class domFx_sampler3D_common; + +typedef daeSmartRef domFx_sampler3D_commonRef; +typedef daeTArray domFx_sampler3D_common_Array; + +class domFx_samplerCUBE_common; + +typedef daeSmartRef domFx_samplerCUBE_commonRef; +typedef daeTArray domFx_samplerCUBE_common_Array; + +class domFx_samplerRECT_common; + +typedef daeSmartRef domFx_samplerRECT_commonRef; +typedef daeTArray domFx_samplerRECT_common_Array; + +class domFx_samplerDEPTH_common; + +typedef daeSmartRef domFx_samplerDEPTH_commonRef; +typedef daeTArray domFx_samplerDEPTH_common_Array; + +class domFx_colortarget_common; + +typedef daeSmartRef domFx_colortarget_commonRef; +typedef daeTArray domFx_colortarget_common_Array; + +class domFx_depthtarget_common; + +typedef daeSmartRef domFx_depthtarget_commonRef; +typedef daeTArray domFx_depthtarget_common_Array; + +class domFx_stenciltarget_common; + +typedef daeSmartRef domFx_stenciltarget_commonRef; +typedef daeTArray domFx_stenciltarget_common_Array; + +class domFx_clearcolor_common; + +typedef daeSmartRef domFx_clearcolor_commonRef; +typedef daeTArray domFx_clearcolor_common_Array; + +class domFx_cleardepth_common; + +typedef daeSmartRef domFx_cleardepth_commonRef; +typedef daeTArray domFx_cleardepth_common_Array; + +class domFx_clearstencil_common; + +typedef daeSmartRef domFx_clearstencil_commonRef; +typedef daeTArray domFx_clearstencil_common_Array; + +class domFx_annotate_common; + +typedef daeSmartRef domFx_annotate_commonRef; +typedef daeTArray domFx_annotate_common_Array; + +class domFx_include_common; + +typedef daeSmartRef domFx_include_commonRef; +typedef daeTArray domFx_include_common_Array; + +class domFx_newparam_common; + +typedef daeSmartRef domFx_newparam_commonRef; +typedef daeTArray domFx_newparam_common_Array; + +class domFx_setparam_common; + +typedef daeSmartRef domFx_setparam_commonRef; +typedef daeTArray domFx_setparam_common_Array; + +class domFx_code_profile; + +typedef daeSmartRef domFx_code_profileRef; +typedef daeTArray domFx_code_profile_Array; + +class domGl_sampler1D; + +typedef daeSmartRef domGl_sampler1DRef; +typedef daeTArray domGl_sampler1D_Array; + +class domGl_sampler2D; + +typedef daeSmartRef domGl_sampler2DRef; +typedef daeTArray domGl_sampler2D_Array; + +class domGl_sampler3D; + +typedef daeSmartRef domGl_sampler3DRef; +typedef daeTArray domGl_sampler3D_Array; + +class domGl_samplerCUBE; + +typedef daeSmartRef domGl_samplerCUBERef; +typedef daeTArray domGl_samplerCUBE_Array; + +class domGl_samplerRECT; + +typedef daeSmartRef domGl_samplerRECTRef; +typedef daeTArray domGl_samplerRECT_Array; + +class domGl_samplerDEPTH; + +typedef daeSmartRef domGl_samplerDEPTHRef; +typedef daeTArray domGl_samplerDEPTH_Array; + +class domGlsl_newarray_type; + +typedef daeSmartRef domGlsl_newarray_typeRef; +typedef daeTArray domGlsl_newarray_type_Array; + +class domGlsl_setarray_type; + +typedef daeSmartRef domGlsl_setarray_typeRef; +typedef daeTArray domGlsl_setarray_type_Array; + +class domGlsl_surface_type; + +typedef daeSmartRef domGlsl_surface_typeRef; +typedef daeTArray domGlsl_surface_type_Array; + +class domGlsl_newparam; + +typedef daeSmartRef domGlsl_newparamRef; +typedef daeTArray domGlsl_newparam_Array; + +class domGlsl_setparam_simple; + +typedef daeSmartRef domGlsl_setparam_simpleRef; +typedef daeTArray domGlsl_setparam_simple_Array; + +class domGlsl_setparam; + +typedef daeSmartRef domGlsl_setparamRef; +typedef daeTArray domGlsl_setparam_Array; + +class domCommon_float_or_param_type; + +typedef daeSmartRef domCommon_float_or_param_typeRef; +typedef daeTArray domCommon_float_or_param_type_Array; + +class domCommon_color_or_texture_type; + +typedef daeSmartRef domCommon_color_or_texture_typeRef; +typedef daeTArray domCommon_color_or_texture_type_Array; + +class domCommon_newparam_type; + +typedef daeSmartRef domCommon_newparam_typeRef; +typedef daeTArray domCommon_newparam_type_Array; + +class domCg_sampler1D; + +typedef daeSmartRef domCg_sampler1DRef; +typedef daeTArray domCg_sampler1D_Array; + +class domCg_sampler2D; + +typedef daeSmartRef domCg_sampler2DRef; +typedef daeTArray domCg_sampler2D_Array; + +class domCg_sampler3D; + +typedef daeSmartRef domCg_sampler3DRef; +typedef daeTArray domCg_sampler3D_Array; + +class domCg_samplerCUBE; + +typedef daeSmartRef domCg_samplerCUBERef; +typedef daeTArray domCg_samplerCUBE_Array; + +class domCg_samplerRECT; + +typedef daeSmartRef domCg_samplerRECTRef; +typedef daeTArray domCg_samplerRECT_Array; + +class domCg_samplerDEPTH; + +typedef daeSmartRef domCg_samplerDEPTHRef; +typedef daeTArray domCg_samplerDEPTH_Array; + +class domCg_connect_param; + +typedef daeSmartRef domCg_connect_paramRef; +typedef daeTArray domCg_connect_param_Array; + +class domCg_newarray_type; + +typedef daeSmartRef domCg_newarray_typeRef; +typedef daeTArray domCg_newarray_type_Array; + +class domCg_setarray_type; + +typedef daeSmartRef domCg_setarray_typeRef; +typedef daeTArray domCg_setarray_type_Array; + +class domCg_setuser_type; + +typedef daeSmartRef domCg_setuser_typeRef; +typedef daeTArray domCg_setuser_type_Array; + +class domCg_surface_type; + +typedef daeSmartRef domCg_surface_typeRef; +typedef daeTArray domCg_surface_type_Array; + +class domCg_newparam; + +typedef daeSmartRef domCg_newparamRef; +typedef daeTArray domCg_newparam_Array; + +class domCg_setparam_simple; + +typedef daeSmartRef domCg_setparam_simpleRef; +typedef daeTArray domCg_setparam_simple_Array; + +class domCg_setparam; + +typedef daeSmartRef domCg_setparamRef; +typedef daeTArray domCg_setparam_Array; + +class domGles_texture_constant_type; + +typedef daeSmartRef domGles_texture_constant_typeRef; +typedef daeTArray domGles_texture_constant_type_Array; + +class domGles_texenv_command_type; + +typedef daeSmartRef domGles_texenv_command_typeRef; +typedef daeTArray domGles_texenv_command_type_Array; + +class domGles_texcombiner_argumentRGB_type; + +typedef daeSmartRef domGles_texcombiner_argumentRGB_typeRef; +typedef daeTArray domGles_texcombiner_argumentRGB_type_Array; + +class domGles_texcombiner_argumentAlpha_type; + +typedef daeSmartRef domGles_texcombiner_argumentAlpha_typeRef; +typedef daeTArray domGles_texcombiner_argumentAlpha_type_Array; + +class domGles_texcombiner_commandRGB_type; + +typedef daeSmartRef domGles_texcombiner_commandRGB_typeRef; +typedef daeTArray domGles_texcombiner_commandRGB_type_Array; + +class domGles_texcombiner_commandAlpha_type; + +typedef daeSmartRef domGles_texcombiner_commandAlpha_typeRef; +typedef daeTArray domGles_texcombiner_commandAlpha_type_Array; + +class domGles_texcombiner_command_type; + +typedef daeSmartRef domGles_texcombiner_command_typeRef; +typedef daeTArray domGles_texcombiner_command_type_Array; + +class domGles_texture_pipeline; + +typedef daeSmartRef domGles_texture_pipelineRef; +typedef daeTArray domGles_texture_pipeline_Array; + +class domGles_texture_unit; + +typedef daeSmartRef domGles_texture_unitRef; +typedef daeTArray domGles_texture_unit_Array; + +class domGles_sampler_state; + +typedef daeSmartRef domGles_sampler_stateRef; +typedef daeTArray domGles_sampler_state_Array; + +class domGles_newparam; + +typedef daeSmartRef domGles_newparamRef; +typedef daeTArray domGles_newparam_Array; + +class domFx_annotate_type_common; + +typedef daeSmartRef domFx_annotate_type_commonRef; +typedef daeTArray domFx_annotate_type_common_Array; + +class domFx_basic_type_common; + +typedef daeSmartRef domFx_basic_type_commonRef; +typedef daeTArray domFx_basic_type_common_Array; + +class domGl_pipeline_settings; + +typedef daeSmartRef domGl_pipeline_settingsRef; +typedef daeTArray domGl_pipeline_settings_Array; + +class domGlsl_param_type; + +typedef daeSmartRef domGlsl_param_typeRef; +typedef daeTArray domGlsl_param_type_Array; + +class domCg_param_type; + +typedef daeSmartRef domCg_param_typeRef; +typedef daeTArray domCg_param_type_Array; + +class domGles_pipeline_settings; + +typedef daeSmartRef domGles_pipeline_settingsRef; +typedef daeTArray domGles_pipeline_settings_Array; + +class domGles_basic_type_common; + +typedef daeSmartRef domGles_basic_type_commonRef; +typedef daeTArray domGles_basic_type_common_Array; + +class domCOLLADA; + +typedef daeSmartRef domCOLLADARef; +typedef daeTArray domCOLLADA_Array; + +class domIDREF_array; + +typedef daeSmartRef domIDREF_arrayRef; +typedef daeTArray domIDREF_array_Array; + +class domName_array; + +typedef daeSmartRef domName_arrayRef; +typedef daeTArray domName_array_Array; + +class domBool_array; + +typedef daeSmartRef domBool_arrayRef; +typedef daeTArray domBool_array_Array; + +class domFloat_array; + +typedef daeSmartRef domFloat_arrayRef; +typedef daeTArray domFloat_array_Array; + +class domInt_array; + +typedef daeSmartRef domInt_arrayRef; +typedef daeTArray domInt_array_Array; + +class domAccessor; + +typedef daeSmartRef domAccessorRef; +typedef daeTArray domAccessor_Array; + +class domParam; + +typedef daeSmartRef domParamRef; +typedef daeTArray domParam_Array; + +class domSource; + +typedef daeSmartRef domSourceRef; +typedef daeTArray domSource_Array; + +class domGeometry; + +typedef daeSmartRef domGeometryRef; +typedef daeTArray domGeometry_Array; + +class domMesh; + +typedef daeSmartRef domMeshRef; +typedef daeTArray domMesh_Array; + +class domSpline; + +typedef daeSmartRef domSplineRef; +typedef daeTArray domSpline_Array; + +class domP; + +typedef daeSmartRef domPRef; +typedef daeTArray domP_Array; + +class domLines; + +typedef daeSmartRef domLinesRef; +typedef daeTArray domLines_Array; + +class domLinestrips; + +typedef daeSmartRef domLinestripsRef; +typedef daeTArray domLinestrips_Array; + +class domPolygons; + +typedef daeSmartRef domPolygonsRef; +typedef daeTArray domPolygons_Array; + +class domPolylist; + +typedef daeSmartRef domPolylistRef; +typedef daeTArray domPolylist_Array; + +class domTriangles; + +typedef daeSmartRef domTrianglesRef; +typedef daeTArray domTriangles_Array; + +class domTrifans; + +typedef daeSmartRef domTrifansRef; +typedef daeTArray domTrifans_Array; + +class domTristrips; + +typedef daeSmartRef domTristripsRef; +typedef daeTArray domTristrips_Array; + +class domVertices; + +typedef daeSmartRef domVerticesRef; +typedef daeTArray domVertices_Array; + +class domLookat; + +typedef daeSmartRef domLookatRef; +typedef daeTArray domLookat_Array; + +class domMatrix; + +typedef daeSmartRef domMatrixRef; +typedef daeTArray domMatrix_Array; + +class domRotate; + +typedef daeSmartRef domRotateRef; +typedef daeTArray domRotate_Array; + +class domScale; + +typedef daeSmartRef domScaleRef; +typedef daeTArray domScale_Array; + +class domSkew; + +typedef daeSmartRef domSkewRef; +typedef daeTArray domSkew_Array; + +class domTranslate; + +typedef daeSmartRef domTranslateRef; +typedef daeTArray domTranslate_Array; + +class domImage; + +typedef daeSmartRef domImageRef; +typedef daeTArray domImage_Array; + +class domLight; + +typedef daeSmartRef domLightRef; +typedef daeTArray domLight_Array; + +class domMaterial; + +typedef daeSmartRef domMaterialRef; +typedef daeTArray domMaterial_Array; + +class domCamera; + +typedef daeSmartRef domCameraRef; +typedef daeTArray domCamera_Array; + +class domAnimation; + +typedef daeSmartRef domAnimationRef; +typedef daeTArray domAnimation_Array; + +class domAnimation_clip; + +typedef daeSmartRef domAnimation_clipRef; +typedef daeTArray domAnimation_clip_Array; + +class domChannel; + +typedef daeSmartRef domChannelRef; +typedef daeTArray domChannel_Array; + +class domSampler; + +typedef daeSmartRef domSamplerRef; +typedef daeTArray domSampler_Array; + +class domController; + +typedef daeSmartRef domControllerRef; +typedef daeTArray domController_Array; + +class domSkin; + +typedef daeSmartRef domSkinRef; +typedef daeTArray domSkin_Array; + +class domMorph; + +typedef daeSmartRef domMorphRef; +typedef daeTArray domMorph_Array; + +class domAsset; + +typedef daeSmartRef domAssetRef; +typedef daeTArray domAsset_Array; + +class domExtra; + +typedef daeSmartRef domExtraRef; +typedef daeTArray domExtra_Array; + +class domTechnique; + +typedef daeSmartRef domTechniqueRef; +typedef daeTArray domTechnique_Array; + +class domNode; + +typedef daeSmartRef domNodeRef; +typedef daeTArray domNode_Array; + +class domVisual_scene; + +typedef daeSmartRef domVisual_sceneRef; +typedef daeTArray domVisual_scene_Array; + +class domBind_material; + +typedef daeSmartRef domBind_materialRef; +typedef daeTArray domBind_material_Array; + +class domInstance_camera; + +typedef daeSmartRef domInstance_cameraRef; +typedef daeTArray domInstance_camera_Array; + +class domInstance_controller; + +typedef daeSmartRef domInstance_controllerRef; +typedef daeTArray domInstance_controller_Array; + +class domInstance_effect; + +typedef daeSmartRef domInstance_effectRef; +typedef daeTArray domInstance_effect_Array; + +class domInstance_force_field; + +typedef daeSmartRef domInstance_force_fieldRef; +typedef daeTArray domInstance_force_field_Array; + +class domInstance_geometry; + +typedef daeSmartRef domInstance_geometryRef; +typedef daeTArray domInstance_geometry_Array; + +class domInstance_light; + +typedef daeSmartRef domInstance_lightRef; +typedef daeTArray domInstance_light_Array; + +class domInstance_material; + +typedef daeSmartRef domInstance_materialRef; +typedef daeTArray domInstance_material_Array; + +class domInstance_node; + +typedef daeSmartRef domInstance_nodeRef; +typedef daeTArray domInstance_node_Array; + +class domInstance_physics_material; + +typedef daeSmartRef domInstance_physics_materialRef; +typedef daeTArray domInstance_physics_material_Array; + +class domInstance_physics_model; + +typedef daeSmartRef domInstance_physics_modelRef; +typedef daeTArray domInstance_physics_model_Array; + +class domInstance_rigid_body; + +typedef daeSmartRef domInstance_rigid_bodyRef; +typedef daeTArray domInstance_rigid_body_Array; + +class domInstance_rigid_constraint; + +typedef daeSmartRef domInstance_rigid_constraintRef; +typedef daeTArray domInstance_rigid_constraint_Array; + +class domLibrary_animations; + +typedef daeSmartRef domLibrary_animationsRef; +typedef daeTArray domLibrary_animations_Array; + +class domLibrary_animation_clips; + +typedef daeSmartRef domLibrary_animation_clipsRef; +typedef daeTArray domLibrary_animation_clips_Array; + +class domLibrary_cameras; + +typedef daeSmartRef domLibrary_camerasRef; +typedef daeTArray domLibrary_cameras_Array; + +class domLibrary_controllers; + +typedef daeSmartRef domLibrary_controllersRef; +typedef daeTArray domLibrary_controllers_Array; + +class domLibrary_geometries; + +typedef daeSmartRef domLibrary_geometriesRef; +typedef daeTArray domLibrary_geometries_Array; + +class domLibrary_effects; + +typedef daeSmartRef domLibrary_effectsRef; +typedef daeTArray domLibrary_effects_Array; + +class domLibrary_force_fields; + +typedef daeSmartRef domLibrary_force_fieldsRef; +typedef daeTArray domLibrary_force_fields_Array; + +class domLibrary_images; + +typedef daeSmartRef domLibrary_imagesRef; +typedef daeTArray domLibrary_images_Array; + +class domLibrary_lights; + +typedef daeSmartRef domLibrary_lightsRef; +typedef daeTArray domLibrary_lights_Array; + +class domLibrary_materials; + +typedef daeSmartRef domLibrary_materialsRef; +typedef daeTArray domLibrary_materials_Array; + +class domLibrary_nodes; + +typedef daeSmartRef domLibrary_nodesRef; +typedef daeTArray domLibrary_nodes_Array; + +class domLibrary_physics_materials; + +typedef daeSmartRef domLibrary_physics_materialsRef; +typedef daeTArray domLibrary_physics_materials_Array; + +class domLibrary_physics_models; + +typedef daeSmartRef domLibrary_physics_modelsRef; +typedef daeTArray domLibrary_physics_models_Array; + +class domLibrary_physics_scenes; + +typedef daeSmartRef domLibrary_physics_scenesRef; +typedef daeTArray domLibrary_physics_scenes_Array; + +class domLibrary_visual_scenes; + +typedef daeSmartRef domLibrary_visual_scenesRef; +typedef daeTArray domLibrary_visual_scenes_Array; + +class domFx_profile_abstract; + +typedef daeSmartRef domFx_profile_abstractRef; +typedef daeTArray domFx_profile_abstract_Array; + +class domEffect; + +typedef daeSmartRef domEffectRef; +typedef daeTArray domEffect_Array; + +class domGl_hook_abstract; + +typedef daeSmartRef domGl_hook_abstractRef; +typedef daeTArray domGl_hook_abstract_Array; + +class domProfile_GLSL; + +typedef daeSmartRef domProfile_GLSLRef; +typedef daeTArray domProfile_GLSL_Array; + +class domProfile_COMMON; + +typedef daeSmartRef domProfile_COMMONRef; +typedef daeTArray domProfile_COMMON_Array; + +class domProfile_CG; + +typedef daeSmartRef domProfile_CGRef; +typedef daeTArray domProfile_CG_Array; + +class domProfile_GLES; + +typedef daeSmartRef domProfile_GLESRef; +typedef daeTArray domProfile_GLES_Array; + +class domBox; + +typedef daeSmartRef domBoxRef; +typedef daeTArray domBox_Array; + +class domPlane; + +typedef daeSmartRef domPlaneRef; +typedef daeTArray domPlane_Array; + +class domSphere; + +typedef daeSmartRef domSphereRef; +typedef daeTArray domSphere_Array; + +class domEllipsoid; + +typedef daeSmartRef domEllipsoidRef; +typedef daeTArray domEllipsoid_Array; + +class domCylinder; + +typedef daeSmartRef domCylinderRef; +typedef daeTArray domCylinder_Array; + +class domTapered_cylinder; + +typedef daeSmartRef domTapered_cylinderRef; +typedef daeTArray domTapered_cylinder_Array; + +class domCapsule; + +typedef daeSmartRef domCapsuleRef; +typedef daeTArray domCapsule_Array; + +class domTapered_capsule; + +typedef daeSmartRef domTapered_capsuleRef; +typedef daeTArray domTapered_capsule_Array; + +class domConvex_mesh; + +typedef daeSmartRef domConvex_meshRef; +typedef daeTArray domConvex_mesh_Array; + +class domForce_field; + +typedef daeSmartRef domForce_fieldRef; +typedef daeTArray domForce_field_Array; + +class domPhysics_material; + +typedef daeSmartRef domPhysics_materialRef; +typedef daeTArray domPhysics_material_Array; + +class domPhysics_scene; + +typedef daeSmartRef domPhysics_sceneRef; +typedef daeTArray domPhysics_scene_Array; + +class domRigid_body; + +typedef daeSmartRef domRigid_bodyRef; +typedef daeTArray domRigid_body_Array; + +class domRigid_constraint; + +typedef daeSmartRef domRigid_constraintRef; +typedef daeTArray domRigid_constraint_Array; + +class domPhysics_model; + +typedef daeSmartRef domPhysics_modelRef; +typedef daeTArray domPhysics_model_Array; + + +#endif //__DOM_ELEMENTS_H__ + diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domEllipsoid.h b/Extras/COLLADA_DOM/include/1.4/dom/domEllipsoid.h new file mode 100644 index 000000000..cfb6030e3 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domEllipsoid.h @@ -0,0 +1,144 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domEllipsoid_h__ +#define __domEllipsoid_h__ + +#include +#include + + +class domEllipsoid : public daeElement +{ +public: + class domSize; + + typedef daeSmartRef domSizeRef; + typedef daeTArray domSize_Array; + + class domSize : public daeElement + { + + protected: // Value + /** + * The domFloat3 value of the text data of this element. + */ + domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat3 reference of the _value array. + */ + domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat3 reference of the _value array. + */ + const domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domSize() : _value() {} + /** + * Destructor + */ + virtual ~domSize() {} + /** + * Copy Constructor + */ + domSize( const domSize &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSize &operator=( const domSize &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: // Element + domSizeRef elemSize; + +public: //Accessors and Mutators + /** + * Gets the size element. + * @return a daeSmartRef to the size element. + */ + const domSizeRef getSize() const { return elemSize; } +protected: + /** + * Constructor + */ + domEllipsoid() : elemSize() {} + /** + * Destructor + */ + virtual ~domEllipsoid() {} + /** + * Copy Constructor + */ + domEllipsoid( const domEllipsoid &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domEllipsoid &operator=( const domEllipsoid &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domExtra.h b/Extras/COLLADA_DOM/include/1.4/dom/domExtra.h new file mode 100644 index 000000000..16443e8bf --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domExtra.h @@ -0,0 +1,145 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domExtra_h__ +#define __domExtra_h__ + +#include +#include + +#include +#include + +/** + * The extra element declares additional information regarding its parent + * element. + */ +class domExtra : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The type attribute indicates the type of the value data. This text string + * must be understood by the application. Optional attribute. + */ + xsNMTOKEN attrType; + +protected: // Elements +/** + * The extra element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * This element must contain at least one non-common profile technique. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the type attribute. + * @return Returns a xsNMTOKEN of the type attribute. + */ + xsNMTOKEN getType() const { return attrType; } + /** + * Sets the type attribute. + * @param atType The new value for the type attribute. + */ + void setType( xsNMTOKEN atType ) { attrType = atType; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @return Returns a constant reference to the array of technique elements. + */ + const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } +protected: + /** + * Constructor + */ + domExtra() : attrId(), attrName(), attrType(), elemAsset(), elemTechnique_array() {} + /** + * Destructor + */ + virtual ~domExtra() {} + /** + * Copy Constructor + */ + domExtra( const domExtra &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domExtra &operator=( const domExtra &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFloat_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domFloat_array.h new file mode 100644 index 000000000..866b135cb --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFloat_array.h @@ -0,0 +1,173 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFloat_array_h__ +#define __domFloat_array_h__ + +#include +#include + + +/** + * The float_array element declares the storage for a homogenous array of + * floating point values. + */ +class domFloat_array : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of values in the array. Required + * attribute. + */ + domUint attrCount; +/** + * The digits attribute indicates the number of significant decimal digits + * of the float values that can be contained in the array. The default value + * is 6. Optional attribute. + */ + xsShort attrDigits; +/** + * The magnitude attribute indicates the largest exponent of the float values + * that can be contained in the array. The default value is 38. Optional + * attribute. + */ + xsShort attrMagnitude; + +protected: // Value + /** + * The domListOfFloats value of the text data of this element. + */ + domListOfFloats _value; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the digits attribute. + * @return Returns a xsShort of the digits attribute. + */ + xsShort getDigits() const { return attrDigits; } + /** + * Sets the digits attribute. + * @param atDigits The new value for the digits attribute. + */ + void setDigits( xsShort atDigits ) { attrDigits = atDigits; } + + /** + * Gets the magnitude attribute. + * @return Returns a xsShort of the magnitude attribute. + */ + xsShort getMagnitude() const { return attrMagnitude; } + /** + * Sets the magnitude attribute. + * @param atMagnitude The new value for the magnitude attribute. + */ + void setMagnitude( xsShort atMagnitude ) { attrMagnitude = atMagnitude; } + + /** + * Gets the _value array. + * @return Returns a domListOfFloats reference of the _value array. + */ + domListOfFloats &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfFloats reference of the _value array. + */ + const domListOfFloats &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfFloats &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domFloat_array() : attrId(), attrName(), attrCount(), attrDigits(), attrMagnitude(), _value() {} + /** + * Destructor + */ + virtual ~domFloat_array() {} + /** + * Copy Constructor + */ + domFloat_array( const domFloat_array &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat_array &operator=( const domFloat_array &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domForce_field.h b/Extras/COLLADA_DOM/include/1.4/dom/domForce_field.h new file mode 100644 index 000000000..0958af968 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domForce_field.h @@ -0,0 +1,144 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domForce_field_h__ +#define __domForce_field_h__ + +#include +#include + +#include +#include +#include + +/** + * A general container for force-fields. At the moment, it only has techniques + * and extra elements. + */ +class domForce_field : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The force_field element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * This element must contain at least one non-common profile technique. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @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; } +protected: + /** + * Constructor + */ + domForce_field() : attrId(), attrName(), elemAsset(), elemTechnique_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domForce_field() {} + /** + * Copy Constructor + */ + domForce_field( const domForce_field &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domForce_field &operator=( const domForce_field &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_common.h new file mode 100644 index 000000000..91c550582 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_common.h @@ -0,0 +1,110 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_annotate_common_h__ +#define __domFx_annotate_common_h__ + +#include +#include + +#include + +class domFx_annotate_common_complexType +{ +protected: // Attribute + xsNCName attrName; + +protected: // Element + domFx_annotate_type_commonRef elemFx_annotate_type_common; + +public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * Gets the fx_annotate_type_common element. + * @return a daeSmartRef to the fx_annotate_type_common element. + */ + const domFx_annotate_type_commonRef getFx_annotate_type_common() const { return elemFx_annotate_type_common; } +protected: + /** + * Constructor + */ + domFx_annotate_common_complexType() : attrName(), elemFx_annotate_type_common() {} + /** + * Destructor + */ + virtual ~domFx_annotate_common_complexType() {} + /** + * Copy Constructor + */ + domFx_annotate_common_complexType( const domFx_annotate_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_annotate_common_complexType &operator=( const domFx_annotate_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_annotate_common_complexType. + */ +class domFx_annotate_common : public daeElement, public domFx_annotate_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_annotate_common() {} + /** + * Destructor + */ + virtual ~domFx_annotate_common() {} + /** + * Copy Constructor + */ + domFx_annotate_common( const domFx_annotate_common &cpy ) : daeElement(), domFx_annotate_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_annotate_common &operator=( const domFx_annotate_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_type_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_type_common.h new file mode 100644 index 000000000..89703848f --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_type_common.h @@ -0,0 +1,1283 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_annotate_type_common_h__ +#define __domFx_annotate_type_common_h__ + +#include +#include + + +/** + * A group that specifies the allowable types for an annotation. + */ +class domFx_annotate_type_common : public daeElement +{ +public: + class domBool; + + typedef daeSmartRef domBoolRef; + typedef daeTArray domBool_Array; + + class domBool : public daeElement + { + + protected: // Value + /** + * The ::domBool value of the text data of this element. + */ + ::domBool _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domBool of the value. + */ + ::domBool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domBool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool() : _value() {} + /** + * Destructor + */ + virtual ~domBool() {} + /** + * Copy Constructor + */ + domBool( const domBool &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool &operator=( const domBool &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; + }; + + class domBool2; + + typedef daeSmartRef domBool2Ref; + typedef daeTArray domBool2_Array; + + class domBool2 : public daeElement + { + + protected: // Value + /** + * The ::domBool2 value of the text data of this element. + */ + ::domBool2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domBool2 reference of the _value array. + */ + ::domBool2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domBool2 reference of the _value array. + */ + const ::domBool2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domBool2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool2() : _value() {} + /** + * Destructor + */ + virtual ~domBool2() {} + /** + * Copy Constructor + */ + domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool2 &operator=( const domBool2 &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; + }; + + class domBool3; + + typedef daeSmartRef domBool3Ref; + typedef daeTArray domBool3_Array; + + class domBool3 : public daeElement + { + + protected: // Value + /** + * The ::domBool3 value of the text data of this element. + */ + ::domBool3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domBool3 reference of the _value array. + */ + ::domBool3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domBool3 reference of the _value array. + */ + const ::domBool3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domBool3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool3() : _value() {} + /** + * Destructor + */ + virtual ~domBool3() {} + /** + * Copy Constructor + */ + domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool3 &operator=( const domBool3 &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; + }; + + class domBool4; + + typedef daeSmartRef domBool4Ref; + typedef daeTArray domBool4_Array; + + class domBool4 : public daeElement + { + + protected: // Value + /** + * The ::domBool4 value of the text data of this element. + */ + ::domBool4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domBool4 reference of the _value array. + */ + ::domBool4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domBool4 reference of the _value array. + */ + const ::domBool4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domBool4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool4() : _value() {} + /** + * Destructor + */ + virtual ~domBool4() {} + /** + * Copy Constructor + */ + domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool4 &operator=( const domBool4 &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; + }; + + class domInt; + + typedef daeSmartRef domIntRef; + typedef daeTArray domInt_Array; + + class domInt : public daeElement + { + + protected: // Value + /** + * The ::domInt value of the text data of this element. + */ + ::domInt _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domInt of the value. + */ + ::domInt getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domInt val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt() : _value() {} + /** + * Destructor + */ + virtual ~domInt() {} + /** + * Copy Constructor + */ + domInt( const domInt &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt &operator=( const domInt &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; + }; + + class domInt2; + + typedef daeSmartRef domInt2Ref; + typedef daeTArray domInt2_Array; + + class domInt2 : public daeElement + { + + protected: // Value + /** + * The ::domInt2 value of the text data of this element. + */ + ::domInt2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domInt2 reference of the _value array. + */ + ::domInt2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domInt2 reference of the _value array. + */ + const ::domInt2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domInt2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt2() : _value() {} + /** + * Destructor + */ + virtual ~domInt2() {} + /** + * Copy Constructor + */ + domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt2 &operator=( const domInt2 &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; + }; + + class domInt3; + + typedef daeSmartRef domInt3Ref; + typedef daeTArray domInt3_Array; + + class domInt3 : public daeElement + { + + protected: // Value + /** + * The ::domInt3 value of the text data of this element. + */ + ::domInt3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domInt3 reference of the _value array. + */ + ::domInt3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domInt3 reference of the _value array. + */ + const ::domInt3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domInt3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt3() : _value() {} + /** + * Destructor + */ + virtual ~domInt3() {} + /** + * Copy Constructor + */ + domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt3 &operator=( const domInt3 &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; + }; + + class domInt4; + + typedef daeSmartRef domInt4Ref; + typedef daeTArray domInt4_Array; + + class domInt4 : public daeElement + { + + protected: // Value + /** + * The ::domInt4 value of the text data of this element. + */ + ::domInt4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domInt4 reference of the _value array. + */ + ::domInt4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domInt4 reference of the _value array. + */ + const ::domInt4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domInt4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt4() : _value() {} + /** + * Destructor + */ + virtual ~domInt4() {} + /** + * Copy Constructor + */ + domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt4 &operator=( const domInt4 &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; + }; + + class domFloat; + + typedef daeSmartRef domFloatRef; + typedef daeTArray domFloat_Array; + + class domFloat : public daeElement + { + + protected: // Value + /** + * The ::domFloat value of the text data of this element. + */ + ::domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domFloat of the value. + */ + ::domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat() : _value() {} + /** + * Destructor + */ + virtual ~domFloat() {} + /** + * Copy Constructor + */ + domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat &operator=( const domFloat &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; + }; + + class domFloat2; + + typedef daeSmartRef domFloat2Ref; + typedef daeTArray domFloat2_Array; + + class domFloat2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2 value of the text data of this element. + */ + ::domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2 reference of the _value array. + */ + ::domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2 reference of the _value array. + */ + const ::domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2() {} + /** + * Copy Constructor + */ + domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2 &operator=( const domFloat2 &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; + }; + + class domFloat3; + + typedef daeSmartRef domFloat3Ref; + typedef daeTArray domFloat3_Array; + + class domFloat3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3 value of the text data of this element. + */ + ::domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3 reference of the _value array. + */ + ::domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3 reference of the _value array. + */ + const ::domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3() {} + /** + * Copy Constructor + */ + domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3 &operator=( const domFloat3 &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; + }; + + class domFloat4; + + typedef daeSmartRef domFloat4Ref; + typedef daeTArray domFloat4_Array; + + class domFloat4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4 value of the text data of this element. + */ + ::domFloat4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4 reference of the _value array. + */ + ::domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4 reference of the _value array. + */ + const ::domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4() {} + /** + * Copy Constructor + */ + domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4 &operator=( const domFloat4 &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; + }; + + class domFloat2x2; + + typedef daeSmartRef domFloat2x2Ref; + typedef daeTArray domFloat2x2_Array; + + class domFloat2x2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2x2 value of the text data of this element. + */ + ::domFloat2x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2x2 reference of the _value array. + */ + ::domFloat2x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2x2 reference of the _value array. + */ + const ::domFloat2x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x2() {} + /** + * Copy Constructor + */ + domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x2 &operator=( const domFloat2x2 &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; + }; + + class domFloat3x3; + + typedef daeSmartRef domFloat3x3Ref; + typedef daeTArray domFloat3x3_Array; + + class domFloat3x3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3x3 value of the text data of this element. + */ + ::domFloat3x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3x3 reference of the _value array. + */ + ::domFloat3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3x3 reference of the _value array. + */ + const ::domFloat3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x3() {} + /** + * Copy Constructor + */ + domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x3 &operator=( const domFloat3x3 &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; + }; + + class domFloat4x4; + + typedef daeSmartRef domFloat4x4Ref; + typedef daeTArray domFloat4x4_Array; + + class domFloat4x4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4x4 value of the text data of this element. + */ + ::domFloat4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4x4 reference of the _value array. + */ + ::domFloat4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4x4 reference of the _value array. + */ + const ::domFloat4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x4() {} + /** + * Copy Constructor + */ + domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x4 &operator=( const domFloat4x4 &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; + }; + + class domString; + + typedef daeSmartRef domStringRef; + typedef daeTArray domString_Array; + + class domString : public daeElement + { + + protected: // Value + /** + * The ::xsString value of the text data of this element. + */ + ::xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domString() : _value() {} + /** + * Destructor + */ + virtual ~domString() {} + /** + * Copy Constructor + */ + domString( const domString &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domString &operator=( const domString &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: // Elements + domBoolRef elemBool; + domBool2Ref elemBool2; + domBool3Ref elemBool3; + domBool4Ref elemBool4; + domIntRef elemInt; + domInt2Ref elemInt2; + domInt3Ref elemInt3; + domInt4Ref elemInt4; + domFloatRef elemFloat; + domFloat2Ref elemFloat2; + domFloat3Ref elemFloat3; + domFloat4Ref elemFloat4; + domFloat2x2Ref elemFloat2x2; + domFloat3x3Ref elemFloat3x3; + domFloat4x4Ref elemFloat4x4; + domStringRef elemString; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the bool element. + * @return a daeSmartRef to the bool element. + */ + const domBoolRef getBool() const { return elemBool; } + /** + * Gets the bool2 element. + * @return a daeSmartRef to the bool2 element. + */ + const domBool2Ref getBool2() const { return elemBool2; } + /** + * Gets the bool3 element. + * @return a daeSmartRef to the bool3 element. + */ + const domBool3Ref getBool3() const { return elemBool3; } + /** + * Gets the bool4 element. + * @return a daeSmartRef to the bool4 element. + */ + const domBool4Ref getBool4() const { return elemBool4; } + /** + * Gets the int element. + * @return a daeSmartRef to the int element. + */ + const domIntRef getInt() const { return elemInt; } + /** + * Gets the int2 element. + * @return a daeSmartRef to the int2 element. + */ + const domInt2Ref getInt2() const { return elemInt2; } + /** + * Gets the int3 element. + * @return a daeSmartRef to the int3 element. + */ + const domInt3Ref getInt3() const { return elemInt3; } + /** + * Gets the int4 element. + * @return a daeSmartRef to the int4 element. + */ + const domInt4Ref getInt4() const { return elemInt4; } + /** + * Gets the float element. + * @return a daeSmartRef to the float element. + */ + const domFloatRef getFloat() const { return elemFloat; } + /** + * Gets the float2 element. + * @return a daeSmartRef to the float2 element. + */ + const domFloat2Ref getFloat2() const { return elemFloat2; } + /** + * Gets the float3 element. + * @return a daeSmartRef to the float3 element. + */ + const domFloat3Ref getFloat3() const { return elemFloat3; } + /** + * Gets the float4 element. + * @return a daeSmartRef to the float4 element. + */ + const domFloat4Ref getFloat4() const { return elemFloat4; } + /** + * Gets the float2x2 element. + * @return a daeSmartRef to the float2x2 element. + */ + const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } + /** + * Gets the float3x3 element. + * @return a daeSmartRef to the float3x3 element. + */ + const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } + /** + * Gets the float4x4 element. + * @return a daeSmartRef to the float4x4 element. + */ + const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } + /** + * Gets the string element. + * @return a daeSmartRef to the string element. + */ + const domStringRef getString() const { return elemString; } + /** + * 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 + */ + domFx_annotate_type_common() : elemBool(), elemBool2(), elemBool3(), elemBool4(), elemInt(), elemInt2(), elemInt3(), elemInt4(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat2x2(), elemFloat3x3(), elemFloat4x4(), elemString() {} + /** + * Destructor + */ + virtual ~domFx_annotate_type_common() {} + /** + * Copy Constructor + */ + domFx_annotate_type_common( const domFx_annotate_type_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_annotate_type_common &operator=( const domFx_annotate_type_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_basic_type_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_basic_type_common.h new file mode 100644 index 000000000..eb0a42f81 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_basic_type_common.h @@ -0,0 +1,2315 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_basic_type_common_h__ +#define __domFx_basic_type_common_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +/** + * A group that specifies the allowable types for effect scoped parameters. + */ +class domFx_basic_type_common : public daeElement +{ +public: + class domBool; + + typedef daeSmartRef domBoolRef; + typedef daeTArray domBool_Array; + + class domBool : public daeElement + { + + protected: // Value + /** + * The ::domBool value of the text data of this element. + */ + ::domBool _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domBool of the value. + */ + ::domBool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domBool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool() : _value() {} + /** + * Destructor + */ + virtual ~domBool() {} + /** + * Copy Constructor + */ + domBool( const domBool &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool &operator=( const domBool &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; + }; + + class domBool2; + + typedef daeSmartRef domBool2Ref; + typedef daeTArray domBool2_Array; + + class domBool2 : public daeElement + { + + protected: // Value + /** + * The ::domBool2 value of the text data of this element. + */ + ::domBool2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domBool2 reference of the _value array. + */ + ::domBool2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domBool2 reference of the _value array. + */ + const ::domBool2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domBool2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool2() : _value() {} + /** + * Destructor + */ + virtual ~domBool2() {} + /** + * Copy Constructor + */ + domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool2 &operator=( const domBool2 &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; + }; + + class domBool3; + + typedef daeSmartRef domBool3Ref; + typedef daeTArray domBool3_Array; + + class domBool3 : public daeElement + { + + protected: // Value + /** + * The ::domBool3 value of the text data of this element. + */ + ::domBool3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domBool3 reference of the _value array. + */ + ::domBool3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domBool3 reference of the _value array. + */ + const ::domBool3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domBool3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool3() : _value() {} + /** + * Destructor + */ + virtual ~domBool3() {} + /** + * Copy Constructor + */ + domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool3 &operator=( const domBool3 &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; + }; + + class domBool4; + + typedef daeSmartRef domBool4Ref; + typedef daeTArray domBool4_Array; + + class domBool4 : public daeElement + { + + protected: // Value + /** + * The ::domBool4 value of the text data of this element. + */ + ::domBool4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domBool4 reference of the _value array. + */ + ::domBool4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domBool4 reference of the _value array. + */ + const ::domBool4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domBool4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool4() : _value() {} + /** + * Destructor + */ + virtual ~domBool4() {} + /** + * Copy Constructor + */ + domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool4 &operator=( const domBool4 &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; + }; + + class domInt; + + typedef daeSmartRef domIntRef; + typedef daeTArray domInt_Array; + + class domInt : public daeElement + { + + protected: // Value + /** + * The ::domInt value of the text data of this element. + */ + ::domInt _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domInt of the value. + */ + ::domInt getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domInt val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt() : _value() {} + /** + * Destructor + */ + virtual ~domInt() {} + /** + * Copy Constructor + */ + domInt( const domInt &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt &operator=( const domInt &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; + }; + + class domInt2; + + typedef daeSmartRef domInt2Ref; + typedef daeTArray domInt2_Array; + + class domInt2 : public daeElement + { + + protected: // Value + /** + * The ::domInt2 value of the text data of this element. + */ + ::domInt2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domInt2 reference of the _value array. + */ + ::domInt2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domInt2 reference of the _value array. + */ + const ::domInt2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domInt2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt2() : _value() {} + /** + * Destructor + */ + virtual ~domInt2() {} + /** + * Copy Constructor + */ + domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt2 &operator=( const domInt2 &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; + }; + + class domInt3; + + typedef daeSmartRef domInt3Ref; + typedef daeTArray domInt3_Array; + + class domInt3 : public daeElement + { + + protected: // Value + /** + * The ::domInt3 value of the text data of this element. + */ + ::domInt3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domInt3 reference of the _value array. + */ + ::domInt3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domInt3 reference of the _value array. + */ + const ::domInt3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domInt3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt3() : _value() {} + /** + * Destructor + */ + virtual ~domInt3() {} + /** + * Copy Constructor + */ + domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt3 &operator=( const domInt3 &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; + }; + + class domInt4; + + typedef daeSmartRef domInt4Ref; + typedef daeTArray domInt4_Array; + + class domInt4 : public daeElement + { + + protected: // Value + /** + * The ::domInt4 value of the text data of this element. + */ + ::domInt4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domInt4 reference of the _value array. + */ + ::domInt4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domInt4 reference of the _value array. + */ + const ::domInt4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domInt4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt4() : _value() {} + /** + * Destructor + */ + virtual ~domInt4() {} + /** + * Copy Constructor + */ + domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt4 &operator=( const domInt4 &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; + }; + + class domFloat; + + typedef daeSmartRef domFloatRef; + typedef daeTArray domFloat_Array; + + class domFloat : public daeElement + { + + protected: // Value + /** + * The ::domFloat value of the text data of this element. + */ + ::domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domFloat of the value. + */ + ::domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat() : _value() {} + /** + * Destructor + */ + virtual ~domFloat() {} + /** + * Copy Constructor + */ + domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat &operator=( const domFloat &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; + }; + + class domFloat2; + + typedef daeSmartRef domFloat2Ref; + typedef daeTArray domFloat2_Array; + + class domFloat2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2 value of the text data of this element. + */ + ::domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2 reference of the _value array. + */ + ::domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2 reference of the _value array. + */ + const ::domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2() {} + /** + * Copy Constructor + */ + domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2 &operator=( const domFloat2 &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; + }; + + class domFloat3; + + typedef daeSmartRef domFloat3Ref; + typedef daeTArray domFloat3_Array; + + class domFloat3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3 value of the text data of this element. + */ + ::domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3 reference of the _value array. + */ + ::domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3 reference of the _value array. + */ + const ::domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3() {} + /** + * Copy Constructor + */ + domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3 &operator=( const domFloat3 &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; + }; + + class domFloat4; + + typedef daeSmartRef domFloat4Ref; + typedef daeTArray domFloat4_Array; + + class domFloat4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4 value of the text data of this element. + */ + ::domFloat4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4 reference of the _value array. + */ + ::domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4 reference of the _value array. + */ + const ::domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4() {} + /** + * Copy Constructor + */ + domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4 &operator=( const domFloat4 &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; + }; + + class domFloat1x1; + + typedef daeSmartRef domFloat1x1Ref; + typedef daeTArray domFloat1x1_Array; + + class domFloat1x1 : public daeElement + { + + protected: // Value + /** + * The ::domFloat value of the text data of this element. + */ + ::domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domFloat of the value. + */ + ::domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x1() {} + /** + * Copy Constructor + */ + domFloat1x1( const domFloat1x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x1 &operator=( const domFloat1x1 &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; + }; + + class domFloat1x2; + + typedef daeSmartRef domFloat1x2Ref; + typedef daeTArray domFloat1x2_Array; + + class domFloat1x2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2 value of the text data of this element. + */ + ::domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2 reference of the _value array. + */ + ::domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2 reference of the _value array. + */ + const ::domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x2() {} + /** + * Copy Constructor + */ + domFloat1x2( const domFloat1x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x2 &operator=( const domFloat1x2 &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; + }; + + class domFloat1x3; + + typedef daeSmartRef domFloat1x3Ref; + typedef daeTArray domFloat1x3_Array; + + class domFloat1x3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3 value of the text data of this element. + */ + ::domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3 reference of the _value array. + */ + ::domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3 reference of the _value array. + */ + const ::domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x3() {} + /** + * Copy Constructor + */ + domFloat1x3( const domFloat1x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x3 &operator=( const domFloat1x3 &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; + }; + + class domFloat1x4; + + typedef daeSmartRef domFloat1x4Ref; + typedef daeTArray domFloat1x4_Array; + + class domFloat1x4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4 value of the text data of this element. + */ + ::domFloat4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4 reference of the _value array. + */ + ::domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4 reference of the _value array. + */ + const ::domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x4() {} + /** + * Copy Constructor + */ + domFloat1x4( const domFloat1x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x4 &operator=( const domFloat1x4 &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; + }; + + class domFloat2x1; + + typedef daeSmartRef domFloat2x1Ref; + typedef daeTArray domFloat2x1_Array; + + class domFloat2x1 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2 value of the text data of this element. + */ + ::domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2 reference of the _value array. + */ + ::domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2 reference of the _value array. + */ + const ::domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x1() {} + /** + * Copy Constructor + */ + domFloat2x1( const domFloat2x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x1 &operator=( const domFloat2x1 &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; + }; + + class domFloat2x2; + + typedef daeSmartRef domFloat2x2Ref; + typedef daeTArray domFloat2x2_Array; + + class domFloat2x2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2x2 value of the text data of this element. + */ + ::domFloat2x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2x2 reference of the _value array. + */ + ::domFloat2x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2x2 reference of the _value array. + */ + const ::domFloat2x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x2() {} + /** + * Copy Constructor + */ + domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x2 &operator=( const domFloat2x2 &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; + }; + + class domFloat2x3; + + typedef daeSmartRef domFloat2x3Ref; + typedef daeTArray domFloat2x3_Array; + + class domFloat2x3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2x3 value of the text data of this element. + */ + ::domFloat2x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2x3 reference of the _value array. + */ + ::domFloat2x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2x3 reference of the _value array. + */ + const ::domFloat2x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x3() {} + /** + * Copy Constructor + */ + domFloat2x3( const domFloat2x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x3 &operator=( const domFloat2x3 &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; + }; + + class domFloat2x4; + + typedef daeSmartRef domFloat2x4Ref; + typedef daeTArray domFloat2x4_Array; + + class domFloat2x4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2x4 value of the text data of this element. + */ + ::domFloat2x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2x4 reference of the _value array. + */ + ::domFloat2x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2x4 reference of the _value array. + */ + const ::domFloat2x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x4() {} + /** + * Copy Constructor + */ + domFloat2x4( const domFloat2x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x4 &operator=( const domFloat2x4 &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; + }; + + class domFloat3x1; + + typedef daeSmartRef domFloat3x1Ref; + typedef daeTArray domFloat3x1_Array; + + class domFloat3x1 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3 value of the text data of this element. + */ + ::domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3 reference of the _value array. + */ + ::domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3 reference of the _value array. + */ + const ::domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x1() {} + /** + * Copy Constructor + */ + domFloat3x1( const domFloat3x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x1 &operator=( const domFloat3x1 &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; + }; + + class domFloat3x2; + + typedef daeSmartRef domFloat3x2Ref; + typedef daeTArray domFloat3x2_Array; + + class domFloat3x2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3x2 value of the text data of this element. + */ + ::domFloat3x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3x2 reference of the _value array. + */ + ::domFloat3x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3x2 reference of the _value array. + */ + const ::domFloat3x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x2() {} + /** + * Copy Constructor + */ + domFloat3x2( const domFloat3x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x2 &operator=( const domFloat3x2 &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; + }; + + class domFloat3x3; + + typedef daeSmartRef domFloat3x3Ref; + typedef daeTArray domFloat3x3_Array; + + class domFloat3x3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3x3 value of the text data of this element. + */ + ::domFloat3x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3x3 reference of the _value array. + */ + ::domFloat3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3x3 reference of the _value array. + */ + const ::domFloat3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x3() {} + /** + * Copy Constructor + */ + domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x3 &operator=( const domFloat3x3 &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; + }; + + class domFloat3x4; + + typedef daeSmartRef domFloat3x4Ref; + typedef daeTArray domFloat3x4_Array; + + class domFloat3x4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3x4 value of the text data of this element. + */ + ::domFloat3x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3x4 reference of the _value array. + */ + ::domFloat3x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3x4 reference of the _value array. + */ + const ::domFloat3x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x4() {} + /** + * Copy Constructor + */ + domFloat3x4( const domFloat3x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x4 &operator=( const domFloat3x4 &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; + }; + + class domFloat4x1; + + typedef daeSmartRef domFloat4x1Ref; + typedef daeTArray domFloat4x1_Array; + + class domFloat4x1 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4 value of the text data of this element. + */ + ::domFloat4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4 reference of the _value array. + */ + ::domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4 reference of the _value array. + */ + const ::domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x1() {} + /** + * Copy Constructor + */ + domFloat4x1( const domFloat4x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x1 &operator=( const domFloat4x1 &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; + }; + + class domFloat4x2; + + typedef daeSmartRef domFloat4x2Ref; + typedef daeTArray domFloat4x2_Array; + + class domFloat4x2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4x2 value of the text data of this element. + */ + ::domFloat4x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4x2 reference of the _value array. + */ + ::domFloat4x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4x2 reference of the _value array. + */ + const ::domFloat4x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x2() {} + /** + * Copy Constructor + */ + domFloat4x2( const domFloat4x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x2 &operator=( const domFloat4x2 &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; + }; + + class domFloat4x3; + + typedef daeSmartRef domFloat4x3Ref; + typedef daeTArray domFloat4x3_Array; + + class domFloat4x3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4x3 value of the text data of this element. + */ + ::domFloat4x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4x3 reference of the _value array. + */ + ::domFloat4x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4x3 reference of the _value array. + */ + const ::domFloat4x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x3() {} + /** + * Copy Constructor + */ + domFloat4x3( const domFloat4x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x3 &operator=( const domFloat4x3 &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; + }; + + class domFloat4x4; + + typedef daeSmartRef domFloat4x4Ref; + typedef daeTArray domFloat4x4_Array; + + class domFloat4x4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4x4 value of the text data of this element. + */ + ::domFloat4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4x4 reference of the _value array. + */ + ::domFloat4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4x4 reference of the _value array. + */ + const ::domFloat4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x4() {} + /** + * Copy Constructor + */ + domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x4 &operator=( const domFloat4x4 &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; + }; + + class domEnum; + + typedef daeSmartRef domEnumRef; + typedef daeTArray domEnum_Array; + + class domEnum : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domEnum() : _value() {} + /** + * Destructor + */ + virtual ~domEnum() {} + /** + * Copy Constructor + */ + domEnum( const domEnum &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domEnum &operator=( const domEnum &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: // Elements + domBoolRef elemBool; + domBool2Ref elemBool2; + domBool3Ref elemBool3; + domBool4Ref elemBool4; + domIntRef elemInt; + domInt2Ref elemInt2; + domInt3Ref elemInt3; + domInt4Ref elemInt4; + domFloatRef elemFloat; + domFloat2Ref elemFloat2; + domFloat3Ref elemFloat3; + domFloat4Ref elemFloat4; + domFloat1x1Ref elemFloat1x1; + domFloat1x2Ref elemFloat1x2; + domFloat1x3Ref elemFloat1x3; + domFloat1x4Ref elemFloat1x4; + domFloat2x1Ref elemFloat2x1; + domFloat2x2Ref elemFloat2x2; + domFloat2x3Ref elemFloat2x3; + domFloat2x4Ref elemFloat2x4; + domFloat3x1Ref elemFloat3x1; + domFloat3x2Ref elemFloat3x2; + domFloat3x3Ref elemFloat3x3; + domFloat3x4Ref elemFloat3x4; + domFloat4x1Ref elemFloat4x1; + domFloat4x2Ref elemFloat4x2; + domFloat4x3Ref elemFloat4x3; + domFloat4x4Ref elemFloat4x4; + domFx_surface_commonRef elemSurface; + domFx_sampler1D_commonRef elemSampler1D; + domFx_sampler2D_commonRef elemSampler2D; + domFx_sampler3D_commonRef elemSampler3D; + domFx_samplerCUBE_commonRef elemSamplerCUBE; + domFx_samplerRECT_commonRef elemSamplerRECT; + domFx_samplerDEPTH_commonRef elemSamplerDEPTH; + domEnumRef elemEnum; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the bool element. + * @return a daeSmartRef to the bool element. + */ + const domBoolRef getBool() const { return elemBool; } + /** + * Gets the bool2 element. + * @return a daeSmartRef to the bool2 element. + */ + const domBool2Ref getBool2() const { return elemBool2; } + /** + * Gets the bool3 element. + * @return a daeSmartRef to the bool3 element. + */ + const domBool3Ref getBool3() const { return elemBool3; } + /** + * Gets the bool4 element. + * @return a daeSmartRef to the bool4 element. + */ + const domBool4Ref getBool4() const { return elemBool4; } + /** + * Gets the int element. + * @return a daeSmartRef to the int element. + */ + const domIntRef getInt() const { return elemInt; } + /** + * Gets the int2 element. + * @return a daeSmartRef to the int2 element. + */ + const domInt2Ref getInt2() const { return elemInt2; } + /** + * Gets the int3 element. + * @return a daeSmartRef to the int3 element. + */ + const domInt3Ref getInt3() const { return elemInt3; } + /** + * Gets the int4 element. + * @return a daeSmartRef to the int4 element. + */ + const domInt4Ref getInt4() const { return elemInt4; } + /** + * Gets the float element. + * @return a daeSmartRef to the float element. + */ + const domFloatRef getFloat() const { return elemFloat; } + /** + * Gets the float2 element. + * @return a daeSmartRef to the float2 element. + */ + const domFloat2Ref getFloat2() const { return elemFloat2; } + /** + * Gets the float3 element. + * @return a daeSmartRef to the float3 element. + */ + const domFloat3Ref getFloat3() const { return elemFloat3; } + /** + * Gets the float4 element. + * @return a daeSmartRef to the float4 element. + */ + const domFloat4Ref getFloat4() const { return elemFloat4; } + /** + * Gets the float1x1 element. + * @return a daeSmartRef to the float1x1 element. + */ + const domFloat1x1Ref getFloat1x1() const { return elemFloat1x1; } + /** + * Gets the float1x2 element. + * @return a daeSmartRef to the float1x2 element. + */ + const domFloat1x2Ref getFloat1x2() const { return elemFloat1x2; } + /** + * Gets the float1x3 element. + * @return a daeSmartRef to the float1x3 element. + */ + const domFloat1x3Ref getFloat1x3() const { return elemFloat1x3; } + /** + * Gets the float1x4 element. + * @return a daeSmartRef to the float1x4 element. + */ + const domFloat1x4Ref getFloat1x4() const { return elemFloat1x4; } + /** + * Gets the float2x1 element. + * @return a daeSmartRef to the float2x1 element. + */ + const domFloat2x1Ref getFloat2x1() const { return elemFloat2x1; } + /** + * Gets the float2x2 element. + * @return a daeSmartRef to the float2x2 element. + */ + const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } + /** + * Gets the float2x3 element. + * @return a daeSmartRef to the float2x3 element. + */ + const domFloat2x3Ref getFloat2x3() const { return elemFloat2x3; } + /** + * Gets the float2x4 element. + * @return a daeSmartRef to the float2x4 element. + */ + const domFloat2x4Ref getFloat2x4() const { return elemFloat2x4; } + /** + * Gets the float3x1 element. + * @return a daeSmartRef to the float3x1 element. + */ + const domFloat3x1Ref getFloat3x1() const { return elemFloat3x1; } + /** + * Gets the float3x2 element. + * @return a daeSmartRef to the float3x2 element. + */ + const domFloat3x2Ref getFloat3x2() const { return elemFloat3x2; } + /** + * Gets the float3x3 element. + * @return a daeSmartRef to the float3x3 element. + */ + const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } + /** + * Gets the float3x4 element. + * @return a daeSmartRef to the float3x4 element. + */ + const domFloat3x4Ref getFloat3x4() const { return elemFloat3x4; } + /** + * Gets the float4x1 element. + * @return a daeSmartRef to the float4x1 element. + */ + const domFloat4x1Ref getFloat4x1() const { return elemFloat4x1; } + /** + * Gets the float4x2 element. + * @return a daeSmartRef to the float4x2 element. + */ + const domFloat4x2Ref getFloat4x2() const { return elemFloat4x2; } + /** + * Gets the float4x3 element. + * @return a daeSmartRef to the float4x3 element. + */ + const domFloat4x3Ref getFloat4x3() const { return elemFloat4x3; } + /** + * Gets the float4x4 element. + * @return a daeSmartRef to the float4x4 element. + */ + const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } + /** + * Gets the surface element. + * @return a daeSmartRef to the surface element. + */ + const domFx_surface_commonRef getSurface() const { return elemSurface; } + /** + * Gets the sampler1D element. + * @return a daeSmartRef to the sampler1D element. + */ + const domFx_sampler1D_commonRef getSampler1D() const { return elemSampler1D; } + /** + * Gets the sampler2D element. + * @return a daeSmartRef to the sampler2D element. + */ + const domFx_sampler2D_commonRef getSampler2D() const { return elemSampler2D; } + /** + * Gets the sampler3D element. + * @return a daeSmartRef to the sampler3D element. + */ + const domFx_sampler3D_commonRef getSampler3D() const { return elemSampler3D; } + /** + * Gets the samplerCUBE element. + * @return a daeSmartRef to the samplerCUBE element. + */ + const domFx_samplerCUBE_commonRef getSamplerCUBE() const { return elemSamplerCUBE; } + /** + * Gets the samplerRECT element. + * @return a daeSmartRef to the samplerRECT element. + */ + const domFx_samplerRECT_commonRef getSamplerRECT() const { return elemSamplerRECT; } + /** + * Gets the samplerDEPTH element. + * @return a daeSmartRef to the samplerDEPTH element. + */ + const domFx_samplerDEPTH_commonRef getSamplerDEPTH() const { return elemSamplerDEPTH; } + /** + * Gets the enum element. + * @return a daeSmartRef to the enum element. + */ + const domEnumRef getEnum() const { return elemEnum; } + /** + * 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 + */ + domFx_basic_type_common() : elemBool(), elemBool2(), elemBool3(), elemBool4(), elemInt(), elemInt2(), elemInt3(), elemInt4(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat1x1(), elemFloat1x2(), elemFloat1x3(), elemFloat1x4(), elemFloat2x1(), elemFloat2x2(), elemFloat2x3(), elemFloat2x4(), elemFloat3x1(), elemFloat3x2(), elemFloat3x3(), elemFloat3x4(), elemFloat4x1(), elemFloat4x2(), elemFloat4x3(), elemFloat4x4(), elemSurface(), elemSampler1D(), elemSampler2D(), elemSampler3D(), elemSamplerCUBE(), elemSamplerRECT(), elemSamplerDEPTH(), elemEnum() {} + /** + * Destructor + */ + virtual ~domFx_basic_type_common() {} + /** + * Copy Constructor + */ + domFx_basic_type_common( const domFx_basic_type_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_basic_type_common &operator=( const domFx_basic_type_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearcolor_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearcolor_common.h new file mode 100644 index 000000000..103f6be3f --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearcolor_common.h @@ -0,0 +1,123 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_clearcolor_common_h__ +#define __domFx_clearcolor_common_h__ + +#include +#include + + +class domFx_clearcolor_common_complexType +{ +protected: // Attribute + xsNonNegativeInteger attrIndex; + +protected: // Value + /** + * The domFx_color_common value of the text data of this element. + */ + domFx_color_common _value; + +public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a xsNonNegativeInteger of the index attribute. + */ + xsNonNegativeInteger getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } + + /** + * Gets the _value array. + * @return Returns a domFx_color_common reference of the _value array. + */ + domFx_color_common &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFx_color_common reference of the _value array. + */ + const domFx_color_common &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFx_color_common &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domFx_clearcolor_common_complexType() : attrIndex(), _value() {} + /** + * Destructor + */ + virtual ~domFx_clearcolor_common_complexType() {} + /** + * Copy Constructor + */ + domFx_clearcolor_common_complexType( const domFx_clearcolor_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_clearcolor_common_complexType &operator=( const domFx_clearcolor_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_clearcolor_common_complexType. + */ +class domFx_clearcolor_common : public daeElement, public domFx_clearcolor_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_clearcolor_common() {} + /** + * Destructor + */ + virtual ~domFx_clearcolor_common() {} + /** + * Copy Constructor + */ + domFx_clearcolor_common( const domFx_clearcolor_common &cpy ) : daeElement(), domFx_clearcolor_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_clearcolor_common &operator=( const domFx_clearcolor_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_cleardepth_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_cleardepth_common.h new file mode 100644 index 000000000..1021325a9 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_cleardepth_common.h @@ -0,0 +1,118 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_cleardepth_common_h__ +#define __domFx_cleardepth_common_h__ + +#include +#include + + +class domFx_cleardepth_common_complexType +{ +protected: // Attribute + xsNonNegativeInteger attrIndex; + +protected: // Value + /** + * The domFloat value of the text data of this element. + */ + domFloat _value; + +public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a xsNonNegativeInteger of the index attribute. + */ + xsNonNegativeInteger getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } + + /** + * Gets the value of this element. + * @return a domFloat of the value. + */ + domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFloat val ) { _value = val; } + +protected: + /** + * Constructor + */ + domFx_cleardepth_common_complexType() : attrIndex(), _value() {} + /** + * Destructor + */ + virtual ~domFx_cleardepth_common_complexType() {} + /** + * Copy Constructor + */ + domFx_cleardepth_common_complexType( const domFx_cleardepth_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_cleardepth_common_complexType &operator=( const domFx_cleardepth_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_cleardepth_common_complexType. + */ +class domFx_cleardepth_common : public daeElement, public domFx_cleardepth_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_cleardepth_common() {} + /** + * Destructor + */ + virtual ~domFx_cleardepth_common() {} + /** + * Copy Constructor + */ + domFx_cleardepth_common( const domFx_cleardepth_common &cpy ) : daeElement(), domFx_cleardepth_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_cleardepth_common &operator=( const domFx_cleardepth_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearstencil_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearstencil_common.h new file mode 100644 index 000000000..5576d6f9d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearstencil_common.h @@ -0,0 +1,118 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_clearstencil_common_h__ +#define __domFx_clearstencil_common_h__ + +#include +#include + + +class domFx_clearstencil_common_complexType +{ +protected: // Attribute + xsNonNegativeInteger attrIndex; + +protected: // Value + /** + * The xsByte value of the text data of this element. + */ + xsByte _value; + +public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a xsNonNegativeInteger of the index attribute. + */ + xsNonNegativeInteger getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } + + /** + * Gets the value of this element. + * @return a xsByte of the value. + */ + xsByte getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsByte val ) { _value = val; } + +protected: + /** + * Constructor + */ + domFx_clearstencil_common_complexType() : attrIndex(), _value() {} + /** + * Destructor + */ + virtual ~domFx_clearstencil_common_complexType() {} + /** + * Copy Constructor + */ + domFx_clearstencil_common_complexType( const domFx_clearstencil_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_clearstencil_common_complexType &operator=( const domFx_clearstencil_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_clearstencil_common_complexType. + */ +class domFx_clearstencil_common : public daeElement, public domFx_clearstencil_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_clearstencil_common() {} + /** + * Destructor + */ + virtual ~domFx_clearstencil_common() {} + /** + * Copy Constructor + */ + domFx_clearstencil_common( const domFx_clearstencil_common &cpy ) : daeElement(), domFx_clearstencil_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_clearstencil_common &operator=( const domFx_clearstencil_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_code_profile.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_code_profile.h new file mode 100644 index 000000000..a8527a24d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_code_profile.h @@ -0,0 +1,127 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_code_profile_h__ +#define __domFx_code_profile_h__ + +#include +#include + + +/** + * The fx_code_profile type allows you to specify an inline block of source + * code. + */ +class domFx_code_profile_complexType +{ +protected: // Attribute +/** + * 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; + +protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the value of this element. + * @return 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; } + +protected: + /** + * Constructor + */ + domFx_code_profile_complexType() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domFx_code_profile_complexType() {} + /** + * Copy Constructor + */ + domFx_code_profile_complexType( const domFx_code_profile_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_code_profile_complexType &operator=( const domFx_code_profile_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_code_profile_complexType. + */ +class domFx_code_profile : public daeElement, public domFx_code_profile_complexType +{ +protected: + /** + * Constructor + */ + domFx_code_profile() {} + /** + * Destructor + */ + virtual ~domFx_code_profile() {} + /** + * Copy Constructor + */ + domFx_code_profile( const domFx_code_profile &cpy ) : daeElement(), domFx_code_profile_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_code_profile &operator=( const domFx_code_profile &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_colortarget_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_colortarget_common.h new file mode 100644 index 000000000..d8eae5616 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_colortarget_common.h @@ -0,0 +1,130 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_colortarget_common_h__ +#define __domFx_colortarget_common_h__ + +#include +#include + + +class domFx_colortarget_common_complexType +{ +protected: // Attributes + xsNonNegativeInteger attrIndex; + xsNonNegativeInteger attrSlice; + +protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + +public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a xsNonNegativeInteger of the index attribute. + */ + xsNonNegativeInteger getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } + + /** + * Gets the slice attribute. + * @return Returns a xsNonNegativeInteger of the slice attribute. + */ + xsNonNegativeInteger getSlice() const { return attrSlice; } + /** + * Sets the slice attribute. + * @param atSlice The new value for the slice attribute. + */ + void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; } + + /** + * Gets the value of this element. + * @return 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; } + +protected: + /** + * Constructor + */ + domFx_colortarget_common_complexType() : attrIndex(), attrSlice(), _value() {} + /** + * Destructor + */ + virtual ~domFx_colortarget_common_complexType() {} + /** + * Copy Constructor + */ + domFx_colortarget_common_complexType( const domFx_colortarget_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_colortarget_common_complexType &operator=( const domFx_colortarget_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_colortarget_common_complexType. + */ +class domFx_colortarget_common : public daeElement, public domFx_colortarget_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_colortarget_common() {} + /** + * Destructor + */ + virtual ~domFx_colortarget_common() {} + /** + * Copy Constructor + */ + domFx_colortarget_common( const domFx_colortarget_common &cpy ) : daeElement(), domFx_colortarget_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_colortarget_common &operator=( const domFx_colortarget_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_depthtarget_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_depthtarget_common.h new file mode 100644 index 000000000..822092860 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_depthtarget_common.h @@ -0,0 +1,130 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_depthtarget_common_h__ +#define __domFx_depthtarget_common_h__ + +#include +#include + + +class domFx_depthtarget_common_complexType +{ +protected: // Attributes + xsNonNegativeInteger attrIndex; + xsNonNegativeInteger attrSlice; + +protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + +public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a xsNonNegativeInteger of the index attribute. + */ + xsNonNegativeInteger getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } + + /** + * Gets the slice attribute. + * @return Returns a xsNonNegativeInteger of the slice attribute. + */ + xsNonNegativeInteger getSlice() const { return attrSlice; } + /** + * Sets the slice attribute. + * @param atSlice The new value for the slice attribute. + */ + void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; } + + /** + * Gets the value of this element. + * @return 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; } + +protected: + /** + * Constructor + */ + domFx_depthtarget_common_complexType() : attrIndex(), attrSlice(), _value() {} + /** + * Destructor + */ + virtual ~domFx_depthtarget_common_complexType() {} + /** + * Copy Constructor + */ + domFx_depthtarget_common_complexType( const domFx_depthtarget_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_depthtarget_common_complexType &operator=( const domFx_depthtarget_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_depthtarget_common_complexType. + */ +class domFx_depthtarget_common : public daeElement, public domFx_depthtarget_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_depthtarget_common() {} + /** + * Destructor + */ + virtual ~domFx_depthtarget_common() {} + /** + * Copy Constructor + */ + domFx_depthtarget_common( const domFx_depthtarget_common &cpy ) : daeElement(), domFx_depthtarget_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_depthtarget_common &operator=( const domFx_depthtarget_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_include_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_include_common.h new file mode 100644 index 000000000..50df87530 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_include_common.h @@ -0,0 +1,134 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_include_common_h__ +#define __domFx_include_common_h__ + +#include +#include + + +/** + * The include element is used to import source code or precompiled binary + * shaders into the FX Runtime by referencing an external resource. + */ +class domFx_include_common_complexType +{ +protected: // Attributes +/** + * 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 url attribute refers to resource. This may refer to a local resource + * using a relative URL fragment identifier that begins with the “#” + * character. The url attribute may refer to an external resource using an + * absolute or relative URL. + */ + xsAnyURI attrUrl; + + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the url attribute. + * @return Returns a xsAnyURI reference of the url attribute. + */ + xsAnyURI &getUrl() { return attrUrl; } + /** + * Gets the url attribute. + * @return Returns a constant xsAnyURI reference of the url attribute. + */ + const xsAnyURI &getUrl() const { return attrUrl; } + /** + * Sets the url attribute. + * @param atUrl The new value for the url attribute. + */ + void setUrl( const xsAnyURI &atUrl ) { attrUrl.setURI( atUrl.getURI() ); } + +protected: + /** + * Constructor + */ + domFx_include_common_complexType() : attrSid(), attrUrl() {} + /** + * Destructor + */ + virtual ~domFx_include_common_complexType() {} + /** + * Copy Constructor + */ + domFx_include_common_complexType( const domFx_include_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_include_common_complexType &operator=( const domFx_include_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_include_common_complexType. + */ +class domFx_include_common : public daeElement, public domFx_include_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_include_common() {} + /** + * Destructor + */ + virtual ~domFx_include_common() {} + /** + * Copy Constructor + */ + domFx_include_common( const domFx_include_common &cpy ) : daeElement(), domFx_include_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_include_common &operator=( const domFx_include_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_newparam_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_newparam_common.h new file mode 100644 index 000000000..21b0430ed --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_newparam_common.h @@ -0,0 +1,293 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_newparam_common_h__ +#define __domFx_newparam_common_h__ + +#include +#include + +#include +#include + +/** + * This element creates a new, named param object in the FX Runtime, assigns + * it a type, an initial value, and additional attributes at declaration time. + */ +class domFx_newparam_common_complexType +{ +public: + class domSemantic; + + typedef daeSmartRef domSemanticRef; + typedef daeTArray domSemantic_Array; + +/** + * The semantic element allows you to specify a semantic for this new param. + */ + class domSemantic : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSemantic() : _value() {} + /** + * Destructor + */ + virtual ~domSemantic() {} + /** + * Copy Constructor + */ + domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSemantic &operator=( const domSemantic &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; + }; + + class domModifier; + + typedef daeSmartRef domModifierRef; + typedef daeTArray domModifier_Array; + +/** + * The modifier element allows you to specify a modifier for this new param. + */ + class domModifier : public daeElement + { + + protected: // Value + /** + * The domFx_modifier_enum_common value of the text data of this element. + */ + domFx_modifier_enum_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_modifier_enum_common of the value. + */ + domFx_modifier_enum_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_modifier_enum_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domModifier() : _value() {} + /** + * Destructor + */ + virtual ~domModifier() {} + /** + * Copy Constructor + */ + domModifier( const domModifier &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domModifier &operator=( const domModifier &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: // Attribute +/** + * 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; + +protected: // Elements +/** + * The annotate element allows you to specify an annotation for this new param. + * @see domAnnotate + */ + domFx_annotate_common_Array elemAnnotate_array; +/** + * The semantic element allows you to specify a semantic for this new param. + * @see domSemantic + */ + domSemanticRef elemSemantic; +/** + * The modifier element allows you to specify a modifier for this new param. + * @see domModifier + */ + domModifierRef elemModifier; + domFx_basic_type_commonRef elemFx_basic_type_common; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * 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 semantic element. + * @return a daeSmartRef to the semantic element. + */ + const domSemanticRef getSemantic() const { return elemSemantic; } + /** + * Gets the modifier element. + * @return a daeSmartRef to the modifier element. + */ + const domModifierRef getModifier() const { return elemModifier; } + /** + * Gets the fx_basic_type_common element. + * @return a daeSmartRef to the fx_basic_type_common element. + */ + const domFx_basic_type_commonRef getFx_basic_type_common() const { return elemFx_basic_type_common; } +protected: + /** + * Constructor + */ + domFx_newparam_common_complexType() : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemFx_basic_type_common() {} + /** + * Destructor + */ + virtual ~domFx_newparam_common_complexType() {} + /** + * Copy Constructor + */ + domFx_newparam_common_complexType( const domFx_newparam_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_newparam_common_complexType &operator=( const domFx_newparam_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_newparam_common_complexType. + */ +class domFx_newparam_common : public daeElement, public domFx_newparam_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_newparam_common() {} + /** + * Destructor + */ + virtual ~domFx_newparam_common() {} + /** + * Copy Constructor + */ + domFx_newparam_common( const domFx_newparam_common &cpy ) : daeElement(), domFx_newparam_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_newparam_common &operator=( const domFx_newparam_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_profile_abstract.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_profile_abstract.h new file mode 100644 index 000000000..7e864bc05 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_profile_abstract.h @@ -0,0 +1,67 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_profile_abstract_h__ +#define __domFx_profile_abstract_h__ + +#include +#include + + +/** + * The fx_profile_abstract element is only used as a substitution group hook + * for COLLADA FX profiles. + */ +class domFx_profile_abstract : public daeElement +{ + +protected: + /** + * Constructor + */ + domFx_profile_abstract() {} + /** + * Destructor + */ + virtual ~domFx_profile_abstract() {} + /** + * Copy Constructor + */ + domFx_profile_abstract( const domFx_profile_abstract &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_profile_abstract &operator=( const domFx_profile_abstract &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler1D_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler1D_common.h new file mode 100644 index 000000000..a91426be1 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler1D_common.h @@ -0,0 +1,668 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_sampler1D_common_h__ +#define __domFx_sampler1D_common_h__ + +#include +#include + + +/** + * A one-dimensional texture sampler. + */ +class domFx_sampler1D_common_complexType +{ +public: + class domSource; + + typedef daeSmartRef domSourceRef; + typedef daeTArray domSource_Array; + + class domSource : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSource() : _value() {} + /** + * Destructor + */ + virtual ~domSource() {} + /** + * Copy Constructor + */ + domSource( const domSource &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSource &operator=( const domSource &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; + }; + + class domWrap_s; + + typedef daeSmartRef domWrap_sRef; + typedef daeTArray domWrap_s_Array; + + class domWrap_s : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_s() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_s() {} + /** + * Copy Constructor + */ + domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_s &operator=( const domWrap_s &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; + }; + + class domMinfilter; + + typedef daeSmartRef domMinfilterRef; + typedef daeTArray domMinfilter_Array; + + class domMinfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMinfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMinfilter() {} + /** + * Copy Constructor + */ + domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMinfilter &operator=( const domMinfilter &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; + }; + + class domMagfilter; + + typedef daeSmartRef domMagfilterRef; + typedef daeTArray domMagfilter_Array; + + class domMagfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMagfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMagfilter() {} + /** + * Copy Constructor + */ + domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMagfilter &operator=( const domMagfilter &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; + }; + + class domMipfilter; + + typedef daeSmartRef domMipfilterRef; + typedef daeTArray domMipfilter_Array; + + class domMipfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMipfilter() {} + /** + * Copy Constructor + */ + domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipfilter &operator=( const domMipfilter &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; + }; + + class domBorder_color; + + typedef daeSmartRef domBorder_colorRef; + typedef daeTArray domBorder_color_Array; + + class domBorder_color : public daeElement + { + + protected: // Value + /** + * The domFx_color_common value of the text data of this element. + */ + domFx_color_common _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFx_color_common reference of the _value array. + */ + domFx_color_common &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFx_color_common reference of the _value array. + */ + const domFx_color_common &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFx_color_common &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBorder_color() : _value() {} + /** + * Destructor + */ + virtual ~domBorder_color() {} + /** + * Copy Constructor + */ + domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBorder_color &operator=( const domBorder_color &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; + }; + + class domMipmap_maxlevel; + + typedef daeSmartRef domMipmap_maxlevelRef; + typedef daeTArray domMipmap_maxlevel_Array; + + class domMipmap_maxlevel : public daeElement + { + + protected: // Value + /** + * The xsUnsignedByte value of the text data of this element. + */ + xsUnsignedByte _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsUnsignedByte of the value. + */ + xsUnsignedByte getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsUnsignedByte val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_maxlevel() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_maxlevel() {} + /** + * Copy Constructor + */ + domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &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; + }; + + class domMipmap_bias; + + typedef daeSmartRef domMipmap_biasRef; + typedef daeTArray domMipmap_bias_Array; + + class domMipmap_bias : public daeElement + { + + protected: // Value + /** + * The xsFloat value of the text data of this element. + */ + xsFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsFloat of the value. + */ + xsFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_bias() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_bias() {} + /** + * Copy Constructor + */ + domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_bias &operator=( const domMipmap_bias &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: // Elements + domSourceRef elemSource; + domWrap_sRef elemWrap_s; + domMinfilterRef elemMinfilter; + domMagfilterRef elemMagfilter; + domMipfilterRef elemMipfilter; + domBorder_colorRef elemBorder_color; + domMipmap_maxlevelRef elemMipmap_maxlevel; + domMipmap_biasRef elemMipmap_bias; + +public: //Accessors and Mutators + /** + * Gets the source element. + * @return a daeSmartRef to the source element. + */ + const domSourceRef getSource() const { return elemSource; } + /** + * Gets the wrap_s element. + * @return a daeSmartRef to the wrap_s element. + */ + const domWrap_sRef getWrap_s() const { return elemWrap_s; } + /** + * Gets the minfilter element. + * @return a daeSmartRef to the minfilter element. + */ + const domMinfilterRef getMinfilter() const { return elemMinfilter; } + /** + * Gets the magfilter element. + * @return a daeSmartRef to the magfilter element. + */ + const domMagfilterRef getMagfilter() const { return elemMagfilter; } + /** + * Gets the mipfilter element. + * @return a daeSmartRef to the mipfilter element. + */ + const domMipfilterRef getMipfilter() const { return elemMipfilter; } + /** + * Gets the border_color element. + * @return a daeSmartRef to the border_color element. + */ + const domBorder_colorRef getBorder_color() const { return elemBorder_color; } + /** + * Gets the mipmap_maxlevel element. + * @return a daeSmartRef to the mipmap_maxlevel element. + */ + const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } + /** + * Gets the mipmap_bias element. + * @return a daeSmartRef to the mipmap_bias element. + */ + const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } +protected: + /** + * Constructor + */ + domFx_sampler1D_common_complexType() : elemSource(), elemWrap_s(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias() {} + /** + * Destructor + */ + virtual ~domFx_sampler1D_common_complexType() {} + /** + * Copy Constructor + */ + domFx_sampler1D_common_complexType( const domFx_sampler1D_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_sampler1D_common_complexType &operator=( const domFx_sampler1D_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_sampler1D_common_complexType. + */ +class domFx_sampler1D_common : public daeElement, public domFx_sampler1D_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_sampler1D_common() {} + /** + * Destructor + */ + virtual ~domFx_sampler1D_common() {} + /** + * Copy Constructor + */ + domFx_sampler1D_common( const domFx_sampler1D_common &cpy ) : daeElement(), domFx_sampler1D_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_sampler1D_common &operator=( const domFx_sampler1D_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler2D_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler2D_common.h new file mode 100644 index 000000000..c8c9beb9a --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler2D_common.h @@ -0,0 +1,739 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_sampler2D_common_h__ +#define __domFx_sampler2D_common_h__ + +#include +#include + + +/** + * A two-dimensional texture sampler. + */ +class domFx_sampler2D_common_complexType +{ +public: + class domSource; + + typedef daeSmartRef domSourceRef; + typedef daeTArray domSource_Array; + + class domSource : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSource() : _value() {} + /** + * Destructor + */ + virtual ~domSource() {} + /** + * Copy Constructor + */ + domSource( const domSource &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSource &operator=( const domSource &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; + }; + + class domWrap_s; + + typedef daeSmartRef domWrap_sRef; + typedef daeTArray domWrap_s_Array; + + class domWrap_s : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_s() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_s() {} + /** + * Copy Constructor + */ + domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_s &operator=( const domWrap_s &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; + }; + + class domWrap_t; + + typedef daeSmartRef domWrap_tRef; + typedef daeTArray domWrap_t_Array; + + class domWrap_t : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_t() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_t() {} + /** + * Copy Constructor + */ + domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_t &operator=( const domWrap_t &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; + }; + + class domMinfilter; + + typedef daeSmartRef domMinfilterRef; + typedef daeTArray domMinfilter_Array; + + class domMinfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMinfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMinfilter() {} + /** + * Copy Constructor + */ + domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMinfilter &operator=( const domMinfilter &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; + }; + + class domMagfilter; + + typedef daeSmartRef domMagfilterRef; + typedef daeTArray domMagfilter_Array; + + class domMagfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMagfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMagfilter() {} + /** + * Copy Constructor + */ + domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMagfilter &operator=( const domMagfilter &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; + }; + + class domMipfilter; + + typedef daeSmartRef domMipfilterRef; + typedef daeTArray domMipfilter_Array; + + class domMipfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMipfilter() {} + /** + * Copy Constructor + */ + domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipfilter &operator=( const domMipfilter &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; + }; + + class domBorder_color; + + typedef daeSmartRef domBorder_colorRef; + typedef daeTArray domBorder_color_Array; + + class domBorder_color : public daeElement + { + + protected: // Value + /** + * The domFx_color_common value of the text data of this element. + */ + domFx_color_common _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFx_color_common reference of the _value array. + */ + domFx_color_common &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFx_color_common reference of the _value array. + */ + const domFx_color_common &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFx_color_common &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBorder_color() : _value() {} + /** + * Destructor + */ + virtual ~domBorder_color() {} + /** + * Copy Constructor + */ + domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBorder_color &operator=( const domBorder_color &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; + }; + + class domMipmap_maxlevel; + + typedef daeSmartRef domMipmap_maxlevelRef; + typedef daeTArray domMipmap_maxlevel_Array; + + class domMipmap_maxlevel : public daeElement + { + + protected: // Value + /** + * The xsUnsignedByte value of the text data of this element. + */ + xsUnsignedByte _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsUnsignedByte of the value. + */ + xsUnsignedByte getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsUnsignedByte val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_maxlevel() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_maxlevel() {} + /** + * Copy Constructor + */ + domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &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; + }; + + class domMipmap_bias; + + typedef daeSmartRef domMipmap_biasRef; + typedef daeTArray domMipmap_bias_Array; + + class domMipmap_bias : public daeElement + { + + protected: // Value + /** + * The xsFloat value of the text data of this element. + */ + xsFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsFloat of the value. + */ + xsFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_bias() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_bias() {} + /** + * Copy Constructor + */ + domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_bias &operator=( const domMipmap_bias &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: // Elements + domSourceRef elemSource; + domWrap_sRef elemWrap_s; + domWrap_tRef elemWrap_t; + domMinfilterRef elemMinfilter; + domMagfilterRef elemMagfilter; + domMipfilterRef elemMipfilter; + domBorder_colorRef elemBorder_color; + domMipmap_maxlevelRef elemMipmap_maxlevel; + domMipmap_biasRef elemMipmap_bias; + +public: //Accessors and Mutators + /** + * Gets the source element. + * @return a daeSmartRef to the source element. + */ + const domSourceRef getSource() const { return elemSource; } + /** + * Gets the wrap_s element. + * @return a daeSmartRef to the wrap_s element. + */ + const domWrap_sRef getWrap_s() const { return elemWrap_s; } + /** + * Gets the wrap_t element. + * @return a daeSmartRef to the wrap_t element. + */ + const domWrap_tRef getWrap_t() const { return elemWrap_t; } + /** + * Gets the minfilter element. + * @return a daeSmartRef to the minfilter element. + */ + const domMinfilterRef getMinfilter() const { return elemMinfilter; } + /** + * Gets the magfilter element. + * @return a daeSmartRef to the magfilter element. + */ + const domMagfilterRef getMagfilter() const { return elemMagfilter; } + /** + * Gets the mipfilter element. + * @return a daeSmartRef to the mipfilter element. + */ + const domMipfilterRef getMipfilter() const { return elemMipfilter; } + /** + * Gets the border_color element. + * @return a daeSmartRef to the border_color element. + */ + const domBorder_colorRef getBorder_color() const { return elemBorder_color; } + /** + * Gets the mipmap_maxlevel element. + * @return a daeSmartRef to the mipmap_maxlevel element. + */ + const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } + /** + * Gets the mipmap_bias element. + * @return a daeSmartRef to the mipmap_bias element. + */ + const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } +protected: + /** + * Constructor + */ + domFx_sampler2D_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias() {} + /** + * Destructor + */ + virtual ~domFx_sampler2D_common_complexType() {} + /** + * Copy Constructor + */ + domFx_sampler2D_common_complexType( const domFx_sampler2D_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_sampler2D_common_complexType &operator=( const domFx_sampler2D_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_sampler2D_common_complexType. + */ +class domFx_sampler2D_common : public daeElement, public domFx_sampler2D_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_sampler2D_common() {} + /** + * Destructor + */ + virtual ~domFx_sampler2D_common() {} + /** + * Copy Constructor + */ + domFx_sampler2D_common( const domFx_sampler2D_common &cpy ) : daeElement(), domFx_sampler2D_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_sampler2D_common &operator=( const domFx_sampler2D_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler3D_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler3D_common.h new file mode 100644 index 000000000..557d5bbe0 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler3D_common.h @@ -0,0 +1,810 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_sampler3D_common_h__ +#define __domFx_sampler3D_common_h__ + +#include +#include + + +/** + * A three-dimensional texture sampler. + */ +class domFx_sampler3D_common_complexType +{ +public: + class domSource; + + typedef daeSmartRef domSourceRef; + typedef daeTArray domSource_Array; + + class domSource : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSource() : _value() {} + /** + * Destructor + */ + virtual ~domSource() {} + /** + * Copy Constructor + */ + domSource( const domSource &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSource &operator=( const domSource &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; + }; + + class domWrap_s; + + typedef daeSmartRef domWrap_sRef; + typedef daeTArray domWrap_s_Array; + + class domWrap_s : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_s() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_s() {} + /** + * Copy Constructor + */ + domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_s &operator=( const domWrap_s &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; + }; + + class domWrap_t; + + typedef daeSmartRef domWrap_tRef; + typedef daeTArray domWrap_t_Array; + + class domWrap_t : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_t() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_t() {} + /** + * Copy Constructor + */ + domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_t &operator=( const domWrap_t &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; + }; + + class domWrap_p; + + typedef daeSmartRef domWrap_pRef; + typedef daeTArray domWrap_p_Array; + + class domWrap_p : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_p() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_p() {} + /** + * Copy Constructor + */ + domWrap_p( const domWrap_p &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_p &operator=( const domWrap_p &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; + }; + + class domMinfilter; + + typedef daeSmartRef domMinfilterRef; + typedef daeTArray domMinfilter_Array; + + class domMinfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMinfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMinfilter() {} + /** + * Copy Constructor + */ + domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMinfilter &operator=( const domMinfilter &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; + }; + + class domMagfilter; + + typedef daeSmartRef domMagfilterRef; + typedef daeTArray domMagfilter_Array; + + class domMagfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMagfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMagfilter() {} + /** + * Copy Constructor + */ + domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMagfilter &operator=( const domMagfilter &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; + }; + + class domMipfilter; + + typedef daeSmartRef domMipfilterRef; + typedef daeTArray domMipfilter_Array; + + class domMipfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMipfilter() {} + /** + * Copy Constructor + */ + domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipfilter &operator=( const domMipfilter &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; + }; + + class domBorder_color; + + typedef daeSmartRef domBorder_colorRef; + typedef daeTArray domBorder_color_Array; + + class domBorder_color : public daeElement + { + + protected: // Value + /** + * The domFx_color_common value of the text data of this element. + */ + domFx_color_common _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFx_color_common reference of the _value array. + */ + domFx_color_common &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFx_color_common reference of the _value array. + */ + const domFx_color_common &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFx_color_common &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBorder_color() : _value() {} + /** + * Destructor + */ + virtual ~domBorder_color() {} + /** + * Copy Constructor + */ + domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBorder_color &operator=( const domBorder_color &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; + }; + + class domMipmap_maxlevel; + + typedef daeSmartRef domMipmap_maxlevelRef; + typedef daeTArray domMipmap_maxlevel_Array; + + class domMipmap_maxlevel : public daeElement + { + + protected: // Value + /** + * The xsUnsignedByte value of the text data of this element. + */ + xsUnsignedByte _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsUnsignedByte of the value. + */ + xsUnsignedByte getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsUnsignedByte val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_maxlevel() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_maxlevel() {} + /** + * Copy Constructor + */ + domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &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; + }; + + class domMipmap_bias; + + typedef daeSmartRef domMipmap_biasRef; + typedef daeTArray domMipmap_bias_Array; + + class domMipmap_bias : public daeElement + { + + protected: // Value + /** + * The xsFloat value of the text data of this element. + */ + xsFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsFloat of the value. + */ + xsFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_bias() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_bias() {} + /** + * Copy Constructor + */ + domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_bias &operator=( const domMipmap_bias &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: // Elements + domSourceRef elemSource; + domWrap_sRef elemWrap_s; + domWrap_tRef elemWrap_t; + domWrap_pRef elemWrap_p; + domMinfilterRef elemMinfilter; + domMagfilterRef elemMagfilter; + domMipfilterRef elemMipfilter; + domBorder_colorRef elemBorder_color; + domMipmap_maxlevelRef elemMipmap_maxlevel; + domMipmap_biasRef elemMipmap_bias; + +public: //Accessors and Mutators + /** + * Gets the source element. + * @return a daeSmartRef to the source element. + */ + const domSourceRef getSource() const { return elemSource; } + /** + * Gets the wrap_s element. + * @return a daeSmartRef to the wrap_s element. + */ + const domWrap_sRef getWrap_s() const { return elemWrap_s; } + /** + * Gets the wrap_t element. + * @return a daeSmartRef to the wrap_t element. + */ + const domWrap_tRef getWrap_t() const { return elemWrap_t; } + /** + * Gets the wrap_p element. + * @return a daeSmartRef to the wrap_p element. + */ + const domWrap_pRef getWrap_p() const { return elemWrap_p; } + /** + * Gets the minfilter element. + * @return a daeSmartRef to the minfilter element. + */ + const domMinfilterRef getMinfilter() const { return elemMinfilter; } + /** + * Gets the magfilter element. + * @return a daeSmartRef to the magfilter element. + */ + const domMagfilterRef getMagfilter() const { return elemMagfilter; } + /** + * Gets the mipfilter element. + * @return a daeSmartRef to the mipfilter element. + */ + const domMipfilterRef getMipfilter() const { return elemMipfilter; } + /** + * Gets the border_color element. + * @return a daeSmartRef to the border_color element. + */ + const domBorder_colorRef getBorder_color() const { return elemBorder_color; } + /** + * Gets the mipmap_maxlevel element. + * @return a daeSmartRef to the mipmap_maxlevel element. + */ + const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } + /** + * Gets the mipmap_bias element. + * @return a daeSmartRef to the mipmap_bias element. + */ + const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } +protected: + /** + * Constructor + */ + domFx_sampler3D_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemWrap_p(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias() {} + /** + * Destructor + */ + virtual ~domFx_sampler3D_common_complexType() {} + /** + * Copy Constructor + */ + domFx_sampler3D_common_complexType( const domFx_sampler3D_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_sampler3D_common_complexType &operator=( const domFx_sampler3D_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_sampler3D_common_complexType. + */ +class domFx_sampler3D_common : public daeElement, public domFx_sampler3D_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_sampler3D_common() {} + /** + * Destructor + */ + virtual ~domFx_sampler3D_common() {} + /** + * Copy Constructor + */ + domFx_sampler3D_common( const domFx_sampler3D_common &cpy ) : daeElement(), domFx_sampler3D_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_sampler3D_common &operator=( const domFx_sampler3D_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerCUBE_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerCUBE_common.h new file mode 100644 index 000000000..81014f0e7 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerCUBE_common.h @@ -0,0 +1,810 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_samplerCUBE_common_h__ +#define __domFx_samplerCUBE_common_h__ + +#include +#include + + +/** + * A texture sampler for cube maps. + */ +class domFx_samplerCUBE_common_complexType +{ +public: + class domSource; + + typedef daeSmartRef domSourceRef; + typedef daeTArray domSource_Array; + + class domSource : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSource() : _value() {} + /** + * Destructor + */ + virtual ~domSource() {} + /** + * Copy Constructor + */ + domSource( const domSource &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSource &operator=( const domSource &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; + }; + + class domWrap_s; + + typedef daeSmartRef domWrap_sRef; + typedef daeTArray domWrap_s_Array; + + class domWrap_s : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_s() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_s() {} + /** + * Copy Constructor + */ + domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_s &operator=( const domWrap_s &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; + }; + + class domWrap_t; + + typedef daeSmartRef domWrap_tRef; + typedef daeTArray domWrap_t_Array; + + class domWrap_t : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_t() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_t() {} + /** + * Copy Constructor + */ + domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_t &operator=( const domWrap_t &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; + }; + + class domWrap_p; + + typedef daeSmartRef domWrap_pRef; + typedef daeTArray domWrap_p_Array; + + class domWrap_p : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_p() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_p() {} + /** + * Copy Constructor + */ + domWrap_p( const domWrap_p &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_p &operator=( const domWrap_p &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; + }; + + class domMinfilter; + + typedef daeSmartRef domMinfilterRef; + typedef daeTArray domMinfilter_Array; + + class domMinfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMinfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMinfilter() {} + /** + * Copy Constructor + */ + domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMinfilter &operator=( const domMinfilter &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; + }; + + class domMagfilter; + + typedef daeSmartRef domMagfilterRef; + typedef daeTArray domMagfilter_Array; + + class domMagfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMagfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMagfilter() {} + /** + * Copy Constructor + */ + domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMagfilter &operator=( const domMagfilter &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; + }; + + class domMipfilter; + + typedef daeSmartRef domMipfilterRef; + typedef daeTArray domMipfilter_Array; + + class domMipfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMipfilter() {} + /** + * Copy Constructor + */ + domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipfilter &operator=( const domMipfilter &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; + }; + + class domBorder_color; + + typedef daeSmartRef domBorder_colorRef; + typedef daeTArray domBorder_color_Array; + + class domBorder_color : public daeElement + { + + protected: // Value + /** + * The domFx_color_common value of the text data of this element. + */ + domFx_color_common _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFx_color_common reference of the _value array. + */ + domFx_color_common &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFx_color_common reference of the _value array. + */ + const domFx_color_common &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFx_color_common &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBorder_color() : _value() {} + /** + * Destructor + */ + virtual ~domBorder_color() {} + /** + * Copy Constructor + */ + domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBorder_color &operator=( const domBorder_color &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; + }; + + class domMipmap_maxlevel; + + typedef daeSmartRef domMipmap_maxlevelRef; + typedef daeTArray domMipmap_maxlevel_Array; + + class domMipmap_maxlevel : public daeElement + { + + protected: // Value + /** + * The xsUnsignedByte value of the text data of this element. + */ + xsUnsignedByte _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsUnsignedByte of the value. + */ + xsUnsignedByte getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsUnsignedByte val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_maxlevel() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_maxlevel() {} + /** + * Copy Constructor + */ + domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &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; + }; + + class domMipmap_bias; + + typedef daeSmartRef domMipmap_biasRef; + typedef daeTArray domMipmap_bias_Array; + + class domMipmap_bias : public daeElement + { + + protected: // Value + /** + * The xsFloat value of the text data of this element. + */ + xsFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsFloat of the value. + */ + xsFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_bias() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_bias() {} + /** + * Copy Constructor + */ + domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_bias &operator=( const domMipmap_bias &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: // Elements + domSourceRef elemSource; + domWrap_sRef elemWrap_s; + domWrap_tRef elemWrap_t; + domWrap_pRef elemWrap_p; + domMinfilterRef elemMinfilter; + domMagfilterRef elemMagfilter; + domMipfilterRef elemMipfilter; + domBorder_colorRef elemBorder_color; + domMipmap_maxlevelRef elemMipmap_maxlevel; + domMipmap_biasRef elemMipmap_bias; + +public: //Accessors and Mutators + /** + * Gets the source element. + * @return a daeSmartRef to the source element. + */ + const domSourceRef getSource() const { return elemSource; } + /** + * Gets the wrap_s element. + * @return a daeSmartRef to the wrap_s element. + */ + const domWrap_sRef getWrap_s() const { return elemWrap_s; } + /** + * Gets the wrap_t element. + * @return a daeSmartRef to the wrap_t element. + */ + const domWrap_tRef getWrap_t() const { return elemWrap_t; } + /** + * Gets the wrap_p element. + * @return a daeSmartRef to the wrap_p element. + */ + const domWrap_pRef getWrap_p() const { return elemWrap_p; } + /** + * Gets the minfilter element. + * @return a daeSmartRef to the minfilter element. + */ + const domMinfilterRef getMinfilter() const { return elemMinfilter; } + /** + * Gets the magfilter element. + * @return a daeSmartRef to the magfilter element. + */ + const domMagfilterRef getMagfilter() const { return elemMagfilter; } + /** + * Gets the mipfilter element. + * @return a daeSmartRef to the mipfilter element. + */ + const domMipfilterRef getMipfilter() const { return elemMipfilter; } + /** + * Gets the border_color element. + * @return a daeSmartRef to the border_color element. + */ + const domBorder_colorRef getBorder_color() const { return elemBorder_color; } + /** + * Gets the mipmap_maxlevel element. + * @return a daeSmartRef to the mipmap_maxlevel element. + */ + const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } + /** + * Gets the mipmap_bias element. + * @return a daeSmartRef to the mipmap_bias element. + */ + const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } +protected: + /** + * Constructor + */ + domFx_samplerCUBE_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemWrap_p(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias() {} + /** + * Destructor + */ + virtual ~domFx_samplerCUBE_common_complexType() {} + /** + * Copy Constructor + */ + domFx_samplerCUBE_common_complexType( const domFx_samplerCUBE_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_samplerCUBE_common_complexType &operator=( const domFx_samplerCUBE_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_samplerCUBE_common_complexType. + */ +class domFx_samplerCUBE_common : public daeElement, public domFx_samplerCUBE_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_samplerCUBE_common() {} + /** + * Destructor + */ + virtual ~domFx_samplerCUBE_common() {} + /** + * Copy Constructor + */ + domFx_samplerCUBE_common( const domFx_samplerCUBE_common &cpy ) : daeElement(), domFx_samplerCUBE_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_samplerCUBE_common &operator=( const domFx_samplerCUBE_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerDEPTH_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerDEPTH_common.h new file mode 100644 index 000000000..96269a9b3 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerDEPTH_common.h @@ -0,0 +1,450 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_samplerDEPTH_common_h__ +#define __domFx_samplerDEPTH_common_h__ + +#include +#include + + +/** + * A texture sampler for depth maps. + */ +class domFx_samplerDEPTH_common_complexType +{ +public: + class domSource; + + typedef daeSmartRef domSourceRef; + typedef daeTArray domSource_Array; + + class domSource : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSource() : _value() {} + /** + * Destructor + */ + virtual ~domSource() {} + /** + * Copy Constructor + */ + domSource( const domSource &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSource &operator=( const domSource &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; + }; + + class domWrap_s; + + typedef daeSmartRef domWrap_sRef; + typedef daeTArray domWrap_s_Array; + + class domWrap_s : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_s() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_s() {} + /** + * Copy Constructor + */ + domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_s &operator=( const domWrap_s &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; + }; + + class domWrap_t; + + typedef daeSmartRef domWrap_tRef; + typedef daeTArray domWrap_t_Array; + + class domWrap_t : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_t() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_t() {} + /** + * Copy Constructor + */ + domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_t &operator=( const domWrap_t &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; + }; + + class domMinfilter; + + typedef daeSmartRef domMinfilterRef; + typedef daeTArray domMinfilter_Array; + + class domMinfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMinfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMinfilter() {} + /** + * Copy Constructor + */ + domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMinfilter &operator=( const domMinfilter &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; + }; + + class domMagfilter; + + typedef daeSmartRef domMagfilterRef; + typedef daeTArray domMagfilter_Array; + + class domMagfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMagfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMagfilter() {} + /** + * Copy Constructor + */ + domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMagfilter &operator=( const domMagfilter &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: // Elements + domSourceRef elemSource; + domWrap_sRef elemWrap_s; + domWrap_tRef elemWrap_t; + domMinfilterRef elemMinfilter; + domMagfilterRef elemMagfilter; + +public: //Accessors and Mutators + /** + * Gets the source element. + * @return a daeSmartRef to the source element. + */ + const domSourceRef getSource() const { return elemSource; } + /** + * Gets the wrap_s element. + * @return a daeSmartRef to the wrap_s element. + */ + const domWrap_sRef getWrap_s() const { return elemWrap_s; } + /** + * Gets the wrap_t element. + * @return a daeSmartRef to the wrap_t element. + */ + const domWrap_tRef getWrap_t() const { return elemWrap_t; } + /** + * Gets the minfilter element. + * @return a daeSmartRef to the minfilter element. + */ + const domMinfilterRef getMinfilter() const { return elemMinfilter; } + /** + * Gets the magfilter element. + * @return a daeSmartRef to the magfilter element. + */ + const domMagfilterRef getMagfilter() const { return elemMagfilter; } +protected: + /** + * Constructor + */ + domFx_samplerDEPTH_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter() {} + /** + * Destructor + */ + virtual ~domFx_samplerDEPTH_common_complexType() {} + /** + * Copy Constructor + */ + domFx_samplerDEPTH_common_complexType( const domFx_samplerDEPTH_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_samplerDEPTH_common_complexType &operator=( const domFx_samplerDEPTH_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_samplerDEPTH_common_complexType. + */ +class domFx_samplerDEPTH_common : public daeElement, public domFx_samplerDEPTH_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_samplerDEPTH_common() {} + /** + * Destructor + */ + virtual ~domFx_samplerDEPTH_common() {} + /** + * Copy Constructor + */ + domFx_samplerDEPTH_common( const domFx_samplerDEPTH_common &cpy ) : daeElement(), domFx_samplerDEPTH_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_samplerDEPTH_common &operator=( const domFx_samplerDEPTH_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerRECT_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerRECT_common.h new file mode 100644 index 000000000..ca5d62dce --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerRECT_common.h @@ -0,0 +1,739 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_samplerRECT_common_h__ +#define __domFx_samplerRECT_common_h__ + +#include +#include + + +/** + * A two-dimensional texture sampler. + */ +class domFx_samplerRECT_common_complexType +{ +public: + class domSource; + + typedef daeSmartRef domSourceRef; + typedef daeTArray domSource_Array; + + class domSource : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSource() : _value() {} + /** + * Destructor + */ + virtual ~domSource() {} + /** + * Copy Constructor + */ + domSource( const domSource &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSource &operator=( const domSource &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; + }; + + class domWrap_s; + + typedef daeSmartRef domWrap_sRef; + typedef daeTArray domWrap_s_Array; + + class domWrap_s : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_s() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_s() {} + /** + * Copy Constructor + */ + domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_s &operator=( const domWrap_s &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; + }; + + class domWrap_t; + + typedef daeSmartRef domWrap_tRef; + typedef daeTArray domWrap_t_Array; + + class domWrap_t : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_wrap_common value of the text data of this element. + */ + domFx_sampler_wrap_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_wrap_common of the value. + */ + domFx_sampler_wrap_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_wrap_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_t() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_t() {} + /** + * Copy Constructor + */ + domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_t &operator=( const domWrap_t &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; + }; + + class domMinfilter; + + typedef daeSmartRef domMinfilterRef; + typedef daeTArray domMinfilter_Array; + + class domMinfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMinfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMinfilter() {} + /** + * Copy Constructor + */ + domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMinfilter &operator=( const domMinfilter &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; + }; + + class domMagfilter; + + typedef daeSmartRef domMagfilterRef; + typedef daeTArray domMagfilter_Array; + + class domMagfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMagfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMagfilter() {} + /** + * Copy Constructor + */ + domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMagfilter &operator=( const domMagfilter &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; + }; + + class domMipfilter; + + typedef daeSmartRef domMipfilterRef; + typedef daeTArray domMipfilter_Array; + + class domMipfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMipfilter() {} + /** + * Copy Constructor + */ + domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipfilter &operator=( const domMipfilter &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; + }; + + class domBorder_color; + + typedef daeSmartRef domBorder_colorRef; + typedef daeTArray domBorder_color_Array; + + class domBorder_color : public daeElement + { + + protected: // Value + /** + * The domFx_color_common value of the text data of this element. + */ + domFx_color_common _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFx_color_common reference of the _value array. + */ + domFx_color_common &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFx_color_common reference of the _value array. + */ + const domFx_color_common &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFx_color_common &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBorder_color() : _value() {} + /** + * Destructor + */ + virtual ~domBorder_color() {} + /** + * Copy Constructor + */ + domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBorder_color &operator=( const domBorder_color &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; + }; + + class domMipmap_maxlevel; + + typedef daeSmartRef domMipmap_maxlevelRef; + typedef daeTArray domMipmap_maxlevel_Array; + + class domMipmap_maxlevel : public daeElement + { + + protected: // Value + /** + * The xsUnsignedByte value of the text data of this element. + */ + xsUnsignedByte _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsUnsignedByte of the value. + */ + xsUnsignedByte getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsUnsignedByte val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_maxlevel() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_maxlevel() {} + /** + * Copy Constructor + */ + domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &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; + }; + + class domMipmap_bias; + + typedef daeSmartRef domMipmap_biasRef; + typedef daeTArray domMipmap_bias_Array; + + class domMipmap_bias : public daeElement + { + + protected: // Value + /** + * The xsFloat value of the text data of this element. + */ + xsFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsFloat of the value. + */ + xsFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_bias() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_bias() {} + /** + * Copy Constructor + */ + domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_bias &operator=( const domMipmap_bias &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: // Elements + domSourceRef elemSource; + domWrap_sRef elemWrap_s; + domWrap_tRef elemWrap_t; + domMinfilterRef elemMinfilter; + domMagfilterRef elemMagfilter; + domMipfilterRef elemMipfilter; + domBorder_colorRef elemBorder_color; + domMipmap_maxlevelRef elemMipmap_maxlevel; + domMipmap_biasRef elemMipmap_bias; + +public: //Accessors and Mutators + /** + * Gets the source element. + * @return a daeSmartRef to the source element. + */ + const domSourceRef getSource() const { return elemSource; } + /** + * Gets the wrap_s element. + * @return a daeSmartRef to the wrap_s element. + */ + const domWrap_sRef getWrap_s() const { return elemWrap_s; } + /** + * Gets the wrap_t element. + * @return a daeSmartRef to the wrap_t element. + */ + const domWrap_tRef getWrap_t() const { return elemWrap_t; } + /** + * Gets the minfilter element. + * @return a daeSmartRef to the minfilter element. + */ + const domMinfilterRef getMinfilter() const { return elemMinfilter; } + /** + * Gets the magfilter element. + * @return a daeSmartRef to the magfilter element. + */ + const domMagfilterRef getMagfilter() const { return elemMagfilter; } + /** + * Gets the mipfilter element. + * @return a daeSmartRef to the mipfilter element. + */ + const domMipfilterRef getMipfilter() const { return elemMipfilter; } + /** + * Gets the border_color element. + * @return a daeSmartRef to the border_color element. + */ + const domBorder_colorRef getBorder_color() const { return elemBorder_color; } + /** + * Gets the mipmap_maxlevel element. + * @return a daeSmartRef to the mipmap_maxlevel element. + */ + const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } + /** + * Gets the mipmap_bias element. + * @return a daeSmartRef to the mipmap_bias element. + */ + const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } +protected: + /** + * Constructor + */ + domFx_samplerRECT_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias() {} + /** + * Destructor + */ + virtual ~domFx_samplerRECT_common_complexType() {} + /** + * Copy Constructor + */ + domFx_samplerRECT_common_complexType( const domFx_samplerRECT_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_samplerRECT_common_complexType &operator=( const domFx_samplerRECT_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_samplerRECT_common_complexType. + */ +class domFx_samplerRECT_common : public daeElement, public domFx_samplerRECT_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_samplerRECT_common() {} + /** + * Destructor + */ + virtual ~domFx_samplerRECT_common() {} + /** + * Copy Constructor + */ + domFx_samplerRECT_common( const domFx_samplerRECT_common &cpy ) : daeElement(), domFx_samplerRECT_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_samplerRECT_common &operator=( const domFx_samplerRECT_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_setparam_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_setparam_common.h new file mode 100644 index 000000000..41ff2415d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_setparam_common.h @@ -0,0 +1,122 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_setparam_common_h__ +#define __domFx_setparam_common_h__ + +#include +#include + +#include +#include + +class domFx_setparam_common_complexType +{ +protected: // Attribute + xsNCName attrRef; + +protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domFx_basic_type_commonRef elemFx_basic_type_common; + +public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a xsNCName of the ref attribute. + */ + xsNCName getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( xsNCName atRef ) { attrRef = atRef; } + + /** + * 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 fx_basic_type_common element. + * @return a daeSmartRef to the fx_basic_type_common element. + */ + const domFx_basic_type_commonRef getFx_basic_type_common() const { return elemFx_basic_type_common; } +protected: + /** + * Constructor + */ + domFx_setparam_common_complexType() : attrRef(), elemAnnotate_array(), elemFx_basic_type_common() {} + /** + * Destructor + */ + virtual ~domFx_setparam_common_complexType() {} + /** + * Copy Constructor + */ + domFx_setparam_common_complexType( const domFx_setparam_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_setparam_common_complexType &operator=( const domFx_setparam_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_setparam_common_complexType. + */ +class domFx_setparam_common : public daeElement, public domFx_setparam_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_setparam_common() {} + /** + * Destructor + */ + virtual ~domFx_setparam_common() {} + /** + * Copy Constructor + */ + domFx_setparam_common( const domFx_setparam_common &cpy ) : daeElement(), domFx_setparam_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_setparam_common &operator=( const domFx_setparam_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_stenciltarget_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_stenciltarget_common.h new file mode 100644 index 000000000..836545800 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_stenciltarget_common.h @@ -0,0 +1,130 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_stenciltarget_common_h__ +#define __domFx_stenciltarget_common_h__ + +#include +#include + + +class domFx_stenciltarget_common_complexType +{ +protected: // Attributes + xsNonNegativeInteger attrIndex; + xsNonNegativeInteger attrSlice; + +protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + +public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a xsNonNegativeInteger of the index attribute. + */ + xsNonNegativeInteger getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } + + /** + * Gets the slice attribute. + * @return Returns a xsNonNegativeInteger of the slice attribute. + */ + xsNonNegativeInteger getSlice() const { return attrSlice; } + /** + * Sets the slice attribute. + * @param atSlice The new value for the slice attribute. + */ + void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; } + + /** + * Gets the value of this element. + * @return 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; } + +protected: + /** + * Constructor + */ + domFx_stenciltarget_common_complexType() : attrIndex(), attrSlice(), _value() {} + /** + * Destructor + */ + virtual ~domFx_stenciltarget_common_complexType() {} + /** + * Copy Constructor + */ + domFx_stenciltarget_common_complexType( const domFx_stenciltarget_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_stenciltarget_common_complexType &operator=( const domFx_stenciltarget_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_stenciltarget_common_complexType. + */ +class domFx_stenciltarget_common : public daeElement, public domFx_stenciltarget_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_stenciltarget_common() {} + /** + * Destructor + */ + virtual ~domFx_stenciltarget_common() {} + /** + * Copy Constructor + */ + domFx_stenciltarget_common( const domFx_stenciltarget_common &cpy ) : daeElement(), domFx_stenciltarget_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_stenciltarget_common &operator=( const domFx_stenciltarget_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_common.h new file mode 100644 index 000000000..20fa607b2 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_common.h @@ -0,0 +1,617 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domFx_surface_common_h__ +#define __domFx_surface_common_h__ + +#include +#include + + +/** + * The fx_surface_common type is used to declare a resource that can be used + * both as the source for texture samples and as the target of a rendering + * pass. + */ +class domFx_surface_common_complexType +{ +public: + class domInit_from; + + typedef daeSmartRef domInit_fromRef; + typedef daeTArray domInit_from_Array; + +/** + * The init_from element is a list of IDREFs which specify the images to use + * to initialize this surface. + */ + class domInit_from : public daeElement + { + protected: // Attributes + xsUnsignedInt attrMip; + xsUnsignedInt attrSlice; + domFx_surface_face_enum attrFace; + + protected: // Value + /** + * The xsIDREFS value of the text data of this element. + */ + xsIDREFS _value; + + public: //Accessors and Mutators + /** + * Gets the mip attribute. + * @return Returns a xsUnsignedInt of the mip attribute. + */ + xsUnsignedInt getMip() const { return attrMip; } + /** + * Sets the mip attribute. + * @param atMip The new value for the mip attribute. + */ + void setMip( xsUnsignedInt atMip ) { attrMip = atMip; } + + /** + * Gets the slice attribute. + * @return Returns a xsUnsignedInt of the slice attribute. + */ + xsUnsignedInt getSlice() const { return attrSlice; } + /** + * Sets the slice attribute. + * @param atSlice The new value for the slice attribute. + */ + void setSlice( xsUnsignedInt atSlice ) { attrSlice = atSlice; } + + /** + * Gets the face attribute. + * @return Returns a domFx_surface_face_enum of the face attribute. + */ + domFx_surface_face_enum getFace() const { return attrFace; } + /** + * Sets the face attribute. + * @param atFace The new value for the face attribute. + */ + void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; } + + /** + * Gets the _value array. + * @return Returns a xsIDREFS reference of the _value array. + */ + xsIDREFS &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant xsIDREFS reference of the _value array. + */ + const xsIDREFS &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const xsIDREFS &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInit_from() : attrMip(), attrSlice(), attrFace(), _value() {} + /** + * Destructor + */ + virtual ~domInit_from() {} + /** + * Copy Constructor + */ + domInit_from( const domInit_from &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInit_from &operator=( const domInit_from &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; + }; + + class domFormat; + + typedef daeSmartRef domFormatRef; + typedef daeTArray domFormat_Array; + + class domFormat : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domFormat() : _value() {} + /** + * Destructor + */ + virtual ~domFormat() {} + /** + * Copy Constructor + */ + domFormat( const domFormat &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFormat &operator=( const domFormat &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; + }; + + class domSize; + + typedef daeSmartRef domSizeRef; + typedef daeTArray domSize_Array; + + class domSize : public daeElement + { + + protected: // Value + /** + * The domInt3 value of the text data of this element. + */ + domInt3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domInt3 reference of the _value array. + */ + domInt3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domInt3 reference of the _value array. + */ + const domInt3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domInt3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domSize() : _value() {} + /** + * Destructor + */ + virtual ~domSize() {} + /** + * Copy Constructor + */ + domSize( const domSize &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSize &operator=( const domSize &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; + }; + + class domViewport_ratio; + + typedef daeSmartRef domViewport_ratioRef; + typedef daeTArray domViewport_ratio_Array; + + class domViewport_ratio : public daeElement + { + + protected: // Value + /** + * The domFloat2 value of the text data of this element. + */ + domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat2 reference of the _value array. + */ + domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat2 reference of the _value array. + */ + const domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domViewport_ratio() : _value() {} + /** + * Destructor + */ + virtual ~domViewport_ratio() {} + /** + * Copy Constructor + */ + domViewport_ratio( const domViewport_ratio &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domViewport_ratio &operator=( const domViewport_ratio &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; + }; + + class domMip_levels; + + typedef daeSmartRef domMip_levelsRef; + typedef daeTArray domMip_levels_Array; + + class domMip_levels : public daeElement + { + + protected: // Value + /** + * The xsUnsignedInt value of the text data of this element. + */ + xsUnsignedInt _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsUnsignedInt of the value. + */ + xsUnsignedInt getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsUnsignedInt val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMip_levels() : _value() {} + /** + * Destructor + */ + virtual ~domMip_levels() {} + /** + * Copy Constructor + */ + domMip_levels( const domMip_levels &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMip_levels &operator=( const domMip_levels &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; + }; + + class domMipmap_generate; + + typedef daeSmartRef domMipmap_generateRef; + typedef daeTArray domMipmap_generate_Array; + + class domMipmap_generate : public daeElement + { + + protected: // Value + /** + * The xsBoolean value of the text data of this element. + */ + xsBoolean _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsBoolean of the value. + */ + xsBoolean getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsBoolean val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_generate() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_generate() {} + /** + * Copy Constructor + */ + domMipmap_generate( const domMipmap_generate &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_generate &operator=( const domMipmap_generate &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: // Attribute + domFx_surface_type_enum attrType; + +protected: // Elements +/** + * The init_from element is a list of IDREFs which specify the images to use + * to initialize this surface. @see domInit_from + */ + domInit_from_Array elemInit_from_array; + domFormatRef elemFormat; + domSizeRef elemSize; + domViewport_ratioRef elemViewport_ratio; + domMip_levelsRef elemMip_levels; + domMipmap_generateRef elemMipmap_generate; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the type attribute. + * @return Returns a domFx_surface_type_enum of the type attribute. + */ + domFx_surface_type_enum getType() const { return attrType; } + /** + * Sets the type attribute. + * @param atType The new value for the type attribute. + */ + void setType( domFx_surface_type_enum atType ) { attrType = atType; } + + /** + * Gets the init_from element array. + * @return Returns a reference to the array of init_from elements. + */ + domInit_from_Array &getInit_from_array() { return elemInit_from_array; } + /** + * Gets the init_from element array. + * @return Returns a constant reference to the array of init_from elements. + */ + const domInit_from_Array &getInit_from_array() const { return elemInit_from_array; } + /** + * Gets the format element. + * @return a daeSmartRef to the format element. + */ + const domFormatRef getFormat() const { return elemFormat; } + /** + * Gets the size element. + * @return a daeSmartRef to the size element. + */ + const domSizeRef getSize() const { return elemSize; } + /** + * Gets the viewport_ratio element. + * @return a daeSmartRef to the viewport_ratio element. + */ + const domViewport_ratioRef getViewport_ratio() const { return elemViewport_ratio; } + /** + * Gets the mip_levels element. + * @return a daeSmartRef to the mip_levels element. + */ + const domMip_levelsRef getMip_levels() const { return elemMip_levels; } + /** + * Gets the mipmap_generate element. + * @return a daeSmartRef to the mipmap_generate element. + */ + const domMipmap_generateRef getMipmap_generate() const { return elemMipmap_generate; } + /** + * 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 + */ + domFx_surface_common_complexType() : attrType(), elemInit_from_array(), elemFormat(), elemSize(), elemViewport_ratio(), elemMip_levels(), elemMipmap_generate() {} + /** + * Destructor + */ + virtual ~domFx_surface_common_complexType() {} + /** + * Copy Constructor + */ + domFx_surface_common_complexType( const domFx_surface_common_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_surface_common_complexType &operator=( const domFx_surface_common_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domFx_surface_common_complexType. + */ +class domFx_surface_common : public daeElement, public domFx_surface_common_complexType +{ +protected: + /** + * Constructor + */ + domFx_surface_common() {} + /** + * Destructor + */ + virtual ~domFx_surface_common() {} + /** + * Copy Constructor + */ + domFx_surface_common( const domFx_surface_common &cpy ) : daeElement(), domFx_surface_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFx_surface_common &operator=( const domFx_surface_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGeometry.h b/Extras/COLLADA_DOM/include/1.4/dom/domGeometry.h new file mode 100644 index 000000000..6f8ef9598 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGeometry.h @@ -0,0 +1,173 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGeometry_h__ +#define __domGeometry_h__ + +#include +#include + +#include +#include +#include +#include +#include + +/** + * Geometry describes the visual shape and appearance of an object in the + * scene. The geometry element categorizes the declaration of geometric information. + * Geometry is a branch of mathematics that deals with the measurement, properties, + * and relationships of points, lines, angles, surfaces, and solids. + */ +class domGeometry : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The geometry element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The geometry element may contain only one mesh or convex_mesh. @see domConvex_mesh + */ + domConvex_meshRef elemConvex_mesh; +/** + * The geometry element may contain only one mesh or convex_mesh. @see domMesh + */ + domMeshRef elemMesh; + domSplineRef elemSpline; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the convex_mesh element. + * @return a daeSmartRef to the convex_mesh element. + */ + const domConvex_meshRef getConvex_mesh() const { return elemConvex_mesh; } + /** + * Gets the mesh element. + * @return a daeSmartRef to the mesh element. + */ + const domMeshRef getMesh() const { return elemMesh; } + /** + * Gets the spline element. + * @return a daeSmartRef to the spline element. + */ + const domSplineRef getSpline() const { return elemSpline; } + /** + * 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. + */ + 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 + */ + domGeometry() : attrId(), attrName(), elemAsset(), elemConvex_mesh(), elemMesh(), elemSpline(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domGeometry() {} + /** + * Copy Constructor + */ + domGeometry( const domGeometry &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGeometry &operator=( const domGeometry &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_hook_abstract.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_hook_abstract.h new file mode 100644 index 000000000..007a553d4 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGl_hook_abstract.h @@ -0,0 +1,63 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGl_hook_abstract_h__ +#define __domGl_hook_abstract_h__ + +#include +#include + + +class domGl_hook_abstract : public daeElement +{ + +protected: + /** + * Constructor + */ + domGl_hook_abstract() {} + /** + * Destructor + */ + virtual ~domGl_hook_abstract() {} + /** + * Copy Constructor + */ + domGl_hook_abstract( const domGl_hook_abstract &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_hook_abstract &operator=( const domGl_hook_abstract &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_pipeline_settings.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_pipeline_settings.h new file mode 100644 index 000000000..dc4857c1e --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGl_pipeline_settings.h @@ -0,0 +1,11694 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGl_pipeline_settings_h__ +#define __domGl_pipeline_settings_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +/** + * A group that defines all of the renderstates used for the CG and GLSL profiles. + */ +class domGl_pipeline_settings : public daeElement +{ +public: + class domAlpha_func; + + typedef daeSmartRef domAlpha_funcRef; + typedef daeTArray domAlpha_func_Array; + + class domAlpha_func : public daeElement + { + public: + class domFunc; + + typedef daeSmartRef domFuncRef; + typedef daeTArray domFunc_Array; + + class domFunc : public daeElement + { + protected: // Attributes + domGl_func_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_func_type of the value attribute. + */ + domGl_func_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_func_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFunc() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFunc() {} + /** + * Copy Constructor + */ + domFunc( const domFunc &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFunc &operator=( const domFunc &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; + }; + + class domValue; + + typedef daeSmartRef domValueRef; + typedef daeTArray domValue_Array; + + class domValue : public daeElement + { + protected: // Attributes + domGl_alpha_value_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_alpha_value_type of the value attribute. + */ + domGl_alpha_value_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_alpha_value_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domValue() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domValue() {} + /** + * Copy Constructor + */ + domValue( const domValue &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domValue &operator=( const domValue &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: // Elements + domFuncRef elemFunc; + domValueRef elemValue; + + public: //Accessors and Mutators + /** + * Gets the func element. + * @return a daeSmartRef to the func element. + */ + const domFuncRef getFunc() const { return elemFunc; } + /** + * Gets the value element. + * @return a daeSmartRef to the value element. + */ + const domValueRef getValue() const { return elemValue; } + protected: + /** + * Constructor + */ + domAlpha_func() : elemFunc(), elemValue() {} + /** + * Destructor + */ + virtual ~domAlpha_func() {} + /** + * Copy Constructor + */ + domAlpha_func( const domAlpha_func &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAlpha_func &operator=( const domAlpha_func &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; + }; + + class domBlend_func; + + typedef daeSmartRef domBlend_funcRef; + typedef daeTArray domBlend_func_Array; + + class domBlend_func : public daeElement + { + public: + class domSrc; + + typedef daeSmartRef domSrcRef; + typedef daeTArray domSrc_Array; + + class domSrc : public daeElement + { + protected: // Attributes + domGl_blend_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_type of the value attribute. + */ + domGl_blend_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSrc() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSrc() {} + /** + * Copy Constructor + */ + domSrc( const domSrc &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSrc &operator=( const domSrc &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; + }; + + class domDest; + + typedef daeSmartRef domDestRef; + typedef daeTArray domDest_Array; + + class domDest : public daeElement + { + protected: // Attributes + domGl_blend_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_type of the value attribute. + */ + domGl_blend_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDest() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDest() {} + /** + * Copy Constructor + */ + domDest( const domDest &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDest &operator=( const domDest &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: // Elements + domSrcRef elemSrc; + domDestRef elemDest; + + public: //Accessors and Mutators + /** + * Gets the src element. + * @return a daeSmartRef to the src element. + */ + const domSrcRef getSrc() const { return elemSrc; } + /** + * Gets the dest element. + * @return a daeSmartRef to the dest element. + */ + const domDestRef getDest() const { return elemDest; } + protected: + /** + * Constructor + */ + domBlend_func() : elemSrc(), elemDest() {} + /** + * Destructor + */ + virtual ~domBlend_func() {} + /** + * Copy Constructor + */ + domBlend_func( const domBlend_func &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBlend_func &operator=( const domBlend_func &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; + }; + + class domBlend_func_separate; + + typedef daeSmartRef domBlend_func_separateRef; + typedef daeTArray domBlend_func_separate_Array; + + class domBlend_func_separate : public daeElement + { + public: + class domSrc_rgb; + + typedef daeSmartRef domSrc_rgbRef; + typedef daeTArray domSrc_rgb_Array; + + class domSrc_rgb : public daeElement + { + protected: // Attributes + domGl_blend_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_type of the value attribute. + */ + domGl_blend_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSrc_rgb() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSrc_rgb() {} + /** + * Copy Constructor + */ + domSrc_rgb( const domSrc_rgb &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSrc_rgb &operator=( const domSrc_rgb &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; + }; + + class domDest_rgb; + + typedef daeSmartRef domDest_rgbRef; + typedef daeTArray domDest_rgb_Array; + + class domDest_rgb : public daeElement + { + protected: // Attributes + domGl_blend_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_type of the value attribute. + */ + domGl_blend_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDest_rgb() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDest_rgb() {} + /** + * Copy Constructor + */ + domDest_rgb( const domDest_rgb &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDest_rgb &operator=( const domDest_rgb &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; + }; + + class domSrc_alpha; + + typedef daeSmartRef domSrc_alphaRef; + typedef daeTArray domSrc_alpha_Array; + + class domSrc_alpha : public daeElement + { + protected: // Attributes + domGl_blend_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_type of the value attribute. + */ + domGl_blend_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSrc_alpha() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSrc_alpha() {} + /** + * Copy Constructor + */ + domSrc_alpha( const domSrc_alpha &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSrc_alpha &operator=( const domSrc_alpha &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; + }; + + class domDest_alpha; + + typedef daeSmartRef domDest_alphaRef; + typedef daeTArray domDest_alpha_Array; + + class domDest_alpha : public daeElement + { + protected: // Attributes + domGl_blend_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_type of the value attribute. + */ + domGl_blend_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDest_alpha() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDest_alpha() {} + /** + * Copy Constructor + */ + domDest_alpha( const domDest_alpha &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDest_alpha &operator=( const domDest_alpha &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: // Elements + domSrc_rgbRef elemSrc_rgb; + domDest_rgbRef elemDest_rgb; + domSrc_alphaRef elemSrc_alpha; + domDest_alphaRef elemDest_alpha; + + public: //Accessors and Mutators + /** + * Gets the src_rgb element. + * @return a daeSmartRef to the src_rgb element. + */ + const domSrc_rgbRef getSrc_rgb() const { return elemSrc_rgb; } + /** + * Gets the dest_rgb element. + * @return a daeSmartRef to the dest_rgb element. + */ + const domDest_rgbRef getDest_rgb() const { return elemDest_rgb; } + /** + * Gets the src_alpha element. + * @return a daeSmartRef to the src_alpha element. + */ + const domSrc_alphaRef getSrc_alpha() const { return elemSrc_alpha; } + /** + * Gets the dest_alpha element. + * @return a daeSmartRef to the dest_alpha element. + */ + const domDest_alphaRef getDest_alpha() const { return elemDest_alpha; } + protected: + /** + * Constructor + */ + domBlend_func_separate() : elemSrc_rgb(), elemDest_rgb(), elemSrc_alpha(), elemDest_alpha() {} + /** + * Destructor + */ + virtual ~domBlend_func_separate() {} + /** + * Copy Constructor + */ + domBlend_func_separate( const domBlend_func_separate &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBlend_func_separate &operator=( const domBlend_func_separate &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; + }; + + class domBlend_equation; + + typedef daeSmartRef domBlend_equationRef; + typedef daeTArray domBlend_equation_Array; + + class domBlend_equation : public daeElement + { + protected: // Attributes + domGl_blend_equation_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_equation_type of the value attribute. + */ + domGl_blend_equation_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_equation_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domBlend_equation() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domBlend_equation() {} + /** + * Copy Constructor + */ + domBlend_equation( const domBlend_equation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBlend_equation &operator=( const domBlend_equation &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; + }; + + class domBlend_equation_separate; + + typedef daeSmartRef domBlend_equation_separateRef; + typedef daeTArray domBlend_equation_separate_Array; + + class domBlend_equation_separate : public daeElement + { + public: + class domRgb; + + typedef daeSmartRef domRgbRef; + typedef daeTArray domRgb_Array; + + class domRgb : public daeElement + { + protected: // Attributes + domGl_blend_equation_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_equation_type of the value attribute. + */ + domGl_blend_equation_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_equation_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domRgb() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domRgb() {} + /** + * Copy Constructor + */ + domRgb( const domRgb &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRgb &operator=( const domRgb &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; + }; + + class domAlpha; + + typedef daeSmartRef domAlphaRef; + typedef daeTArray domAlpha_Array; + + class domAlpha : public daeElement + { + protected: // Attributes + domGl_blend_equation_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_equation_type of the value attribute. + */ + domGl_blend_equation_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_equation_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domAlpha() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domAlpha() {} + /** + * Copy Constructor + */ + domAlpha( const domAlpha &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAlpha &operator=( const domAlpha &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: // Elements + domRgbRef elemRgb; + domAlphaRef elemAlpha; + + public: //Accessors and Mutators + /** + * Gets the rgb element. + * @return a daeSmartRef to the rgb element. + */ + const domRgbRef getRgb() const { return elemRgb; } + /** + * Gets the alpha element. + * @return a daeSmartRef to the alpha element. + */ + const domAlphaRef getAlpha() const { return elemAlpha; } + protected: + /** + * Constructor + */ + domBlend_equation_separate() : elemRgb(), elemAlpha() {} + /** + * Destructor + */ + virtual ~domBlend_equation_separate() {} + /** + * Copy Constructor + */ + domBlend_equation_separate( const domBlend_equation_separate &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBlend_equation_separate &operator=( const domBlend_equation_separate &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; + }; + + class domColor_material; + + typedef daeSmartRef domColor_materialRef; + typedef daeTArray domColor_material_Array; + + class domColor_material : public daeElement + { + public: + class domFace; + + typedef daeSmartRef domFaceRef; + typedef daeTArray domFace_Array; + + class domFace : public daeElement + { + protected: // Attributes + domGl_face_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_face_type of the value attribute. + */ + domGl_face_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_face_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFace() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFace() {} + /** + * Copy Constructor + */ + domFace( const domFace &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFace &operator=( const domFace &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; + }; + + class domMode; + + typedef daeSmartRef domModeRef; + typedef daeTArray domMode_Array; + + class domMode : public daeElement + { + protected: // Attributes + domGl_material_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_material_type of the value attribute. + */ + domGl_material_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_material_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMode() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMode() {} + /** + * Copy Constructor + */ + domMode( const domMode &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMode &operator=( const domMode &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: // Elements + domFaceRef elemFace; + domModeRef elemMode; + + public: //Accessors and Mutators + /** + * Gets the face element. + * @return a daeSmartRef to the face element. + */ + const domFaceRef getFace() const { return elemFace; } + /** + * Gets the mode element. + * @return a daeSmartRef to the mode element. + */ + const domModeRef getMode() const { return elemMode; } + protected: + /** + * Constructor + */ + domColor_material() : elemFace(), elemMode() {} + /** + * Destructor + */ + virtual ~domColor_material() {} + /** + * Copy Constructor + */ + domColor_material( const domColor_material &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domColor_material &operator=( const domColor_material &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; + }; + + class domCull_face; + + typedef daeSmartRef domCull_faceRef; + typedef daeTArray domCull_face_Array; + + class domCull_face : public daeElement + { + protected: // Attributes + domGl_face_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_face_type of the value attribute. + */ + domGl_face_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_face_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domCull_face() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domCull_face() {} + /** + * Copy Constructor + */ + domCull_face( const domCull_face &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCull_face &operator=( const domCull_face &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; + }; + + class domDepth_func; + + typedef daeSmartRef domDepth_funcRef; + typedef daeTArray domDepth_func_Array; + + class domDepth_func : public daeElement + { + protected: // Attributes + domGl_func_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_func_type of the value attribute. + */ + domGl_func_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_func_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_func() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_func() {} + /** + * Copy Constructor + */ + domDepth_func( const domDepth_func &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_func &operator=( const domDepth_func &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; + }; + + class domFog_mode; + + typedef daeSmartRef domFog_modeRef; + typedef daeTArray domFog_mode_Array; + + class domFog_mode : public daeElement + { + protected: // Attributes + domGl_fog_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_fog_type of the value attribute. + */ + domGl_fog_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_fog_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_mode() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_mode() {} + /** + * Copy Constructor + */ + domFog_mode( const domFog_mode &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_mode &operator=( const domFog_mode &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; + }; + + class domFog_coord_src; + + typedef daeSmartRef domFog_coord_srcRef; + typedef daeTArray domFog_coord_src_Array; + + class domFog_coord_src : public daeElement + { + protected: // Attributes + domGl_fog_coord_src_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_fog_coord_src_type of the value attribute. + */ + domGl_fog_coord_src_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_fog_coord_src_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_coord_src() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_coord_src() {} + /** + * Copy Constructor + */ + domFog_coord_src( const domFog_coord_src &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_coord_src &operator=( const domFog_coord_src &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; + }; + + class domFront_face; + + typedef daeSmartRef domFront_faceRef; + typedef daeTArray domFront_face_Array; + + class domFront_face : public daeElement + { + protected: // Attributes + domGl_front_face_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_front_face_type of the value attribute. + */ + domGl_front_face_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_front_face_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFront_face() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFront_face() {} + /** + * Copy Constructor + */ + domFront_face( const domFront_face &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFront_face &operator=( const domFront_face &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; + }; + + class domLight_model_color_control; + + typedef daeSmartRef domLight_model_color_controlRef; + typedef daeTArray domLight_model_color_control_Array; + + class domLight_model_color_control : public daeElement + { + protected: // Attributes + domGl_light_model_color_control_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_light_model_color_control_type of the value attribute. + */ + domGl_light_model_color_control_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_light_model_color_control_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLight_model_color_control() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLight_model_color_control() {} + /** + * Copy Constructor + */ + domLight_model_color_control( const domLight_model_color_control &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_model_color_control &operator=( const domLight_model_color_control &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; + }; + + class domLogic_op; + + typedef daeSmartRef domLogic_opRef; + typedef daeTArray domLogic_op_Array; + + class domLogic_op : public daeElement + { + protected: // Attributes + domGl_logic_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_logic_op_type of the value attribute. + */ + domGl_logic_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_logic_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLogic_op() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLogic_op() {} + /** + * Copy Constructor + */ + domLogic_op( const domLogic_op &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLogic_op &operator=( const domLogic_op &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; + }; + + class domPolygon_mode; + + typedef daeSmartRef domPolygon_modeRef; + typedef daeTArray domPolygon_mode_Array; + + class domPolygon_mode : public daeElement + { + public: + class domFace; + + typedef daeSmartRef domFaceRef; + typedef daeTArray domFace_Array; + + class domFace : public daeElement + { + protected: // Attributes + domGl_face_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_face_type of the value attribute. + */ + domGl_face_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_face_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFace() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFace() {} + /** + * Copy Constructor + */ + domFace( const domFace &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFace &operator=( const domFace &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; + }; + + class domMode; + + typedef daeSmartRef domModeRef; + typedef daeTArray domMode_Array; + + class domMode : public daeElement + { + protected: // Attributes + domGl_polygon_mode_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_polygon_mode_type of the value attribute. + */ + domGl_polygon_mode_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_polygon_mode_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMode() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMode() {} + /** + * Copy Constructor + */ + domMode( const domMode &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMode &operator=( const domMode &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: // Elements + domFaceRef elemFace; + domModeRef elemMode; + + public: //Accessors and Mutators + /** + * Gets the face element. + * @return a daeSmartRef to the face element. + */ + const domFaceRef getFace() const { return elemFace; } + /** + * Gets the mode element. + * @return a daeSmartRef to the mode element. + */ + const domModeRef getMode() const { return elemMode; } + protected: + /** + * Constructor + */ + domPolygon_mode() : elemFace(), elemMode() {} + /** + * Destructor + */ + virtual ~domPolygon_mode() {} + /** + * Copy Constructor + */ + domPolygon_mode( const domPolygon_mode &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygon_mode &operator=( const domPolygon_mode &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; + }; + + class domShade_model; + + typedef daeSmartRef domShade_modelRef; + typedef daeTArray domShade_model_Array; + + class domShade_model : public daeElement + { + protected: // Attributes + domGl_shade_model_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_shade_model_type of the value attribute. + */ + domGl_shade_model_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_shade_model_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domShade_model() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domShade_model() {} + /** + * Copy Constructor + */ + domShade_model( const domShade_model &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domShade_model &operator=( const domShade_model &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; + }; + + class domStencil_func; + + typedef daeSmartRef domStencil_funcRef; + typedef daeTArray domStencil_func_Array; + + class domStencil_func : public daeElement + { + public: + class domFunc; + + typedef daeSmartRef domFuncRef; + typedef daeTArray domFunc_Array; + + class domFunc : public daeElement + { + protected: // Attributes + domGl_func_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_func_type of the value attribute. + */ + domGl_func_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_func_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFunc() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFunc() {} + /** + * Copy Constructor + */ + domFunc( const domFunc &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFunc &operator=( const domFunc &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; + }; + + class domRef; + + typedef daeSmartRef domRefRef; + typedef daeTArray domRef_Array; + + class domRef : public daeElement + { + protected: // Attributes + xsUnsignedByte attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a xsUnsignedByte of the value attribute. + */ + xsUnsignedByte getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( xsUnsignedByte atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domRef() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domRef() {} + /** + * Copy Constructor + */ + domRef( const domRef &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRef &operator=( const domRef &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; + }; + + class domMask; + + typedef daeSmartRef domMaskRef; + typedef daeTArray domMask_Array; + + class domMask : public daeElement + { + protected: // Attributes + xsUnsignedByte attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a xsUnsignedByte of the value attribute. + */ + xsUnsignedByte getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( xsUnsignedByte atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMask() {} + /** + * Copy Constructor + */ + domMask( const domMask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMask &operator=( const domMask &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: // Elements + domFuncRef elemFunc; + domRefRef elemRef; + domMaskRef elemMask; + + public: //Accessors and Mutators + /** + * Gets the func element. + * @return a daeSmartRef to the func element. + */ + const domFuncRef getFunc() const { return elemFunc; } + /** + * Gets the ref element. + * @return a daeSmartRef to the ref element. + */ + const domRefRef getRef() const { return elemRef; } + /** + * Gets the mask element. + * @return a daeSmartRef to the mask element. + */ + const domMaskRef getMask() const { return elemMask; } + protected: + /** + * Constructor + */ + domStencil_func() : elemFunc(), elemRef(), elemMask() {} + /** + * Destructor + */ + virtual ~domStencil_func() {} + /** + * Copy Constructor + */ + domStencil_func( const domStencil_func &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_func &operator=( const domStencil_func &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; + }; + + class domStencil_op; + + typedef daeSmartRef domStencil_opRef; + typedef daeTArray domStencil_op_Array; + + class domStencil_op : public daeElement + { + public: + class domFail; + + typedef daeSmartRef domFailRef; + typedef daeTArray domFail_Array; + + class domFail : public daeElement + { + protected: // Attributes + domGl_stencil_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_stencil_op_type of the value attribute. + */ + domGl_stencil_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFail() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFail() {} + /** + * Copy Constructor + */ + domFail( const domFail &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFail &operator=( const domFail &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; + }; + + class domZfail; + + typedef daeSmartRef domZfailRef; + typedef daeTArray domZfail_Array; + + class domZfail : public daeElement + { + protected: // Attributes + domGl_stencil_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_stencil_op_type of the value attribute. + */ + domGl_stencil_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domZfail() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domZfail() {} + /** + * Copy Constructor + */ + domZfail( const domZfail &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domZfail &operator=( const domZfail &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; + }; + + class domZpass; + + typedef daeSmartRef domZpassRef; + typedef daeTArray domZpass_Array; + + class domZpass : public daeElement + { + protected: // Attributes + domGl_stencil_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_stencil_op_type of the value attribute. + */ + domGl_stencil_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domZpass() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domZpass() {} + /** + * Copy Constructor + */ + domZpass( const domZpass &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domZpass &operator=( const domZpass &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: // Elements + domFailRef elemFail; + domZfailRef elemZfail; + domZpassRef elemZpass; + + public: //Accessors and Mutators + /** + * Gets the fail element. + * @return a daeSmartRef to the fail element. + */ + const domFailRef getFail() const { return elemFail; } + /** + * Gets the zfail element. + * @return a daeSmartRef to the zfail element. + */ + const domZfailRef getZfail() const { return elemZfail; } + /** + * Gets the zpass element. + * @return a daeSmartRef to the zpass element. + */ + const domZpassRef getZpass() const { return elemZpass; } + protected: + /** + * Constructor + */ + domStencil_op() : elemFail(), elemZfail(), elemZpass() {} + /** + * Destructor + */ + virtual ~domStencil_op() {} + /** + * Copy Constructor + */ + domStencil_op( const domStencil_op &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_op &operator=( const domStencil_op &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; + }; + + class domStencil_func_separate; + + typedef daeSmartRef domStencil_func_separateRef; + typedef daeTArray domStencil_func_separate_Array; + + class domStencil_func_separate : public daeElement + { + public: + class domFront; + + typedef daeSmartRef domFrontRef; + typedef daeTArray domFront_Array; + + class domFront : public daeElement + { + protected: // Attributes + domGl_func_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_func_type of the value attribute. + */ + domGl_func_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_func_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFront() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFront() {} + /** + * Copy Constructor + */ + domFront( const domFront &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFront &operator=( const domFront &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; + }; + + class domBack; + + typedef daeSmartRef domBackRef; + typedef daeTArray domBack_Array; + + class domBack : public daeElement + { + protected: // Attributes + domGl_func_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_func_type of the value attribute. + */ + domGl_func_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_func_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domBack() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domBack() {} + /** + * Copy Constructor + */ + domBack( const domBack &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBack &operator=( const domBack &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; + }; + + class domRef; + + typedef daeSmartRef domRefRef; + typedef daeTArray domRef_Array; + + class domRef : public daeElement + { + protected: // Attributes + xsUnsignedByte attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a xsUnsignedByte of the value attribute. + */ + xsUnsignedByte getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( xsUnsignedByte atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domRef() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domRef() {} + /** + * Copy Constructor + */ + domRef( const domRef &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRef &operator=( const domRef &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; + }; + + class domMask; + + typedef daeSmartRef domMaskRef; + typedef daeTArray domMask_Array; + + class domMask : public daeElement + { + protected: // Attributes + xsUnsignedByte attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a xsUnsignedByte of the value attribute. + */ + xsUnsignedByte getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( xsUnsignedByte atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMask() {} + /** + * Copy Constructor + */ + domMask( const domMask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMask &operator=( const domMask &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: // Elements + domFrontRef elemFront; + domBackRef elemBack; + domRefRef elemRef; + domMaskRef elemMask; + + public: //Accessors and Mutators + /** + * Gets the front element. + * @return a daeSmartRef to the front element. + */ + const domFrontRef getFront() const { return elemFront; } + /** + * Gets the back element. + * @return a daeSmartRef to the back element. + */ + const domBackRef getBack() const { return elemBack; } + /** + * Gets the ref element. + * @return a daeSmartRef to the ref element. + */ + const domRefRef getRef() const { return elemRef; } + /** + * Gets the mask element. + * @return a daeSmartRef to the mask element. + */ + const domMaskRef getMask() const { return elemMask; } + protected: + /** + * Constructor + */ + domStencil_func_separate() : elemFront(), elemBack(), elemRef(), elemMask() {} + /** + * Destructor + */ + virtual ~domStencil_func_separate() {} + /** + * Copy Constructor + */ + domStencil_func_separate( const domStencil_func_separate &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_func_separate &operator=( const domStencil_func_separate &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; + }; + + class domStencil_op_separate; + + typedef daeSmartRef domStencil_op_separateRef; + typedef daeTArray domStencil_op_separate_Array; + + class domStencil_op_separate : public daeElement + { + public: + class domFace; + + typedef daeSmartRef domFaceRef; + typedef daeTArray domFace_Array; + + class domFace : public daeElement + { + protected: // Attributes + domGl_face_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_face_type of the value attribute. + */ + domGl_face_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_face_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFace() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFace() {} + /** + * Copy Constructor + */ + domFace( const domFace &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFace &operator=( const domFace &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; + }; + + class domFail; + + typedef daeSmartRef domFailRef; + typedef daeTArray domFail_Array; + + class domFail : public daeElement + { + protected: // Attributes + domGl_stencil_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_stencil_op_type of the value attribute. + */ + domGl_stencil_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFail() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFail() {} + /** + * Copy Constructor + */ + domFail( const domFail &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFail &operator=( const domFail &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; + }; + + class domZfail; + + typedef daeSmartRef domZfailRef; + typedef daeTArray domZfail_Array; + + class domZfail : public daeElement + { + protected: // Attributes + domGl_stencil_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_stencil_op_type of the value attribute. + */ + domGl_stencil_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domZfail() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domZfail() {} + /** + * Copy Constructor + */ + domZfail( const domZfail &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domZfail &operator=( const domZfail &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; + }; + + class domZpass; + + typedef daeSmartRef domZpassRef; + typedef daeTArray domZpass_Array; + + class domZpass : public daeElement + { + protected: // Attributes + domGl_stencil_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_stencil_op_type of the value attribute. + */ + domGl_stencil_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domZpass() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domZpass() {} + /** + * Copy Constructor + */ + domZpass( const domZpass &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domZpass &operator=( const domZpass &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: // Elements + domFaceRef elemFace; + domFailRef elemFail; + domZfailRef elemZfail; + domZpassRef elemZpass; + + public: //Accessors and Mutators + /** + * Gets the face element. + * @return a daeSmartRef to the face element. + */ + const domFaceRef getFace() const { return elemFace; } + /** + * Gets the fail element. + * @return a daeSmartRef to the fail element. + */ + const domFailRef getFail() const { return elemFail; } + /** + * Gets the zfail element. + * @return a daeSmartRef to the zfail element. + */ + const domZfailRef getZfail() const { return elemZfail; } + /** + * Gets the zpass element. + * @return a daeSmartRef to the zpass element. + */ + const domZpassRef getZpass() const { return elemZpass; } + protected: + /** + * Constructor + */ + domStencil_op_separate() : elemFace(), elemFail(), elemZfail(), elemZpass() {} + /** + * Destructor + */ + virtual ~domStencil_op_separate() {} + /** + * Copy Constructor + */ + domStencil_op_separate( const domStencil_op_separate &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_op_separate &operator=( const domStencil_op_separate &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; + }; + + class domStencil_mask_separate; + + typedef daeSmartRef domStencil_mask_separateRef; + typedef daeTArray domStencil_mask_separate_Array; + + class domStencil_mask_separate : public daeElement + { + public: + class domFace; + + typedef daeSmartRef domFaceRef; + typedef daeTArray domFace_Array; + + class domFace : public daeElement + { + protected: // Attributes + domGl_face_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_face_type of the value attribute. + */ + domGl_face_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_face_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFace() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFace() {} + /** + * Copy Constructor + */ + domFace( const domFace &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFace &operator=( const domFace &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; + }; + + class domMask; + + typedef daeSmartRef domMaskRef; + typedef daeTArray domMask_Array; + + class domMask : public daeElement + { + protected: // Attributes + xsUnsignedByte attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a xsUnsignedByte of the value attribute. + */ + xsUnsignedByte getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( xsUnsignedByte atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMask() {} + /** + * Copy Constructor + */ + domMask( const domMask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMask &operator=( const domMask &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: // Elements + domFaceRef elemFace; + domMaskRef elemMask; + + public: //Accessors and Mutators + /** + * Gets the face element. + * @return a daeSmartRef to the face element. + */ + const domFaceRef getFace() const { return elemFace; } + /** + * Gets the mask element. + * @return a daeSmartRef to the mask element. + */ + const domMaskRef getMask() const { return elemMask; } + protected: + /** + * Constructor + */ + domStencil_mask_separate() : elemFace(), elemMask() {} + /** + * Destructor + */ + virtual ~domStencil_mask_separate() {} + /** + * Copy Constructor + */ + domStencil_mask_separate( const domStencil_mask_separate &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_mask_separate &operator=( const domStencil_mask_separate &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; + }; + + class domLight_enable; + + typedef daeSmartRef domLight_enableRef; + typedef daeTArray domLight_enable_Array; + + class domLight_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_enable() {} + /** + * Copy Constructor + */ + domLight_enable( const domLight_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_enable &operator=( const domLight_enable &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; + }; + + class domLight_ambient; + + typedef daeSmartRef domLight_ambientRef; + typedef daeTArray domLight_ambient_Array; + + class domLight_ambient : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_ambient() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_ambient() {} + /** + * Copy Constructor + */ + domLight_ambient( const domLight_ambient &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_ambient &operator=( const domLight_ambient &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; + }; + + class domLight_diffuse; + + typedef daeSmartRef domLight_diffuseRef; + typedef daeTArray domLight_diffuse_Array; + + class domLight_diffuse : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_diffuse() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_diffuse() {} + /** + * Copy Constructor + */ + domLight_diffuse( const domLight_diffuse &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_diffuse &operator=( const domLight_diffuse &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; + }; + + class domLight_specular; + + typedef daeSmartRef domLight_specularRef; + typedef daeTArray domLight_specular_Array; + + class domLight_specular : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_specular() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_specular() {} + /** + * Copy Constructor + */ + domLight_specular( const domLight_specular &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_specular &operator=( const domLight_specular &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; + }; + + class domLight_position; + + typedef daeSmartRef domLight_positionRef; + typedef daeTArray domLight_position_Array; + + class domLight_position : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_position() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_position() {} + /** + * Copy Constructor + */ + domLight_position( const domLight_position &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_position &operator=( const domLight_position &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; + }; + + class domLight_constant_attenuation; + + typedef daeSmartRef domLight_constant_attenuationRef; + typedef daeTArray domLight_constant_attenuation_Array; + + class domLight_constant_attenuation : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_constant_attenuation() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_constant_attenuation() {} + /** + * Copy Constructor + */ + domLight_constant_attenuation( const domLight_constant_attenuation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_constant_attenuation &operator=( const domLight_constant_attenuation &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; + }; + + class domLight_linear_attenuation; + + typedef daeSmartRef domLight_linear_attenuationRef; + typedef daeTArray domLight_linear_attenuation_Array; + + class domLight_linear_attenuation : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_linear_attenuation() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_linear_attenuation() {} + /** + * Copy Constructor + */ + domLight_linear_attenuation( const domLight_linear_attenuation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_linear_attenuation &operator=( const domLight_linear_attenuation &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; + }; + + class domLight_quadratic_attenuation; + + typedef daeSmartRef domLight_quadratic_attenuationRef; + typedef daeTArray domLight_quadratic_attenuation_Array; + + class domLight_quadratic_attenuation : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_quadratic_attenuation() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_quadratic_attenuation() {} + /** + * Copy Constructor + */ + domLight_quadratic_attenuation( const domLight_quadratic_attenuation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_quadratic_attenuation &operator=( const domLight_quadratic_attenuation &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; + }; + + class domLight_spot_cutoff; + + typedef daeSmartRef domLight_spot_cutoffRef; + typedef daeTArray domLight_spot_cutoff_Array; + + class domLight_spot_cutoff : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_spot_cutoff() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_spot_cutoff() {} + /** + * Copy Constructor + */ + domLight_spot_cutoff( const domLight_spot_cutoff &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_spot_cutoff &operator=( const domLight_spot_cutoff &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; + }; + + class domLight_spot_direction; + + typedef daeSmartRef domLight_spot_directionRef; + typedef daeTArray domLight_spot_direction_Array; + + class domLight_spot_direction : public daeElement + { + protected: // Attributes + domFloat3 attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat3 reference of the value array attribute. + */ + domFloat3 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat3 reference of the value array attribute. + */ + const domFloat3 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat3 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_spot_direction() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_spot_direction() {} + /** + * Copy Constructor + */ + domLight_spot_direction( const domLight_spot_direction &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_spot_direction &operator=( const domLight_spot_direction &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; + }; + + class domLight_spot_exponent; + + typedef daeSmartRef domLight_spot_exponentRef; + typedef daeTArray domLight_spot_exponent_Array; + + class domLight_spot_exponent : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGL_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. + */ + domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_spot_exponent() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_spot_exponent() {} + /** + * Copy Constructor + */ + domLight_spot_exponent( const domLight_spot_exponent &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_spot_exponent &operator=( const domLight_spot_exponent &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; + }; + + class domTexture1D; + + typedef daeSmartRef domTexture1DRef; + typedef daeTArray domTexture1D_Array; + + class domTexture1D : public daeElement + { + public: + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + + class domParam : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domParam() : _value() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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: // Attribute + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + protected: // Elements + domGl_sampler1DRef elemValue; + domParamRef elemParam; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + /** + * Gets the value element. + * @return a daeSmartRef to the value element. + */ + const domGl_sampler1DRef getValue() const { return elemValue; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * 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 + */ + domTexture1D() : attrIndex(), elemValue(), elemParam() {} + /** + * Destructor + */ + virtual ~domTexture1D() {} + /** + * Copy Constructor + */ + domTexture1D( const domTexture1D &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture1D &operator=( const domTexture1D &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; + }; + + class domTexture2D; + + typedef daeSmartRef domTexture2DRef; + typedef daeTArray domTexture2D_Array; + + class domTexture2D : public daeElement + { + public: + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + + class domParam : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domParam() : _value() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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: // Attribute + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + protected: // Elements + domGl_sampler2DRef elemValue; + domParamRef elemParam; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + /** + * Gets the value element. + * @return a daeSmartRef to the value element. + */ + const domGl_sampler2DRef getValue() const { return elemValue; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * 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 + */ + domTexture2D() : attrIndex(), elemValue(), elemParam() {} + /** + * Destructor + */ + virtual ~domTexture2D() {} + /** + * Copy Constructor + */ + domTexture2D( const domTexture2D &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture2D &operator=( const domTexture2D &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; + }; + + class domTexture3D; + + typedef daeSmartRef domTexture3DRef; + typedef daeTArray domTexture3D_Array; + + class domTexture3D : public daeElement + { + public: + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + + class domParam : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domParam() : _value() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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: // Attribute + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + protected: // Elements + domGl_sampler3DRef elemValue; + domParamRef elemParam; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + /** + * Gets the value element. + * @return a daeSmartRef to the value element. + */ + const domGl_sampler3DRef getValue() const { return elemValue; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * 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 + */ + domTexture3D() : attrIndex(), elemValue(), elemParam() {} + /** + * Destructor + */ + virtual ~domTexture3D() {} + /** + * Copy Constructor + */ + domTexture3D( const domTexture3D &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture3D &operator=( const domTexture3D &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; + }; + + class domTextureCUBE; + + typedef daeSmartRef domTextureCUBERef; + typedef daeTArray domTextureCUBE_Array; + + class domTextureCUBE : public daeElement + { + public: + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + + class domParam : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domParam() : _value() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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: // Attribute + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + protected: // Elements + domGl_samplerCUBERef elemValue; + domParamRef elemParam; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + /** + * Gets the value element. + * @return a daeSmartRef to the value element. + */ + const domGl_samplerCUBERef getValue() const { return elemValue; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * 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 + */ + domTextureCUBE() : attrIndex(), elemValue(), elemParam() {} + /** + * Destructor + */ + virtual ~domTextureCUBE() {} + /** + * Copy Constructor + */ + domTextureCUBE( const domTextureCUBE &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTextureCUBE &operator=( const domTextureCUBE &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; + }; + + class domTextureRECT; + + typedef daeSmartRef domTextureRECTRef; + typedef daeTArray domTextureRECT_Array; + + class domTextureRECT : public daeElement + { + public: + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + + class domParam : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domParam() : _value() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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: // Attribute + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + protected: // Elements + domGl_samplerRECTRef elemValue; + domParamRef elemParam; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + /** + * Gets the value element. + * @return a daeSmartRef to the value element. + */ + const domGl_samplerRECTRef getValue() const { return elemValue; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * 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 + */ + domTextureRECT() : attrIndex(), elemValue(), elemParam() {} + /** + * Destructor + */ + virtual ~domTextureRECT() {} + /** + * Copy Constructor + */ + domTextureRECT( const domTextureRECT &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTextureRECT &operator=( const domTextureRECT &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; + }; + + class domTextureDEPTH; + + typedef daeSmartRef domTextureDEPTHRef; + typedef daeTArray domTextureDEPTH_Array; + + class domTextureDEPTH : public daeElement + { + public: + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + + class domParam : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domParam() : _value() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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: // Attribute + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + protected: // Elements + domGl_samplerDEPTHRef elemValue; + domParamRef elemParam; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + /** + * Gets the value element. + * @return a daeSmartRef to the value element. + */ + const domGl_samplerDEPTHRef getValue() const { return elemValue; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * 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 + */ + domTextureDEPTH() : attrIndex(), elemValue(), elemParam() {} + /** + * Destructor + */ + virtual ~domTextureDEPTH() {} + /** + * Copy Constructor + */ + domTextureDEPTH( const domTextureDEPTH &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTextureDEPTH &operator=( const domTextureDEPTH &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; + }; + + class domTexture1D_enable; + + typedef daeSmartRef domTexture1D_enableRef; + typedef daeTArray domTexture1D_enable_Array; + + class domTexture1D_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domTexture1D_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domTexture1D_enable() {} + /** + * Copy Constructor + */ + domTexture1D_enable( const domTexture1D_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture1D_enable &operator=( const domTexture1D_enable &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; + }; + + class domTexture2D_enable; + + typedef daeSmartRef domTexture2D_enableRef; + typedef daeTArray domTexture2D_enable_Array; + + class domTexture2D_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domTexture2D_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domTexture2D_enable() {} + /** + * Copy Constructor + */ + domTexture2D_enable( const domTexture2D_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture2D_enable &operator=( const domTexture2D_enable &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; + }; + + class domTexture3D_enable; + + typedef daeSmartRef domTexture3D_enableRef; + typedef daeTArray domTexture3D_enable_Array; + + class domTexture3D_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domTexture3D_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domTexture3D_enable() {} + /** + * Copy Constructor + */ + domTexture3D_enable( const domTexture3D_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture3D_enable &operator=( const domTexture3D_enable &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; + }; + + class domTextureCUBE_enable; + + typedef daeSmartRef domTextureCUBE_enableRef; + typedef daeTArray domTextureCUBE_enable_Array; + + class domTextureCUBE_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domTextureCUBE_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domTextureCUBE_enable() {} + /** + * Copy Constructor + */ + domTextureCUBE_enable( const domTextureCUBE_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTextureCUBE_enable &operator=( const domTextureCUBE_enable &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; + }; + + class domTextureRECT_enable; + + typedef daeSmartRef domTextureRECT_enableRef; + typedef daeTArray domTextureRECT_enable_Array; + + class domTextureRECT_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domTextureRECT_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domTextureRECT_enable() {} + /** + * Copy Constructor + */ + domTextureRECT_enable( const domTextureRECT_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTextureRECT_enable &operator=( const domTextureRECT_enable &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; + }; + + class domTextureDEPTH_enable; + + typedef daeSmartRef domTextureDEPTH_enableRef; + typedef daeTArray domTextureDEPTH_enable_Array; + + class domTextureDEPTH_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domTextureDEPTH_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domTextureDEPTH_enable() {} + /** + * Copy Constructor + */ + domTextureDEPTH_enable( const domTextureDEPTH_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTextureDEPTH_enable &operator=( const domTextureDEPTH_enable &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; + }; + + class domTexture_env_color; + + typedef daeSmartRef domTexture_env_colorRef; + typedef daeTArray domTexture_env_color_Array; + + class domTexture_env_color : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domTexture_env_color() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domTexture_env_color() {} + /** + * Copy Constructor + */ + domTexture_env_color( const domTexture_env_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture_env_color &operator=( const domTexture_env_color &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; + }; + + class domTexture_env_mode; + + typedef daeSmartRef domTexture_env_modeRef; + typedef daeTArray domTexture_env_mode_Array; + + class domTexture_env_mode : public daeElement + { + protected: // Attributes + domString attrValue; + xsNCName attrParam; + domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domString of the value attribute. + */ + domString getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domString atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. + */ + domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domTexture_env_mode() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domTexture_env_mode() {} + /** + * Copy Constructor + */ + domTexture_env_mode( const domTexture_env_mode &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture_env_mode &operator=( const domTexture_env_mode &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; + }; + + class domClip_plane; + + typedef daeSmartRef domClip_planeRef; + typedef daeTArray domClip_plane_Array; + + class domClip_plane : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGL_MAX_CLIP_PLANES_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_CLIP_PLANES_index of the index attribute. + */ + domGL_MAX_CLIP_PLANES_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_CLIP_PLANES_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domClip_plane() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domClip_plane() {} + /** + * Copy Constructor + */ + domClip_plane( const domClip_plane &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClip_plane &operator=( const domClip_plane &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; + }; + + class domClip_plane_enable; + + typedef daeSmartRef domClip_plane_enableRef; + typedef daeTArray domClip_plane_enable_Array; + + class domClip_plane_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGL_MAX_CLIP_PLANES_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGL_MAX_CLIP_PLANES_index of the index attribute. + */ + domGL_MAX_CLIP_PLANES_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGL_MAX_CLIP_PLANES_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domClip_plane_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domClip_plane_enable() {} + /** + * Copy Constructor + */ + domClip_plane_enable( const domClip_plane_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClip_plane_enable &operator=( const domClip_plane_enable &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; + }; + + class domBlend_color; + + typedef daeSmartRef domBlend_colorRef; + typedef daeTArray domBlend_color_Array; + + class domBlend_color : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domBlend_color() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domBlend_color() {} + /** + * Copy Constructor + */ + domBlend_color( const domBlend_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBlend_color &operator=( const domBlend_color &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; + }; + + class domClear_color; + + typedef daeSmartRef domClear_colorRef; + typedef daeTArray domClear_color_Array; + + class domClear_color : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domClear_color() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domClear_color() {} + /** + * Copy Constructor + */ + domClear_color( const domClear_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClear_color &operator=( const domClear_color &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; + }; + + class domClear_stencil; + + typedef daeSmartRef domClear_stencilRef; + typedef daeTArray domClear_stencil_Array; + + class domClear_stencil : public daeElement + { + protected: // Attributes + domInt attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domInt of the value attribute. + */ + domInt getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domInt atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domClear_stencil() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domClear_stencil() {} + /** + * Copy Constructor + */ + domClear_stencil( const domClear_stencil &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClear_stencil &operator=( const domClear_stencil &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; + }; + + class domClear_depth; + + typedef daeSmartRef domClear_depthRef; + typedef daeTArray domClear_depth_Array; + + class domClear_depth : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domClear_depth() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domClear_depth() {} + /** + * Copy Constructor + */ + domClear_depth( const domClear_depth &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClear_depth &operator=( const domClear_depth &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; + }; + + class domColor_mask; + + typedef daeSmartRef domColor_maskRef; + typedef daeTArray domColor_mask_Array; + + class domColor_mask : public daeElement + { + protected: // Attributes + domBool4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domBool4 reference of the value array attribute. + */ + domBool4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domBool4 reference of the value array attribute. + */ + const domBool4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domBool4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domColor_mask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domColor_mask() {} + /** + * Copy Constructor + */ + domColor_mask( const domColor_mask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domColor_mask &operator=( const domColor_mask &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; + }; + + class domDepth_bounds; + + typedef daeSmartRef domDepth_boundsRef; + typedef daeTArray domDepth_bounds_Array; + + class domDepth_bounds : public daeElement + { + protected: // Attributes + domFloat2 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat2 reference of the value array attribute. + */ + domFloat2 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat2 reference of the value array attribute. + */ + const domFloat2 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat2 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_bounds() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_bounds() {} + /** + * Copy Constructor + */ + domDepth_bounds( const domDepth_bounds &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_bounds &operator=( const domDepth_bounds &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; + }; + + class domDepth_mask; + + typedef daeSmartRef domDepth_maskRef; + typedef daeTArray domDepth_mask_Array; + + class domDepth_mask : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_mask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_mask() {} + /** + * Copy Constructor + */ + domDepth_mask( const domDepth_mask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_mask &operator=( const domDepth_mask &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; + }; + + class domDepth_range; + + typedef daeSmartRef domDepth_rangeRef; + typedef daeTArray domDepth_range_Array; + + class domDepth_range : public daeElement + { + protected: // Attributes + domFloat2 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat2 reference of the value array attribute. + */ + domFloat2 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat2 reference of the value array attribute. + */ + const domFloat2 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat2 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_range() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_range() {} + /** + * Copy Constructor + */ + domDepth_range( const domDepth_range &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_range &operator=( const domDepth_range &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; + }; + + class domFog_density; + + typedef daeSmartRef domFog_densityRef; + typedef daeTArray domFog_density_Array; + + class domFog_density : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_density() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_density() {} + /** + * Copy Constructor + */ + domFog_density( const domFog_density &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_density &operator=( const domFog_density &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; + }; + + class domFog_start; + + typedef daeSmartRef domFog_startRef; + typedef daeTArray domFog_start_Array; + + class domFog_start : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_start() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_start() {} + /** + * Copy Constructor + */ + domFog_start( const domFog_start &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_start &operator=( const domFog_start &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; + }; + + class domFog_end; + + typedef daeSmartRef domFog_endRef; + typedef daeTArray domFog_end_Array; + + class domFog_end : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_end() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_end() {} + /** + * Copy Constructor + */ + domFog_end( const domFog_end &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_end &operator=( const domFog_end &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; + }; + + class domFog_color; + + typedef daeSmartRef domFog_colorRef; + typedef daeTArray domFog_color_Array; + + class domFog_color : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_color() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_color() {} + /** + * Copy Constructor + */ + domFog_color( const domFog_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_color &operator=( const domFog_color &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; + }; + + class domLight_model_ambient; + + typedef daeSmartRef domLight_model_ambientRef; + typedef daeTArray domLight_model_ambient_Array; + + class domLight_model_ambient : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLight_model_ambient() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLight_model_ambient() {} + /** + * Copy Constructor + */ + domLight_model_ambient( const domLight_model_ambient &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_model_ambient &operator=( const domLight_model_ambient &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; + }; + + class domLighting_enable; + + typedef daeSmartRef domLighting_enableRef; + typedef daeTArray domLighting_enable_Array; + + class domLighting_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLighting_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLighting_enable() {} + /** + * Copy Constructor + */ + domLighting_enable( const domLighting_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLighting_enable &operator=( const domLighting_enable &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; + }; + + class domLine_stipple; + + typedef daeSmartRef domLine_stippleRef; + typedef daeTArray domLine_stipple_Array; + + class domLine_stipple : public daeElement + { + protected: // Attributes + domInt2 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domInt2 reference of the value array attribute. + */ + domInt2 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domInt2 reference of the value array attribute. + */ + const domInt2 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domInt2 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLine_stipple() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLine_stipple() {} + /** + * Copy Constructor + */ + domLine_stipple( const domLine_stipple &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLine_stipple &operator=( const domLine_stipple &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; + }; + + class domLine_width; + + typedef daeSmartRef domLine_widthRef; + typedef daeTArray domLine_width_Array; + + class domLine_width : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLine_width() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLine_width() {} + /** + * Copy Constructor + */ + domLine_width( const domLine_width &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLine_width &operator=( const domLine_width &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; + }; + + class domMaterial_ambient; + + typedef daeSmartRef domMaterial_ambientRef; + typedef daeTArray domMaterial_ambient_Array; + + class domMaterial_ambient : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_ambient() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_ambient() {} + /** + * Copy Constructor + */ + domMaterial_ambient( const domMaterial_ambient &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_ambient &operator=( const domMaterial_ambient &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; + }; + + class domMaterial_diffuse; + + typedef daeSmartRef domMaterial_diffuseRef; + typedef daeTArray domMaterial_diffuse_Array; + + class domMaterial_diffuse : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_diffuse() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_diffuse() {} + /** + * Copy Constructor + */ + domMaterial_diffuse( const domMaterial_diffuse &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_diffuse &operator=( const domMaterial_diffuse &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; + }; + + class domMaterial_emission; + + typedef daeSmartRef domMaterial_emissionRef; + typedef daeTArray domMaterial_emission_Array; + + class domMaterial_emission : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_emission() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_emission() {} + /** + * Copy Constructor + */ + domMaterial_emission( const domMaterial_emission &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_emission &operator=( const domMaterial_emission &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; + }; + + class domMaterial_shininess; + + typedef daeSmartRef domMaterial_shininessRef; + typedef daeTArray domMaterial_shininess_Array; + + class domMaterial_shininess : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_shininess() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_shininess() {} + /** + * Copy Constructor + */ + domMaterial_shininess( const domMaterial_shininess &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_shininess &operator=( const domMaterial_shininess &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; + }; + + class domMaterial_specular; + + typedef daeSmartRef domMaterial_specularRef; + typedef daeTArray domMaterial_specular_Array; + + class domMaterial_specular : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_specular() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_specular() {} + /** + * Copy Constructor + */ + domMaterial_specular( const domMaterial_specular &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_specular &operator=( const domMaterial_specular &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; + }; + + class domModel_view_matrix; + + typedef daeSmartRef domModel_view_matrixRef; + typedef daeTArray domModel_view_matrix_Array; + + class domModel_view_matrix : public daeElement + { + protected: // Attributes + domFloat4x4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4x4 reference of the value array attribute. + */ + domFloat4x4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4x4 reference of the value array attribute. + */ + const domFloat4x4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4x4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domModel_view_matrix() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domModel_view_matrix() {} + /** + * Copy Constructor + */ + domModel_view_matrix( const domModel_view_matrix &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domModel_view_matrix &operator=( const domModel_view_matrix &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; + }; + + class domPoint_distance_attenuation; + + typedef daeSmartRef domPoint_distance_attenuationRef; + typedef daeTArray domPoint_distance_attenuation_Array; + + class domPoint_distance_attenuation : public daeElement + { + protected: // Attributes + domFloat3 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat3 reference of the value array attribute. + */ + domFloat3 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat3 reference of the value array attribute. + */ + const domFloat3 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat3 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_distance_attenuation() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_distance_attenuation() {} + /** + * Copy Constructor + */ + domPoint_distance_attenuation( const domPoint_distance_attenuation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_distance_attenuation &operator=( const domPoint_distance_attenuation &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; + }; + + class domPoint_fade_threshold_size; + + typedef daeSmartRef domPoint_fade_threshold_sizeRef; + typedef daeTArray domPoint_fade_threshold_size_Array; + + class domPoint_fade_threshold_size : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_fade_threshold_size() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_fade_threshold_size() {} + /** + * Copy Constructor + */ + domPoint_fade_threshold_size( const domPoint_fade_threshold_size &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_fade_threshold_size &operator=( const domPoint_fade_threshold_size &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; + }; + + class domPoint_size; + + typedef daeSmartRef domPoint_sizeRef; + typedef daeTArray domPoint_size_Array; + + class domPoint_size : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_size() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_size() {} + /** + * Copy Constructor + */ + domPoint_size( const domPoint_size &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_size &operator=( const domPoint_size &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; + }; + + class domPoint_size_min; + + typedef daeSmartRef domPoint_size_minRef; + typedef daeTArray domPoint_size_min_Array; + + class domPoint_size_min : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_size_min() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_size_min() {} + /** + * Copy Constructor + */ + domPoint_size_min( const domPoint_size_min &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_size_min &operator=( const domPoint_size_min &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; + }; + + class domPoint_size_max; + + typedef daeSmartRef domPoint_size_maxRef; + typedef daeTArray domPoint_size_max_Array; + + class domPoint_size_max : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_size_max() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_size_max() {} + /** + * Copy Constructor + */ + domPoint_size_max( const domPoint_size_max &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_size_max &operator=( const domPoint_size_max &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; + }; + + class domPolygon_offset; + + typedef daeSmartRef domPolygon_offsetRef; + typedef daeTArray domPolygon_offset_Array; + + class domPolygon_offset : public daeElement + { + protected: // Attributes + domFloat2 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat2 reference of the value array attribute. + */ + domFloat2 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat2 reference of the value array attribute. + */ + const domFloat2 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat2 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPolygon_offset() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPolygon_offset() {} + /** + * Copy Constructor + */ + domPolygon_offset( const domPolygon_offset &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygon_offset &operator=( const domPolygon_offset &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; + }; + + class domProjection_matrix; + + typedef daeSmartRef domProjection_matrixRef; + typedef daeTArray domProjection_matrix_Array; + + class domProjection_matrix : public daeElement + { + protected: // Attributes + domFloat4x4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4x4 reference of the value array attribute. + */ + domFloat4x4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4x4 reference of the value array attribute. + */ + const domFloat4x4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4x4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domProjection_matrix() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domProjection_matrix() {} + /** + * Copy Constructor + */ + domProjection_matrix( const domProjection_matrix &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domProjection_matrix &operator=( const domProjection_matrix &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; + }; + + class domScissor; + + typedef daeSmartRef domScissorRef; + typedef daeTArray domScissor_Array; + + class domScissor : public daeElement + { + protected: // Attributes + domInt4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domInt4 reference of the value array attribute. + */ + domInt4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domInt4 reference of the value array attribute. + */ + const domInt4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domInt4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domScissor() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domScissor() {} + /** + * Copy Constructor + */ + domScissor( const domScissor &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domScissor &operator=( const domScissor &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; + }; + + class domStencil_mask; + + typedef daeSmartRef domStencil_maskRef; + typedef daeTArray domStencil_mask_Array; + + class domStencil_mask : public daeElement + { + protected: // Attributes + domInt attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domInt of the value attribute. + */ + domInt getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domInt atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domStencil_mask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domStencil_mask() {} + /** + * Copy Constructor + */ + domStencil_mask( const domStencil_mask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_mask &operator=( const domStencil_mask &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; + }; + + class domAlpha_test_enable; + + typedef daeSmartRef domAlpha_test_enableRef; + typedef daeTArray domAlpha_test_enable_Array; + + class domAlpha_test_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domAlpha_test_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domAlpha_test_enable() {} + /** + * Copy Constructor + */ + domAlpha_test_enable( const domAlpha_test_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAlpha_test_enable &operator=( const domAlpha_test_enable &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; + }; + + class domAuto_normal_enable; + + typedef daeSmartRef domAuto_normal_enableRef; + typedef daeTArray domAuto_normal_enable_Array; + + class domAuto_normal_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domAuto_normal_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domAuto_normal_enable() {} + /** + * Copy Constructor + */ + domAuto_normal_enable( const domAuto_normal_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAuto_normal_enable &operator=( const domAuto_normal_enable &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; + }; + + class domBlend_enable; + + typedef daeSmartRef domBlend_enableRef; + typedef daeTArray domBlend_enable_Array; + + class domBlend_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domBlend_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domBlend_enable() {} + /** + * Copy Constructor + */ + domBlend_enable( const domBlend_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBlend_enable &operator=( const domBlend_enable &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; + }; + + class domColor_logic_op_enable; + + typedef daeSmartRef domColor_logic_op_enableRef; + typedef daeTArray domColor_logic_op_enable_Array; + + class domColor_logic_op_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domColor_logic_op_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domColor_logic_op_enable() {} + /** + * Copy Constructor + */ + domColor_logic_op_enable( const domColor_logic_op_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domColor_logic_op_enable &operator=( const domColor_logic_op_enable &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; + }; + + class domCull_face_enable; + + typedef daeSmartRef domCull_face_enableRef; + typedef daeTArray domCull_face_enable_Array; + + class domCull_face_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domCull_face_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domCull_face_enable() {} + /** + * Copy Constructor + */ + domCull_face_enable( const domCull_face_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCull_face_enable &operator=( const domCull_face_enable &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; + }; + + class domDepth_bounds_enable; + + typedef daeSmartRef domDepth_bounds_enableRef; + typedef daeTArray domDepth_bounds_enable_Array; + + class domDepth_bounds_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_bounds_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_bounds_enable() {} + /** + * Copy Constructor + */ + domDepth_bounds_enable( const domDepth_bounds_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_bounds_enable &operator=( const domDepth_bounds_enable &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; + }; + + class domDepth_clamp_enable; + + typedef daeSmartRef domDepth_clamp_enableRef; + typedef daeTArray domDepth_clamp_enable_Array; + + class domDepth_clamp_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_clamp_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_clamp_enable() {} + /** + * Copy Constructor + */ + domDepth_clamp_enable( const domDepth_clamp_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_clamp_enable &operator=( const domDepth_clamp_enable &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; + }; + + class domDepth_test_enable; + + typedef daeSmartRef domDepth_test_enableRef; + typedef daeTArray domDepth_test_enable_Array; + + class domDepth_test_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_test_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_test_enable() {} + /** + * Copy Constructor + */ + domDepth_test_enable( const domDepth_test_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_test_enable &operator=( const domDepth_test_enable &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; + }; + + class domDither_enable; + + typedef daeSmartRef domDither_enableRef; + typedef daeTArray domDither_enable_Array; + + class domDither_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDither_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDither_enable() {} + /** + * Copy Constructor + */ + domDither_enable( const domDither_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDither_enable &operator=( const domDither_enable &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; + }; + + class domFog_enable; + + typedef daeSmartRef domFog_enableRef; + typedef daeTArray domFog_enable_Array; + + class domFog_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_enable() {} + /** + * Copy Constructor + */ + domFog_enable( const domFog_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_enable &operator=( const domFog_enable &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; + }; + + class domLight_model_local_viewer_enable; + + typedef daeSmartRef domLight_model_local_viewer_enableRef; + typedef daeTArray domLight_model_local_viewer_enable_Array; + + class domLight_model_local_viewer_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLight_model_local_viewer_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLight_model_local_viewer_enable() {} + /** + * Copy Constructor + */ + domLight_model_local_viewer_enable( const domLight_model_local_viewer_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_model_local_viewer_enable &operator=( const domLight_model_local_viewer_enable &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; + }; + + class domLight_model_two_side_enable; + + typedef daeSmartRef domLight_model_two_side_enableRef; + typedef daeTArray domLight_model_two_side_enable_Array; + + class domLight_model_two_side_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLight_model_two_side_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLight_model_two_side_enable() {} + /** + * Copy Constructor + */ + domLight_model_two_side_enable( const domLight_model_two_side_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_model_two_side_enable &operator=( const domLight_model_two_side_enable &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; + }; + + class domLine_smooth_enable; + + typedef daeSmartRef domLine_smooth_enableRef; + typedef daeTArray domLine_smooth_enable_Array; + + class domLine_smooth_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLine_smooth_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLine_smooth_enable() {} + /** + * Copy Constructor + */ + domLine_smooth_enable( const domLine_smooth_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLine_smooth_enable &operator=( const domLine_smooth_enable &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; + }; + + class domLine_stipple_enable; + + typedef daeSmartRef domLine_stipple_enableRef; + typedef daeTArray domLine_stipple_enable_Array; + + class domLine_stipple_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLine_stipple_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLine_stipple_enable() {} + /** + * Copy Constructor + */ + domLine_stipple_enable( const domLine_stipple_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLine_stipple_enable &operator=( const domLine_stipple_enable &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; + }; + + class domLogic_op_enable; + + typedef daeSmartRef domLogic_op_enableRef; + typedef daeTArray domLogic_op_enable_Array; + + class domLogic_op_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLogic_op_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLogic_op_enable() {} + /** + * Copy Constructor + */ + domLogic_op_enable( const domLogic_op_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLogic_op_enable &operator=( const domLogic_op_enable &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; + }; + + class domMultisample_enable; + + typedef daeSmartRef domMultisample_enableRef; + typedef daeTArray domMultisample_enable_Array; + + class domMultisample_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMultisample_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMultisample_enable() {} + /** + * Copy Constructor + */ + domMultisample_enable( const domMultisample_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMultisample_enable &operator=( const domMultisample_enable &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; + }; + + class domNormalize_enable; + + typedef daeSmartRef domNormalize_enableRef; + typedef daeTArray domNormalize_enable_Array; + + class domNormalize_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domNormalize_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domNormalize_enable() {} + /** + * Copy Constructor + */ + domNormalize_enable( const domNormalize_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domNormalize_enable &operator=( const domNormalize_enable &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; + }; + + class domPoint_smooth_enable; + + typedef daeSmartRef domPoint_smooth_enableRef; + typedef daeTArray domPoint_smooth_enable_Array; + + class domPoint_smooth_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_smooth_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_smooth_enable() {} + /** + * Copy Constructor + */ + domPoint_smooth_enable( const domPoint_smooth_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_smooth_enable &operator=( const domPoint_smooth_enable &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; + }; + + class domPolygon_offset_fill_enable; + + typedef daeSmartRef domPolygon_offset_fill_enableRef; + typedef daeTArray domPolygon_offset_fill_enable_Array; + + class domPolygon_offset_fill_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPolygon_offset_fill_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPolygon_offset_fill_enable() {} + /** + * Copy Constructor + */ + domPolygon_offset_fill_enable( const domPolygon_offset_fill_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygon_offset_fill_enable &operator=( const domPolygon_offset_fill_enable &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; + }; + + class domPolygon_offset_line_enable; + + typedef daeSmartRef domPolygon_offset_line_enableRef; + typedef daeTArray domPolygon_offset_line_enable_Array; + + class domPolygon_offset_line_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPolygon_offset_line_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPolygon_offset_line_enable() {} + /** + * Copy Constructor + */ + domPolygon_offset_line_enable( const domPolygon_offset_line_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygon_offset_line_enable &operator=( const domPolygon_offset_line_enable &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; + }; + + class domPolygon_offset_point_enable; + + typedef daeSmartRef domPolygon_offset_point_enableRef; + typedef daeTArray domPolygon_offset_point_enable_Array; + + class domPolygon_offset_point_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPolygon_offset_point_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPolygon_offset_point_enable() {} + /** + * Copy Constructor + */ + domPolygon_offset_point_enable( const domPolygon_offset_point_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygon_offset_point_enable &operator=( const domPolygon_offset_point_enable &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; + }; + + class domPolygon_smooth_enable; + + typedef daeSmartRef domPolygon_smooth_enableRef; + typedef daeTArray domPolygon_smooth_enable_Array; + + class domPolygon_smooth_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPolygon_smooth_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPolygon_smooth_enable() {} + /** + * Copy Constructor + */ + domPolygon_smooth_enable( const domPolygon_smooth_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygon_smooth_enable &operator=( const domPolygon_smooth_enable &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; + }; + + class domPolygon_stipple_enable; + + typedef daeSmartRef domPolygon_stipple_enableRef; + typedef daeTArray domPolygon_stipple_enable_Array; + + class domPolygon_stipple_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPolygon_stipple_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPolygon_stipple_enable() {} + /** + * Copy Constructor + */ + domPolygon_stipple_enable( const domPolygon_stipple_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygon_stipple_enable &operator=( const domPolygon_stipple_enable &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; + }; + + class domRescale_normal_enable; + + typedef daeSmartRef domRescale_normal_enableRef; + typedef daeTArray domRescale_normal_enable_Array; + + class domRescale_normal_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domRescale_normal_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domRescale_normal_enable() {} + /** + * Copy Constructor + */ + domRescale_normal_enable( const domRescale_normal_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRescale_normal_enable &operator=( const domRescale_normal_enable &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; + }; + + class domSample_alpha_to_coverage_enable; + + typedef daeSmartRef domSample_alpha_to_coverage_enableRef; + typedef daeTArray domSample_alpha_to_coverage_enable_Array; + + class domSample_alpha_to_coverage_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSample_alpha_to_coverage_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSample_alpha_to_coverage_enable() {} + /** + * Copy Constructor + */ + domSample_alpha_to_coverage_enable( const domSample_alpha_to_coverage_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSample_alpha_to_coverage_enable &operator=( const domSample_alpha_to_coverage_enable &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; + }; + + class domSample_alpha_to_one_enable; + + typedef daeSmartRef domSample_alpha_to_one_enableRef; + typedef daeTArray domSample_alpha_to_one_enable_Array; + + class domSample_alpha_to_one_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSample_alpha_to_one_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSample_alpha_to_one_enable() {} + /** + * Copy Constructor + */ + domSample_alpha_to_one_enable( const domSample_alpha_to_one_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSample_alpha_to_one_enable &operator=( const domSample_alpha_to_one_enable &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; + }; + + class domSample_coverage_enable; + + typedef daeSmartRef domSample_coverage_enableRef; + typedef daeTArray domSample_coverage_enable_Array; + + class domSample_coverage_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSample_coverage_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSample_coverage_enable() {} + /** + * Copy Constructor + */ + domSample_coverage_enable( const domSample_coverage_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSample_coverage_enable &operator=( const domSample_coverage_enable &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; + }; + + class domScissor_test_enable; + + typedef daeSmartRef domScissor_test_enableRef; + typedef daeTArray domScissor_test_enable_Array; + + class domScissor_test_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domScissor_test_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domScissor_test_enable() {} + /** + * Copy Constructor + */ + domScissor_test_enable( const domScissor_test_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domScissor_test_enable &operator=( const domScissor_test_enable &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; + }; + + class domStencil_test_enable; + + typedef daeSmartRef domStencil_test_enableRef; + typedef daeTArray domStencil_test_enable_Array; + + class domStencil_test_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domStencil_test_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domStencil_test_enable() {} + /** + * Copy Constructor + */ + domStencil_test_enable( const domStencil_test_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_test_enable &operator=( const domStencil_test_enable &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: // Elements + domAlpha_funcRef elemAlpha_func; + domBlend_funcRef elemBlend_func; + domBlend_func_separateRef elemBlend_func_separate; + domBlend_equationRef elemBlend_equation; + domBlend_equation_separateRef elemBlend_equation_separate; + domColor_materialRef elemColor_material; + domCull_faceRef elemCull_face; + domDepth_funcRef elemDepth_func; + domFog_modeRef elemFog_mode; + domFog_coord_srcRef elemFog_coord_src; + domFront_faceRef elemFront_face; + domLight_model_color_controlRef elemLight_model_color_control; + domLogic_opRef elemLogic_op; + domPolygon_modeRef elemPolygon_mode; + domShade_modelRef elemShade_model; + domStencil_funcRef elemStencil_func; + domStencil_opRef elemStencil_op; + domStencil_func_separateRef elemStencil_func_separate; + domStencil_op_separateRef elemStencil_op_separate; + domStencil_mask_separateRef elemStencil_mask_separate; + domLight_enableRef elemLight_enable; + domLight_ambientRef elemLight_ambient; + domLight_diffuseRef elemLight_diffuse; + domLight_specularRef elemLight_specular; + domLight_positionRef elemLight_position; + domLight_constant_attenuationRef elemLight_constant_attenuation; + domLight_linear_attenuationRef elemLight_linear_attenuation; + domLight_quadratic_attenuationRef elemLight_quadratic_attenuation; + domLight_spot_cutoffRef elemLight_spot_cutoff; + domLight_spot_directionRef elemLight_spot_direction; + domLight_spot_exponentRef elemLight_spot_exponent; + domTexture1DRef elemTexture1D; + domTexture2DRef elemTexture2D; + domTexture3DRef elemTexture3D; + domTextureCUBERef elemTextureCUBE; + domTextureRECTRef elemTextureRECT; + domTextureDEPTHRef elemTextureDEPTH; + domTexture1D_enableRef elemTexture1D_enable; + domTexture2D_enableRef elemTexture2D_enable; + domTexture3D_enableRef elemTexture3D_enable; + domTextureCUBE_enableRef elemTextureCUBE_enable; + domTextureRECT_enableRef elemTextureRECT_enable; + domTextureDEPTH_enableRef elemTextureDEPTH_enable; + domTexture_env_colorRef elemTexture_env_color; + domTexture_env_modeRef elemTexture_env_mode; + domClip_planeRef elemClip_plane; + domClip_plane_enableRef elemClip_plane_enable; + domBlend_colorRef elemBlend_color; + domClear_colorRef elemClear_color; + domClear_stencilRef elemClear_stencil; + domClear_depthRef elemClear_depth; + domColor_maskRef elemColor_mask; + domDepth_boundsRef elemDepth_bounds; + domDepth_maskRef elemDepth_mask; + domDepth_rangeRef elemDepth_range; + domFog_densityRef elemFog_density; + domFog_startRef elemFog_start; + domFog_endRef elemFog_end; + domFog_colorRef elemFog_color; + domLight_model_ambientRef elemLight_model_ambient; + domLighting_enableRef elemLighting_enable; + domLine_stippleRef elemLine_stipple; + domLine_widthRef elemLine_width; + domMaterial_ambientRef elemMaterial_ambient; + domMaterial_diffuseRef elemMaterial_diffuse; + domMaterial_emissionRef elemMaterial_emission; + domMaterial_shininessRef elemMaterial_shininess; + domMaterial_specularRef elemMaterial_specular; + domModel_view_matrixRef elemModel_view_matrix; + domPoint_distance_attenuationRef elemPoint_distance_attenuation; + domPoint_fade_threshold_sizeRef elemPoint_fade_threshold_size; + domPoint_sizeRef elemPoint_size; + domPoint_size_minRef elemPoint_size_min; + domPoint_size_maxRef elemPoint_size_max; + domPolygon_offsetRef elemPolygon_offset; + domProjection_matrixRef elemProjection_matrix; + domScissorRef elemScissor; + domStencil_maskRef elemStencil_mask; + domAlpha_test_enableRef elemAlpha_test_enable; + domAuto_normal_enableRef elemAuto_normal_enable; + domBlend_enableRef elemBlend_enable; + domColor_logic_op_enableRef elemColor_logic_op_enable; + domCull_face_enableRef elemCull_face_enable; + domDepth_bounds_enableRef elemDepth_bounds_enable; + domDepth_clamp_enableRef elemDepth_clamp_enable; + domDepth_test_enableRef elemDepth_test_enable; + domDither_enableRef elemDither_enable; + domFog_enableRef elemFog_enable; + domLight_model_local_viewer_enableRef elemLight_model_local_viewer_enable; + domLight_model_two_side_enableRef elemLight_model_two_side_enable; + domLine_smooth_enableRef elemLine_smooth_enable; + domLine_stipple_enableRef elemLine_stipple_enable; + domLogic_op_enableRef elemLogic_op_enable; + domMultisample_enableRef elemMultisample_enable; + domNormalize_enableRef elemNormalize_enable; + domPoint_smooth_enableRef elemPoint_smooth_enable; + domPolygon_offset_fill_enableRef elemPolygon_offset_fill_enable; + domPolygon_offset_line_enableRef elemPolygon_offset_line_enable; + domPolygon_offset_point_enableRef elemPolygon_offset_point_enable; + domPolygon_smooth_enableRef elemPolygon_smooth_enable; + domPolygon_stipple_enableRef elemPolygon_stipple_enable; + domRescale_normal_enableRef elemRescale_normal_enable; + domSample_alpha_to_coverage_enableRef elemSample_alpha_to_coverage_enable; + domSample_alpha_to_one_enableRef elemSample_alpha_to_one_enable; + domSample_coverage_enableRef elemSample_coverage_enable; + domScissor_test_enableRef elemScissor_test_enable; + domStencil_test_enableRef elemStencil_test_enable; + domGl_hook_abstractRef elemGl_hook_abstract; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the alpha_func element. + * @return a daeSmartRef to the alpha_func element. + */ + const domAlpha_funcRef getAlpha_func() const { return elemAlpha_func; } + /** + * Gets the blend_func element. + * @return a daeSmartRef to the blend_func element. + */ + const domBlend_funcRef getBlend_func() const { return elemBlend_func; } + /** + * Gets the blend_func_separate element. + * @return a daeSmartRef to the blend_func_separate element. + */ + const domBlend_func_separateRef getBlend_func_separate() const { return elemBlend_func_separate; } + /** + * Gets the blend_equation element. + * @return a daeSmartRef to the blend_equation element. + */ + const domBlend_equationRef getBlend_equation() const { return elemBlend_equation; } + /** + * Gets the blend_equation_separate element. + * @return a daeSmartRef to the blend_equation_separate element. + */ + const domBlend_equation_separateRef getBlend_equation_separate() const { return elemBlend_equation_separate; } + /** + * Gets the color_material element. + * @return a daeSmartRef to the color_material element. + */ + const domColor_materialRef getColor_material() const { return elemColor_material; } + /** + * Gets the cull_face element. + * @return a daeSmartRef to the cull_face element. + */ + const domCull_faceRef getCull_face() const { return elemCull_face; } + /** + * Gets the depth_func element. + * @return a daeSmartRef to the depth_func element. + */ + const domDepth_funcRef getDepth_func() const { return elemDepth_func; } + /** + * Gets the fog_mode element. + * @return a daeSmartRef to the fog_mode element. + */ + const domFog_modeRef getFog_mode() const { return elemFog_mode; } + /** + * Gets the fog_coord_src element. + * @return a daeSmartRef to the fog_coord_src element. + */ + const domFog_coord_srcRef getFog_coord_src() const { return elemFog_coord_src; } + /** + * Gets the front_face element. + * @return a daeSmartRef to the front_face element. + */ + const domFront_faceRef getFront_face() const { return elemFront_face; } + /** + * Gets the light_model_color_control element. + * @return a daeSmartRef to the light_model_color_control element. + */ + const domLight_model_color_controlRef getLight_model_color_control() const { return elemLight_model_color_control; } + /** + * Gets the logic_op element. + * @return a daeSmartRef to the logic_op element. + */ + const domLogic_opRef getLogic_op() const { return elemLogic_op; } + /** + * Gets the polygon_mode element. + * @return a daeSmartRef to the polygon_mode element. + */ + const domPolygon_modeRef getPolygon_mode() const { return elemPolygon_mode; } + /** + * Gets the shade_model element. + * @return a daeSmartRef to the shade_model element. + */ + const domShade_modelRef getShade_model() const { return elemShade_model; } + /** + * Gets the stencil_func element. + * @return a daeSmartRef to the stencil_func element. + */ + const domStencil_funcRef getStencil_func() const { return elemStencil_func; } + /** + * Gets the stencil_op element. + * @return a daeSmartRef to the stencil_op element. + */ + const domStencil_opRef getStencil_op() const { return elemStencil_op; } + /** + * Gets the stencil_func_separate element. + * @return a daeSmartRef to the stencil_func_separate element. + */ + const domStencil_func_separateRef getStencil_func_separate() const { return elemStencil_func_separate; } + /** + * Gets the stencil_op_separate element. + * @return a daeSmartRef to the stencil_op_separate element. + */ + const domStencil_op_separateRef getStencil_op_separate() const { return elemStencil_op_separate; } + /** + * Gets the stencil_mask_separate element. + * @return a daeSmartRef to the stencil_mask_separate element. + */ + const domStencil_mask_separateRef getStencil_mask_separate() const { return elemStencil_mask_separate; } + /** + * Gets the light_enable element. + * @return a daeSmartRef to the light_enable element. + */ + const domLight_enableRef getLight_enable() const { return elemLight_enable; } + /** + * Gets the light_ambient element. + * @return a daeSmartRef to the light_ambient element. + */ + const domLight_ambientRef getLight_ambient() const { return elemLight_ambient; } + /** + * Gets the light_diffuse element. + * @return a daeSmartRef to the light_diffuse element. + */ + const domLight_diffuseRef getLight_diffuse() const { return elemLight_diffuse; } + /** + * Gets the light_specular element. + * @return a daeSmartRef to the light_specular element. + */ + const domLight_specularRef getLight_specular() const { return elemLight_specular; } + /** + * Gets the light_position element. + * @return a daeSmartRef to the light_position element. + */ + const domLight_positionRef getLight_position() const { return elemLight_position; } + /** + * Gets the light_constant_attenuation element. + * @return a daeSmartRef to the light_constant_attenuation element. + */ + const domLight_constant_attenuationRef getLight_constant_attenuation() const { return elemLight_constant_attenuation; } + /** + * Gets the light_linear_attenuation element. + * @return a daeSmartRef to the light_linear_attenuation element. + */ + const domLight_linear_attenuationRef getLight_linear_attenuation() const { return elemLight_linear_attenuation; } + /** + * Gets the light_quadratic_attenuation element. + * @return a daeSmartRef to the light_quadratic_attenuation element. + */ + const domLight_quadratic_attenuationRef getLight_quadratic_attenuation() const { return elemLight_quadratic_attenuation; } + /** + * Gets the light_spot_cutoff element. + * @return a daeSmartRef to the light_spot_cutoff element. + */ + const domLight_spot_cutoffRef getLight_spot_cutoff() const { return elemLight_spot_cutoff; } + /** + * Gets the light_spot_direction element. + * @return a daeSmartRef to the light_spot_direction element. + */ + const domLight_spot_directionRef getLight_spot_direction() const { return elemLight_spot_direction; } + /** + * Gets the light_spot_exponent element. + * @return a daeSmartRef to the light_spot_exponent element. + */ + const domLight_spot_exponentRef getLight_spot_exponent() const { return elemLight_spot_exponent; } + /** + * Gets the texture1D element. + * @return a daeSmartRef to the texture1D element. + */ + const domTexture1DRef getTexture1D() const { return elemTexture1D; } + /** + * Gets the texture2D element. + * @return a daeSmartRef to the texture2D element. + */ + const domTexture2DRef getTexture2D() const { return elemTexture2D; } + /** + * Gets the texture3D element. + * @return a daeSmartRef to the texture3D element. + */ + const domTexture3DRef getTexture3D() const { return elemTexture3D; } + /** + * Gets the textureCUBE element. + * @return a daeSmartRef to the textureCUBE element. + */ + const domTextureCUBERef getTextureCUBE() const { return elemTextureCUBE; } + /** + * Gets the textureRECT element. + * @return a daeSmartRef to the textureRECT element. + */ + const domTextureRECTRef getTextureRECT() const { return elemTextureRECT; } + /** + * Gets the textureDEPTH element. + * @return a daeSmartRef to the textureDEPTH element. + */ + const domTextureDEPTHRef getTextureDEPTH() const { return elemTextureDEPTH; } + /** + * Gets the texture1D_enable element. + * @return a daeSmartRef to the texture1D_enable element. + */ + const domTexture1D_enableRef getTexture1D_enable() const { return elemTexture1D_enable; } + /** + * Gets the texture2D_enable element. + * @return a daeSmartRef to the texture2D_enable element. + */ + const domTexture2D_enableRef getTexture2D_enable() const { return elemTexture2D_enable; } + /** + * Gets the texture3D_enable element. + * @return a daeSmartRef to the texture3D_enable element. + */ + const domTexture3D_enableRef getTexture3D_enable() const { return elemTexture3D_enable; } + /** + * Gets the textureCUBE_enable element. + * @return a daeSmartRef to the textureCUBE_enable element. + */ + const domTextureCUBE_enableRef getTextureCUBE_enable() const { return elemTextureCUBE_enable; } + /** + * Gets the textureRECT_enable element. + * @return a daeSmartRef to the textureRECT_enable element. + */ + const domTextureRECT_enableRef getTextureRECT_enable() const { return elemTextureRECT_enable; } + /** + * Gets the textureDEPTH_enable element. + * @return a daeSmartRef to the textureDEPTH_enable element. + */ + const domTextureDEPTH_enableRef getTextureDEPTH_enable() const { return elemTextureDEPTH_enable; } + /** + * Gets the texture_env_color element. + * @return a daeSmartRef to the texture_env_color element. + */ + const domTexture_env_colorRef getTexture_env_color() const { return elemTexture_env_color; } + /** + * Gets the texture_env_mode element. + * @return a daeSmartRef to the texture_env_mode element. + */ + const domTexture_env_modeRef getTexture_env_mode() const { return elemTexture_env_mode; } + /** + * Gets the clip_plane element. + * @return a daeSmartRef to the clip_plane element. + */ + const domClip_planeRef getClip_plane() const { return elemClip_plane; } + /** + * Gets the clip_plane_enable element. + * @return a daeSmartRef to the clip_plane_enable element. + */ + const domClip_plane_enableRef getClip_plane_enable() const { return elemClip_plane_enable; } + /** + * Gets the blend_color element. + * @return a daeSmartRef to the blend_color element. + */ + const domBlend_colorRef getBlend_color() const { return elemBlend_color; } + /** + * Gets the clear_color element. + * @return a daeSmartRef to the clear_color element. + */ + const domClear_colorRef getClear_color() const { return elemClear_color; } + /** + * Gets the clear_stencil element. + * @return a daeSmartRef to the clear_stencil element. + */ + const domClear_stencilRef getClear_stencil() const { return elemClear_stencil; } + /** + * Gets the clear_depth element. + * @return a daeSmartRef to the clear_depth element. + */ + const domClear_depthRef getClear_depth() const { return elemClear_depth; } + /** + * Gets the color_mask element. + * @return a daeSmartRef to the color_mask element. + */ + const domColor_maskRef getColor_mask() const { return elemColor_mask; } + /** + * Gets the depth_bounds element. + * @return a daeSmartRef to the depth_bounds element. + */ + const domDepth_boundsRef getDepth_bounds() const { return elemDepth_bounds; } + /** + * Gets the depth_mask element. + * @return a daeSmartRef to the depth_mask element. + */ + const domDepth_maskRef getDepth_mask() const { return elemDepth_mask; } + /** + * Gets the depth_range element. + * @return a daeSmartRef to the depth_range element. + */ + const domDepth_rangeRef getDepth_range() const { return elemDepth_range; } + /** + * Gets the fog_density element. + * @return a daeSmartRef to the fog_density element. + */ + const domFog_densityRef getFog_density() const { return elemFog_density; } + /** + * Gets the fog_start element. + * @return a daeSmartRef to the fog_start element. + */ + const domFog_startRef getFog_start() const { return elemFog_start; } + /** + * Gets the fog_end element. + * @return a daeSmartRef to the fog_end element. + */ + const domFog_endRef getFog_end() const { return elemFog_end; } + /** + * Gets the fog_color element. + * @return a daeSmartRef to the fog_color element. + */ + const domFog_colorRef getFog_color() const { return elemFog_color; } + /** + * Gets the light_model_ambient element. + * @return a daeSmartRef to the light_model_ambient element. + */ + const domLight_model_ambientRef getLight_model_ambient() const { return elemLight_model_ambient; } + /** + * Gets the lighting_enable element. + * @return a daeSmartRef to the lighting_enable element. + */ + const domLighting_enableRef getLighting_enable() const { return elemLighting_enable; } + /** + * Gets the line_stipple element. + * @return a daeSmartRef to the line_stipple element. + */ + const domLine_stippleRef getLine_stipple() const { return elemLine_stipple; } + /** + * Gets the line_width element. + * @return a daeSmartRef to the line_width element. + */ + const domLine_widthRef getLine_width() const { return elemLine_width; } + /** + * Gets the material_ambient element. + * @return a daeSmartRef to the material_ambient element. + */ + const domMaterial_ambientRef getMaterial_ambient() const { return elemMaterial_ambient; } + /** + * Gets the material_diffuse element. + * @return a daeSmartRef to the material_diffuse element. + */ + const domMaterial_diffuseRef getMaterial_diffuse() const { return elemMaterial_diffuse; } + /** + * Gets the material_emission element. + * @return a daeSmartRef to the material_emission element. + */ + const domMaterial_emissionRef getMaterial_emission() const { return elemMaterial_emission; } + /** + * Gets the material_shininess element. + * @return a daeSmartRef to the material_shininess element. + */ + const domMaterial_shininessRef getMaterial_shininess() const { return elemMaterial_shininess; } + /** + * Gets the material_specular element. + * @return a daeSmartRef to the material_specular element. + */ + const domMaterial_specularRef getMaterial_specular() const { return elemMaterial_specular; } + /** + * Gets the model_view_matrix element. + * @return a daeSmartRef to the model_view_matrix element. + */ + const domModel_view_matrixRef getModel_view_matrix() const { return elemModel_view_matrix; } + /** + * Gets the point_distance_attenuation element. + * @return a daeSmartRef to the point_distance_attenuation element. + */ + const domPoint_distance_attenuationRef getPoint_distance_attenuation() const { return elemPoint_distance_attenuation; } + /** + * Gets the point_fade_threshold_size element. + * @return a daeSmartRef to the point_fade_threshold_size element. + */ + const domPoint_fade_threshold_sizeRef getPoint_fade_threshold_size() const { return elemPoint_fade_threshold_size; } + /** + * Gets the point_size element. + * @return a daeSmartRef to the point_size element. + */ + const domPoint_sizeRef getPoint_size() const { return elemPoint_size; } + /** + * Gets the point_size_min element. + * @return a daeSmartRef to the point_size_min element. + */ + const domPoint_size_minRef getPoint_size_min() const { return elemPoint_size_min; } + /** + * Gets the point_size_max element. + * @return a daeSmartRef to the point_size_max element. + */ + const domPoint_size_maxRef getPoint_size_max() const { return elemPoint_size_max; } + /** + * Gets the polygon_offset element. + * @return a daeSmartRef to the polygon_offset element. + */ + const domPolygon_offsetRef getPolygon_offset() const { return elemPolygon_offset; } + /** + * Gets the projection_matrix element. + * @return a daeSmartRef to the projection_matrix element. + */ + const domProjection_matrixRef getProjection_matrix() const { return elemProjection_matrix; } + /** + * Gets the scissor element. + * @return a daeSmartRef to the scissor element. + */ + const domScissorRef getScissor() const { return elemScissor; } + /** + * Gets the stencil_mask element. + * @return a daeSmartRef to the stencil_mask element. + */ + const domStencil_maskRef getStencil_mask() const { return elemStencil_mask; } + /** + * Gets the alpha_test_enable element. + * @return a daeSmartRef to the alpha_test_enable element. + */ + const domAlpha_test_enableRef getAlpha_test_enable() const { return elemAlpha_test_enable; } + /** + * Gets the auto_normal_enable element. + * @return a daeSmartRef to the auto_normal_enable element. + */ + const domAuto_normal_enableRef getAuto_normal_enable() const { return elemAuto_normal_enable; } + /** + * Gets the blend_enable element. + * @return a daeSmartRef to the blend_enable element. + */ + const domBlend_enableRef getBlend_enable() const { return elemBlend_enable; } + /** + * Gets the color_logic_op_enable element. + * @return a daeSmartRef to the color_logic_op_enable element. + */ + const domColor_logic_op_enableRef getColor_logic_op_enable() const { return elemColor_logic_op_enable; } + /** + * Gets the cull_face_enable element. + * @return a daeSmartRef to the cull_face_enable element. + */ + const domCull_face_enableRef getCull_face_enable() const { return elemCull_face_enable; } + /** + * Gets the depth_bounds_enable element. + * @return a daeSmartRef to the depth_bounds_enable element. + */ + const domDepth_bounds_enableRef getDepth_bounds_enable() const { return elemDepth_bounds_enable; } + /** + * Gets the depth_clamp_enable element. + * @return a daeSmartRef to the depth_clamp_enable element. + */ + const domDepth_clamp_enableRef getDepth_clamp_enable() const { return elemDepth_clamp_enable; } + /** + * Gets the depth_test_enable element. + * @return a daeSmartRef to the depth_test_enable element. + */ + const domDepth_test_enableRef getDepth_test_enable() const { return elemDepth_test_enable; } + /** + * Gets the dither_enable element. + * @return a daeSmartRef to the dither_enable element. + */ + const domDither_enableRef getDither_enable() const { return elemDither_enable; } + /** + * Gets the fog_enable element. + * @return a daeSmartRef to the fog_enable element. + */ + const domFog_enableRef getFog_enable() const { return elemFog_enable; } + /** + * Gets the light_model_local_viewer_enable element. + * @return a daeSmartRef to the light_model_local_viewer_enable element. + */ + const domLight_model_local_viewer_enableRef getLight_model_local_viewer_enable() const { return elemLight_model_local_viewer_enable; } + /** + * Gets the light_model_two_side_enable element. + * @return a daeSmartRef to the light_model_two_side_enable element. + */ + const domLight_model_two_side_enableRef getLight_model_two_side_enable() const { return elemLight_model_two_side_enable; } + /** + * Gets the line_smooth_enable element. + * @return a daeSmartRef to the line_smooth_enable element. + */ + const domLine_smooth_enableRef getLine_smooth_enable() const { return elemLine_smooth_enable; } + /** + * Gets the line_stipple_enable element. + * @return a daeSmartRef to the line_stipple_enable element. + */ + const domLine_stipple_enableRef getLine_stipple_enable() const { return elemLine_stipple_enable; } + /** + * Gets the logic_op_enable element. + * @return a daeSmartRef to the logic_op_enable element. + */ + const domLogic_op_enableRef getLogic_op_enable() const { return elemLogic_op_enable; } + /** + * Gets the multisample_enable element. + * @return a daeSmartRef to the multisample_enable element. + */ + const domMultisample_enableRef getMultisample_enable() const { return elemMultisample_enable; } + /** + * Gets the normalize_enable element. + * @return a daeSmartRef to the normalize_enable element. + */ + const domNormalize_enableRef getNormalize_enable() const { return elemNormalize_enable; } + /** + * Gets the point_smooth_enable element. + * @return a daeSmartRef to the point_smooth_enable element. + */ + const domPoint_smooth_enableRef getPoint_smooth_enable() const { return elemPoint_smooth_enable; } + /** + * Gets the polygon_offset_fill_enable element. + * @return a daeSmartRef to the polygon_offset_fill_enable element. + */ + const domPolygon_offset_fill_enableRef getPolygon_offset_fill_enable() const { return elemPolygon_offset_fill_enable; } + /** + * Gets the polygon_offset_line_enable element. + * @return a daeSmartRef to the polygon_offset_line_enable element. + */ + const domPolygon_offset_line_enableRef getPolygon_offset_line_enable() const { return elemPolygon_offset_line_enable; } + /** + * Gets the polygon_offset_point_enable element. + * @return a daeSmartRef to the polygon_offset_point_enable element. + */ + const domPolygon_offset_point_enableRef getPolygon_offset_point_enable() const { return elemPolygon_offset_point_enable; } + /** + * Gets the polygon_smooth_enable element. + * @return a daeSmartRef to the polygon_smooth_enable element. + */ + const domPolygon_smooth_enableRef getPolygon_smooth_enable() const { return elemPolygon_smooth_enable; } + /** + * Gets the polygon_stipple_enable element. + * @return a daeSmartRef to the polygon_stipple_enable element. + */ + const domPolygon_stipple_enableRef getPolygon_stipple_enable() const { return elemPolygon_stipple_enable; } + /** + * Gets the rescale_normal_enable element. + * @return a daeSmartRef to the rescale_normal_enable element. + */ + const domRescale_normal_enableRef getRescale_normal_enable() const { return elemRescale_normal_enable; } + /** + * Gets the sample_alpha_to_coverage_enable element. + * @return a daeSmartRef to the sample_alpha_to_coverage_enable element. + */ + const domSample_alpha_to_coverage_enableRef getSample_alpha_to_coverage_enable() const { return elemSample_alpha_to_coverage_enable; } + /** + * Gets the sample_alpha_to_one_enable element. + * @return a daeSmartRef to the sample_alpha_to_one_enable element. + */ + const domSample_alpha_to_one_enableRef getSample_alpha_to_one_enable() const { return elemSample_alpha_to_one_enable; } + /** + * Gets the sample_coverage_enable element. + * @return a daeSmartRef to the sample_coverage_enable element. + */ + const domSample_coverage_enableRef getSample_coverage_enable() const { return elemSample_coverage_enable; } + /** + * Gets the scissor_test_enable element. + * @return a daeSmartRef to the scissor_test_enable element. + */ + const domScissor_test_enableRef getScissor_test_enable() const { return elemScissor_test_enable; } + /** + * Gets the stencil_test_enable element. + * @return a daeSmartRef to the stencil_test_enable element. + */ + const domStencil_test_enableRef getStencil_test_enable() const { return elemStencil_test_enable; } + /** + * Gets the gl_hook_abstract element. + * @return a daeSmartRef to the gl_hook_abstract element. + */ + const domGl_hook_abstractRef getGl_hook_abstract() const { return elemGl_hook_abstract; } + /** + * 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 + */ + domGl_pipeline_settings() : elemAlpha_func(), elemBlend_func(), elemBlend_func_separate(), elemBlend_equation(), elemBlend_equation_separate(), elemColor_material(), elemCull_face(), elemDepth_func(), elemFog_mode(), elemFog_coord_src(), elemFront_face(), elemLight_model_color_control(), elemLogic_op(), elemPolygon_mode(), elemShade_model(), elemStencil_func(), elemStencil_op(), elemStencil_func_separate(), elemStencil_op_separate(), elemStencil_mask_separate(), elemLight_enable(), elemLight_ambient(), elemLight_diffuse(), elemLight_specular(), elemLight_position(), elemLight_constant_attenuation(), elemLight_linear_attenuation(), elemLight_quadratic_attenuation(), elemLight_spot_cutoff(), elemLight_spot_direction(), elemLight_spot_exponent(), elemTexture1D(), elemTexture2D(), elemTexture3D(), elemTextureCUBE(), elemTextureRECT(), elemTextureDEPTH(), elemTexture1D_enable(), elemTexture2D_enable(), elemTexture3D_enable(), elemTextureCUBE_enable(), elemTextureRECT_enable(), elemTextureDEPTH_enable(), elemTexture_env_color(), elemTexture_env_mode(), elemClip_plane(), elemClip_plane_enable(), elemBlend_color(), elemClear_color(), elemClear_stencil(), elemClear_depth(), elemColor_mask(), elemDepth_bounds(), elemDepth_mask(), elemDepth_range(), elemFog_density(), elemFog_start(), elemFog_end(), elemFog_color(), elemLight_model_ambient(), elemLighting_enable(), elemLine_stipple(), elemLine_width(), elemMaterial_ambient(), elemMaterial_diffuse(), elemMaterial_emission(), elemMaterial_shininess(), elemMaterial_specular(), elemModel_view_matrix(), elemPoint_distance_attenuation(), elemPoint_fade_threshold_size(), elemPoint_size(), elemPoint_size_min(), elemPoint_size_max(), elemPolygon_offset(), elemProjection_matrix(), elemScissor(), elemStencil_mask(), elemAlpha_test_enable(), elemAuto_normal_enable(), elemBlend_enable(), elemColor_logic_op_enable(), elemCull_face_enable(), elemDepth_bounds_enable(), elemDepth_clamp_enable(), elemDepth_test_enable(), elemDither_enable(), elemFog_enable(), elemLight_model_local_viewer_enable(), elemLight_model_two_side_enable(), elemLine_smooth_enable(), elemLine_stipple_enable(), elemLogic_op_enable(), elemMultisample_enable(), elemNormalize_enable(), elemPoint_smooth_enable(), elemPolygon_offset_fill_enable(), elemPolygon_offset_line_enable(), elemPolygon_offset_point_enable(), elemPolygon_smooth_enable(), elemPolygon_stipple_enable(), elemRescale_normal_enable(), elemSample_alpha_to_coverage_enable(), elemSample_alpha_to_one_enable(), elemSample_coverage_enable(), elemScissor_test_enable(), elemStencil_test_enable(), elemGl_hook_abstract() {} + /** + * Destructor + */ + virtual ~domGl_pipeline_settings() {} + /** + * Copy Constructor + */ + domGl_pipeline_settings( const domGl_pipeline_settings &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_pipeline_settings &operator=( const domGl_pipeline_settings &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler1D.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler1D.h new file mode 100644 index 000000000..9157459bf --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler1D.h @@ -0,0 +1,91 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGl_sampler1D_h__ +#define __domGl_sampler1D_h__ + +#include +#include + +#include + +/** + * A one-dimensional texture sampler for the GLSL profile. + */ +class domGl_sampler1D_complexType : public domFx_sampler1D_common_complexType +{ + +protected: + /** + * Constructor + */ + domGl_sampler1D_complexType() {} + /** + * Destructor + */ + virtual ~domGl_sampler1D_complexType() {} + /** + * Copy Constructor + */ + domGl_sampler1D_complexType( const domGl_sampler1D_complexType &cpy ) : domFx_sampler1D_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_sampler1D_complexType &operator=( const domGl_sampler1D_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGl_sampler1D_complexType. + */ +class domGl_sampler1D : public daeElement, public domGl_sampler1D_complexType +{ +protected: + /** + * Constructor + */ + domGl_sampler1D() {} + /** + * Destructor + */ + virtual ~domGl_sampler1D() {} + /** + * Copy Constructor + */ + domGl_sampler1D( const domGl_sampler1D &cpy ) : daeElement(), domGl_sampler1D_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_sampler1D &operator=( const domGl_sampler1D &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler2D.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler2D.h new file mode 100644 index 000000000..798e28b3b --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler2D.h @@ -0,0 +1,91 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGl_sampler2D_h__ +#define __domGl_sampler2D_h__ + +#include +#include + +#include + +/** + * A two-dimensional texture sampler for the GLSL profile. + */ +class domGl_sampler2D_complexType : public domFx_sampler2D_common_complexType +{ + +protected: + /** + * Constructor + */ + domGl_sampler2D_complexType() {} + /** + * Destructor + */ + virtual ~domGl_sampler2D_complexType() {} + /** + * Copy Constructor + */ + domGl_sampler2D_complexType( const domGl_sampler2D_complexType &cpy ) : domFx_sampler2D_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_sampler2D_complexType &operator=( const domGl_sampler2D_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGl_sampler2D_complexType. + */ +class domGl_sampler2D : public daeElement, public domGl_sampler2D_complexType +{ +protected: + /** + * Constructor + */ + domGl_sampler2D() {} + /** + * Destructor + */ + virtual ~domGl_sampler2D() {} + /** + * Copy Constructor + */ + domGl_sampler2D( const domGl_sampler2D &cpy ) : daeElement(), domGl_sampler2D_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_sampler2D &operator=( const domGl_sampler2D &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler3D.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler3D.h new file mode 100644 index 000000000..705cefa6f --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler3D.h @@ -0,0 +1,91 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGl_sampler3D_h__ +#define __domGl_sampler3D_h__ + +#include +#include + +#include + +/** + * A three-dimensional texture sampler for the GLSL profile. + */ +class domGl_sampler3D_complexType : public domFx_sampler3D_common_complexType +{ + +protected: + /** + * Constructor + */ + domGl_sampler3D_complexType() {} + /** + * Destructor + */ + virtual ~domGl_sampler3D_complexType() {} + /** + * Copy Constructor + */ + domGl_sampler3D_complexType( const domGl_sampler3D_complexType &cpy ) : domFx_sampler3D_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_sampler3D_complexType &operator=( const domGl_sampler3D_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGl_sampler3D_complexType. + */ +class domGl_sampler3D : public daeElement, public domGl_sampler3D_complexType +{ +protected: + /** + * Constructor + */ + domGl_sampler3D() {} + /** + * Destructor + */ + virtual ~domGl_sampler3D() {} + /** + * Copy Constructor + */ + domGl_sampler3D( const domGl_sampler3D &cpy ) : daeElement(), domGl_sampler3D_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_sampler3D &operator=( const domGl_sampler3D &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerCUBE.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerCUBE.h new file mode 100644 index 000000000..a911166bd --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerCUBE.h @@ -0,0 +1,91 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGl_samplerCUBE_h__ +#define __domGl_samplerCUBE_h__ + +#include +#include + +#include + +/** + * A cube map texture sampler for the GLSL profile. + */ +class domGl_samplerCUBE_complexType : public domFx_samplerCUBE_common_complexType +{ + +protected: + /** + * Constructor + */ + domGl_samplerCUBE_complexType() {} + /** + * Destructor + */ + virtual ~domGl_samplerCUBE_complexType() {} + /** + * Copy Constructor + */ + domGl_samplerCUBE_complexType( const domGl_samplerCUBE_complexType &cpy ) : domFx_samplerCUBE_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_samplerCUBE_complexType &operator=( const domGl_samplerCUBE_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGl_samplerCUBE_complexType. + */ +class domGl_samplerCUBE : public daeElement, public domGl_samplerCUBE_complexType +{ +protected: + /** + * Constructor + */ + domGl_samplerCUBE() {} + /** + * Destructor + */ + virtual ~domGl_samplerCUBE() {} + /** + * Copy Constructor + */ + domGl_samplerCUBE( const domGl_samplerCUBE &cpy ) : daeElement(), domGl_samplerCUBE_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_samplerCUBE &operator=( const domGl_samplerCUBE &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerDEPTH.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerDEPTH.h new file mode 100644 index 000000000..522e19e34 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerDEPTH.h @@ -0,0 +1,91 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGl_samplerDEPTH_h__ +#define __domGl_samplerDEPTH_h__ + +#include +#include + +#include + +/** + * A depth texture sampler for the GLSL profile. + */ +class domGl_samplerDEPTH_complexType : public domFx_samplerDEPTH_common_complexType +{ + +protected: + /** + * Constructor + */ + domGl_samplerDEPTH_complexType() {} + /** + * Destructor + */ + virtual ~domGl_samplerDEPTH_complexType() {} + /** + * Copy Constructor + */ + domGl_samplerDEPTH_complexType( const domGl_samplerDEPTH_complexType &cpy ) : domFx_samplerDEPTH_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_samplerDEPTH_complexType &operator=( const domGl_samplerDEPTH_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGl_samplerDEPTH_complexType. + */ +class domGl_samplerDEPTH : public daeElement, public domGl_samplerDEPTH_complexType +{ +protected: + /** + * Constructor + */ + domGl_samplerDEPTH() {} + /** + * Destructor + */ + virtual ~domGl_samplerDEPTH() {} + /** + * Copy Constructor + */ + domGl_samplerDEPTH( const domGl_samplerDEPTH &cpy ) : daeElement(), domGl_samplerDEPTH_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_samplerDEPTH &operator=( const domGl_samplerDEPTH &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerRECT.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerRECT.h new file mode 100644 index 000000000..167f38055 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerRECT.h @@ -0,0 +1,91 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGl_samplerRECT_h__ +#define __domGl_samplerRECT_h__ + +#include +#include + +#include + +/** + * A two-dimensional texture sampler for the GLSL profile. + */ +class domGl_samplerRECT_complexType : public domFx_samplerRECT_common_complexType +{ + +protected: + /** + * Constructor + */ + domGl_samplerRECT_complexType() {} + /** + * Destructor + */ + virtual ~domGl_samplerRECT_complexType() {} + /** + * Copy Constructor + */ + domGl_samplerRECT_complexType( const domGl_samplerRECT_complexType &cpy ) : domFx_samplerRECT_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_samplerRECT_complexType &operator=( const domGl_samplerRECT_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGl_samplerRECT_complexType. + */ +class domGl_samplerRECT : public daeElement, public domGl_samplerRECT_complexType +{ +protected: + /** + * Constructor + */ + domGl_samplerRECT() {} + /** + * Destructor + */ + virtual ~domGl_samplerRECT() {} + /** + * Copy Constructor + */ + domGl_samplerRECT( const domGl_samplerRECT &cpy ) : daeElement(), domGl_samplerRECT_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGl_samplerRECT &operator=( const domGl_samplerRECT &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_basic_type_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_basic_type_common.h new file mode 100644 index 000000000..0a19fe9df --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_basic_type_common.h @@ -0,0 +1,2294 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_basic_type_common_h__ +#define __domGles_basic_type_common_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * A group that defines the available variable types for GLES parameters. + */ +class domGles_basic_type_common : public daeElement +{ +public: + class domBool; + + typedef daeSmartRef domBoolRef; + typedef daeTArray domBool_Array; + + class domBool : public daeElement + { + + protected: // Value + /** + * The ::domBool value of the text data of this element. + */ + ::domBool _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domBool of the value. + */ + ::domBool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domBool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool() : _value() {} + /** + * Destructor + */ + virtual ~domBool() {} + /** + * Copy Constructor + */ + domBool( const domBool &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool &operator=( const domBool &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; + }; + + class domBool2; + + typedef daeSmartRef domBool2Ref; + typedef daeTArray domBool2_Array; + + class domBool2 : public daeElement + { + + protected: // Value + /** + * The ::domBool2 value of the text data of this element. + */ + ::domBool2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domBool2 reference of the _value array. + */ + ::domBool2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domBool2 reference of the _value array. + */ + const ::domBool2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domBool2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool2() : _value() {} + /** + * Destructor + */ + virtual ~domBool2() {} + /** + * Copy Constructor + */ + domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool2 &operator=( const domBool2 &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; + }; + + class domBool3; + + typedef daeSmartRef domBool3Ref; + typedef daeTArray domBool3_Array; + + class domBool3 : public daeElement + { + + protected: // Value + /** + * The ::domBool3 value of the text data of this element. + */ + ::domBool3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domBool3 reference of the _value array. + */ + ::domBool3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domBool3 reference of the _value array. + */ + const ::domBool3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domBool3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool3() : _value() {} + /** + * Destructor + */ + virtual ~domBool3() {} + /** + * Copy Constructor + */ + domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool3 &operator=( const domBool3 &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; + }; + + class domBool4; + + typedef daeSmartRef domBool4Ref; + typedef daeTArray domBool4_Array; + + class domBool4 : public daeElement + { + + protected: // Value + /** + * The ::domBool4 value of the text data of this element. + */ + ::domBool4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domBool4 reference of the _value array. + */ + ::domBool4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domBool4 reference of the _value array. + */ + const ::domBool4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domBool4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool4() : _value() {} + /** + * Destructor + */ + virtual ~domBool4() {} + /** + * Copy Constructor + */ + domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool4 &operator=( const domBool4 &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; + }; + + class domInt; + + typedef daeSmartRef domIntRef; + typedef daeTArray domInt_Array; + + class domInt : public daeElement + { + + protected: // Value + /** + * The ::domInt value of the text data of this element. + */ + ::domInt _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domInt of the value. + */ + ::domInt getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domInt val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt() : _value() {} + /** + * Destructor + */ + virtual ~domInt() {} + /** + * Copy Constructor + */ + domInt( const domInt &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt &operator=( const domInt &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; + }; + + class domInt2; + + typedef daeSmartRef domInt2Ref; + typedef daeTArray domInt2_Array; + + class domInt2 : public daeElement + { + + protected: // Value + /** + * The ::domInt2 value of the text data of this element. + */ + ::domInt2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domInt2 reference of the _value array. + */ + ::domInt2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domInt2 reference of the _value array. + */ + const ::domInt2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domInt2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt2() : _value() {} + /** + * Destructor + */ + virtual ~domInt2() {} + /** + * Copy Constructor + */ + domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt2 &operator=( const domInt2 &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; + }; + + class domInt3; + + typedef daeSmartRef domInt3Ref; + typedef daeTArray domInt3_Array; + + class domInt3 : public daeElement + { + + protected: // Value + /** + * The ::domInt3 value of the text data of this element. + */ + ::domInt3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domInt3 reference of the _value array. + */ + ::domInt3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domInt3 reference of the _value array. + */ + const ::domInt3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domInt3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt3() : _value() {} + /** + * Destructor + */ + virtual ~domInt3() {} + /** + * Copy Constructor + */ + domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt3 &operator=( const domInt3 &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; + }; + + class domInt4; + + typedef daeSmartRef domInt4Ref; + typedef daeTArray domInt4_Array; + + class domInt4 : public daeElement + { + + protected: // Value + /** + * The ::domInt4 value of the text data of this element. + */ + ::domInt4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domInt4 reference of the _value array. + */ + ::domInt4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domInt4 reference of the _value array. + */ + const ::domInt4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domInt4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt4() : _value() {} + /** + * Destructor + */ + virtual ~domInt4() {} + /** + * Copy Constructor + */ + domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt4 &operator=( const domInt4 &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; + }; + + class domFloat; + + typedef daeSmartRef domFloatRef; + typedef daeTArray domFloat_Array; + + class domFloat : public daeElement + { + + protected: // Value + /** + * The ::domFloat value of the text data of this element. + */ + ::domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domFloat of the value. + */ + ::domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat() : _value() {} + /** + * Destructor + */ + virtual ~domFloat() {} + /** + * Copy Constructor + */ + domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat &operator=( const domFloat &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; + }; + + class domFloat2; + + typedef daeSmartRef domFloat2Ref; + typedef daeTArray domFloat2_Array; + + class domFloat2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2 value of the text data of this element. + */ + ::domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2 reference of the _value array. + */ + ::domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2 reference of the _value array. + */ + const ::domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2() {} + /** + * Copy Constructor + */ + domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2 &operator=( const domFloat2 &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; + }; + + class domFloat3; + + typedef daeSmartRef domFloat3Ref; + typedef daeTArray domFloat3_Array; + + class domFloat3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3 value of the text data of this element. + */ + ::domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3 reference of the _value array. + */ + ::domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3 reference of the _value array. + */ + const ::domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3() {} + /** + * Copy Constructor + */ + domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3 &operator=( const domFloat3 &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; + }; + + class domFloat4; + + typedef daeSmartRef domFloat4Ref; + typedef daeTArray domFloat4_Array; + + class domFloat4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4 value of the text data of this element. + */ + ::domFloat4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4 reference of the _value array. + */ + ::domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4 reference of the _value array. + */ + const ::domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4() {} + /** + * Copy Constructor + */ + domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4 &operator=( const domFloat4 &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; + }; + + class domFloat1x1; + + typedef daeSmartRef domFloat1x1Ref; + typedef daeTArray domFloat1x1_Array; + + class domFloat1x1 : public daeElement + { + + protected: // Value + /** + * The ::domFloat value of the text data of this element. + */ + ::domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a ::domFloat of the value. + */ + ::domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( ::domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x1() {} + /** + * Copy Constructor + */ + domFloat1x1( const domFloat1x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x1 &operator=( const domFloat1x1 &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; + }; + + class domFloat1x2; + + typedef daeSmartRef domFloat1x2Ref; + typedef daeTArray domFloat1x2_Array; + + class domFloat1x2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2 value of the text data of this element. + */ + ::domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2 reference of the _value array. + */ + ::domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2 reference of the _value array. + */ + const ::domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x2() {} + /** + * Copy Constructor + */ + domFloat1x2( const domFloat1x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x2 &operator=( const domFloat1x2 &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; + }; + + class domFloat1x3; + + typedef daeSmartRef domFloat1x3Ref; + typedef daeTArray domFloat1x3_Array; + + class domFloat1x3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3 value of the text data of this element. + */ + ::domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3 reference of the _value array. + */ + ::domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3 reference of the _value array. + */ + const ::domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x3() {} + /** + * Copy Constructor + */ + domFloat1x3( const domFloat1x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x3 &operator=( const domFloat1x3 &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; + }; + + class domFloat1x4; + + typedef daeSmartRef domFloat1x4Ref; + typedef daeTArray domFloat1x4_Array; + + class domFloat1x4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4 value of the text data of this element. + */ + ::domFloat4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4 reference of the _value array. + */ + ::domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4 reference of the _value array. + */ + const ::domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat1x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat1x4() {} + /** + * Copy Constructor + */ + domFloat1x4( const domFloat1x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat1x4 &operator=( const domFloat1x4 &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; + }; + + class domFloat2x1; + + typedef daeSmartRef domFloat2x1Ref; + typedef daeTArray domFloat2x1_Array; + + class domFloat2x1 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2 value of the text data of this element. + */ + ::domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2 reference of the _value array. + */ + ::domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2 reference of the _value array. + */ + const ::domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x1() {} + /** + * Copy Constructor + */ + domFloat2x1( const domFloat2x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x1 &operator=( const domFloat2x1 &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; + }; + + class domFloat2x2; + + typedef daeSmartRef domFloat2x2Ref; + typedef daeTArray domFloat2x2_Array; + + class domFloat2x2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2x2 value of the text data of this element. + */ + ::domFloat2x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2x2 reference of the _value array. + */ + ::domFloat2x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2x2 reference of the _value array. + */ + const ::domFloat2x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x2() {} + /** + * Copy Constructor + */ + domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x2 &operator=( const domFloat2x2 &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; + }; + + class domFloat2x3; + + typedef daeSmartRef domFloat2x3Ref; + typedef daeTArray domFloat2x3_Array; + + class domFloat2x3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2x3 value of the text data of this element. + */ + ::domFloat2x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2x3 reference of the _value array. + */ + ::domFloat2x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2x3 reference of the _value array. + */ + const ::domFloat2x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x3() {} + /** + * Copy Constructor + */ + domFloat2x3( const domFloat2x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x3 &operator=( const domFloat2x3 &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; + }; + + class domFloat2x4; + + typedef daeSmartRef domFloat2x4Ref; + typedef daeTArray domFloat2x4_Array; + + class domFloat2x4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat2x4 value of the text data of this element. + */ + ::domFloat2x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat2x4 reference of the _value array. + */ + ::domFloat2x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat2x4 reference of the _value array. + */ + const ::domFloat2x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat2x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x4() {} + /** + * Copy Constructor + */ + domFloat2x4( const domFloat2x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x4 &operator=( const domFloat2x4 &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; + }; + + class domFloat3x1; + + typedef daeSmartRef domFloat3x1Ref; + typedef daeTArray domFloat3x1_Array; + + class domFloat3x1 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3 value of the text data of this element. + */ + ::domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3 reference of the _value array. + */ + ::domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3 reference of the _value array. + */ + const ::domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x1() {} + /** + * Copy Constructor + */ + domFloat3x1( const domFloat3x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x1 &operator=( const domFloat3x1 &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; + }; + + class domFloat3x2; + + typedef daeSmartRef domFloat3x2Ref; + typedef daeTArray domFloat3x2_Array; + + class domFloat3x2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3x2 value of the text data of this element. + */ + ::domFloat3x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3x2 reference of the _value array. + */ + ::domFloat3x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3x2 reference of the _value array. + */ + const ::domFloat3x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x2() {} + /** + * Copy Constructor + */ + domFloat3x2( const domFloat3x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x2 &operator=( const domFloat3x2 &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; + }; + + class domFloat3x3; + + typedef daeSmartRef domFloat3x3Ref; + typedef daeTArray domFloat3x3_Array; + + class domFloat3x3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3x3 value of the text data of this element. + */ + ::domFloat3x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3x3 reference of the _value array. + */ + ::domFloat3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3x3 reference of the _value array. + */ + const ::domFloat3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x3() {} + /** + * Copy Constructor + */ + domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x3 &operator=( const domFloat3x3 &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; + }; + + class domFloat3x4; + + typedef daeSmartRef domFloat3x4Ref; + typedef daeTArray domFloat3x4_Array; + + class domFloat3x4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat3x4 value of the text data of this element. + */ + ::domFloat3x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat3x4 reference of the _value array. + */ + ::domFloat3x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat3x4 reference of the _value array. + */ + const ::domFloat3x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat3x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x4() {} + /** + * Copy Constructor + */ + domFloat3x4( const domFloat3x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x4 &operator=( const domFloat3x4 &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; + }; + + class domFloat4x1; + + typedef daeSmartRef domFloat4x1Ref; + typedef daeTArray domFloat4x1_Array; + + class domFloat4x1 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4 value of the text data of this element. + */ + ::domFloat4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4 reference of the _value array. + */ + ::domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4 reference of the _value array. + */ + const ::domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x1() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x1() {} + /** + * Copy Constructor + */ + domFloat4x1( const domFloat4x1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x1 &operator=( const domFloat4x1 &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; + }; + + class domFloat4x2; + + typedef daeSmartRef domFloat4x2Ref; + typedef daeTArray domFloat4x2_Array; + + class domFloat4x2 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4x2 value of the text data of this element. + */ + ::domFloat4x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4x2 reference of the _value array. + */ + ::domFloat4x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4x2 reference of the _value array. + */ + const ::domFloat4x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x2() {} + /** + * Copy Constructor + */ + domFloat4x2( const domFloat4x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x2 &operator=( const domFloat4x2 &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; + }; + + class domFloat4x3; + + typedef daeSmartRef domFloat4x3Ref; + typedef daeTArray domFloat4x3_Array; + + class domFloat4x3 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4x3 value of the text data of this element. + */ + ::domFloat4x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4x3 reference of the _value array. + */ + ::domFloat4x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4x3 reference of the _value array. + */ + const ::domFloat4x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x3() {} + /** + * Copy Constructor + */ + domFloat4x3( const domFloat4x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x3 &operator=( const domFloat4x3 &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; + }; + + class domFloat4x4; + + typedef daeSmartRef domFloat4x4Ref; + typedef daeTArray domFloat4x4_Array; + + class domFloat4x4 : public daeElement + { + + protected: // Value + /** + * The ::domFloat4x4 value of the text data of this element. + */ + ::domFloat4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a ::domFloat4x4 reference of the _value array. + */ + ::domFloat4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant ::domFloat4x4 reference of the _value array. + */ + const ::domFloat4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const ::domFloat4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x4() {} + /** + * Copy Constructor + */ + domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x4 &operator=( const domFloat4x4 &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; + }; + + class domEnum; + + typedef daeSmartRef domEnumRef; + typedef daeTArray domEnum_Array; + + class domEnum : public daeElement + { + + protected: // Value + /** + * The domGles_enumeration value of the text data of this element. + */ + domGles_enumeration _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGles_enumeration of the value. + */ + domGles_enumeration getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGles_enumeration val ) { _value = val; } + + protected: + /** + * Constructor + */ + domEnum() : _value() {} + /** + * Destructor + */ + virtual ~domEnum() {} + /** + * Copy Constructor + */ + domEnum( const domEnum &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domEnum &operator=( const domEnum &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: // Elements + domBoolRef elemBool; + domBool2Ref elemBool2; + domBool3Ref elemBool3; + domBool4Ref elemBool4; + domIntRef elemInt; + domInt2Ref elemInt2; + domInt3Ref elemInt3; + domInt4Ref elemInt4; + domFloatRef elemFloat; + domFloat2Ref elemFloat2; + domFloat3Ref elemFloat3; + domFloat4Ref elemFloat4; + domFloat1x1Ref elemFloat1x1; + domFloat1x2Ref elemFloat1x2; + domFloat1x3Ref elemFloat1x3; + domFloat1x4Ref elemFloat1x4; + domFloat2x1Ref elemFloat2x1; + domFloat2x2Ref elemFloat2x2; + domFloat2x3Ref elemFloat2x3; + domFloat2x4Ref elemFloat2x4; + domFloat3x1Ref elemFloat3x1; + domFloat3x2Ref elemFloat3x2; + domFloat3x3Ref elemFloat3x3; + domFloat3x4Ref elemFloat3x4; + domFloat4x1Ref elemFloat4x1; + domFloat4x2Ref elemFloat4x2; + domFloat4x3Ref elemFloat4x3; + domFloat4x4Ref elemFloat4x4; + domFx_surface_commonRef elemSurface; + domGles_texture_pipelineRef elemTexture_pipeline; + domGles_sampler_stateRef elemSampler_state; + domGles_texture_unitRef elemTexture_unit; + domEnumRef elemEnum; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the bool element. + * @return a daeSmartRef to the bool element. + */ + const domBoolRef getBool() const { return elemBool; } + /** + * Gets the bool2 element. + * @return a daeSmartRef to the bool2 element. + */ + const domBool2Ref getBool2() const { return elemBool2; } + /** + * Gets the bool3 element. + * @return a daeSmartRef to the bool3 element. + */ + const domBool3Ref getBool3() const { return elemBool3; } + /** + * Gets the bool4 element. + * @return a daeSmartRef to the bool4 element. + */ + const domBool4Ref getBool4() const { return elemBool4; } + /** + * Gets the int element. + * @return a daeSmartRef to the int element. + */ + const domIntRef getInt() const { return elemInt; } + /** + * Gets the int2 element. + * @return a daeSmartRef to the int2 element. + */ + const domInt2Ref getInt2() const { return elemInt2; } + /** + * Gets the int3 element. + * @return a daeSmartRef to the int3 element. + */ + const domInt3Ref getInt3() const { return elemInt3; } + /** + * Gets the int4 element. + * @return a daeSmartRef to the int4 element. + */ + const domInt4Ref getInt4() const { return elemInt4; } + /** + * Gets the float element. + * @return a daeSmartRef to the float element. + */ + const domFloatRef getFloat() const { return elemFloat; } + /** + * Gets the float2 element. + * @return a daeSmartRef to the float2 element. + */ + const domFloat2Ref getFloat2() const { return elemFloat2; } + /** + * Gets the float3 element. + * @return a daeSmartRef to the float3 element. + */ + const domFloat3Ref getFloat3() const { return elemFloat3; } + /** + * Gets the float4 element. + * @return a daeSmartRef to the float4 element. + */ + const domFloat4Ref getFloat4() const { return elemFloat4; } + /** + * Gets the float1x1 element. + * @return a daeSmartRef to the float1x1 element. + */ + const domFloat1x1Ref getFloat1x1() const { return elemFloat1x1; } + /** + * Gets the float1x2 element. + * @return a daeSmartRef to the float1x2 element. + */ + const domFloat1x2Ref getFloat1x2() const { return elemFloat1x2; } + /** + * Gets the float1x3 element. + * @return a daeSmartRef to the float1x3 element. + */ + const domFloat1x3Ref getFloat1x3() const { return elemFloat1x3; } + /** + * Gets the float1x4 element. + * @return a daeSmartRef to the float1x4 element. + */ + const domFloat1x4Ref getFloat1x4() const { return elemFloat1x4; } + /** + * Gets the float2x1 element. + * @return a daeSmartRef to the float2x1 element. + */ + const domFloat2x1Ref getFloat2x1() const { return elemFloat2x1; } + /** + * Gets the float2x2 element. + * @return a daeSmartRef to the float2x2 element. + */ + const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } + /** + * Gets the float2x3 element. + * @return a daeSmartRef to the float2x3 element. + */ + const domFloat2x3Ref getFloat2x3() const { return elemFloat2x3; } + /** + * Gets the float2x4 element. + * @return a daeSmartRef to the float2x4 element. + */ + const domFloat2x4Ref getFloat2x4() const { return elemFloat2x4; } + /** + * Gets the float3x1 element. + * @return a daeSmartRef to the float3x1 element. + */ + const domFloat3x1Ref getFloat3x1() const { return elemFloat3x1; } + /** + * Gets the float3x2 element. + * @return a daeSmartRef to the float3x2 element. + */ + const domFloat3x2Ref getFloat3x2() const { return elemFloat3x2; } + /** + * Gets the float3x3 element. + * @return a daeSmartRef to the float3x3 element. + */ + const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } + /** + * Gets the float3x4 element. + * @return a daeSmartRef to the float3x4 element. + */ + const domFloat3x4Ref getFloat3x4() const { return elemFloat3x4; } + /** + * Gets the float4x1 element. + * @return a daeSmartRef to the float4x1 element. + */ + const domFloat4x1Ref getFloat4x1() const { return elemFloat4x1; } + /** + * Gets the float4x2 element. + * @return a daeSmartRef to the float4x2 element. + */ + const domFloat4x2Ref getFloat4x2() const { return elemFloat4x2; } + /** + * Gets the float4x3 element. + * @return a daeSmartRef to the float4x3 element. + */ + const domFloat4x3Ref getFloat4x3() const { return elemFloat4x3; } + /** + * Gets the float4x4 element. + * @return a daeSmartRef to the float4x4 element. + */ + const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } + /** + * Gets the surface element. + * @return a daeSmartRef to the surface element. + */ + const domFx_surface_commonRef getSurface() const { return elemSurface; } + /** + * Gets the texture_pipeline element. + * @return a daeSmartRef to the texture_pipeline element. + */ + const domGles_texture_pipelineRef getTexture_pipeline() const { return elemTexture_pipeline; } + /** + * Gets the sampler_state element. + * @return a daeSmartRef to the sampler_state element. + */ + const domGles_sampler_stateRef getSampler_state() const { return elemSampler_state; } + /** + * Gets the texture_unit element. + * @return a daeSmartRef to the texture_unit element. + */ + const domGles_texture_unitRef getTexture_unit() const { return elemTexture_unit; } + /** + * Gets the enum element. + * @return a daeSmartRef to the enum element. + */ + const domEnumRef getEnum() const { return elemEnum; } + /** + * 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 + */ + domGles_basic_type_common() : elemBool(), elemBool2(), elemBool3(), elemBool4(), elemInt(), elemInt2(), elemInt3(), elemInt4(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat1x1(), elemFloat1x2(), elemFloat1x3(), elemFloat1x4(), elemFloat2x1(), elemFloat2x2(), elemFloat2x3(), elemFloat2x4(), elemFloat3x1(), elemFloat3x2(), elemFloat3x3(), elemFloat3x4(), elemFloat4x1(), elemFloat4x2(), elemFloat4x3(), elemFloat4x4(), elemSurface(), elemTexture_pipeline(), elemSampler_state(), elemTexture_unit(), elemEnum() {} + /** + * Destructor + */ + virtual ~domGles_basic_type_common() {} + /** + * Copy Constructor + */ + domGles_basic_type_common( const domGles_basic_type_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_basic_type_common &operator=( const domGles_basic_type_common &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_newparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_newparam.h new file mode 100644 index 000000000..91cd7787a --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_newparam.h @@ -0,0 +1,293 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_newparam_h__ +#define __domGles_newparam_h__ + +#include +#include + +#include +#include + +/** + * Create a new, named param object in the GLES Runtime, assign it a type, + * an initial value, and additional attributes at declaration time. + */ +class domGles_newparam_complexType +{ +public: + class domSemantic; + + typedef daeSmartRef domSemanticRef; + typedef daeTArray domSemantic_Array; + +/** + * The semantic element allows you to specify a semantic for this new param. + */ + class domSemantic : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSemantic() : _value() {} + /** + * Destructor + */ + virtual ~domSemantic() {} + /** + * Copy Constructor + */ + domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSemantic &operator=( const domSemantic &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; + }; + + class domModifier; + + typedef daeSmartRef domModifierRef; + typedef daeTArray domModifier_Array; + +/** + * The modifier element allows you to specify a modifier for this new param. + */ + class domModifier : public daeElement + { + + protected: // Value + /** + * The domFx_modifier_enum_common value of the text data of this element. + */ + domFx_modifier_enum_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_modifier_enum_common of the value. + */ + domFx_modifier_enum_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_modifier_enum_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domModifier() : _value() {} + /** + * Destructor + */ + virtual ~domModifier() {} + /** + * Copy Constructor + */ + domModifier( const domModifier &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domModifier &operator=( const domModifier &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: // Attribute +/** + * 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. + */ + xsNCName attrSid; + +protected: // Elements +/** + * The annotate element allows you to specify an annotation for this new param. + * @see domAnnotate + */ + domFx_annotate_common_Array elemAnnotate_array; +/** + * The semantic element allows you to specify a semantic for this new param. + * @see domSemantic + */ + domSemanticRef elemSemantic; +/** + * The modifier element allows you to specify a modifier for this new param. + * @see domModifier + */ + domModifierRef elemModifier; + domGles_basic_type_commonRef elemGles_basic_type_common; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * 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 semantic element. + * @return a daeSmartRef to the semantic element. + */ + const domSemanticRef getSemantic() const { return elemSemantic; } + /** + * Gets the modifier element. + * @return a daeSmartRef to the modifier element. + */ + const domModifierRef getModifier() const { return elemModifier; } + /** + * Gets the gles_basic_type_common element. + * @return a daeSmartRef to the gles_basic_type_common element. + */ + const domGles_basic_type_commonRef getGles_basic_type_common() const { return elemGles_basic_type_common; } +protected: + /** + * Constructor + */ + domGles_newparam_complexType() : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemGles_basic_type_common() {} + /** + * Destructor + */ + virtual ~domGles_newparam_complexType() {} + /** + * Copy Constructor + */ + domGles_newparam_complexType( const domGles_newparam_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_newparam_complexType &operator=( const domGles_newparam_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_newparam_complexType. + */ +class domGles_newparam : public daeElement, public domGles_newparam_complexType +{ +protected: + /** + * Constructor + */ + domGles_newparam() {} + /** + * Destructor + */ + virtual ~domGles_newparam() {} + /** + * Copy Constructor + */ + domGles_newparam( const domGles_newparam &cpy ) : daeElement(), domGles_newparam_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_newparam &operator=( const domGles_newparam &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_pipeline_settings.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_pipeline_settings.h new file mode 100644 index 000000000..c54e3bdf9 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_pipeline_settings.h @@ -0,0 +1,6891 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_pipeline_settings_h__ +#define __domGles_pipeline_settings_h__ + +#include +#include + +#include + +/** + * A group that contains the renderstates available for the GLES profile. + */ +class domGles_pipeline_settings : public daeElement +{ +public: + class domAlpha_func; + + typedef daeSmartRef domAlpha_funcRef; + typedef daeTArray domAlpha_func_Array; + + class domAlpha_func : public daeElement + { + public: + class domFunc; + + typedef daeSmartRef domFuncRef; + typedef daeTArray domFunc_Array; + + class domFunc : public daeElement + { + protected: // Attributes + domGl_func_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_func_type of the value attribute. + */ + domGl_func_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_func_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFunc() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFunc() {} + /** + * Copy Constructor + */ + domFunc( const domFunc &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFunc &operator=( const domFunc &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; + }; + + class domValue; + + typedef daeSmartRef domValueRef; + typedef daeTArray domValue_Array; + + class domValue : public daeElement + { + protected: // Attributes + domGl_alpha_value_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_alpha_value_type of the value attribute. + */ + domGl_alpha_value_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_alpha_value_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domValue() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domValue() {} + /** + * Copy Constructor + */ + domValue( const domValue &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domValue &operator=( const domValue &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: // Elements + domFuncRef elemFunc; + domValueRef elemValue; + + public: //Accessors and Mutators + /** + * Gets the func element. + * @return a daeSmartRef to the func element. + */ + const domFuncRef getFunc() const { return elemFunc; } + /** + * Gets the value element. + * @return a daeSmartRef to the value element. + */ + const domValueRef getValue() const { return elemValue; } + protected: + /** + * Constructor + */ + domAlpha_func() : elemFunc(), elemValue() {} + /** + * Destructor + */ + virtual ~domAlpha_func() {} + /** + * Copy Constructor + */ + domAlpha_func( const domAlpha_func &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAlpha_func &operator=( const domAlpha_func &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; + }; + + class domBlend_func; + + typedef daeSmartRef domBlend_funcRef; + typedef daeTArray domBlend_func_Array; + + class domBlend_func : public daeElement + { + public: + class domSrc; + + typedef daeSmartRef domSrcRef; + typedef daeTArray domSrc_Array; + + class domSrc : public daeElement + { + protected: // Attributes + domGl_blend_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_type of the value attribute. + */ + domGl_blend_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSrc() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSrc() {} + /** + * Copy Constructor + */ + domSrc( const domSrc &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSrc &operator=( const domSrc &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; + }; + + class domDest; + + typedef daeSmartRef domDestRef; + typedef daeTArray domDest_Array; + + class domDest : public daeElement + { + protected: // Attributes + domGl_blend_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_blend_type of the value attribute. + */ + domGl_blend_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_blend_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDest() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDest() {} + /** + * Copy Constructor + */ + domDest( const domDest &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDest &operator=( const domDest &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: // Elements + domSrcRef elemSrc; + domDestRef elemDest; + + public: //Accessors and Mutators + /** + * Gets the src element. + * @return a daeSmartRef to the src element. + */ + const domSrcRef getSrc() const { return elemSrc; } + /** + * Gets the dest element. + * @return a daeSmartRef to the dest element. + */ + const domDestRef getDest() const { return elemDest; } + protected: + /** + * Constructor + */ + domBlend_func() : elemSrc(), elemDest() {} + /** + * Destructor + */ + virtual ~domBlend_func() {} + /** + * Copy Constructor + */ + domBlend_func( const domBlend_func &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBlend_func &operator=( const domBlend_func &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; + }; + + class domClear_color; + + typedef daeSmartRef domClear_colorRef; + typedef daeTArray domClear_color_Array; + + class domClear_color : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domClear_color() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domClear_color() {} + /** + * Copy Constructor + */ + domClear_color( const domClear_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClear_color &operator=( const domClear_color &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; + }; + + class domClear_stencil; + + typedef daeSmartRef domClear_stencilRef; + typedef daeTArray domClear_stencil_Array; + + class domClear_stencil : public daeElement + { + protected: // Attributes + domInt attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domInt of the value attribute. + */ + domInt getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domInt atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domClear_stencil() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domClear_stencil() {} + /** + * Copy Constructor + */ + domClear_stencil( const domClear_stencil &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClear_stencil &operator=( const domClear_stencil &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; + }; + + class domClear_depth; + + typedef daeSmartRef domClear_depthRef; + typedef daeTArray domClear_depth_Array; + + class domClear_depth : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domClear_depth() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domClear_depth() {} + /** + * Copy Constructor + */ + domClear_depth( const domClear_depth &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClear_depth &operator=( const domClear_depth &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; + }; + + class domClip_plane; + + typedef daeSmartRef domClip_planeRef; + typedef daeTArray domClip_plane_Array; + + class domClip_plane : public daeElement + { + protected: // Attributes + domBool4 attrValue; + xsNCName attrParam; + domGLES_MAX_CLIP_PLANES_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domBool4 reference of the value array attribute. + */ + domBool4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domBool4 reference of the value array attribute. + */ + const domBool4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domBool4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_CLIP_PLANES_index of the index attribute. + */ + domGLES_MAX_CLIP_PLANES_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_CLIP_PLANES_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domClip_plane() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domClip_plane() {} + /** + * Copy Constructor + */ + domClip_plane( const domClip_plane &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClip_plane &operator=( const domClip_plane &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; + }; + + class domColor_mask; + + typedef daeSmartRef domColor_maskRef; + typedef daeTArray domColor_mask_Array; + + class domColor_mask : public daeElement + { + protected: // Attributes + domBool4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domBool4 reference of the value array attribute. + */ + domBool4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domBool4 reference of the value array attribute. + */ + const domBool4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domBool4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domColor_mask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domColor_mask() {} + /** + * Copy Constructor + */ + domColor_mask( const domColor_mask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domColor_mask &operator=( const domColor_mask &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; + }; + + class domCull_face; + + typedef daeSmartRef domCull_faceRef; + typedef daeTArray domCull_face_Array; + + class domCull_face : public daeElement + { + protected: // Attributes + domGl_face_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_face_type of the value attribute. + */ + domGl_face_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_face_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domCull_face() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domCull_face() {} + /** + * Copy Constructor + */ + domCull_face( const domCull_face &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCull_face &operator=( const domCull_face &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; + }; + + class domDepth_func; + + typedef daeSmartRef domDepth_funcRef; + typedef daeTArray domDepth_func_Array; + + class domDepth_func : public daeElement + { + protected: // Attributes + domGl_func_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_func_type of the value attribute. + */ + domGl_func_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_func_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_func() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_func() {} + /** + * Copy Constructor + */ + domDepth_func( const domDepth_func &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_func &operator=( const domDepth_func &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; + }; + + class domDepth_mask; + + typedef daeSmartRef domDepth_maskRef; + typedef daeTArray domDepth_mask_Array; + + class domDepth_mask : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_mask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_mask() {} + /** + * Copy Constructor + */ + domDepth_mask( const domDepth_mask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_mask &operator=( const domDepth_mask &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; + }; + + class domDepth_range; + + typedef daeSmartRef domDepth_rangeRef; + typedef daeTArray domDepth_range_Array; + + class domDepth_range : public daeElement + { + protected: // Attributes + domFloat2 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat2 reference of the value array attribute. + */ + domFloat2 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat2 reference of the value array attribute. + */ + const domFloat2 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat2 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_range() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_range() {} + /** + * Copy Constructor + */ + domDepth_range( const domDepth_range &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_range &operator=( const domDepth_range &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; + }; + + class domFog_color; + + typedef daeSmartRef domFog_colorRef; + typedef daeTArray domFog_color_Array; + + class domFog_color : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_color() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_color() {} + /** + * Copy Constructor + */ + domFog_color( const domFog_color &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_color &operator=( const domFog_color &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; + }; + + class domFog_density; + + typedef daeSmartRef domFog_densityRef; + typedef daeTArray domFog_density_Array; + + class domFog_density : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_density() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_density() {} + /** + * Copy Constructor + */ + domFog_density( const domFog_density &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_density &operator=( const domFog_density &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; + }; + + class domFog_mode; + + typedef daeSmartRef domFog_modeRef; + typedef daeTArray domFog_mode_Array; + + class domFog_mode : public daeElement + { + protected: // Attributes + domGl_fog_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_fog_type of the value attribute. + */ + domGl_fog_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_fog_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_mode() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_mode() {} + /** + * Copy Constructor + */ + domFog_mode( const domFog_mode &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_mode &operator=( const domFog_mode &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; + }; + + class domFog_start; + + typedef daeSmartRef domFog_startRef; + typedef daeTArray domFog_start_Array; + + class domFog_start : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_start() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_start() {} + /** + * Copy Constructor + */ + domFog_start( const domFog_start &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_start &operator=( const domFog_start &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; + }; + + class domFog_end; + + typedef daeSmartRef domFog_endRef; + typedef daeTArray domFog_end_Array; + + class domFog_end : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_end() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_end() {} + /** + * Copy Constructor + */ + domFog_end( const domFog_end &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_end &operator=( const domFog_end &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; + }; + + class domFront_face; + + typedef daeSmartRef domFront_faceRef; + typedef daeTArray domFront_face_Array; + + class domFront_face : public daeElement + { + protected: // Attributes + domGl_front_face_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_front_face_type of the value attribute. + */ + domGl_front_face_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_front_face_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFront_face() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFront_face() {} + /** + * Copy Constructor + */ + domFront_face( const domFront_face &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFront_face &operator=( const domFront_face &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; + }; + + class domTexture_pipeline; + + typedef daeSmartRef domTexture_pipelineRef; + typedef daeTArray domTexture_pipeline_Array; + + class domTexture_pipeline : public daeElement + { + protected: // Attribute + xsNCName attrParam; + + protected: // Element + domGles_texture_pipelineRef elemValue; + + public: //Accessors and Mutators + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the value element. + * @return a daeSmartRef to the value element. + */ + const domGles_texture_pipelineRef getValue() const { return elemValue; } + protected: + /** + * Constructor + */ + domTexture_pipeline() : attrParam(), elemValue() {} + /** + * Destructor + */ + virtual ~domTexture_pipeline() {} + /** + * Copy Constructor + */ + domTexture_pipeline( const domTexture_pipeline &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture_pipeline &operator=( const domTexture_pipeline &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; + }; + + class domLogic_op; + + typedef daeSmartRef domLogic_opRef; + typedef daeTArray domLogic_op_Array; + + class domLogic_op : public daeElement + { + protected: // Attributes + domGl_logic_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_logic_op_type of the value attribute. + */ + domGl_logic_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_logic_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLogic_op() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLogic_op() {} + /** + * Copy Constructor + */ + domLogic_op( const domLogic_op &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLogic_op &operator=( const domLogic_op &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; + }; + + class domLight_ambient; + + typedef daeSmartRef domLight_ambientRef; + typedef daeTArray domLight_ambient_Array; + + class domLight_ambient : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_ambient() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_ambient() {} + /** + * Copy Constructor + */ + domLight_ambient( const domLight_ambient &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_ambient &operator=( const domLight_ambient &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; + }; + + class domLight_diffuse; + + typedef daeSmartRef domLight_diffuseRef; + typedef daeTArray domLight_diffuse_Array; + + class domLight_diffuse : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_diffuse() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_diffuse() {} + /** + * Copy Constructor + */ + domLight_diffuse( const domLight_diffuse &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_diffuse &operator=( const domLight_diffuse &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; + }; + + class domLight_specular; + + typedef daeSmartRef domLight_specularRef; + typedef daeTArray domLight_specular_Array; + + class domLight_specular : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_specular() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_specular() {} + /** + * Copy Constructor + */ + domLight_specular( const domLight_specular &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_specular &operator=( const domLight_specular &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; + }; + + class domLight_position; + + typedef daeSmartRef domLight_positionRef; + typedef daeTArray domLight_position_Array; + + class domLight_position : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_position() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_position() {} + /** + * Copy Constructor + */ + domLight_position( const domLight_position &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_position &operator=( const domLight_position &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; + }; + + class domLight_constant_attenuation; + + typedef daeSmartRef domLight_constant_attenuationRef; + typedef daeTArray domLight_constant_attenuation_Array; + + class domLight_constant_attenuation : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_constant_attenuation() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_constant_attenuation() {} + /** + * Copy Constructor + */ + domLight_constant_attenuation( const domLight_constant_attenuation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_constant_attenuation &operator=( const domLight_constant_attenuation &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; + }; + + class domLight_linear_attenutation; + + typedef daeSmartRef domLight_linear_attenutationRef; + typedef daeTArray domLight_linear_attenutation_Array; + + class domLight_linear_attenutation : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_linear_attenutation() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_linear_attenutation() {} + /** + * Copy Constructor + */ + domLight_linear_attenutation( const domLight_linear_attenutation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_linear_attenutation &operator=( const domLight_linear_attenutation &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; + }; + + class domLight_quadratic_attenuation; + + typedef daeSmartRef domLight_quadratic_attenuationRef; + typedef daeTArray domLight_quadratic_attenuation_Array; + + class domLight_quadratic_attenuation : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_quadratic_attenuation() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_quadratic_attenuation() {} + /** + * Copy Constructor + */ + domLight_quadratic_attenuation( const domLight_quadratic_attenuation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_quadratic_attenuation &operator=( const domLight_quadratic_attenuation &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; + }; + + class domLight_spot_cutoff; + + typedef daeSmartRef domLight_spot_cutoffRef; + typedef daeTArray domLight_spot_cutoff_Array; + + class domLight_spot_cutoff : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_spot_cutoff() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_spot_cutoff() {} + /** + * Copy Constructor + */ + domLight_spot_cutoff( const domLight_spot_cutoff &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_spot_cutoff &operator=( const domLight_spot_cutoff &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; + }; + + class domLight_spot_direction; + + typedef daeSmartRef domLight_spot_directionRef; + typedef daeTArray domLight_spot_direction_Array; + + class domLight_spot_direction : public daeElement + { + protected: // Attributes + domFloat3 attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat3 reference of the value array attribute. + */ + domFloat3 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat3 reference of the value array attribute. + */ + const domFloat3 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat3 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_spot_direction() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_spot_direction() {} + /** + * Copy Constructor + */ + domLight_spot_direction( const domLight_spot_direction &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_spot_direction &operator=( const domLight_spot_direction &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; + }; + + class domLight_spot_exponent; + + typedef daeSmartRef domLight_spot_exponentRef; + typedef daeTArray domLight_spot_exponent_Array; + + class domLight_spot_exponent : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_spot_exponent() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_spot_exponent() {} + /** + * Copy Constructor + */ + domLight_spot_exponent( const domLight_spot_exponent &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_spot_exponent &operator=( const domLight_spot_exponent &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; + }; + + class domLight_model_ambient; + + typedef daeSmartRef domLight_model_ambientRef; + typedef daeTArray domLight_model_ambient_Array; + + class domLight_model_ambient : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLight_model_ambient() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLight_model_ambient() {} + /** + * Copy Constructor + */ + domLight_model_ambient( const domLight_model_ambient &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_model_ambient &operator=( const domLight_model_ambient &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; + }; + + class domLine_width; + + typedef daeSmartRef domLine_widthRef; + typedef daeTArray domLine_width_Array; + + class domLine_width : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLine_width() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLine_width() {} + /** + * Copy Constructor + */ + domLine_width( const domLine_width &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLine_width &operator=( const domLine_width &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; + }; + + class domMaterial_ambient; + + typedef daeSmartRef domMaterial_ambientRef; + typedef daeTArray domMaterial_ambient_Array; + + class domMaterial_ambient : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_ambient() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_ambient() {} + /** + * Copy Constructor + */ + domMaterial_ambient( const domMaterial_ambient &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_ambient &operator=( const domMaterial_ambient &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; + }; + + class domMaterial_diffuse; + + typedef daeSmartRef domMaterial_diffuseRef; + typedef daeTArray domMaterial_diffuse_Array; + + class domMaterial_diffuse : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_diffuse() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_diffuse() {} + /** + * Copy Constructor + */ + domMaterial_diffuse( const domMaterial_diffuse &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_diffuse &operator=( const domMaterial_diffuse &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; + }; + + class domMaterial_emission; + + typedef daeSmartRef domMaterial_emissionRef; + typedef daeTArray domMaterial_emission_Array; + + class domMaterial_emission : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_emission() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_emission() {} + /** + * Copy Constructor + */ + domMaterial_emission( const domMaterial_emission &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_emission &operator=( const domMaterial_emission &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; + }; + + class domMaterial_shininess; + + typedef daeSmartRef domMaterial_shininessRef; + typedef daeTArray domMaterial_shininess_Array; + + class domMaterial_shininess : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_shininess() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_shininess() {} + /** + * Copy Constructor + */ + domMaterial_shininess( const domMaterial_shininess &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_shininess &operator=( const domMaterial_shininess &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; + }; + + class domMaterial_specular; + + typedef daeSmartRef domMaterial_specularRef; + typedef daeTArray domMaterial_specular_Array; + + class domMaterial_specular : public daeElement + { + protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMaterial_specular() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMaterial_specular() {} + /** + * Copy Constructor + */ + domMaterial_specular( const domMaterial_specular &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial_specular &operator=( const domMaterial_specular &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; + }; + + class domModel_view_matrix; + + typedef daeSmartRef domModel_view_matrixRef; + typedef daeTArray domModel_view_matrix_Array; + + class domModel_view_matrix : public daeElement + { + protected: // Attributes + domFloat4x4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4x4 reference of the value array attribute. + */ + domFloat4x4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4x4 reference of the value array attribute. + */ + const domFloat4x4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4x4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domModel_view_matrix() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domModel_view_matrix() {} + /** + * Copy Constructor + */ + domModel_view_matrix( const domModel_view_matrix &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domModel_view_matrix &operator=( const domModel_view_matrix &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; + }; + + class domPoint_distance_attenuation; + + typedef daeSmartRef domPoint_distance_attenuationRef; + typedef daeTArray domPoint_distance_attenuation_Array; + + class domPoint_distance_attenuation : public daeElement + { + protected: // Attributes + domFloat3 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat3 reference of the value array attribute. + */ + domFloat3 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat3 reference of the value array attribute. + */ + const domFloat3 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat3 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_distance_attenuation() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_distance_attenuation() {} + /** + * Copy Constructor + */ + domPoint_distance_attenuation( const domPoint_distance_attenuation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_distance_attenuation &operator=( const domPoint_distance_attenuation &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; + }; + + class domPoint_fade_threshold_size; + + typedef daeSmartRef domPoint_fade_threshold_sizeRef; + typedef daeTArray domPoint_fade_threshold_size_Array; + + class domPoint_fade_threshold_size : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_fade_threshold_size() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_fade_threshold_size() {} + /** + * Copy Constructor + */ + domPoint_fade_threshold_size( const domPoint_fade_threshold_size &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_fade_threshold_size &operator=( const domPoint_fade_threshold_size &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; + }; + + class domPoint_size; + + typedef daeSmartRef domPoint_sizeRef; + typedef daeTArray domPoint_size_Array; + + class domPoint_size : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_size() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_size() {} + /** + * Copy Constructor + */ + domPoint_size( const domPoint_size &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_size &operator=( const domPoint_size &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; + }; + + class domPoint_size_min; + + typedef daeSmartRef domPoint_size_minRef; + typedef daeTArray domPoint_size_min_Array; + + class domPoint_size_min : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_size_min() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_size_min() {} + /** + * Copy Constructor + */ + domPoint_size_min( const domPoint_size_min &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_size_min &operator=( const domPoint_size_min &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; + }; + + class domPoint_size_max; + + typedef daeSmartRef domPoint_size_maxRef; + typedef daeTArray domPoint_size_max_Array; + + class domPoint_size_max : public daeElement + { + protected: // Attributes + domFloat attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domFloat of the value attribute. + */ + domFloat getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domFloat atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_size_max() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_size_max() {} + /** + * Copy Constructor + */ + domPoint_size_max( const domPoint_size_max &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_size_max &operator=( const domPoint_size_max &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; + }; + + class domPolygon_offset; + + typedef daeSmartRef domPolygon_offsetRef; + typedef daeTArray domPolygon_offset_Array; + + class domPolygon_offset : public daeElement + { + protected: // Attributes + domFloat2 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat2 reference of the value array attribute. + */ + domFloat2 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat2 reference of the value array attribute. + */ + const domFloat2 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat2 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPolygon_offset() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPolygon_offset() {} + /** + * Copy Constructor + */ + domPolygon_offset( const domPolygon_offset &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygon_offset &operator=( const domPolygon_offset &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; + }; + + class domProjection_matrix; + + typedef daeSmartRef domProjection_matrixRef; + typedef daeTArray domProjection_matrix_Array; + + class domProjection_matrix : public daeElement + { + protected: // Attributes + domFloat4x4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4x4 reference of the value array attribute. + */ + domFloat4x4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4x4 reference of the value array attribute. + */ + const domFloat4x4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4x4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domProjection_matrix() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domProjection_matrix() {} + /** + * Copy Constructor + */ + domProjection_matrix( const domProjection_matrix &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domProjection_matrix &operator=( const domProjection_matrix &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; + }; + + class domScissor; + + typedef daeSmartRef domScissorRef; + typedef daeTArray domScissor_Array; + + class domScissor : public daeElement + { + protected: // Attributes + domInt4 attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domInt4 reference of the value array attribute. + */ + domInt4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domInt4 reference of the value array attribute. + */ + const domInt4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domInt4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domScissor() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domScissor() {} + /** + * Copy Constructor + */ + domScissor( const domScissor &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domScissor &operator=( const domScissor &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; + }; + + class domShade_model; + + typedef daeSmartRef domShade_modelRef; + typedef daeTArray domShade_model_Array; + + class domShade_model : public daeElement + { + protected: // Attributes + domGl_shade_model_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_shade_model_type of the value attribute. + */ + domGl_shade_model_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_shade_model_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domShade_model() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domShade_model() {} + /** + * Copy Constructor + */ + domShade_model( const domShade_model &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domShade_model &operator=( const domShade_model &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; + }; + + class domStencil_func; + + typedef daeSmartRef domStencil_funcRef; + typedef daeTArray domStencil_func_Array; + + class domStencil_func : public daeElement + { + public: + class domFunc; + + typedef daeSmartRef domFuncRef; + typedef daeTArray domFunc_Array; + + class domFunc : public daeElement + { + protected: // Attributes + domGl_func_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGl_func_type of the value attribute. + */ + domGl_func_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGl_func_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFunc() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFunc() {} + /** + * Copy Constructor + */ + domFunc( const domFunc &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFunc &operator=( const domFunc &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; + }; + + class domRef; + + typedef daeSmartRef domRefRef; + typedef daeTArray domRef_Array; + + class domRef : public daeElement + { + protected: // Attributes + xsUnsignedByte attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a xsUnsignedByte of the value attribute. + */ + xsUnsignedByte getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( xsUnsignedByte atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domRef() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domRef() {} + /** + * Copy Constructor + */ + domRef( const domRef &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRef &operator=( const domRef &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; + }; + + class domMask; + + typedef daeSmartRef domMaskRef; + typedef daeTArray domMask_Array; + + class domMask : public daeElement + { + protected: // Attributes + xsUnsignedByte attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a xsUnsignedByte of the value attribute. + */ + xsUnsignedByte getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( xsUnsignedByte atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMask() {} + /** + * Copy Constructor + */ + domMask( const domMask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMask &operator=( const domMask &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: // Elements + domFuncRef elemFunc; + domRefRef elemRef; + domMaskRef elemMask; + + public: //Accessors and Mutators + /** + * Gets the func element. + * @return a daeSmartRef to the func element. + */ + const domFuncRef getFunc() const { return elemFunc; } + /** + * Gets the ref element. + * @return a daeSmartRef to the ref element. + */ + const domRefRef getRef() const { return elemRef; } + /** + * Gets the mask element. + * @return a daeSmartRef to the mask element. + */ + const domMaskRef getMask() const { return elemMask; } + protected: + /** + * Constructor + */ + domStencil_func() : elemFunc(), elemRef(), elemMask() {} + /** + * Destructor + */ + virtual ~domStencil_func() {} + /** + * Copy Constructor + */ + domStencil_func( const domStencil_func &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_func &operator=( const domStencil_func &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; + }; + + class domStencil_mask; + + typedef daeSmartRef domStencil_maskRef; + typedef daeTArray domStencil_mask_Array; + + class domStencil_mask : public daeElement + { + protected: // Attributes + domInt attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domInt of the value attribute. + */ + domInt getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domInt atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domStencil_mask() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domStencil_mask() {} + /** + * Copy Constructor + */ + domStencil_mask( const domStencil_mask &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_mask &operator=( const domStencil_mask &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; + }; + + class domStencil_op; + + typedef daeSmartRef domStencil_opRef; + typedef daeTArray domStencil_op_Array; + + class domStencil_op : public daeElement + { + public: + class domFail; + + typedef daeSmartRef domFailRef; + typedef daeTArray domFail_Array; + + class domFail : public daeElement + { + protected: // Attributes + domGles_stencil_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGles_stencil_op_type of the value attribute. + */ + domGles_stencil_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGles_stencil_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFail() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFail() {} + /** + * Copy Constructor + */ + domFail( const domFail &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFail &operator=( const domFail &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; + }; + + class domZfail; + + typedef daeSmartRef domZfailRef; + typedef daeTArray domZfail_Array; + + class domZfail : public daeElement + { + protected: // Attributes + domGles_stencil_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGles_stencil_op_type of the value attribute. + */ + domGles_stencil_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGles_stencil_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domZfail() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domZfail() {} + /** + * Copy Constructor + */ + domZfail( const domZfail &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domZfail &operator=( const domZfail &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; + }; + + class domZpass; + + typedef daeSmartRef domZpassRef; + typedef daeTArray domZpass_Array; + + class domZpass : public daeElement + { + protected: // Attributes + domGles_stencil_op_type attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domGles_stencil_op_type of the value attribute. + */ + domGles_stencil_op_type getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domGles_stencil_op_type atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domZpass() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domZpass() {} + /** + * Copy Constructor + */ + domZpass( const domZpass &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domZpass &operator=( const domZpass &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: // Elements + domFailRef elemFail; + domZfailRef elemZfail; + domZpassRef elemZpass; + + public: //Accessors and Mutators + /** + * Gets the fail element. + * @return a daeSmartRef to the fail element. + */ + const domFailRef getFail() const { return elemFail; } + /** + * Gets the zfail element. + * @return a daeSmartRef to the zfail element. + */ + const domZfailRef getZfail() const { return elemZfail; } + /** + * Gets the zpass element. + * @return a daeSmartRef to the zpass element. + */ + const domZpassRef getZpass() const { return elemZpass; } + protected: + /** + * Constructor + */ + domStencil_op() : elemFail(), elemZfail(), elemZpass() {} + /** + * Destructor + */ + virtual ~domStencil_op() {} + /** + * Copy Constructor + */ + domStencil_op( const domStencil_op &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_op &operator=( const domStencil_op &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; + }; + + class domAlpha_test_enable; + + typedef daeSmartRef domAlpha_test_enableRef; + typedef daeTArray domAlpha_test_enable_Array; + + class domAlpha_test_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domAlpha_test_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domAlpha_test_enable() {} + /** + * Copy Constructor + */ + domAlpha_test_enable( const domAlpha_test_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAlpha_test_enable &operator=( const domAlpha_test_enable &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; + }; + + class domBlend_enable; + + typedef daeSmartRef domBlend_enableRef; + typedef daeTArray domBlend_enable_Array; + + class domBlend_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domBlend_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domBlend_enable() {} + /** + * Copy Constructor + */ + domBlend_enable( const domBlend_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBlend_enable &operator=( const domBlend_enable &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; + }; + + class domClip_plane_enable; + + typedef daeSmartRef domClip_plane_enableRef; + typedef daeTArray domClip_plane_enable_Array; + + class domClip_plane_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGLES_MAX_CLIP_PLANES_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_CLIP_PLANES_index of the index attribute. + */ + domGLES_MAX_CLIP_PLANES_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_CLIP_PLANES_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domClip_plane_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domClip_plane_enable() {} + /** + * Copy Constructor + */ + domClip_plane_enable( const domClip_plane_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domClip_plane_enable &operator=( const domClip_plane_enable &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; + }; + + class domColor_logic_op_enable; + + typedef daeSmartRef domColor_logic_op_enableRef; + typedef daeTArray domColor_logic_op_enable_Array; + + class domColor_logic_op_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domColor_logic_op_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domColor_logic_op_enable() {} + /** + * Copy Constructor + */ + domColor_logic_op_enable( const domColor_logic_op_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domColor_logic_op_enable &operator=( const domColor_logic_op_enable &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; + }; + + class domColor_material_enable; + + typedef daeSmartRef domColor_material_enableRef; + typedef daeTArray domColor_material_enable_Array; + + class domColor_material_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domColor_material_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domColor_material_enable() {} + /** + * Copy Constructor + */ + domColor_material_enable( const domColor_material_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domColor_material_enable &operator=( const domColor_material_enable &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; + }; + + class domCull_face_enable; + + typedef daeSmartRef domCull_face_enableRef; + typedef daeTArray domCull_face_enable_Array; + + class domCull_face_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domCull_face_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domCull_face_enable() {} + /** + * Copy Constructor + */ + domCull_face_enable( const domCull_face_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCull_face_enable &operator=( const domCull_face_enable &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; + }; + + class domDepth_test_enable; + + typedef daeSmartRef domDepth_test_enableRef; + typedef daeTArray domDepth_test_enable_Array; + + class domDepth_test_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDepth_test_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDepth_test_enable() {} + /** + * Copy Constructor + */ + domDepth_test_enable( const domDepth_test_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_test_enable &operator=( const domDepth_test_enable &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; + }; + + class domDither_enable; + + typedef daeSmartRef domDither_enableRef; + typedef daeTArray domDither_enable_Array; + + class domDither_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domDither_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domDither_enable() {} + /** + * Copy Constructor + */ + domDither_enable( const domDither_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDither_enable &operator=( const domDither_enable &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; + }; + + class domFog_enable; + + typedef daeSmartRef domFog_enableRef; + typedef daeTArray domFog_enable_Array; + + class domFog_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domFog_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domFog_enable() {} + /** + * Copy Constructor + */ + domFog_enable( const domFog_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFog_enable &operator=( const domFog_enable &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; + }; + + class domTexture_pipeline_enable; + + typedef daeSmartRef domTexture_pipeline_enableRef; + typedef daeTArray domTexture_pipeline_enable_Array; + + class domTexture_pipeline_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domTexture_pipeline_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domTexture_pipeline_enable() {} + /** + * Copy Constructor + */ + domTexture_pipeline_enable( const domTexture_pipeline_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexture_pipeline_enable &operator=( const domTexture_pipeline_enable &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; + }; + + class domLight_enable; + + typedef daeSmartRef domLight_enableRef; + typedef daeTArray domLight_enable_Array; + + class domLight_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + domGLES_MAX_LIGHTS_index attrIndex; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + /** + * Gets the index attribute. + * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. + */ + domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } + /** + * Sets the index attribute. + * @param atIndex The new value for the index attribute. + */ + void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; } + + protected: + /** + * Constructor + */ + domLight_enable() : attrValue(), attrParam(), attrIndex() {} + /** + * Destructor + */ + virtual ~domLight_enable() {} + /** + * Copy Constructor + */ + domLight_enable( const domLight_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_enable &operator=( const domLight_enable &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; + }; + + class domLighting_enable; + + typedef daeSmartRef domLighting_enableRef; + typedef daeTArray domLighting_enable_Array; + + class domLighting_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLighting_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLighting_enable() {} + /** + * Copy Constructor + */ + domLighting_enable( const domLighting_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLighting_enable &operator=( const domLighting_enable &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; + }; + + class domLight_model_two_side_enable; + + typedef daeSmartRef domLight_model_two_side_enableRef; + typedef daeTArray domLight_model_two_side_enable_Array; + + class domLight_model_two_side_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLight_model_two_side_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLight_model_two_side_enable() {} + /** + * Copy Constructor + */ + domLight_model_two_side_enable( const domLight_model_two_side_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight_model_two_side_enable &operator=( const domLight_model_two_side_enable &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; + }; + + class domLine_smooth_enable; + + typedef daeSmartRef domLine_smooth_enableRef; + typedef daeTArray domLine_smooth_enable_Array; + + class domLine_smooth_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domLine_smooth_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domLine_smooth_enable() {} + /** + * Copy Constructor + */ + domLine_smooth_enable( const domLine_smooth_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLine_smooth_enable &operator=( const domLine_smooth_enable &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; + }; + + class domMultisample_enable; + + typedef daeSmartRef domMultisample_enableRef; + typedef daeTArray domMultisample_enable_Array; + + class domMultisample_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domMultisample_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domMultisample_enable() {} + /** + * Copy Constructor + */ + domMultisample_enable( const domMultisample_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMultisample_enable &operator=( const domMultisample_enable &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; + }; + + class domNormalize_enable; + + typedef daeSmartRef domNormalize_enableRef; + typedef daeTArray domNormalize_enable_Array; + + class domNormalize_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domNormalize_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domNormalize_enable() {} + /** + * Copy Constructor + */ + domNormalize_enable( const domNormalize_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domNormalize_enable &operator=( const domNormalize_enable &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; + }; + + class domPoint_smooth_enable; + + typedef daeSmartRef domPoint_smooth_enableRef; + typedef daeTArray domPoint_smooth_enable_Array; + + class domPoint_smooth_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPoint_smooth_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPoint_smooth_enable() {} + /** + * Copy Constructor + */ + domPoint_smooth_enable( const domPoint_smooth_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint_smooth_enable &operator=( const domPoint_smooth_enable &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; + }; + + class domPolygon_offset_fill_enable; + + typedef daeSmartRef domPolygon_offset_fill_enableRef; + typedef daeTArray domPolygon_offset_fill_enable_Array; + + class domPolygon_offset_fill_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domPolygon_offset_fill_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domPolygon_offset_fill_enable() {} + /** + * Copy Constructor + */ + domPolygon_offset_fill_enable( const domPolygon_offset_fill_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygon_offset_fill_enable &operator=( const domPolygon_offset_fill_enable &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; + }; + + class domRescale_normal_enable; + + typedef daeSmartRef domRescale_normal_enableRef; + typedef daeTArray domRescale_normal_enable_Array; + + class domRescale_normal_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domRescale_normal_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domRescale_normal_enable() {} + /** + * Copy Constructor + */ + domRescale_normal_enable( const domRescale_normal_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRescale_normal_enable &operator=( const domRescale_normal_enable &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; + }; + + class domSample_alpha_to_coverage_enable; + + typedef daeSmartRef domSample_alpha_to_coverage_enableRef; + typedef daeTArray domSample_alpha_to_coverage_enable_Array; + + class domSample_alpha_to_coverage_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSample_alpha_to_coverage_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSample_alpha_to_coverage_enable() {} + /** + * Copy Constructor + */ + domSample_alpha_to_coverage_enable( const domSample_alpha_to_coverage_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSample_alpha_to_coverage_enable &operator=( const domSample_alpha_to_coverage_enable &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; + }; + + class domSample_alpha_to_one_enable; + + typedef daeSmartRef domSample_alpha_to_one_enableRef; + typedef daeTArray domSample_alpha_to_one_enable_Array; + + class domSample_alpha_to_one_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSample_alpha_to_one_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSample_alpha_to_one_enable() {} + /** + * Copy Constructor + */ + domSample_alpha_to_one_enable( const domSample_alpha_to_one_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSample_alpha_to_one_enable &operator=( const domSample_alpha_to_one_enable &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; + }; + + class domSample_coverage_enable; + + typedef daeSmartRef domSample_coverage_enableRef; + typedef daeTArray domSample_coverage_enable_Array; + + class domSample_coverage_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domSample_coverage_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domSample_coverage_enable() {} + /** + * Copy Constructor + */ + domSample_coverage_enable( const domSample_coverage_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSample_coverage_enable &operator=( const domSample_coverage_enable &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; + }; + + class domScissor_test_enable; + + typedef daeSmartRef domScissor_test_enableRef; + typedef daeTArray domScissor_test_enable_Array; + + class domScissor_test_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domScissor_test_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domScissor_test_enable() {} + /** + * Copy Constructor + */ + domScissor_test_enable( const domScissor_test_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domScissor_test_enable &operator=( const domScissor_test_enable &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; + }; + + class domStencil_test_enable; + + typedef daeSmartRef domStencil_test_enableRef; + typedef daeTArray domStencil_test_enable_Array; + + class domStencil_test_enable : public daeElement + { + protected: // Attributes + domBool attrValue; + xsNCName attrParam; + + + public: //Accessors and Mutators + /** + * Gets the value attribute. + * @return Returns a domBool of the value attribute. + */ + domBool getValue() const { return attrValue; } + /** + * Sets the value attribute. + * @param atValue The new value for the value attribute. + */ + void setValue( domBool atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + + protected: + /** + * Constructor + */ + domStencil_test_enable() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domStencil_test_enable() {} + /** + * Copy Constructor + */ + domStencil_test_enable( const domStencil_test_enable &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_test_enable &operator=( const domStencil_test_enable &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: // Elements + domAlpha_funcRef elemAlpha_func; + domBlend_funcRef elemBlend_func; + domClear_colorRef elemClear_color; + domClear_stencilRef elemClear_stencil; + domClear_depthRef elemClear_depth; + domClip_planeRef elemClip_plane; + domColor_maskRef elemColor_mask; + domCull_faceRef elemCull_face; + domDepth_funcRef elemDepth_func; + domDepth_maskRef elemDepth_mask; + domDepth_rangeRef elemDepth_range; + domFog_colorRef elemFog_color; + domFog_densityRef elemFog_density; + domFog_modeRef elemFog_mode; + domFog_startRef elemFog_start; + domFog_endRef elemFog_end; + domFront_faceRef elemFront_face; + domTexture_pipelineRef elemTexture_pipeline; + domLogic_opRef elemLogic_op; + domLight_ambientRef elemLight_ambient; + domLight_diffuseRef elemLight_diffuse; + domLight_specularRef elemLight_specular; + domLight_positionRef elemLight_position; + domLight_constant_attenuationRef elemLight_constant_attenuation; + domLight_linear_attenutationRef elemLight_linear_attenutation; + domLight_quadratic_attenuationRef elemLight_quadratic_attenuation; + domLight_spot_cutoffRef elemLight_spot_cutoff; + domLight_spot_directionRef elemLight_spot_direction; + domLight_spot_exponentRef elemLight_spot_exponent; + domLight_model_ambientRef elemLight_model_ambient; + domLine_widthRef elemLine_width; + domMaterial_ambientRef elemMaterial_ambient; + domMaterial_diffuseRef elemMaterial_diffuse; + domMaterial_emissionRef elemMaterial_emission; + domMaterial_shininessRef elemMaterial_shininess; + domMaterial_specularRef elemMaterial_specular; + domModel_view_matrixRef elemModel_view_matrix; + domPoint_distance_attenuationRef elemPoint_distance_attenuation; + domPoint_fade_threshold_sizeRef elemPoint_fade_threshold_size; + domPoint_sizeRef elemPoint_size; + domPoint_size_minRef elemPoint_size_min; + domPoint_size_maxRef elemPoint_size_max; + domPolygon_offsetRef elemPolygon_offset; + domProjection_matrixRef elemProjection_matrix; + domScissorRef elemScissor; + domShade_modelRef elemShade_model; + domStencil_funcRef elemStencil_func; + domStencil_maskRef elemStencil_mask; + domStencil_opRef elemStencil_op; + domAlpha_test_enableRef elemAlpha_test_enable; + domBlend_enableRef elemBlend_enable; + domClip_plane_enableRef elemClip_plane_enable; + domColor_logic_op_enableRef elemColor_logic_op_enable; + domColor_material_enableRef elemColor_material_enable; + domCull_face_enableRef elemCull_face_enable; + domDepth_test_enableRef elemDepth_test_enable; + domDither_enableRef elemDither_enable; + domFog_enableRef elemFog_enable; + domTexture_pipeline_enableRef elemTexture_pipeline_enable; + domLight_enableRef elemLight_enable; + domLighting_enableRef elemLighting_enable; + domLight_model_two_side_enableRef elemLight_model_two_side_enable; + domLine_smooth_enableRef elemLine_smooth_enable; + domMultisample_enableRef elemMultisample_enable; + domNormalize_enableRef elemNormalize_enable; + domPoint_smooth_enableRef elemPoint_smooth_enable; + domPolygon_offset_fill_enableRef elemPolygon_offset_fill_enable; + domRescale_normal_enableRef elemRescale_normal_enable; + domSample_alpha_to_coverage_enableRef elemSample_alpha_to_coverage_enable; + domSample_alpha_to_one_enableRef elemSample_alpha_to_one_enable; + domSample_coverage_enableRef elemSample_coverage_enable; + domScissor_test_enableRef elemScissor_test_enable; + domStencil_test_enableRef elemStencil_test_enable; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the alpha_func element. + * @return a daeSmartRef to the alpha_func element. + */ + const domAlpha_funcRef getAlpha_func() const { return elemAlpha_func; } + /** + * Gets the blend_func element. + * @return a daeSmartRef to the blend_func element. + */ + const domBlend_funcRef getBlend_func() const { return elemBlend_func; } + /** + * Gets the clear_color element. + * @return a daeSmartRef to the clear_color element. + */ + const domClear_colorRef getClear_color() const { return elemClear_color; } + /** + * Gets the clear_stencil element. + * @return a daeSmartRef to the clear_stencil element. + */ + const domClear_stencilRef getClear_stencil() const { return elemClear_stencil; } + /** + * Gets the clear_depth element. + * @return a daeSmartRef to the clear_depth element. + */ + const domClear_depthRef getClear_depth() const { return elemClear_depth; } + /** + * Gets the clip_plane element. + * @return a daeSmartRef to the clip_plane element. + */ + const domClip_planeRef getClip_plane() const { return elemClip_plane; } + /** + * Gets the color_mask element. + * @return a daeSmartRef to the color_mask element. + */ + const domColor_maskRef getColor_mask() const { return elemColor_mask; } + /** + * Gets the cull_face element. + * @return a daeSmartRef to the cull_face element. + */ + const domCull_faceRef getCull_face() const { return elemCull_face; } + /** + * Gets the depth_func element. + * @return a daeSmartRef to the depth_func element. + */ + const domDepth_funcRef getDepth_func() const { return elemDepth_func; } + /** + * Gets the depth_mask element. + * @return a daeSmartRef to the depth_mask element. + */ + const domDepth_maskRef getDepth_mask() const { return elemDepth_mask; } + /** + * Gets the depth_range element. + * @return a daeSmartRef to the depth_range element. + */ + const domDepth_rangeRef getDepth_range() const { return elemDepth_range; } + /** + * Gets the fog_color element. + * @return a daeSmartRef to the fog_color element. + */ + const domFog_colorRef getFog_color() const { return elemFog_color; } + /** + * Gets the fog_density element. + * @return a daeSmartRef to the fog_density element. + */ + const domFog_densityRef getFog_density() const { return elemFog_density; } + /** + * Gets the fog_mode element. + * @return a daeSmartRef to the fog_mode element. + */ + const domFog_modeRef getFog_mode() const { return elemFog_mode; } + /** + * Gets the fog_start element. + * @return a daeSmartRef to the fog_start element. + */ + const domFog_startRef getFog_start() const { return elemFog_start; } + /** + * Gets the fog_end element. + * @return a daeSmartRef to the fog_end element. + */ + const domFog_endRef getFog_end() const { return elemFog_end; } + /** + * Gets the front_face element. + * @return a daeSmartRef to the front_face element. + */ + const domFront_faceRef getFront_face() const { return elemFront_face; } + /** + * Gets the texture_pipeline element. + * @return a daeSmartRef to the texture_pipeline element. + */ + const domTexture_pipelineRef getTexture_pipeline() const { return elemTexture_pipeline; } + /** + * Gets the logic_op element. + * @return a daeSmartRef to the logic_op element. + */ + const domLogic_opRef getLogic_op() const { return elemLogic_op; } + /** + * Gets the light_ambient element. + * @return a daeSmartRef to the light_ambient element. + */ + const domLight_ambientRef getLight_ambient() const { return elemLight_ambient; } + /** + * Gets the light_diffuse element. + * @return a daeSmartRef to the light_diffuse element. + */ + const domLight_diffuseRef getLight_diffuse() const { return elemLight_diffuse; } + /** + * Gets the light_specular element. + * @return a daeSmartRef to the light_specular element. + */ + const domLight_specularRef getLight_specular() const { return elemLight_specular; } + /** + * Gets the light_position element. + * @return a daeSmartRef to the light_position element. + */ + const domLight_positionRef getLight_position() const { return elemLight_position; } + /** + * Gets the light_constant_attenuation element. + * @return a daeSmartRef to the light_constant_attenuation element. + */ + const domLight_constant_attenuationRef getLight_constant_attenuation() const { return elemLight_constant_attenuation; } + /** + * Gets the light_linear_attenutation element. + * @return a daeSmartRef to the light_linear_attenutation element. + */ + const domLight_linear_attenutationRef getLight_linear_attenutation() const { return elemLight_linear_attenutation; } + /** + * Gets the light_quadratic_attenuation element. + * @return a daeSmartRef to the light_quadratic_attenuation element. + */ + const domLight_quadratic_attenuationRef getLight_quadratic_attenuation() const { return elemLight_quadratic_attenuation; } + /** + * Gets the light_spot_cutoff element. + * @return a daeSmartRef to the light_spot_cutoff element. + */ + const domLight_spot_cutoffRef getLight_spot_cutoff() const { return elemLight_spot_cutoff; } + /** + * Gets the light_spot_direction element. + * @return a daeSmartRef to the light_spot_direction element. + */ + const domLight_spot_directionRef getLight_spot_direction() const { return elemLight_spot_direction; } + /** + * Gets the light_spot_exponent element. + * @return a daeSmartRef to the light_spot_exponent element. + */ + const domLight_spot_exponentRef getLight_spot_exponent() const { return elemLight_spot_exponent; } + /** + * Gets the light_model_ambient element. + * @return a daeSmartRef to the light_model_ambient element. + */ + const domLight_model_ambientRef getLight_model_ambient() const { return elemLight_model_ambient; } + /** + * Gets the line_width element. + * @return a daeSmartRef to the line_width element. + */ + const domLine_widthRef getLine_width() const { return elemLine_width; } + /** + * Gets the material_ambient element. + * @return a daeSmartRef to the material_ambient element. + */ + const domMaterial_ambientRef getMaterial_ambient() const { return elemMaterial_ambient; } + /** + * Gets the material_diffuse element. + * @return a daeSmartRef to the material_diffuse element. + */ + const domMaterial_diffuseRef getMaterial_diffuse() const { return elemMaterial_diffuse; } + /** + * Gets the material_emission element. + * @return a daeSmartRef to the material_emission element. + */ + const domMaterial_emissionRef getMaterial_emission() const { return elemMaterial_emission; } + /** + * Gets the material_shininess element. + * @return a daeSmartRef to the material_shininess element. + */ + const domMaterial_shininessRef getMaterial_shininess() const { return elemMaterial_shininess; } + /** + * Gets the material_specular element. + * @return a daeSmartRef to the material_specular element. + */ + const domMaterial_specularRef getMaterial_specular() const { return elemMaterial_specular; } + /** + * Gets the model_view_matrix element. + * @return a daeSmartRef to the model_view_matrix element. + */ + const domModel_view_matrixRef getModel_view_matrix() const { return elemModel_view_matrix; } + /** + * Gets the point_distance_attenuation element. + * @return a daeSmartRef to the point_distance_attenuation element. + */ + const domPoint_distance_attenuationRef getPoint_distance_attenuation() const { return elemPoint_distance_attenuation; } + /** + * Gets the point_fade_threshold_size element. + * @return a daeSmartRef to the point_fade_threshold_size element. + */ + const domPoint_fade_threshold_sizeRef getPoint_fade_threshold_size() const { return elemPoint_fade_threshold_size; } + /** + * Gets the point_size element. + * @return a daeSmartRef to the point_size element. + */ + const domPoint_sizeRef getPoint_size() const { return elemPoint_size; } + /** + * Gets the point_size_min element. + * @return a daeSmartRef to the point_size_min element. + */ + const domPoint_size_minRef getPoint_size_min() const { return elemPoint_size_min; } + /** + * Gets the point_size_max element. + * @return a daeSmartRef to the point_size_max element. + */ + const domPoint_size_maxRef getPoint_size_max() const { return elemPoint_size_max; } + /** + * Gets the polygon_offset element. + * @return a daeSmartRef to the polygon_offset element. + */ + const domPolygon_offsetRef getPolygon_offset() const { return elemPolygon_offset; } + /** + * Gets the projection_matrix element. + * @return a daeSmartRef to the projection_matrix element. + */ + const domProjection_matrixRef getProjection_matrix() const { return elemProjection_matrix; } + /** + * Gets the scissor element. + * @return a daeSmartRef to the scissor element. + */ + const domScissorRef getScissor() const { return elemScissor; } + /** + * Gets the shade_model element. + * @return a daeSmartRef to the shade_model element. + */ + const domShade_modelRef getShade_model() const { return elemShade_model; } + /** + * Gets the stencil_func element. + * @return a daeSmartRef to the stencil_func element. + */ + const domStencil_funcRef getStencil_func() const { return elemStencil_func; } + /** + * Gets the stencil_mask element. + * @return a daeSmartRef to the stencil_mask element. + */ + const domStencil_maskRef getStencil_mask() const { return elemStencil_mask; } + /** + * Gets the stencil_op element. + * @return a daeSmartRef to the stencil_op element. + */ + const domStencil_opRef getStencil_op() const { return elemStencil_op; } + /** + * Gets the alpha_test_enable element. + * @return a daeSmartRef to the alpha_test_enable element. + */ + const domAlpha_test_enableRef getAlpha_test_enable() const { return elemAlpha_test_enable; } + /** + * Gets the blend_enable element. + * @return a daeSmartRef to the blend_enable element. + */ + const domBlend_enableRef getBlend_enable() const { return elemBlend_enable; } + /** + * Gets the clip_plane_enable element. + * @return a daeSmartRef to the clip_plane_enable element. + */ + const domClip_plane_enableRef getClip_plane_enable() const { return elemClip_plane_enable; } + /** + * Gets the color_logic_op_enable element. + * @return a daeSmartRef to the color_logic_op_enable element. + */ + const domColor_logic_op_enableRef getColor_logic_op_enable() const { return elemColor_logic_op_enable; } + /** + * Gets the color_material_enable element. + * @return a daeSmartRef to the color_material_enable element. + */ + const domColor_material_enableRef getColor_material_enable() const { return elemColor_material_enable; } + /** + * Gets the cull_face_enable element. + * @return a daeSmartRef to the cull_face_enable element. + */ + const domCull_face_enableRef getCull_face_enable() const { return elemCull_face_enable; } + /** + * Gets the depth_test_enable element. + * @return a daeSmartRef to the depth_test_enable element. + */ + const domDepth_test_enableRef getDepth_test_enable() const { return elemDepth_test_enable; } + /** + * Gets the dither_enable element. + * @return a daeSmartRef to the dither_enable element. + */ + const domDither_enableRef getDither_enable() const { return elemDither_enable; } + /** + * Gets the fog_enable element. + * @return a daeSmartRef to the fog_enable element. + */ + const domFog_enableRef getFog_enable() const { return elemFog_enable; } + /** + * Gets the texture_pipeline_enable element. + * @return a daeSmartRef to the texture_pipeline_enable element. + */ + const domTexture_pipeline_enableRef getTexture_pipeline_enable() const { return elemTexture_pipeline_enable; } + /** + * Gets the light_enable element. + * @return a daeSmartRef to the light_enable element. + */ + const domLight_enableRef getLight_enable() const { return elemLight_enable; } + /** + * Gets the lighting_enable element. + * @return a daeSmartRef to the lighting_enable element. + */ + const domLighting_enableRef getLighting_enable() const { return elemLighting_enable; } + /** + * Gets the light_model_two_side_enable element. + * @return a daeSmartRef to the light_model_two_side_enable element. + */ + const domLight_model_two_side_enableRef getLight_model_two_side_enable() const { return elemLight_model_two_side_enable; } + /** + * Gets the line_smooth_enable element. + * @return a daeSmartRef to the line_smooth_enable element. + */ + const domLine_smooth_enableRef getLine_smooth_enable() const { return elemLine_smooth_enable; } + /** + * Gets the multisample_enable element. + * @return a daeSmartRef to the multisample_enable element. + */ + const domMultisample_enableRef getMultisample_enable() const { return elemMultisample_enable; } + /** + * Gets the normalize_enable element. + * @return a daeSmartRef to the normalize_enable element. + */ + const domNormalize_enableRef getNormalize_enable() const { return elemNormalize_enable; } + /** + * Gets the point_smooth_enable element. + * @return a daeSmartRef to the point_smooth_enable element. + */ + const domPoint_smooth_enableRef getPoint_smooth_enable() const { return elemPoint_smooth_enable; } + /** + * Gets the polygon_offset_fill_enable element. + * @return a daeSmartRef to the polygon_offset_fill_enable element. + */ + const domPolygon_offset_fill_enableRef getPolygon_offset_fill_enable() const { return elemPolygon_offset_fill_enable; } + /** + * Gets the rescale_normal_enable element. + * @return a daeSmartRef to the rescale_normal_enable element. + */ + const domRescale_normal_enableRef getRescale_normal_enable() const { return elemRescale_normal_enable; } + /** + * Gets the sample_alpha_to_coverage_enable element. + * @return a daeSmartRef to the sample_alpha_to_coverage_enable element. + */ + const domSample_alpha_to_coverage_enableRef getSample_alpha_to_coverage_enable() const { return elemSample_alpha_to_coverage_enable; } + /** + * Gets the sample_alpha_to_one_enable element. + * @return a daeSmartRef to the sample_alpha_to_one_enable element. + */ + const domSample_alpha_to_one_enableRef getSample_alpha_to_one_enable() const { return elemSample_alpha_to_one_enable; } + /** + * Gets the sample_coverage_enable element. + * @return a daeSmartRef to the sample_coverage_enable element. + */ + const domSample_coverage_enableRef getSample_coverage_enable() const { return elemSample_coverage_enable; } + /** + * Gets the scissor_test_enable element. + * @return a daeSmartRef to the scissor_test_enable element. + */ + const domScissor_test_enableRef getScissor_test_enable() const { return elemScissor_test_enable; } + /** + * Gets the stencil_test_enable element. + * @return a daeSmartRef to the stencil_test_enable element. + */ + const domStencil_test_enableRef getStencil_test_enable() const { return elemStencil_test_enable; } + /** + * 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 + */ + domGles_pipeline_settings() : elemAlpha_func(), elemBlend_func(), elemClear_color(), elemClear_stencil(), elemClear_depth(), elemClip_plane(), elemColor_mask(), elemCull_face(), elemDepth_func(), elemDepth_mask(), elemDepth_range(), elemFog_color(), elemFog_density(), elemFog_mode(), elemFog_start(), elemFog_end(), elemFront_face(), elemTexture_pipeline(), elemLogic_op(), elemLight_ambient(), elemLight_diffuse(), elemLight_specular(), elemLight_position(), elemLight_constant_attenuation(), elemLight_linear_attenutation(), elemLight_quadratic_attenuation(), elemLight_spot_cutoff(), elemLight_spot_direction(), elemLight_spot_exponent(), elemLight_model_ambient(), elemLine_width(), elemMaterial_ambient(), elemMaterial_diffuse(), elemMaterial_emission(), elemMaterial_shininess(), elemMaterial_specular(), elemModel_view_matrix(), elemPoint_distance_attenuation(), elemPoint_fade_threshold_size(), elemPoint_size(), elemPoint_size_min(), elemPoint_size_max(), elemPolygon_offset(), elemProjection_matrix(), elemScissor(), elemShade_model(), elemStencil_func(), elemStencil_mask(), elemStencil_op(), elemAlpha_test_enable(), elemBlend_enable(), elemClip_plane_enable(), elemColor_logic_op_enable(), elemColor_material_enable(), elemCull_face_enable(), elemDepth_test_enable(), elemDither_enable(), elemFog_enable(), elemTexture_pipeline_enable(), elemLight_enable(), elemLighting_enable(), elemLight_model_two_side_enable(), elemLine_smooth_enable(), elemMultisample_enable(), elemNormalize_enable(), elemPoint_smooth_enable(), elemPolygon_offset_fill_enable(), elemRescale_normal_enable(), elemSample_alpha_to_coverage_enable(), elemSample_alpha_to_one_enable(), elemSample_coverage_enable(), elemScissor_test_enable(), elemStencil_test_enable() {} + /** + * Destructor + */ + virtual ~domGles_pipeline_settings() {} + /** + * Copy Constructor + */ + domGles_pipeline_settings( const domGles_pipeline_settings &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_pipeline_settings &operator=( const domGles_pipeline_settings &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_sampler_state.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_sampler_state.h new file mode 100644 index 000000000..53cbed4c3 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_sampler_state.h @@ -0,0 +1,627 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_sampler_state_h__ +#define __domGles_sampler_state_h__ + +#include +#include + +#include + +/** + * Two-dimensional texture sampler state for profile_GLES. This is a bundle + * of sampler-specific states that will be referenced by one or more texture_units. + */ +class domGles_sampler_state_complexType +{ +public: + class domWrap_s; + + typedef daeSmartRef domWrap_sRef; + typedef daeTArray domWrap_s_Array; + + class domWrap_s : public daeElement + { + + protected: // Value + /** + * The domGles_sampler_wrap value of the text data of this element. + */ + domGles_sampler_wrap _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGles_sampler_wrap of the value. + */ + domGles_sampler_wrap getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGles_sampler_wrap val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_s() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_s() {} + /** + * Copy Constructor + */ + domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_s &operator=( const domWrap_s &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; + }; + + class domWrap_t; + + typedef daeSmartRef domWrap_tRef; + typedef daeTArray domWrap_t_Array; + + class domWrap_t : public daeElement + { + + protected: // Value + /** + * The domGles_sampler_wrap value of the text data of this element. + */ + domGles_sampler_wrap _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGles_sampler_wrap of the value. + */ + domGles_sampler_wrap getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGles_sampler_wrap val ) { _value = val; } + + protected: + /** + * Constructor + */ + domWrap_t() : _value() {} + /** + * Destructor + */ + virtual ~domWrap_t() {} + /** + * Copy Constructor + */ + domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domWrap_t &operator=( const domWrap_t &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; + }; + + class domMinfilter; + + typedef daeSmartRef domMinfilterRef; + typedef daeTArray domMinfilter_Array; + + class domMinfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMinfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMinfilter() {} + /** + * Copy Constructor + */ + domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMinfilter &operator=( const domMinfilter &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; + }; + + class domMagfilter; + + typedef daeSmartRef domMagfilterRef; + typedef daeTArray domMagfilter_Array; + + class domMagfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMagfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMagfilter() {} + /** + * Copy Constructor + */ + domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMagfilter &operator=( const domMagfilter &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; + }; + + class domMipfilter; + + typedef daeSmartRef domMipfilterRef; + typedef daeTArray domMipfilter_Array; + + class domMipfilter : public daeElement + { + + protected: // Value + /** + * The domFx_sampler_filter_common value of the text data of this element. + */ + domFx_sampler_filter_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_sampler_filter_common of the value. + */ + domFx_sampler_filter_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_sampler_filter_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipfilter() : _value() {} + /** + * Destructor + */ + virtual ~domMipfilter() {} + /** + * Copy Constructor + */ + domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipfilter &operator=( const domMipfilter &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; + }; + + class domMipmap_maxlevel; + + typedef daeSmartRef domMipmap_maxlevelRef; + typedef daeTArray domMipmap_maxlevel_Array; + + class domMipmap_maxlevel : public daeElement + { + + protected: // Value + /** + * The xsUnsignedByte value of the text data of this element. + */ + xsUnsignedByte _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsUnsignedByte of the value. + */ + xsUnsignedByte getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsUnsignedByte val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_maxlevel() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_maxlevel() {} + /** + * Copy Constructor + */ + domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &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; + }; + + class domMipmap_bias; + + typedef daeSmartRef domMipmap_biasRef; + typedef daeTArray domMipmap_bias_Array; + + class domMipmap_bias : public daeElement + { + + protected: // Value + /** + * The xsFloat value of the text data of this element. + */ + xsFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsFloat of the value. + */ + xsFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domMipmap_bias() : _value() {} + /** + * Destructor + */ + virtual ~domMipmap_bias() {} + /** + * Copy Constructor + */ + domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMipmap_bias &operator=( const domMipmap_bias &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: // Attribute +/** + * 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; + +protected: // Elements + domWrap_sRef elemWrap_s; + domWrap_tRef elemWrap_t; + domMinfilterRef elemMinfilter; + domMagfilterRef elemMagfilter; + domMipfilterRef elemMipfilter; + domMipmap_maxlevelRef elemMipmap_maxlevel; + domMipmap_biasRef elemMipmap_bias; +/** + * The extra element may appear any number of times. OpenGL ES extensions + * may be used here. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the wrap_s element. + * @return a daeSmartRef to the wrap_s element. + */ + const domWrap_sRef getWrap_s() const { return elemWrap_s; } + /** + * Gets the wrap_t element. + * @return a daeSmartRef to the wrap_t element. + */ + const domWrap_tRef getWrap_t() const { return elemWrap_t; } + /** + * Gets the minfilter element. + * @return a daeSmartRef to the minfilter element. + */ + const domMinfilterRef getMinfilter() const { return elemMinfilter; } + /** + * Gets the magfilter element. + * @return a daeSmartRef to the magfilter element. + */ + const domMagfilterRef getMagfilter() const { return elemMagfilter; } + /** + * Gets the mipfilter element. + * @return a daeSmartRef to the mipfilter element. + */ + const domMipfilterRef getMipfilter() const { return elemMipfilter; } + /** + * Gets the mipmap_maxlevel element. + * @return a daeSmartRef to the mipmap_maxlevel element. + */ + const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } + /** + * Gets the mipmap_bias element. + * @return a daeSmartRef to the mipmap_bias element. + */ + const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } + /** + * 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; } +protected: + /** + * Constructor + */ + domGles_sampler_state_complexType() : attrSid(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domGles_sampler_state_complexType() {} + /** + * Copy Constructor + */ + domGles_sampler_state_complexType( const domGles_sampler_state_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_sampler_state_complexType &operator=( const domGles_sampler_state_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_sampler_state_complexType. + */ +class domGles_sampler_state : public daeElement, public domGles_sampler_state_complexType +{ +protected: + /** + * Constructor + */ + domGles_sampler_state() {} + /** + * Destructor + */ + virtual ~domGles_sampler_state() {} + /** + * Copy Constructor + */ + domGles_sampler_state( const domGles_sampler_state &cpy ) : daeElement(), domGles_sampler_state_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_sampler_state &operator=( const domGles_sampler_state &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentAlpha_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentAlpha_type.h new file mode 100644 index 000000000..3b13de95b --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentAlpha_type.h @@ -0,0 +1,126 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_texcombiner_argumentAlpha_type_h__ +#define __domGles_texcombiner_argumentAlpha_type_h__ + +#include +#include + + +class domGles_texcombiner_argumentAlpha_type_complexType +{ +protected: // Attributes + domGles_texcombiner_source_enums attrSource; + domGles_texcombiner_operandAlpha_enums attrOperand; + xsNCName attrUnit; + + +public: //Accessors and Mutators + /** + * Gets the source attribute. + * @return Returns a domGles_texcombiner_source_enums of the source attribute. + */ + domGles_texcombiner_source_enums getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( domGles_texcombiner_source_enums atSource ) { attrSource = atSource; } + + /** + * Gets the operand attribute. + * @return Returns a domGles_texcombiner_operandAlpha_enums of the operand attribute. + */ + domGles_texcombiner_operandAlpha_enums getOperand() const { return attrOperand; } + /** + * Sets the operand attribute. + * @param atOperand The new value for the operand attribute. + */ + void setOperand( domGles_texcombiner_operandAlpha_enums atOperand ) { attrOperand = atOperand; } + + /** + * Gets the unit attribute. + * @return Returns a xsNCName of the unit attribute. + */ + xsNCName getUnit() const { return attrUnit; } + /** + * Sets the unit attribute. + * @param atUnit The new value for the unit attribute. + */ + void setUnit( xsNCName atUnit ) { attrUnit = atUnit; } + +protected: + /** + * Constructor + */ + domGles_texcombiner_argumentAlpha_type_complexType() : attrSource(), attrOperand(), attrUnit() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_argumentAlpha_type_complexType() {} + /** + * Copy Constructor + */ + domGles_texcombiner_argumentAlpha_type_complexType( const domGles_texcombiner_argumentAlpha_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_argumentAlpha_type_complexType &operator=( const domGles_texcombiner_argumentAlpha_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_texcombiner_argumentAlpha_type_complexType. + */ +class domGles_texcombiner_argumentAlpha_type : public daeElement, public domGles_texcombiner_argumentAlpha_type_complexType +{ +protected: + /** + * Constructor + */ + domGles_texcombiner_argumentAlpha_type() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_argumentAlpha_type() {} + /** + * Copy Constructor + */ + domGles_texcombiner_argumentAlpha_type( const domGles_texcombiner_argumentAlpha_type &cpy ) : daeElement(), domGles_texcombiner_argumentAlpha_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_argumentAlpha_type &operator=( const domGles_texcombiner_argumentAlpha_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentRGB_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentRGB_type.h new file mode 100644 index 000000000..afc116d34 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentRGB_type.h @@ -0,0 +1,126 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_texcombiner_argumentRGB_type_h__ +#define __domGles_texcombiner_argumentRGB_type_h__ + +#include +#include + + +class domGles_texcombiner_argumentRGB_type_complexType +{ +protected: // Attributes + domGles_texcombiner_source_enums attrSource; + domGles_texcombiner_operandRGB_enums attrOperand; + xsNCName attrUnit; + + +public: //Accessors and Mutators + /** + * Gets the source attribute. + * @return Returns a domGles_texcombiner_source_enums of the source attribute. + */ + domGles_texcombiner_source_enums getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( domGles_texcombiner_source_enums atSource ) { attrSource = atSource; } + + /** + * Gets the operand attribute. + * @return Returns a domGles_texcombiner_operandRGB_enums of the operand attribute. + */ + domGles_texcombiner_operandRGB_enums getOperand() const { return attrOperand; } + /** + * Sets the operand attribute. + * @param atOperand The new value for the operand attribute. + */ + void setOperand( domGles_texcombiner_operandRGB_enums atOperand ) { attrOperand = atOperand; } + + /** + * Gets the unit attribute. + * @return Returns a xsNCName of the unit attribute. + */ + xsNCName getUnit() const { return attrUnit; } + /** + * Sets the unit attribute. + * @param atUnit The new value for the unit attribute. + */ + void setUnit( xsNCName atUnit ) { attrUnit = atUnit; } + +protected: + /** + * Constructor + */ + domGles_texcombiner_argumentRGB_type_complexType() : attrSource(), attrOperand(), attrUnit() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_argumentRGB_type_complexType() {} + /** + * Copy Constructor + */ + domGles_texcombiner_argumentRGB_type_complexType( const domGles_texcombiner_argumentRGB_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_argumentRGB_type_complexType &operator=( const domGles_texcombiner_argumentRGB_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_texcombiner_argumentRGB_type_complexType. + */ +class domGles_texcombiner_argumentRGB_type : public daeElement, public domGles_texcombiner_argumentRGB_type_complexType +{ +protected: + /** + * Constructor + */ + domGles_texcombiner_argumentRGB_type() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_argumentRGB_type() {} + /** + * Copy Constructor + */ + domGles_texcombiner_argumentRGB_type( const domGles_texcombiner_argumentRGB_type &cpy ) : daeElement(), domGles_texcombiner_argumentRGB_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_argumentRGB_type &operator=( const domGles_texcombiner_argumentRGB_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandAlpha_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandAlpha_type.h new file mode 100644 index 000000000..ef9efb147 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandAlpha_type.h @@ -0,0 +1,127 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_texcombiner_commandAlpha_type_h__ +#define __domGles_texcombiner_commandAlpha_type_h__ + +#include +#include + +#include + +class domGles_texcombiner_commandAlpha_type_complexType +{ +protected: // Attributes + domGles_texcombiner_operatorAlpha_enums attrOperator; + xsFloat attrScale; + +protected: // Element + domGles_texcombiner_argumentAlpha_type_Array elemArgument_array; + +public: //Accessors and Mutators + /** + * Gets the operator attribute. + * @return Returns a domGles_texcombiner_operatorAlpha_enums of the operator attribute. + */ + domGles_texcombiner_operatorAlpha_enums getOperator() const { return attrOperator; } + /** + * Sets the operator attribute. + * @param atOperator The new value for the operator attribute. + */ + void setOperator( domGles_texcombiner_operatorAlpha_enums atOperator ) { attrOperator = atOperator; } + + /** + * Gets the scale attribute. + * @return Returns a xsFloat of the scale attribute. + */ + xsFloat getScale() const { return attrScale; } + /** + * Sets the scale attribute. + * @param atScale The new value for the scale attribute. + */ + void setScale( xsFloat atScale ) { attrScale = atScale; } + + /** + * Gets the argument element array. + * @return Returns a reference to the array of argument elements. + */ + domGles_texcombiner_argumentAlpha_type_Array &getArgument_array() { return elemArgument_array; } + /** + * Gets the argument element array. + * @return Returns a constant reference to the array of argument elements. + */ + const domGles_texcombiner_argumentAlpha_type_Array &getArgument_array() const { return elemArgument_array; } +protected: + /** + * Constructor + */ + domGles_texcombiner_commandAlpha_type_complexType() : attrOperator(), attrScale(), elemArgument_array() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_commandAlpha_type_complexType() {} + /** + * Copy Constructor + */ + domGles_texcombiner_commandAlpha_type_complexType( const domGles_texcombiner_commandAlpha_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_commandAlpha_type_complexType &operator=( const domGles_texcombiner_commandAlpha_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_texcombiner_commandAlpha_type_complexType. + */ +class domGles_texcombiner_commandAlpha_type : public daeElement, public domGles_texcombiner_commandAlpha_type_complexType +{ +protected: + /** + * Constructor + */ + domGles_texcombiner_commandAlpha_type() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_commandAlpha_type() {} + /** + * Copy Constructor + */ + domGles_texcombiner_commandAlpha_type( const domGles_texcombiner_commandAlpha_type &cpy ) : daeElement(), domGles_texcombiner_commandAlpha_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_commandAlpha_type &operator=( const domGles_texcombiner_commandAlpha_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandRGB_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandRGB_type.h new file mode 100644 index 000000000..c7ae43e47 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandRGB_type.h @@ -0,0 +1,131 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_texcombiner_commandRGB_type_h__ +#define __domGles_texcombiner_commandRGB_type_h__ + +#include +#include + +#include + +/** + * Defines the RGB portion of a texture_pipeline command. This is a combiner-mode + * texturing operation. + */ +class domGles_texcombiner_commandRGB_type_complexType +{ +protected: // Attributes + domGles_texcombiner_operatorRGB_enums attrOperator; + xsFloat attrScale; + +protected: // Element + domGles_texcombiner_argumentRGB_type_Array elemArgument_array; + +public: //Accessors and Mutators + /** + * Gets the operator attribute. + * @return Returns a domGles_texcombiner_operatorRGB_enums of the operator attribute. + */ + domGles_texcombiner_operatorRGB_enums getOperator() const { return attrOperator; } + /** + * Sets the operator attribute. + * @param atOperator The new value for the operator attribute. + */ + void setOperator( domGles_texcombiner_operatorRGB_enums atOperator ) { attrOperator = atOperator; } + + /** + * Gets the scale attribute. + * @return Returns a xsFloat of the scale attribute. + */ + xsFloat getScale() const { return attrScale; } + /** + * Sets the scale attribute. + * @param atScale The new value for the scale attribute. + */ + void setScale( xsFloat atScale ) { attrScale = atScale; } + + /** + * Gets the argument element array. + * @return Returns a reference to the array of argument elements. + */ + domGles_texcombiner_argumentRGB_type_Array &getArgument_array() { return elemArgument_array; } + /** + * Gets the argument element array. + * @return Returns a constant reference to the array of argument elements. + */ + const domGles_texcombiner_argumentRGB_type_Array &getArgument_array() const { return elemArgument_array; } +protected: + /** + * Constructor + */ + domGles_texcombiner_commandRGB_type_complexType() : attrOperator(), attrScale(), elemArgument_array() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_commandRGB_type_complexType() {} + /** + * Copy Constructor + */ + domGles_texcombiner_commandRGB_type_complexType( const domGles_texcombiner_commandRGB_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_commandRGB_type_complexType &operator=( const domGles_texcombiner_commandRGB_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_texcombiner_commandRGB_type_complexType. + */ +class domGles_texcombiner_commandRGB_type : public daeElement, public domGles_texcombiner_commandRGB_type_complexType +{ +protected: + /** + * Constructor + */ + domGles_texcombiner_commandRGB_type() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_commandRGB_type() {} + /** + * Copy Constructor + */ + domGles_texcombiner_commandRGB_type( const domGles_texcombiner_commandRGB_type &cpy ) : daeElement(), domGles_texcombiner_commandRGB_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_commandRGB_type &operator=( const domGles_texcombiner_commandRGB_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_command_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_command_type.h new file mode 100644 index 000000000..6cb220338 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_command_type.h @@ -0,0 +1,111 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_texcombiner_command_type_h__ +#define __domGles_texcombiner_command_type_h__ + +#include +#include + +#include +#include +#include + +class domGles_texcombiner_command_type_complexType +{ + +protected: // Elements + domGles_texture_constant_typeRef elemConstant; + domGles_texcombiner_commandRGB_typeRef elemRGB; + domGles_texcombiner_commandAlpha_typeRef elemAlpha; + +public: //Accessors and Mutators + /** + * Gets the constant element. + * @return a daeSmartRef to the constant element. + */ + const domGles_texture_constant_typeRef getConstant() const { return elemConstant; } + /** + * Gets the RGB element. + * @return a daeSmartRef to the RGB element. + */ + const domGles_texcombiner_commandRGB_typeRef getRGB() const { return elemRGB; } + /** + * Gets the alpha element. + * @return a daeSmartRef to the alpha element. + */ + const domGles_texcombiner_commandAlpha_typeRef getAlpha() const { return elemAlpha; } +protected: + /** + * Constructor + */ + domGles_texcombiner_command_type_complexType() : elemConstant(), elemRGB(), elemAlpha() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_command_type_complexType() {} + /** + * Copy Constructor + */ + domGles_texcombiner_command_type_complexType( const domGles_texcombiner_command_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_command_type_complexType &operator=( const domGles_texcombiner_command_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_texcombiner_command_type_complexType. + */ +class domGles_texcombiner_command_type : public daeElement, public domGles_texcombiner_command_type_complexType +{ +protected: + /** + * Constructor + */ + domGles_texcombiner_command_type() {} + /** + * Destructor + */ + virtual ~domGles_texcombiner_command_type() {} + /** + * Copy Constructor + */ + domGles_texcombiner_command_type( const domGles_texcombiner_command_type &cpy ) : daeElement(), domGles_texcombiner_command_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texcombiner_command_type &operator=( const domGles_texcombiner_command_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texenv_command_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texenv_command_type.h new file mode 100644 index 000000000..2a98db2e3 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texenv_command_type.h @@ -0,0 +1,122 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_texenv_command_type_h__ +#define __domGles_texenv_command_type_h__ + +#include +#include + +#include + +class domGles_texenv_command_type_complexType +{ +protected: // Attributes + domGles_texenv_mode_enums attrOperator; + xsNCName attrUnit; + +protected: // Element + domGles_texture_constant_typeRef elemConstant; + +public: //Accessors and Mutators + /** + * Gets the operator attribute. + * @return Returns a domGles_texenv_mode_enums of the operator attribute. + */ + domGles_texenv_mode_enums getOperator() const { return attrOperator; } + /** + * Sets the operator attribute. + * @param atOperator The new value for the operator attribute. + */ + void setOperator( domGles_texenv_mode_enums atOperator ) { attrOperator = atOperator; } + + /** + * Gets the unit attribute. + * @return Returns a xsNCName of the unit attribute. + */ + xsNCName getUnit() const { return attrUnit; } + /** + * Sets the unit attribute. + * @param atUnit The new value for the unit attribute. + */ + void setUnit( xsNCName atUnit ) { attrUnit = atUnit; } + + /** + * Gets the constant element. + * @return a daeSmartRef to the constant element. + */ + const domGles_texture_constant_typeRef getConstant() const { return elemConstant; } +protected: + /** + * Constructor + */ + domGles_texenv_command_type_complexType() : attrOperator(), attrUnit(), elemConstant() {} + /** + * Destructor + */ + virtual ~domGles_texenv_command_type_complexType() {} + /** + * Copy Constructor + */ + domGles_texenv_command_type_complexType( const domGles_texenv_command_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texenv_command_type_complexType &operator=( const domGles_texenv_command_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_texenv_command_type_complexType. + */ +class domGles_texenv_command_type : public daeElement, public domGles_texenv_command_type_complexType +{ +protected: + /** + * Constructor + */ + domGles_texenv_command_type() {} + /** + * Destructor + */ + virtual ~domGles_texenv_command_type() {} + /** + * Copy Constructor + */ + domGles_texenv_command_type( const domGles_texenv_command_type &cpy ) : daeElement(), domGles_texenv_command_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texenv_command_type &operator=( const domGles_texenv_command_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_constant_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_constant_type.h new file mode 100644 index 000000000..61b307ca5 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_constant_type.h @@ -0,0 +1,119 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_texture_constant_type_h__ +#define __domGles_texture_constant_type_h__ + +#include +#include + + +class domGles_texture_constant_type_complexType +{ +protected: // Attributes + domFloat4 attrValue; + xsNCName attrParam; + + +public: //Accessors and Mutators + /** + * Gets the value array attribute. + * @return Returns a domFloat4 reference of the value array attribute. + */ + domFloat4 &getValue() { return attrValue; } + /** + * Gets the value array attribute. + * @return Returns a constant domFloat4 reference of the value array attribute. + */ + const domFloat4 &getValue() const { return attrValue; } + /** + * Sets the value array attribute. + * @param atValue The new value for the value array attribute. + */ + void setValue( const domFloat4 &atValue ) { attrValue = atValue; } + + /** + * Gets the param attribute. + * @return Returns a xsNCName of the param attribute. + */ + xsNCName getParam() const { return attrParam; } + /** + * Sets the param attribute. + * @param atParam The new value for the param attribute. + */ + void setParam( xsNCName atParam ) { attrParam = atParam; } + +protected: + /** + * Constructor + */ + domGles_texture_constant_type_complexType() : attrValue(), attrParam() {} + /** + * Destructor + */ + virtual ~domGles_texture_constant_type_complexType() {} + /** + * Copy Constructor + */ + domGles_texture_constant_type_complexType( const domGles_texture_constant_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texture_constant_type_complexType &operator=( const domGles_texture_constant_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_texture_constant_type_complexType. + */ +class domGles_texture_constant_type : public daeElement, public domGles_texture_constant_type_complexType +{ +protected: + /** + * Constructor + */ + domGles_texture_constant_type() {} + /** + * Destructor + */ + virtual ~domGles_texture_constant_type() {} + /** + * Copy Constructor + */ + domGles_texture_constant_type( const domGles_texture_constant_type &cpy ) : daeElement(), domGles_texture_constant_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texture_constant_type &operator=( const domGles_texture_constant_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_pipeline.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_pipeline.h new file mode 100644 index 000000000..372c70968 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_pipeline.h @@ -0,0 +1,176 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_texture_pipeline_h__ +#define __domGles_texture_pipeline_h__ + +#include +#include + +#include +#include +#include + +/** + * Defines a set of texturing commands that will be converted into multitexturing + * operations using glTexEnv in regular and combiner mode. + */ +class domGles_texture_pipeline_complexType +{ +protected: // Attribute +/** + * 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; + +protected: // Elements +/** + * Defines a texture_pipeline command. This is a combiner-mode texturing operation. + * @see domTexcombiner + */ + domGles_texcombiner_command_type_Array elemTexcombiner_array; +/** + * Defines a texture_pipeline command. It is a simple noncombiner mode of + * texturing operations. @see domTexenv + */ + domGles_texenv_command_type_Array elemTexenv_array; +/** + * The extra element may appear any number of times. OpenGL ES extensions + * may be used here. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the texcombiner element array. + * @return Returns a reference to the array of texcombiner elements. + */ + domGles_texcombiner_command_type_Array &getTexcombiner_array() { return elemTexcombiner_array; } + /** + * Gets the texcombiner element array. + * @return Returns a constant reference to the array of texcombiner elements. + */ + const domGles_texcombiner_command_type_Array &getTexcombiner_array() const { return elemTexcombiner_array; } + /** + * Gets the texenv element array. + * @return Returns a reference to the array of texenv elements. + */ + domGles_texenv_command_type_Array &getTexenv_array() { return elemTexenv_array; } + /** + * Gets the texenv element array. + * @return Returns a constant reference to the array of texenv elements. + */ + const domGles_texenv_command_type_Array &getTexenv_array() const { return elemTexenv_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. + */ + 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 + */ + domGles_texture_pipeline_complexType() : attrSid(), elemTexcombiner_array(), elemTexenv_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domGles_texture_pipeline_complexType() {} + /** + * Copy Constructor + */ + domGles_texture_pipeline_complexType( const domGles_texture_pipeline_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texture_pipeline_complexType &operator=( const domGles_texture_pipeline_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_texture_pipeline_complexType. + */ +class domGles_texture_pipeline : public daeElement, public domGles_texture_pipeline_complexType +{ +protected: + /** + * Constructor + */ + domGles_texture_pipeline() {} + /** + * Destructor + */ + virtual ~domGles_texture_pipeline() {} + /** + * Copy Constructor + */ + domGles_texture_pipeline( const domGles_texture_pipeline &cpy ) : daeElement(), domGles_texture_pipeline_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texture_pipeline &operator=( const domGles_texture_pipeline &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_unit.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_unit.h new file mode 100644 index 000000000..4e49a17f5 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_unit.h @@ -0,0 +1,320 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGles_texture_unit_h__ +#define __domGles_texture_unit_h__ + +#include +#include + + +class domGles_texture_unit_complexType +{ +public: + class domSurface; + + typedef daeSmartRef domSurfaceRef; + typedef daeTArray domSurface_Array; + + class domSurface : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSurface() : _value() {} + /** + * Destructor + */ + virtual ~domSurface() {} + /** + * Copy Constructor + */ + domSurface( const domSurface &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSurface &operator=( const domSurface &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; + }; + + class domSampler_state; + + typedef daeSmartRef domSampler_stateRef; + typedef daeTArray domSampler_state_Array; + + class domSampler_state : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSampler_state() : _value() {} + /** + * Destructor + */ + virtual ~domSampler_state() {} + /** + * Copy Constructor + */ + domSampler_state( const domSampler_state &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSampler_state &operator=( const domSampler_state &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; + }; + + class domTexcoord; + + typedef daeSmartRef domTexcoordRef; + typedef daeTArray domTexcoord_Array; + + class domTexcoord : public daeElement + { + protected: // Attribute + xsNCName attrSemantic; + + + 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 ) { attrSemantic = atSemantic; } + + protected: + /** + * Constructor + */ + domTexcoord() : attrSemantic() {} + /** + * Destructor + */ + virtual ~domTexcoord() {} + /** + * Copy Constructor + */ + domTexcoord( const domTexcoord &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTexcoord &operator=( const domTexcoord &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: // Attribute +/** + * 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; + +protected: // Elements + domSurfaceRef elemSurface; + domSampler_stateRef elemSampler_state; + domTexcoordRef elemTexcoord; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the surface element. + * @return a daeSmartRef to the surface element. + */ + const domSurfaceRef getSurface() const { return elemSurface; } + /** + * Gets the sampler_state element. + * @return a daeSmartRef to the sampler_state element. + */ + const domSampler_stateRef getSampler_state() const { return elemSampler_state; } + /** + * Gets the texcoord element. + * @return a daeSmartRef to the texcoord element. + */ + const domTexcoordRef getTexcoord() const { return elemTexcoord; } +protected: + /** + * Constructor + */ + domGles_texture_unit_complexType() : attrSid(), elemSurface(), elemSampler_state(), elemTexcoord() {} + /** + * Destructor + */ + virtual ~domGles_texture_unit_complexType() {} + /** + * Copy Constructor + */ + domGles_texture_unit_complexType( const domGles_texture_unit_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texture_unit_complexType &operator=( const domGles_texture_unit_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGles_texture_unit_complexType. + */ +class domGles_texture_unit : public daeElement, public domGles_texture_unit_complexType +{ +protected: + /** + * Constructor + */ + domGles_texture_unit() {} + /** + * Destructor + */ + virtual ~domGles_texture_unit() {} + /** + * Copy Constructor + */ + domGles_texture_unit( const domGles_texture_unit &cpy ) : daeElement(), domGles_texture_unit_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGles_texture_unit &operator=( const domGles_texture_unit &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newarray_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newarray_type.h new file mode 100644 index 000000000..a1cdf70be --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newarray_type.h @@ -0,0 +1,154 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGlsl_newarray_type_h__ +#define __domGlsl_newarray_type_h__ + +#include +#include + +#include +#include + +/** + * The glsl_newarray_type is used to creates a parameter of a one-dimensional + * array type. + */ +class domGlsl_newarray_type_complexType +{ +protected: // Attribute +/** + * The length attribute specifies the length of the array. + */ + xsPositiveInteger attrLength; + +protected: // Elements + domGlsl_param_type_Array elemGlsl_param_type_array; +/** + * You may recursively nest glsl_newarray elements to create multidimensional + * arrays. @see domArray + */ + domGlsl_newarray_type_Array elemArray_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the length attribute. + * @return Returns a xsPositiveInteger of the length attribute. + */ + xsPositiveInteger getLength() const { return attrLength; } + /** + * Sets the length attribute. + * @param atLength The new value for the length attribute. + */ + void setLength( xsPositiveInteger atLength ) { attrLength = atLength; } + + /** + * Gets the glsl_param_type element array. + * @return Returns a reference to the array of glsl_param_type elements. + */ + domGlsl_param_type_Array &getGlsl_param_type_array() { return elemGlsl_param_type_array; } + /** + * Gets the glsl_param_type element array. + * @return Returns a constant reference to the array of glsl_param_type elements. + */ + const domGlsl_param_type_Array &getGlsl_param_type_array() const { return elemGlsl_param_type_array; } + /** + * Gets the array element array. + * @return Returns a reference to the array of array elements. + */ + domGlsl_newarray_type_Array &getArray_array() { return elemArray_array; } + /** + * Gets the array element array. + * @return Returns a constant reference to the array of array elements. + */ + const domGlsl_newarray_type_Array &getArray_array() const { return elemArray_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 + */ + domGlsl_newarray_type_complexType() : attrLength(), elemGlsl_param_type_array(), elemArray_array() {} + /** + * Destructor + */ + virtual ~domGlsl_newarray_type_complexType() {} + /** + * Copy Constructor + */ + domGlsl_newarray_type_complexType( const domGlsl_newarray_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_newarray_type_complexType &operator=( const domGlsl_newarray_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGlsl_newarray_type_complexType. + */ +class domGlsl_newarray_type : public daeElement, public domGlsl_newarray_type_complexType +{ +protected: + /** + * Constructor + */ + domGlsl_newarray_type() {} + /** + * Destructor + */ + virtual ~domGlsl_newarray_type() {} + /** + * Copy Constructor + */ + domGlsl_newarray_type( const domGlsl_newarray_type &cpy ) : daeElement(), domGlsl_newarray_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_newarray_type &operator=( const domGlsl_newarray_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newparam.h new file mode 100644 index 000000000..2d7e9c524 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newparam.h @@ -0,0 +1,289 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGlsl_newparam_h__ +#define __domGlsl_newparam_h__ + +#include +#include + +#include +#include +#include + +class domGlsl_newparam_complexType +{ +public: + class domSemantic; + + typedef daeSmartRef domSemanticRef; + typedef daeTArray domSemantic_Array; + + class domSemantic : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domSemantic() : _value() {} + /** + * Destructor + */ + virtual ~domSemantic() {} + /** + * Copy Constructor + */ + domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSemantic &operator=( const domSemantic &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; + }; + + class domModifier; + + typedef daeSmartRef domModifierRef; + typedef daeTArray domModifier_Array; + + class domModifier : public daeElement + { + + protected: // Value + /** + * The domFx_modifier_enum_common value of the text data of this element. + */ + domFx_modifier_enum_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_modifier_enum_common of the value. + */ + domFx_modifier_enum_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_modifier_enum_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domModifier() : _value() {} + /** + * Destructor + */ + virtual ~domModifier() {} + /** + * Copy Constructor + */ + domModifier( const domModifier &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domModifier &operator=( const domModifier &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: // Attribute + domGlsl_identifier attrSid; + +protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domSemanticRef elemSemantic; + domModifierRef elemModifier; + domGlsl_param_typeRef elemGlsl_param_type; + domGlsl_newarray_typeRef elemArray; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the sid attribute. + * @return Returns a domGlsl_identifier of the sid attribute. + */ + domGlsl_identifier getSid() const { return attrSid; } + /** + * Sets the sid attribute. + * @param atSid The new value for the sid attribute. + */ + void setSid( domGlsl_identifier atSid ) { attrSid = atSid; } + + /** + * 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 semantic element. + * @return a daeSmartRef to the semantic element. + */ + const domSemanticRef getSemantic() const { return elemSemantic; } + /** + * Gets the modifier element. + * @return a daeSmartRef to the modifier element. + */ + const domModifierRef getModifier() const { return elemModifier; } + /** + * Gets the glsl_param_type element. + * @return a daeSmartRef to the glsl_param_type element. + */ + const domGlsl_param_typeRef getGlsl_param_type() const { return elemGlsl_param_type; } + /** + * Gets the array element. + * @return a daeSmartRef to the array element. + */ + const domGlsl_newarray_typeRef getArray() const { return elemArray; } + /** + * 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 + */ + domGlsl_newparam_complexType() : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemGlsl_param_type(), elemArray() {} + /** + * Destructor + */ + virtual ~domGlsl_newparam_complexType() {} + /** + * Copy Constructor + */ + domGlsl_newparam_complexType( const domGlsl_newparam_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_newparam_complexType &operator=( const domGlsl_newparam_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGlsl_newparam_complexType. + */ +class domGlsl_newparam : public daeElement, public domGlsl_newparam_complexType +{ +protected: + /** + * Constructor + */ + domGlsl_newparam() {} + /** + * Destructor + */ + virtual ~domGlsl_newparam() {} + /** + * Copy Constructor + */ + domGlsl_newparam( const domGlsl_newparam &cpy ) : daeElement(), domGlsl_newparam_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_newparam &operator=( const domGlsl_newparam &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_param_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_param_type.h new file mode 100644 index 000000000..73d6a9157 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_param_type.h @@ -0,0 +1,1332 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGlsl_param_type_h__ +#define __domGlsl_param_type_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +/** + * A group that specifies the allowable types for GLSL profile parameters. + */ +class domGlsl_param_type : public daeElement +{ +public: + class domBool; + + typedef daeSmartRef domBoolRef; + typedef daeTArray domBool_Array; + + class domBool : public daeElement + { + + protected: // Value + /** + * The domGlsl_bool value of the text data of this element. + */ + domGlsl_bool _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGlsl_bool of the value. + */ + domGlsl_bool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGlsl_bool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool() : _value() {} + /** + * Destructor + */ + virtual ~domBool() {} + /** + * Copy Constructor + */ + domBool( const domBool &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool &operator=( const domBool &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; + }; + + class domBool2; + + typedef daeSmartRef domBool2Ref; + typedef daeTArray domBool2_Array; + + class domBool2 : public daeElement + { + + protected: // Value + /** + * The domGlsl_bool2 value of the text data of this element. + */ + domGlsl_bool2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_bool2 reference of the _value array. + */ + domGlsl_bool2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_bool2 reference of the _value array. + */ + const domGlsl_bool2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_bool2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool2() : _value() {} + /** + * Destructor + */ + virtual ~domBool2() {} + /** + * Copy Constructor + */ + domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool2 &operator=( const domBool2 &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; + }; + + class domBool3; + + typedef daeSmartRef domBool3Ref; + typedef daeTArray domBool3_Array; + + class domBool3 : public daeElement + { + + protected: // Value + /** + * The domGlsl_bool3 value of the text data of this element. + */ + domGlsl_bool3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_bool3 reference of the _value array. + */ + domGlsl_bool3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_bool3 reference of the _value array. + */ + const domGlsl_bool3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_bool3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool3() : _value() {} + /** + * Destructor + */ + virtual ~domBool3() {} + /** + * Copy Constructor + */ + domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool3 &operator=( const domBool3 &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; + }; + + class domBool4; + + typedef daeSmartRef domBool4Ref; + typedef daeTArray domBool4_Array; + + class domBool4 : public daeElement + { + + protected: // Value + /** + * The domGlsl_bool4 value of the text data of this element. + */ + domGlsl_bool4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_bool4 reference of the _value array. + */ + domGlsl_bool4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_bool4 reference of the _value array. + */ + const domGlsl_bool4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_bool4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBool4() : _value() {} + /** + * Destructor + */ + virtual ~domBool4() {} + /** + * Copy Constructor + */ + domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBool4 &operator=( const domBool4 &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; + }; + + class domFloat; + + typedef daeSmartRef domFloatRef; + typedef daeTArray domFloat_Array; + + class domFloat : public daeElement + { + + protected: // Value + /** + * The domGlsl_float value of the text data of this element. + */ + domGlsl_float _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGlsl_float of the value. + */ + domGlsl_float getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGlsl_float val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat() : _value() {} + /** + * Destructor + */ + virtual ~domFloat() {} + /** + * Copy Constructor + */ + domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat &operator=( const domFloat &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; + }; + + class domFloat2; + + typedef daeSmartRef domFloat2Ref; + typedef daeTArray domFloat2_Array; + + class domFloat2 : public daeElement + { + + protected: // Value + /** + * The domGlsl_float2 value of the text data of this element. + */ + domGlsl_float2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_float2 reference of the _value array. + */ + domGlsl_float2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_float2 reference of the _value array. + */ + const domGlsl_float2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_float2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2() {} + /** + * Copy Constructor + */ + domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2 &operator=( const domFloat2 &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; + }; + + class domFloat3; + + typedef daeSmartRef domFloat3Ref; + typedef daeTArray domFloat3_Array; + + class domFloat3 : public daeElement + { + + protected: // Value + /** + * The domGlsl_float3 value of the text data of this element. + */ + domGlsl_float3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_float3 reference of the _value array. + */ + domGlsl_float3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_float3 reference of the _value array. + */ + const domGlsl_float3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_float3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3() {} + /** + * Copy Constructor + */ + domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3 &operator=( const domFloat3 &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; + }; + + class domFloat4; + + typedef daeSmartRef domFloat4Ref; + typedef daeTArray domFloat4_Array; + + class domFloat4 : public daeElement + { + + protected: // Value + /** + * The domGlsl_float4 value of the text data of this element. + */ + domGlsl_float4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_float4 reference of the _value array. + */ + domGlsl_float4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_float4 reference of the _value array. + */ + const domGlsl_float4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_float4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4() {} + /** + * Copy Constructor + */ + domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4 &operator=( const domFloat4 &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; + }; + + class domFloat2x2; + + typedef daeSmartRef domFloat2x2Ref; + typedef daeTArray domFloat2x2_Array; + + class domFloat2x2 : public daeElement + { + + protected: // Value + /** + * The domGlsl_float2x2 value of the text data of this element. + */ + domGlsl_float2x2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_float2x2 reference of the _value array. + */ + domGlsl_float2x2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_float2x2 reference of the _value array. + */ + const domGlsl_float2x2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_float2x2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat2x2() : _value() {} + /** + * Destructor + */ + virtual ~domFloat2x2() {} + /** + * Copy Constructor + */ + domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat2x2 &operator=( const domFloat2x2 &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; + }; + + class domFloat3x3; + + typedef daeSmartRef domFloat3x3Ref; + typedef daeTArray domFloat3x3_Array; + + class domFloat3x3 : public daeElement + { + + protected: // Value + /** + * The domGlsl_float3x3 value of the text data of this element. + */ + domGlsl_float3x3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_float3x3 reference of the _value array. + */ + domGlsl_float3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_float3x3 reference of the _value array. + */ + const domGlsl_float3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_float3x3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat3x3() : _value() {} + /** + * Destructor + */ + virtual ~domFloat3x3() {} + /** + * Copy Constructor + */ + domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat3x3 &operator=( const domFloat3x3 &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; + }; + + class domFloat4x4; + + typedef daeSmartRef domFloat4x4Ref; + typedef daeTArray domFloat4x4_Array; + + class domFloat4x4 : public daeElement + { + + protected: // Value + /** + * The domGlsl_float4x4 value of the text data of this element. + */ + domGlsl_float4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_float4x4 reference of the _value array. + */ + domGlsl_float4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_float4x4 reference of the _value array. + */ + const domGlsl_float4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_float4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domFloat4x4() : _value() {} + /** + * Destructor + */ + virtual ~domFloat4x4() {} + /** + * Copy Constructor + */ + domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domFloat4x4 &operator=( const domFloat4x4 &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; + }; + + class domInt; + + typedef daeSmartRef domIntRef; + typedef daeTArray domInt_Array; + + class domInt : public daeElement + { + + protected: // Value + /** + * The domGlsl_int value of the text data of this element. + */ + domGlsl_int _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGlsl_int of the value. + */ + domGlsl_int getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGlsl_int val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt() : _value() {} + /** + * Destructor + */ + virtual ~domInt() {} + /** + * Copy Constructor + */ + domInt( const domInt &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt &operator=( const domInt &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; + }; + + class domInt2; + + typedef daeSmartRef domInt2Ref; + typedef daeTArray domInt2_Array; + + class domInt2 : public daeElement + { + + protected: // Value + /** + * The domGlsl_int2 value of the text data of this element. + */ + domGlsl_int2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_int2 reference of the _value array. + */ + domGlsl_int2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_int2 reference of the _value array. + */ + const domGlsl_int2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_int2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt2() : _value() {} + /** + * Destructor + */ + virtual ~domInt2() {} + /** + * Copy Constructor + */ + domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt2 &operator=( const domInt2 &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; + }; + + class domInt3; + + typedef daeSmartRef domInt3Ref; + typedef daeTArray domInt3_Array; + + class domInt3 : public daeElement + { + + protected: // Value + /** + * The domGlsl_int3 value of the text data of this element. + */ + domGlsl_int3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_int3 reference of the _value array. + */ + domGlsl_int3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_int3 reference of the _value array. + */ + const domGlsl_int3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_int3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt3() : _value() {} + /** + * Destructor + */ + virtual ~domInt3() {} + /** + * Copy Constructor + */ + domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt3 &operator=( const domInt3 &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; + }; + + class domInt4; + + typedef daeSmartRef domInt4Ref; + typedef daeTArray domInt4_Array; + + class domInt4 : public daeElement + { + + protected: // Value + /** + * The domGlsl_int4 value of the text data of this element. + */ + domGlsl_int4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domGlsl_int4 reference of the _value array. + */ + domGlsl_int4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domGlsl_int4 reference of the _value array. + */ + const domGlsl_int4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domGlsl_int4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInt4() : _value() {} + /** + * Destructor + */ + virtual ~domInt4() {} + /** + * Copy Constructor + */ + domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt4 &operator=( const domInt4 &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; + }; + + class domEnum; + + typedef daeSmartRef domEnumRef; + typedef daeTArray domEnum_Array; + + class domEnum : public daeElement + { + + protected: // Value + /** + * The domGl_enumeration value of the text data of this element. + */ + domGl_enumeration _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGl_enumeration of the value. + */ + domGl_enumeration getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGl_enumeration val ) { _value = val; } + + protected: + /** + * Constructor + */ + domEnum() : _value() {} + /** + * Destructor + */ + virtual ~domEnum() {} + /** + * Copy Constructor + */ + domEnum( const domEnum &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domEnum &operator=( const domEnum &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: // Elements + domBoolRef elemBool; + domBool2Ref elemBool2; + domBool3Ref elemBool3; + domBool4Ref elemBool4; + domFloatRef elemFloat; + domFloat2Ref elemFloat2; + domFloat3Ref elemFloat3; + domFloat4Ref elemFloat4; + domFloat2x2Ref elemFloat2x2; + domFloat3x3Ref elemFloat3x3; + domFloat4x4Ref elemFloat4x4; + domIntRef elemInt; + domInt2Ref elemInt2; + domInt3Ref elemInt3; + domInt4Ref elemInt4; + domFx_surface_commonRef elemSurface; + domGl_sampler1DRef elemSampler1D; + domGl_sampler2DRef elemSampler2D; + domGl_sampler3DRef elemSampler3D; + domGl_samplerCUBERef elemSamplerCUBE; + domGl_samplerRECTRef elemSamplerRECT; + domGl_samplerDEPTHRef elemSamplerDEPTH; + domEnumRef elemEnum; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the bool element. + * @return a daeSmartRef to the bool element. + */ + const domBoolRef getBool() const { return elemBool; } + /** + * Gets the bool2 element. + * @return a daeSmartRef to the bool2 element. + */ + const domBool2Ref getBool2() const { return elemBool2; } + /** + * Gets the bool3 element. + * @return a daeSmartRef to the bool3 element. + */ + const domBool3Ref getBool3() const { return elemBool3; } + /** + * Gets the bool4 element. + * @return a daeSmartRef to the bool4 element. + */ + const domBool4Ref getBool4() const { return elemBool4; } + /** + * Gets the float element. + * @return a daeSmartRef to the float element. + */ + const domFloatRef getFloat() const { return elemFloat; } + /** + * Gets the float2 element. + * @return a daeSmartRef to the float2 element. + */ + const domFloat2Ref getFloat2() const { return elemFloat2; } + /** + * Gets the float3 element. + * @return a daeSmartRef to the float3 element. + */ + const domFloat3Ref getFloat3() const { return elemFloat3; } + /** + * Gets the float4 element. + * @return a daeSmartRef to the float4 element. + */ + const domFloat4Ref getFloat4() const { return elemFloat4; } + /** + * Gets the float2x2 element. + * @return a daeSmartRef to the float2x2 element. + */ + const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } + /** + * Gets the float3x3 element. + * @return a daeSmartRef to the float3x3 element. + */ + const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } + /** + * Gets the float4x4 element. + * @return a daeSmartRef to the float4x4 element. + */ + const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } + /** + * Gets the int element. + * @return a daeSmartRef to the int element. + */ + const domIntRef getInt() const { return elemInt; } + /** + * Gets the int2 element. + * @return a daeSmartRef to the int2 element. + */ + const domInt2Ref getInt2() const { return elemInt2; } + /** + * Gets the int3 element. + * @return a daeSmartRef to the int3 element. + */ + const domInt3Ref getInt3() const { return elemInt3; } + /** + * Gets the int4 element. + * @return a daeSmartRef to the int4 element. + */ + const domInt4Ref getInt4() const { return elemInt4; } + /** + * Gets the surface element. + * @return a daeSmartRef to the surface element. + */ + const domFx_surface_commonRef getSurface() const { return elemSurface; } + /** + * Gets the sampler1D element. + * @return a daeSmartRef to the sampler1D element. + */ + const domGl_sampler1DRef getSampler1D() const { return elemSampler1D; } + /** + * Gets the sampler2D element. + * @return a daeSmartRef to the sampler2D element. + */ + const domGl_sampler2DRef getSampler2D() const { return elemSampler2D; } + /** + * Gets the sampler3D element. + * @return a daeSmartRef to the sampler3D element. + */ + const domGl_sampler3DRef getSampler3D() const { return elemSampler3D; } + /** + * Gets the samplerCUBE element. + * @return a daeSmartRef to the samplerCUBE element. + */ + const domGl_samplerCUBERef getSamplerCUBE() const { return elemSamplerCUBE; } + /** + * Gets the samplerRECT element. + * @return a daeSmartRef to the samplerRECT element. + */ + const domGl_samplerRECTRef getSamplerRECT() const { return elemSamplerRECT; } + /** + * Gets the samplerDEPTH element. + * @return a daeSmartRef to the samplerDEPTH element. + */ + const domGl_samplerDEPTHRef getSamplerDEPTH() const { return elemSamplerDEPTH; } + /** + * Gets the enum element. + * @return a daeSmartRef to the enum element. + */ + const domEnumRef getEnum() const { return elemEnum; } + /** + * 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 + */ + domGlsl_param_type() : elemBool(), elemBool2(), elemBool3(), elemBool4(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat2x2(), elemFloat3x3(), elemFloat4x4(), elemInt(), elemInt2(), elemInt3(), elemInt4(), elemSurface(), elemSampler1D(), elemSampler2D(), elemSampler3D(), elemSamplerCUBE(), elemSamplerRECT(), elemSamplerDEPTH(), elemEnum() {} + /** + * Destructor + */ + virtual ~domGlsl_param_type() {} + /** + * Copy Constructor + */ + domGlsl_param_type( const domGlsl_param_type &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_param_type &operator=( const domGlsl_param_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setarray_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setarray_type.h new file mode 100644 index 000000000..c7865f626 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setarray_type.h @@ -0,0 +1,154 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGlsl_setarray_type_h__ +#define __domGlsl_setarray_type_h__ + +#include +#include + +#include +#include + +/** + * The glsl_newarray_type is used to creates a parameter of a one-dimensional + * array type. + */ +class domGlsl_setarray_type_complexType +{ +protected: // Attribute +/** + * The length attribute specifies the length of the array. + */ + xsPositiveInteger attrLength; + +protected: // Elements + domGlsl_param_type_Array elemGlsl_param_type_array; +/** + * You may recursively nest glsl_newarray elements to create multidimensional + * arrays. @see domArray + */ + domGlsl_setarray_type_Array elemArray_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the length attribute. + * @return Returns a xsPositiveInteger of the length attribute. + */ + xsPositiveInteger getLength() const { return attrLength; } + /** + * Sets the length attribute. + * @param atLength The new value for the length attribute. + */ + void setLength( xsPositiveInteger atLength ) { attrLength = atLength; } + + /** + * Gets the glsl_param_type element array. + * @return Returns a reference to the array of glsl_param_type elements. + */ + domGlsl_param_type_Array &getGlsl_param_type_array() { return elemGlsl_param_type_array; } + /** + * Gets the glsl_param_type element array. + * @return Returns a constant reference to the array of glsl_param_type elements. + */ + const domGlsl_param_type_Array &getGlsl_param_type_array() const { return elemGlsl_param_type_array; } + /** + * Gets the array element array. + * @return Returns a reference to the array of array elements. + */ + domGlsl_setarray_type_Array &getArray_array() { return elemArray_array; } + /** + * Gets the array element array. + * @return Returns a constant reference to the array of array elements. + */ + const domGlsl_setarray_type_Array &getArray_array() const { return elemArray_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 + */ + domGlsl_setarray_type_complexType() : attrLength(), elemGlsl_param_type_array(), elemArray_array() {} + /** + * Destructor + */ + virtual ~domGlsl_setarray_type_complexType() {} + /** + * Copy Constructor + */ + domGlsl_setarray_type_complexType( const domGlsl_setarray_type_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_setarray_type_complexType &operator=( const domGlsl_setarray_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGlsl_setarray_type_complexType. + */ +class domGlsl_setarray_type : public daeElement, public domGlsl_setarray_type_complexType +{ +protected: + /** + * Constructor + */ + domGlsl_setarray_type() {} + /** + * Destructor + */ + virtual ~domGlsl_setarray_type() {} + /** + * Copy Constructor + */ + domGlsl_setarray_type( const domGlsl_setarray_type &cpy ) : daeElement(), domGlsl_setarray_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_setarray_type &operator=( const domGlsl_setarray_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam.h new file mode 100644 index 000000000..3b9bd852f --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam.h @@ -0,0 +1,157 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGlsl_setparam_h__ +#define __domGlsl_setparam_h__ + +#include +#include + +#include +#include +#include + +class domGlsl_setparam_complexType +{ +protected: // Attributes + domGlsl_identifier attrRef; + xsNCName attrProgram; + +protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domGlsl_param_typeRef elemGlsl_param_type; + domGlsl_setarray_typeRef elemArray; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a domGlsl_identifier of the ref attribute. + */ + domGlsl_identifier getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( domGlsl_identifier atRef ) { attrRef = atRef; } + + /** + * Gets the program attribute. + * @return Returns a xsNCName of the program attribute. + */ + xsNCName getProgram() const { return attrProgram; } + /** + * Sets the program attribute. + * @param atProgram The new value for the program attribute. + */ + void setProgram( xsNCName atProgram ) { attrProgram = atProgram; } + + /** + * 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 glsl_param_type element. + * @return a daeSmartRef to the glsl_param_type element. + */ + const domGlsl_param_typeRef getGlsl_param_type() const { return elemGlsl_param_type; } + /** + * Gets the array element. + * @return a daeSmartRef to the array element. + */ + const domGlsl_setarray_typeRef getArray() const { return elemArray; } + /** + * 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 + */ + domGlsl_setparam_complexType() : attrRef(), attrProgram(), elemAnnotate_array(), elemGlsl_param_type(), elemArray() {} + /** + * Destructor + */ + virtual ~domGlsl_setparam_complexType() {} + /** + * Copy Constructor + */ + domGlsl_setparam_complexType( const domGlsl_setparam_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_setparam_complexType &operator=( const domGlsl_setparam_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGlsl_setparam_complexType. + */ +class domGlsl_setparam : public daeElement, public domGlsl_setparam_complexType +{ +protected: + /** + * Constructor + */ + domGlsl_setparam() {} + /** + * Destructor + */ + virtual ~domGlsl_setparam() {} + /** + * Copy Constructor + */ + domGlsl_setparam( const domGlsl_setparam &cpy ) : daeElement(), domGlsl_setparam_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_setparam &operator=( const domGlsl_setparam &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam_simple.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam_simple.h new file mode 100644 index 000000000..8abe5fa3d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam_simple.h @@ -0,0 +1,122 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGlsl_setparam_simple_h__ +#define __domGlsl_setparam_simple_h__ + +#include +#include + +#include +#include + +class domGlsl_setparam_simple_complexType +{ +protected: // Attribute + domGlsl_identifier attrRef; + +protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domGlsl_param_typeRef elemGlsl_param_type; + +public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a domGlsl_identifier of the ref attribute. + */ + domGlsl_identifier getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( domGlsl_identifier atRef ) { attrRef = atRef; } + + /** + * 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 glsl_param_type element. + * @return a daeSmartRef to the glsl_param_type element. + */ + const domGlsl_param_typeRef getGlsl_param_type() const { return elemGlsl_param_type; } +protected: + /** + * Constructor + */ + domGlsl_setparam_simple_complexType() : attrRef(), elemAnnotate_array(), elemGlsl_param_type() {} + /** + * Destructor + */ + virtual ~domGlsl_setparam_simple_complexType() {} + /** + * Copy Constructor + */ + domGlsl_setparam_simple_complexType( const domGlsl_setparam_simple_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_setparam_simple_complexType &operator=( const domGlsl_setparam_simple_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGlsl_setparam_simple_complexType. + */ +class domGlsl_setparam_simple : public daeElement, public domGlsl_setparam_simple_complexType +{ +protected: + /** + * Constructor + */ + domGlsl_setparam_simple() {} + /** + * Destructor + */ + virtual ~domGlsl_setparam_simple() {} + /** + * Copy Constructor + */ + domGlsl_setparam_simple( const domGlsl_setparam_simple &cpy ) : daeElement(), domGlsl_setparam_simple_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_setparam_simple &operator=( const domGlsl_setparam_simple &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_surface_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_surface_type.h new file mode 100644 index 000000000..9fa0eb1d1 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_surface_type.h @@ -0,0 +1,331 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domGlsl_surface_type_h__ +#define __domGlsl_surface_type_h__ + +#include +#include + +#include +#include +#include +#include +#include + +/** + * A surface type for the GLSL profile. This surface inherits from the fx_surface_common + * type and adds the ability to programmatically generate textures. + */ +class domGlsl_surface_type_complexType : public domFx_surface_common_complexType +{ +public: + class domGenerator; + + typedef daeSmartRef domGeneratorRef; + typedef daeTArray domGenerator_Array; + +/** + * A procedural surface generator. + */ + class domGenerator : public daeElement + { + public: + class domName; + + typedef daeSmartRef domNameRef; + typedef daeTArray domName_Array; + +/** + * The entry symbol for the shader function. + */ + class domName : public daeElement + { + protected: // Attribute + xsNCName attrSource; + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the source attribute. + * @return Returns a xsNCName of the source attribute. + */ + xsNCName getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( xsNCName atSource ) { attrSource = atSource; } + + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domName() : attrSource(), _value() {} + /** + * Destructor + */ + virtual ~domName() {} + /** + * Copy Constructor + */ + domName( const domName &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domName &operator=( const domName &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: // Elements +/** + * The annotate element allows you to specify an annotation for this surface + * generator. @see domAnnotate + */ + domFx_annotate_common_Array elemAnnotate_array; +/** + * The code element allows you to embed GLSL code to use for this surface + * generator. @see domCode + */ + domFx_code_profile_Array elemCode_array; +/** + * The include element allows you to import GLSL code to use for this surface + * generator. @see domInclude + */ + domFx_include_common_Array elemInclude_array; +/** + * The entry symbol for the shader function. @see domName + */ + domNameRef elemName; +/** + * The setparam element allows you to assign a new value to a previously defined + * parameter. @see domSetparam + */ + domGlsl_setparam_simple_Array elemSetparam_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * 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. + */ + domFx_code_profile_Array &getCode_array() { return elemCode_array; } + /** + * Gets the code element array. + * @return Returns a constant reference to the array of code elements. + */ + const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } + /** + * Gets the include element array. + * @return Returns a reference to the array of include elements. + */ + domFx_include_common_Array &getInclude_array() { return elemInclude_array; } + /** + * Gets the include element array. + * @return Returns a constant reference to the array of include elements. + */ + const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } + /** + * Gets the name element. + * @return a daeSmartRef to the name element. + */ + const domNameRef getName() const { return elemName; } + /** + * Gets the setparam element array. + * @return Returns a reference to the array of setparam elements. + */ + domGlsl_setparam_simple_Array &getSetparam_array() { return elemSetparam_array; } + /** + * Gets the setparam element array. + * @return Returns a constant reference to the array of setparam elements. + */ + const domGlsl_setparam_simple_Array &getSetparam_array() const { return elemSetparam_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 + */ + domGenerator() : elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemName(), elemSetparam_array() {} + /** + * Destructor + */ + virtual ~domGenerator() {} + /** + * Copy Constructor + */ + domGenerator( const domGenerator &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGenerator &operator=( const domGenerator &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: // Element +/** + * A procedural surface generator. @see domGenerator + */ + domGeneratorRef elemGenerator; + +public: //Accessors and Mutators + /** + * Gets the generator element. + * @return a daeSmartRef to the generator element. + */ + const domGeneratorRef getGenerator() const { return elemGenerator; } +protected: + /** + * Constructor + */ + domGlsl_surface_type_complexType() : elemGenerator() {} + /** + * Destructor + */ + virtual ~domGlsl_surface_type_complexType() {} + /** + * Copy Constructor + */ + domGlsl_surface_type_complexType( const domGlsl_surface_type_complexType &cpy ) : domFx_surface_common_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_surface_type_complexType &operator=( const domGlsl_surface_type_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domGlsl_surface_type_complexType. + */ +class domGlsl_surface_type : public daeElement, public domGlsl_surface_type_complexType +{ +protected: + /** + * Constructor + */ + domGlsl_surface_type() {} + /** + * Destructor + */ + virtual ~domGlsl_surface_type() {} + /** + * Copy Constructor + */ + domGlsl_surface_type( const domGlsl_surface_type &cpy ) : daeElement(), domGlsl_surface_type_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domGlsl_surface_type &operator=( const domGlsl_surface_type &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domIDREF_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domIDREF_array.h new file mode 100644 index 000000000..dc271a2cd --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domIDREF_array.h @@ -0,0 +1,139 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domIDREF_array_h__ +#define __domIDREF_array_h__ + +#include +#include + + +/** + * The IDREF_array element declares the storage for a homogenous array of + * ID reference values. + */ +class domIDREF_array : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of values in the array. Required + * attribute. + */ + domUint attrCount; + +protected: // Value + /** + * The xsIDREFS value of the text data of this element. + */ + xsIDREFS _value; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the _value array. + * @return Returns a xsIDREFS reference of the _value array. + */ + xsIDREFS &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant xsIDREFS reference of the _value array. + */ + const xsIDREFS &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const xsIDREFS &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domIDREF_array() : attrId(), attrName(), attrCount(), _value() {} + /** + * Destructor + */ + virtual ~domIDREF_array() {} + /** + * Copy Constructor + */ + domIDREF_array( const domIDREF_array &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domIDREF_array &operator=( const domIDREF_array &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domImage.h b/Extras/COLLADA_DOM/include/1.4/dom/domImage.h new file mode 100644 index 000000000..9de1d3e44 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domImage.h @@ -0,0 +1,382 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domImage_h__ +#define __domImage_h__ + +#include +#include + +#include +#include + +/** + * The image element declares the storage for the graphical representation + * of an object. The image element best describes raster image data, but + * can conceivably handle other forms of imagery. The image elements allows + * for specifying an external image file with the init_from element or embed + * image data with the data element. + */ +class domImage : public daeElement +{ +public: + class domData; + + typedef daeSmartRef domDataRef; + typedef daeTArray domData_Array; + +/** + * The data child element contains a sequence of hexadecimal encoded binary + * octets representing the embedded image data. + */ + class domData : public daeElement + { + + protected: // Value + /** + * The domListOfHexBinary value of the text data of this element. + */ + domListOfHexBinary _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domListOfHexBinary reference of the _value array. + */ + domListOfHexBinary &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfHexBinary reference of the _value array. + */ + const domListOfHexBinary &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfHexBinary &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domData() : _value() {} + /** + * Destructor + */ + virtual ~domData() {} + /** + * Copy Constructor + */ + domData( const domData &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domData &operator=( const domData &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; + }; + + class domInit_from; + + typedef daeSmartRef domInit_fromRef; + typedef daeTArray domInit_from_Array; + +/** + * The init_from element allows you to specify an external image file to use + * for the image element. + */ + class domInit_from : public daeElement + { + + protected: // Value + /** + * The xsAnyURI value of the text data of this element. + */ + xsAnyURI _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return Returns a xsAnyURI of the value. + */ + xsAnyURI &getValue() { return _value; } + /** + * Gets the value of this element. + * @return Returns a constant xsAnyURI of the value. + */ + const xsAnyURI &getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( const xsAnyURI &val ) { _value.setURI( val.getURI() ); } + + protected: + /** + * Constructor + */ + domInit_from() : _value() {} + /** + * Destructor + */ + virtual ~domInit_from() {} + /** + * Copy Constructor + */ + domInit_from( const domInit_from &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInit_from &operator=( const domInit_from &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 +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The format attribute is a text string value that indicates the image format. + * Optional attribute. + */ + xsToken attrFormat; +/** + * The height attribute is an integer value that indicates the height of + * the image in pixel units. Optional attribute. + */ + domUint attrHeight; +/** + * The width attribute is an integer value that indicates the width of the + * image in pixel units. Optional attribute. + */ + domUint attrWidth; +/** + * The depth attribute is an integer value that indicates the depth of the + * image in pixel units. A 2-D image has a depth of 1, which is also the + * default value. Optional attribute. + */ + domUint attrDepth; + +protected: // Elements +/** + * The image element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The data child element contains a sequence of hexadecimal encoded binary + * octets representing the embedded image data. @see domData + */ + domDataRef elemData; +/** + * The init_from element allows you to specify an external image file to use + * for the image element. @see domInit_from + */ + domInit_fromRef elemInit_from; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the format attribute. + * @return Returns a xsToken of the format attribute. + */ + xsToken getFormat() const { return attrFormat; } + /** + * Sets the format attribute. + * @param atFormat The new value for the format attribute. + */ + void setFormat( xsToken atFormat ) { attrFormat = atFormat; } + + /** + * Gets the height attribute. + * @return Returns a domUint of the height attribute. + */ + domUint getHeight() const { return attrHeight; } + /** + * Sets the height attribute. + * @param atHeight The new value for the height attribute. + */ + void setHeight( domUint atHeight ) { attrHeight = atHeight; } + + /** + * Gets the width attribute. + * @return Returns a domUint of the width attribute. + */ + domUint getWidth() const { return attrWidth; } + /** + * Sets the width attribute. + * @param atWidth The new value for the width attribute. + */ + void setWidth( domUint atWidth ) { attrWidth = atWidth; } + + /** + * Gets the depth attribute. + * @return Returns a domUint of the depth attribute. + */ + domUint getDepth() const { return attrDepth; } + /** + * Sets the depth attribute. + * @param atDepth The new value for the depth attribute. + */ + void setDepth( domUint atDepth ) { attrDepth = atDepth; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the data element. + * @return a daeSmartRef to the data element. + */ + const domDataRef getData() const { return elemData; } + /** + * Gets the init_from element. + * @return a daeSmartRef to the init_from element. + */ + const domInit_fromRef getInit_from() const { return elemInit_from; } + /** + * 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. + */ + 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 + */ + domImage() : attrId(), attrName(), attrFormat(), attrHeight(), attrWidth(), attrDepth(), elemAsset(), elemData(), elemInit_from(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domImage() {} + /** + * Copy Constructor + */ + domImage( const domImage &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domImage &operator=( const domImage &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInputGlobal.h b/Extras/COLLADA_DOM/include/1.4/dom/domInputGlobal.h new file mode 100644 index 000000000..f1beea5f4 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInputGlobal.h @@ -0,0 +1,131 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInputGlobal_h__ +#define __domInputGlobal_h__ + +#include +#include + + +/** + * The InputGlobal type is used to represent inputs that can reference external + * resources. + */ +class domInputGlobal_complexType +{ +protected: // Attributes +/** + * The semantic attribute is the user-defined meaning of the input connection. + * Required attribute. + */ + xsNMTOKEN attrSemantic; +/** + * The source attribute indicates the location of the data source. Required + * attribute. + */ + xsAnyURI attrSource; + + +public: //Accessors and Mutators + /** + * Gets the semantic attribute. + * @return Returns a xsNMTOKEN of the semantic attribute. + */ + xsNMTOKEN getSemantic() const { return attrSemantic; } + /** + * Sets the semantic attribute. + * @param atSemantic The new value for the semantic attribute. + */ + void setSemantic( xsNMTOKEN atSemantic ) { attrSemantic = atSemantic; } + + /** + * Gets the source attribute. + * @return Returns a xsAnyURI reference of the source attribute. + */ + xsAnyURI &getSource() { return attrSource; } + /** + * Gets the source attribute. + * @return Returns a constant xsAnyURI reference of the source attribute. + */ + const xsAnyURI &getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( const xsAnyURI &atSource ) { attrSource.setURI( atSource.getURI() ); } + +protected: + /** + * Constructor + */ + domInputGlobal_complexType() : attrSemantic(), attrSource() {} + /** + * Destructor + */ + virtual ~domInputGlobal_complexType() {} + /** + * Copy Constructor + */ + domInputGlobal_complexType( const domInputGlobal_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInputGlobal_complexType &operator=( const domInputGlobal_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domInputGlobal_complexType. + */ +class domInputGlobal : public daeElement, public domInputGlobal_complexType +{ +protected: + /** + * Constructor + */ + domInputGlobal() {} + /** + * Destructor + */ + virtual ~domInputGlobal() {} + /** + * Copy Constructor + */ + domInputGlobal( const domInputGlobal &cpy ) : daeElement(), domInputGlobal_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInputGlobal &operator=( const domInputGlobal &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInputLocal.h b/Extras/COLLADA_DOM/include/1.4/dom/domInputLocal.h new file mode 100644 index 000000000..dbba2ac1d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInputLocal.h @@ -0,0 +1,131 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInputLocal_h__ +#define __domInputLocal_h__ + +#include +#include + + +/** + * The InputLocal type is used to represent inputs that can only reference + * resources declared in the same document. + */ +class domInputLocal_complexType +{ +protected: // Attributes +/** + * The semantic attribute is the user-defined meaning of the input connection. + * Required attribute. + */ + xsNMTOKEN attrSemantic; +/** + * The source attribute indicates the location of the data source. Required + * attribute. + */ + domURIFragmentType attrSource; + + +public: //Accessors and Mutators + /** + * Gets the semantic attribute. + * @return Returns a xsNMTOKEN of the semantic attribute. + */ + xsNMTOKEN getSemantic() const { return attrSemantic; } + /** + * Sets the semantic attribute. + * @param atSemantic The new value for the semantic attribute. + */ + void setSemantic( xsNMTOKEN atSemantic ) { attrSemantic = atSemantic; } + + /** + * Gets the source attribute. + * @return Returns a domURIFragmentType reference of the source attribute. + */ + domURIFragmentType &getSource() { return attrSource; } + /** + * Gets the source attribute. + * @return Returns a constant domURIFragmentType reference of the source attribute. + */ + const domURIFragmentType &getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( const domURIFragmentType &atSource ) { attrSource.setURI( atSource.getURI() ); } + +protected: + /** + * Constructor + */ + domInputLocal_complexType() : attrSemantic(), attrSource() {} + /** + * Destructor + */ + virtual ~domInputLocal_complexType() {} + /** + * Copy Constructor + */ + domInputLocal_complexType( const domInputLocal_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInputLocal_complexType &operator=( const domInputLocal_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domInputLocal_complexType. + */ +class domInputLocal : public daeElement, public domInputLocal_complexType +{ +protected: + /** + * Constructor + */ + domInputLocal() {} + /** + * Destructor + */ + virtual ~domInputLocal() {} + /** + * Copy Constructor + */ + domInputLocal( const domInputLocal &cpy ) : daeElement(), domInputLocal_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInputLocal &operator=( const domInputLocal &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInputLocalOffset.h b/Extras/COLLADA_DOM/include/1.4/dom/domInputLocalOffset.h new file mode 100644 index 000000000..1d0a6ebd8 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInputLocalOffset.h @@ -0,0 +1,165 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInputLocalOffset_h__ +#define __domInputLocalOffset_h__ + +#include +#include + + +/** + * The InputLocalOffset type is used to represent indexed inputs that can + * only reference resources declared in the same document. + */ +class domInputLocalOffset_complexType +{ +protected: // Attributes +/** + * The offset attribute represents the offset into the list of indices. + * If two input elements share the same offset, they will be indexed the + * same. This works as a simple form of compression for the list of indices + * as well as defining the order the inputs should be used in. Required attribute. + */ + domUint attrOffset; +/** + * The semantic attribute is the user-defined meaning of the input connection. + * Required attribute. + */ + xsNMTOKEN attrSemantic; +/** + * The source attribute indicates the location of the data source. Required + * attribute. + */ + domURIFragmentType attrSource; +/** + * The set attribute indicates which inputs should be grouped together as + * a single set. This is helpful when multiple inputs share the same semantics. + */ + domUint attrSet; + + +public: //Accessors and Mutators + /** + * Gets the offset attribute. + * @return Returns a domUint of the offset attribute. + */ + domUint getOffset() const { return attrOffset; } + /** + * Sets the offset attribute. + * @param atOffset The new value for the offset attribute. + */ + void setOffset( domUint atOffset ) { attrOffset = atOffset; } + + /** + * Gets the semantic attribute. + * @return Returns a xsNMTOKEN of the semantic attribute. + */ + xsNMTOKEN getSemantic() const { return attrSemantic; } + /** + * Sets the semantic attribute. + * @param atSemantic The new value for the semantic attribute. + */ + void setSemantic( xsNMTOKEN atSemantic ) { attrSemantic = atSemantic; } + + /** + * Gets the source attribute. + * @return Returns a domURIFragmentType reference of the source attribute. + */ + domURIFragmentType &getSource() { return attrSource; } + /** + * Gets the source attribute. + * @return Returns a constant domURIFragmentType reference of the source attribute. + */ + const domURIFragmentType &getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( const domURIFragmentType &atSource ) { attrSource.setURI( atSource.getURI() ); } + + /** + * Gets the set attribute. + * @return Returns a domUint of the set attribute. + */ + domUint getSet() const { return attrSet; } + /** + * Sets the set attribute. + * @param atSet The new value for the set attribute. + */ + void setSet( domUint atSet ) { attrSet = atSet; } + +protected: + /** + * Constructor + */ + domInputLocalOffset_complexType() : attrOffset(), attrSemantic(), attrSource(), attrSet() {} + /** + * Destructor + */ + virtual ~domInputLocalOffset_complexType() {} + /** + * Copy Constructor + */ + domInputLocalOffset_complexType( const domInputLocalOffset_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInputLocalOffset_complexType &operator=( const domInputLocalOffset_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domInputLocalOffset_complexType. + */ +class domInputLocalOffset : public daeElement, public domInputLocalOffset_complexType +{ +protected: + /** + * Constructor + */ + domInputLocalOffset() {} + /** + * Destructor + */ + virtual ~domInputLocalOffset() {} + /** + * Copy Constructor + */ + domInputLocalOffset( const domInputLocalOffset &cpy ) : daeElement(), domInputLocalOffset_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInputLocalOffset &operator=( const domInputLocalOffset &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstanceWithExtra.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstanceWithExtra.h new file mode 100644 index 000000000..274872d64 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstanceWithExtra.h @@ -0,0 +1,134 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstanceWithExtra_h__ +#define __domInstanceWithExtra_h__ + +#include +#include + +#include + +/** + * The InstanceWithExtra type is used for all generic instance elements. A + * generic instance element is one which does not have any specific child + * elements declared. + */ +class domInstanceWithExtra_complexType +{ +protected: // Attribute +/** + * The url attribute refers to resource to instantiate. This may refer to + * a local resource using a relative URL fragment identifier that begins + * with the “#” character. The url attribute may refer to an external + * resource using an absolute or relative URL. + */ + xsAnyURI attrUrl; + +protected: // Element +/** + * The extra element may occur any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the url attribute. + * @return Returns a xsAnyURI reference of the url attribute. + */ + xsAnyURI &getUrl() { return attrUrl; } + /** + * Gets the url attribute. + * @return Returns a constant xsAnyURI reference of the url attribute. + */ + const xsAnyURI &getUrl() const { return attrUrl; } + /** + * Sets the url attribute. + * @param atUrl The new value for the url attribute. + */ + void setUrl( const xsAnyURI &atUrl ) { attrUrl.setURI( atUrl.getURI() ); } + + /** + * 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; } +protected: + /** + * Constructor + */ + domInstanceWithExtra_complexType() : attrUrl(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domInstanceWithExtra_complexType() {} + /** + * Copy Constructor + */ + domInstanceWithExtra_complexType( const domInstanceWithExtra_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstanceWithExtra_complexType &operator=( const domInstanceWithExtra_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domInstanceWithExtra_complexType. + */ +class domInstanceWithExtra : public daeElement, public domInstanceWithExtra_complexType +{ +protected: + /** + * Constructor + */ + domInstanceWithExtra() {} + /** + * Destructor + */ + virtual ~domInstanceWithExtra() {} + /** + * Copy Constructor + */ + domInstanceWithExtra( const domInstanceWithExtra &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstanceWithExtra &operator=( const domInstanceWithExtra &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_camera.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_camera.h new file mode 100644 index 000000000..e3c2da3ae --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_camera.h @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_camera_h__ +#define __domInstance_camera_h__ + +#include +#include + +#include + +/** + * The instance_camera element declares the instantiation of a COLLADA camera + * resource. + */ +class domInstance_camera : public daeElement, public domInstanceWithExtra_complexType +{ + +protected: + /** + * Constructor + */ + domInstance_camera() {} + /** + * Destructor + */ + virtual ~domInstance_camera() {} + /** + * Copy Constructor + */ + domInstance_camera( const domInstance_camera &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_camera &operator=( const domInstance_camera &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_controller.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_controller.h new file mode 100644 index 000000000..1551a06f6 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_controller.h @@ -0,0 +1,213 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_controller_h__ +#define __domInstance_controller_h__ + +#include +#include + +#include +#include + +/** + * The instance_controller element declares the instantiation of a COLLADA + * controller resource. + */ +class domInstance_controller : public daeElement +{ +public: + class domSkeleton; + + typedef daeSmartRef domSkeletonRef; + typedef daeTArray domSkeleton_Array; + +/** + * The skeleton element is used to indicate where a skin controller is to + * start to search for the joint nodes it needs. This element is meaningless + * for morph controllers. + */ + class domSkeleton : public daeElement + { + + protected: // Value + /** + * The xsAnyURI value of the text data of this element. + */ + xsAnyURI _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return Returns a xsAnyURI of the value. + */ + xsAnyURI &getValue() { return _value; } + /** + * Gets the value of this element. + * @return Returns a constant xsAnyURI of the value. + */ + const xsAnyURI &getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( const xsAnyURI &val ) { _value.setURI( val.getURI() ); } + + protected: + /** + * Constructor + */ + domSkeleton() : _value() {} + /** + * Destructor + */ + virtual ~domSkeleton() {} + /** + * Copy Constructor + */ + domSkeleton( const domSkeleton &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSkeleton &operator=( const domSkeleton &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: // Attribute +/** + * The url attribute refers to resource. This may refer to a local resource + * using a relative URL fragment identifier that begins with the “#” + * character. The url attribute may refer to an external resource using an + * absolute or relative URL. + */ + xsAnyURI attrUrl; + +protected: // Elements +/** + * The skeleton element is used to indicate where a skin controller is to + * start to search for the joint nodes it needs. This element is meaningless + * for morph controllers. @see domSkeleton + */ + domSkeleton_Array elemSkeleton_array; +/** + * Bind a specific material to a piece of geometry, binding varying and uniform + * parameters at the same time. @see domBind_material + */ + domBind_materialRef elemBind_material; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the url attribute. + * @return Returns a xsAnyURI reference of the url attribute. + */ + xsAnyURI &getUrl() { return attrUrl; } + /** + * Gets the url attribute. + * @return Returns a constant xsAnyURI reference of the url attribute. + */ + const xsAnyURI &getUrl() const { return attrUrl; } + /** + * Sets the url attribute. + * @param atUrl The new value for the url attribute. + */ + void setUrl( const xsAnyURI &atUrl ) { attrUrl.setURI( atUrl.getURI() ); } + + /** + * Gets the skeleton element array. + * @return Returns a reference to the array of skeleton elements. + */ + domSkeleton_Array &getSkeleton_array() { return elemSkeleton_array; } + /** + * Gets the skeleton element array. + * @return Returns a constant reference to the array of skeleton elements. + */ + const domSkeleton_Array &getSkeleton_array() const { return elemSkeleton_array; } + /** + * Gets the bind_material element. + * @return a daeSmartRef to the bind_material element. + */ + const domBind_materialRef getBind_material() const { return elemBind_material; } + /** + * 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; } +protected: + /** + * Constructor + */ + domInstance_controller() : attrUrl(), elemSkeleton_array(), elemBind_material(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domInstance_controller() {} + /** + * Copy Constructor + */ + domInstance_controller( const domInstance_controller &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_controller &operator=( const domInstance_controller &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_effect.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_effect.h new file mode 100644 index 000000000..d8a91e566 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_effect.h @@ -0,0 +1,297 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_effect_h__ +#define __domInstance_effect_h__ + +#include +#include + +#include +#include + +/** + * The instance_effect element declares the instantiation of a COLLADA effect + * resource. + */ +class domInstance_effect : public daeElement +{ +public: + class domTechnique_hint; + + typedef daeSmartRef domTechnique_hintRef; + typedef daeTArray domTechnique_hint_Array; + +/** + * Add a hint for a platform of which technique to use in this effect. + */ + class domTechnique_hint : public daeElement + { + protected: // Attributes +/** + * “platform” defines a string that specifies which platform this is + * hint is aimed for. + */ + xsNCName attrPlatform; +/** + * A reference to the technique to use for the specified platform. + */ + xsNCName attrRef; + + + public: //Accessors and Mutators + /** + * Gets the platform attribute. + * @return Returns a xsNCName of the platform attribute. + */ + xsNCName getPlatform() const { return attrPlatform; } + /** + * Sets the platform attribute. + * @param atPlatform The new value for the platform attribute. + */ + void setPlatform( xsNCName atPlatform ) { attrPlatform = atPlatform; } + + /** + * Gets the ref attribute. + * @return Returns a xsNCName of the ref attribute. + */ + xsNCName getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( xsNCName atRef ) { attrRef = atRef; } + + protected: + /** + * Constructor + */ + domTechnique_hint() : attrPlatform(), attrRef() {} + /** + * Destructor + */ + virtual ~domTechnique_hint() {} + /** + * Copy Constructor + */ + domTechnique_hint( const domTechnique_hint &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_hint &operator=( const domTechnique_hint &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; + }; + + class domSetparam; + + typedef daeSmartRef domSetparamRef; + typedef daeTArray domSetparam_Array; + +/** + * Assigns a new value to a previously defined parameter + */ + class domSetparam : public daeElement + { + protected: // Attribute + xsNCName attrRef; + + protected: // Element + domFx_basic_type_commonRef elemFx_basic_type_common; + + public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a xsNCName of the ref attribute. + */ + xsNCName getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( xsNCName atRef ) { attrRef = atRef; } + + /** + * Gets the fx_basic_type_common element. + * @return a daeSmartRef to the fx_basic_type_common element. + */ + const domFx_basic_type_commonRef getFx_basic_type_common() const { return elemFx_basic_type_common; } + protected: + /** + * Constructor + */ + domSetparam() : attrRef(), elemFx_basic_type_common() {} + /** + * Destructor + */ + virtual ~domSetparam() {} + /** + * Copy Constructor + */ + domSetparam( const domSetparam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSetparam &operator=( const domSetparam &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: // Attribute +/** + * The url attribute refers to resource. This may refer to a local resource + * using a relative URL fragment identifier that begins with the “#” + * character. The url attribute may refer to an external resource using an + * absolute or relative URL. + */ + xsAnyURI attrUrl; + +protected: // Elements +/** + * Add a hint for a platform of which technique to use in this effect. @see + * domTechnique_hint + */ + domTechnique_hint_Array elemTechnique_hint_array; +/** + * Assigns a new value to a previously defined parameter @see domSetparam + */ + domSetparam_Array elemSetparam_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the url attribute. + * @return Returns a xsAnyURI reference of the url attribute. + */ + xsAnyURI &getUrl() { return attrUrl; } + /** + * Gets the url attribute. + * @return Returns a constant xsAnyURI reference of the url attribute. + */ + const xsAnyURI &getUrl() const { return attrUrl; } + /** + * Sets the url attribute. + * @param atUrl The new value for the url attribute. + */ + void setUrl( const xsAnyURI &atUrl ) { attrUrl.setURI( atUrl.getURI() ); } + + /** + * Gets the technique_hint element array. + * @return Returns a reference to the array of technique_hint elements. + */ + domTechnique_hint_Array &getTechnique_hint_array() { return elemTechnique_hint_array; } + /** + * Gets the technique_hint element array. + * @return Returns a constant reference to the array of technique_hint elements. + */ + const domTechnique_hint_Array &getTechnique_hint_array() const { return elemTechnique_hint_array; } + /** + * Gets the setparam element array. + * @return Returns a reference to the array of setparam elements. + */ + domSetparam_Array &getSetparam_array() { return elemSetparam_array; } + /** + * Gets the setparam element array. + * @return Returns a constant reference to the array of setparam elements. + */ + const domSetparam_Array &getSetparam_array() const { return elemSetparam_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; } +protected: + /** + * Constructor + */ + domInstance_effect() : attrUrl(), elemTechnique_hint_array(), elemSetparam_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domInstance_effect() {} + /** + * Copy Constructor + */ + domInstance_effect( const domInstance_effect &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_effect &operator=( const domInstance_effect &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_force_field.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_force_field.h new file mode 100644 index 000000000..ddac00049 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_force_field.h @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_force_field_h__ +#define __domInstance_force_field_h__ + +#include +#include + +#include + +/** + * The instance_force_field element declares the instantiation of a COLLADA + * force_field resource. + */ +class domInstance_force_field : public daeElement, public domInstanceWithExtra_complexType +{ + +protected: + /** + * Constructor + */ + domInstance_force_field() {} + /** + * Destructor + */ + virtual ~domInstance_force_field() {} + /** + * Copy Constructor + */ + domInstance_force_field( const domInstance_force_field &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_force_field &operator=( const domInstance_force_field &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_geometry.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_geometry.h new file mode 100644 index 000000000..121e72c1e --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_geometry.h @@ -0,0 +1,120 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_geometry_h__ +#define __domInstance_geometry_h__ + +#include +#include + +#include +#include + +/** + * The instance_geometry element declares the instantiation of a COLLADA geometry + * resource. + */ +class domInstance_geometry : public daeElement +{ +protected: // Attribute +/** + * The url attribute refers to resource. This may refer to a local resource + * using a relative URL fragment identifier that begins with the “#” + * character. The url attribute may refer to an external resource using an + * absolute or relative URL. + */ + xsAnyURI attrUrl; + +protected: // Elements +/** + * Bind a specific material to a piece of geometry, binding varying and uniform + * parameters at the same time. @see domBind_material + */ + domBind_materialRef elemBind_material; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the url attribute. + * @return Returns a xsAnyURI reference of the url attribute. + */ + xsAnyURI &getUrl() { return attrUrl; } + /** + * Gets the url attribute. + * @return Returns a constant xsAnyURI reference of the url attribute. + */ + const xsAnyURI &getUrl() const { return attrUrl; } + /** + * Sets the url attribute. + * @param atUrl The new value for the url attribute. + */ + void setUrl( const xsAnyURI &atUrl ) { attrUrl.setURI( atUrl.getURI() ); } + + /** + * Gets the bind_material element. + * @return a daeSmartRef to the bind_material element. + */ + const domBind_materialRef getBind_material() const { return elemBind_material; } + /** + * 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; } +protected: + /** + * Constructor + */ + domInstance_geometry() : attrUrl(), elemBind_material(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domInstance_geometry() {} + /** + * Copy Constructor + */ + domInstance_geometry( const domInstance_geometry &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_geometry &operator=( const domInstance_geometry &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_light.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_light.h new file mode 100644 index 000000000..f8d0bbe27 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_light.h @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_light_h__ +#define __domInstance_light_h__ + +#include +#include + +#include + +/** + * The instance_light element declares the instantiation of a COLLADA light + * resource. + */ +class domInstance_light : public daeElement, public domInstanceWithExtra_complexType +{ + +protected: + /** + * Constructor + */ + domInstance_light() {} + /** + * Destructor + */ + virtual ~domInstance_light() {} + /** + * Copy Constructor + */ + domInstance_light( const domInstance_light &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_light &operator=( const domInstance_light &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_material.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_material.h new file mode 100644 index 000000000..a2ab71add --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_material.h @@ -0,0 +1,225 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_material_h__ +#define __domInstance_material_h__ + +#include +#include + +#include + +/** + * The instance_material element declares the instantiation of a COLLADA material + * resource. + */ +class domInstance_material : public daeElement +{ +public: + class domBind; + + typedef daeSmartRef domBindRef; + typedef daeTArray domBind_Array; + +/** + * The bind element binds values to effect parameters upon instantiation. + */ + class domBind : public daeElement + { + protected: // Attributes +/** + * The semantic attribute specifies which effect parameter to bind. + */ + xsNCName attrSemantic; +/** + * The target attribute specifies the location of the value to bind to the + * specified semantic. This text string is a path-name following a simple + * syntax described in the “Addressing Syntax” section. + */ + xsToken attrTarget; + + + 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 ) { attrSemantic = atSemantic; } + + /** + * Gets the target attribute. + * @return Returns a xsToken of the target attribute. + */ + xsToken getTarget() const { return attrTarget; } + /** + * Sets the target attribute. + * @param atTarget The new value for the target attribute. + */ + void setTarget( xsToken atTarget ) { attrTarget = atTarget; } + + protected: + /** + * Constructor + */ + domBind() : attrSemantic(), attrTarget() {} + /** + * Destructor + */ + virtual ~domBind() {} + /** + * Copy Constructor + */ + domBind( const domBind &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBind &operator=( const domBind &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 +/** + * The symbol attribute specifies which symbol defined from within the geometry + * this material binds to. + */ + xsNCName attrSymbol; +/** + * The target attribute specifies the URL of the location of the object to + * instantiate. + */ + xsAnyURI attrTarget; + +protected: // Elements +/** + * The bind element binds values to effect parameters upon instantiation. + * @see domBind + */ + domBind_Array elemBind_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the symbol attribute. + * @return Returns a xsNCName of the symbol attribute. + */ + xsNCName getSymbol() const { return attrSymbol; } + /** + * Sets the symbol attribute. + * @param atSymbol The new value for the symbol attribute. + */ + void setSymbol( xsNCName atSymbol ) { attrSymbol = atSymbol; } + + /** + * Gets the target attribute. + * @return Returns a xsAnyURI reference of the target attribute. + */ + xsAnyURI &getTarget() { return attrTarget; } + /** + * Gets the target attribute. + * @return Returns a constant xsAnyURI reference of the target attribute. + */ + const xsAnyURI &getTarget() const { return attrTarget; } + /** + * Sets the target attribute. + * @param atTarget The new value for the target attribute. + */ + void setTarget( const xsAnyURI &atTarget ) { attrTarget.setURI( atTarget.getURI() ); } + + /** + * Gets the bind element array. + * @return Returns a reference to the array of bind elements. + */ + domBind_Array &getBind_array() { return elemBind_array; } + /** + * Gets the bind element array. + * @return Returns a constant reference to the array of bind elements. + */ + const domBind_Array &getBind_array() const { return elemBind_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; } +protected: + /** + * Constructor + */ + domInstance_material() : attrSymbol(), attrTarget(), elemBind_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domInstance_material() {} + /** + * Copy Constructor + */ + domInstance_material( const domInstance_material &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_material &operator=( const domInstance_material &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_node.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_node.h new file mode 100644 index 000000000..768c5d720 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_node.h @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_node_h__ +#define __domInstance_node_h__ + +#include +#include + +#include + +/** + * The instance_node element declares the instantiation of a COLLADA node + * resource. + */ +class domInstance_node : public daeElement, public domInstanceWithExtra_complexType +{ + +protected: + /** + * Constructor + */ + domInstance_node() {} + /** + * Destructor + */ + virtual ~domInstance_node() {} + /** + * Copy Constructor + */ + domInstance_node( const domInstance_node &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_node &operator=( const domInstance_node &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_material.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_material.h new file mode 100644 index 000000000..3fcf88ce4 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_material.h @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_physics_material_h__ +#define __domInstance_physics_material_h__ + +#include +#include + +#include + +/** + * The instance_physics_material element declares the instantiation of a COLLADA + * physics_material resource. + */ +class domInstance_physics_material : public daeElement, public domInstanceWithExtra_complexType +{ + +protected: + /** + * Constructor + */ + domInstance_physics_material() {} + /** + * Destructor + */ + virtual ~domInstance_physics_material() {} + /** + * Copy Constructor + */ + domInstance_physics_material( const domInstance_physics_material &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_physics_material &operator=( const domInstance_physics_material &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_model.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_model.h new file mode 100644 index 000000000..5fa9786aa --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_model.h @@ -0,0 +1,197 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_physics_model_h__ +#define __domInstance_physics_model_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * This element allows instancing physics model within another physics model, + * or in a physics scene. + */ +class domInstance_physics_model : public daeElement +{ +protected: // Attributes +/** + * The url attribute refers to resource. This may refer to a local resource + * using a relative URL fragment identifier that begins with the “#” + * character. The url attribute may refer to an external resource using an + * absolute or relative URL. + */ + xsAnyURI attrUrl; +/** + * 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 parent attribute points to the id of a node in the visual scene. This + * allows a physics model to be instantiated under a specific transform node, + * which will dictate the initial position and orientation, and could be + * animated to influence kinematic rigid bodies. + */ + xsAnyURI attrParent; + +protected: // Elements +/** + * The instance_physics_model element may instance any number of force_field + * elements. @see domInstance_force_field + */ + domInstance_force_field_Array elemInstance_force_field_array; +/** + * The instance_physics_model element may instance any number of rigid_body + * elements. @see domInstance_rigid_body + */ + domInstance_rigid_body_Array elemInstance_rigid_body_array; +/** + * The instance_physics_model element may instance any number of rigid_constraint + * elements. @see domInstance_rigid_constraint + */ + domInstance_rigid_constraint_Array elemInstance_rigid_constraint_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the url attribute. + * @return Returns a xsAnyURI reference of the url attribute. + */ + xsAnyURI &getUrl() { return attrUrl; } + /** + * Gets the url attribute. + * @return Returns a constant xsAnyURI reference of the url attribute. + */ + const xsAnyURI &getUrl() const { return attrUrl; } + /** + * Sets the url attribute. + * @param atUrl The new value for the url attribute. + */ + void setUrl( const xsAnyURI &atUrl ) { attrUrl.setURI( atUrl.getURI() ); } + + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the parent attribute. + * @return Returns a xsAnyURI reference of the parent attribute. + */ + xsAnyURI &getParent() { return attrParent; } + /** + * Gets the parent attribute. + * @return Returns a constant xsAnyURI reference of the parent attribute. + */ + const xsAnyURI &getParent() const { return attrParent; } + /** + * Sets the parent attribute. + * @param atParent The new value for the parent attribute. + */ + void setParent( const xsAnyURI &atParent ) { attrParent.setURI( atParent.getURI() ); } + + /** + * Gets the instance_force_field element array. + * @return Returns a reference to the array of instance_force_field elements. + */ + domInstance_force_field_Array &getInstance_force_field_array() { return elemInstance_force_field_array; } + /** + * Gets the instance_force_field element array. + * @return Returns a constant reference to the array of instance_force_field elements. + */ + const domInstance_force_field_Array &getInstance_force_field_array() const { return elemInstance_force_field_array; } + /** + * Gets the instance_rigid_body element array. + * @return Returns a reference to the array of instance_rigid_body elements. + */ + domInstance_rigid_body_Array &getInstance_rigid_body_array() { return elemInstance_rigid_body_array; } + /** + * Gets the instance_rigid_body element array. + * @return Returns a constant reference to the array of instance_rigid_body elements. + */ + const domInstance_rigid_body_Array &getInstance_rigid_body_array() const { return elemInstance_rigid_body_array; } + /** + * Gets the instance_rigid_constraint element array. + * @return Returns a reference to the array of instance_rigid_constraint elements. + */ + domInstance_rigid_constraint_Array &getInstance_rigid_constraint_array() { return elemInstance_rigid_constraint_array; } + /** + * Gets the instance_rigid_constraint element array. + * @return Returns a constant reference to the array of instance_rigid_constraint elements. + */ + const domInstance_rigid_constraint_Array &getInstance_rigid_constraint_array() const { return elemInstance_rigid_constraint_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; } +protected: + /** + * Constructor + */ + domInstance_physics_model() : attrUrl(), attrSid(), attrParent(), elemInstance_force_field_array(), elemInstance_rigid_body_array(), elemInstance_rigid_constraint_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domInstance_physics_model() {} + /** + * Copy Constructor + */ + domInstance_physics_model( const domInstance_physics_model &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_physics_model &operator=( const domInstance_physics_model &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_body.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_body.h new file mode 100644 index 000000000..b00cb4506 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_body.h @@ -0,0 +1,905 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_rigid_body_h__ +#define __domInstance_rigid_body_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * This element allows instancing a rigid_body within an instance_physics_model. + */ +class domInstance_rigid_body : public daeElement +{ +public: + class domTechnique_common; + + typedef daeSmartRef domTechnique_commonRef; + typedef daeTArray domTechnique_common_Array; + +/** + * The technique_common element specifies the instance_rigid_body information + * for the common profile which all COLLADA implementations need to support. + */ + class domTechnique_common : public daeElement + { + public: + class domAngular_velocity; + + typedef daeSmartRef domAngular_velocityRef; + typedef daeTArray domAngular_velocity_Array; + +/** + * Specifies the initial angular velocity of the rigid_body instance in degrees + * per second around each axis, in the form of an X-Y-Z Euler rotation. + */ + class domAngular_velocity : public daeElement + { + + protected: // Value + /** + * The domFloat3 value of the text data of this element. + */ + domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat3 reference of the _value array. + */ + domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat3 reference of the _value array. + */ + const domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domAngular_velocity() : _value() {} + /** + * Destructor + */ + virtual ~domAngular_velocity() {} + /** + * Copy Constructor + */ + domAngular_velocity( const domAngular_velocity &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAngular_velocity &operator=( const domAngular_velocity &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; + }; + + class domVelocity; + + typedef daeSmartRef domVelocityRef; + typedef daeTArray domVelocity_Array; + +/** + * Specifies the initial linear velocity of the rigid_body instance. + */ + class domVelocity : public daeElement + { + + protected: // Value + /** + * The domFloat3 value of the text data of this element. + */ + domFloat3 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat3 reference of the _value array. + */ + domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat3 reference of the _value array. + */ + const domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat3 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domVelocity() : _value() {} + /** + * Destructor + */ + virtual ~domVelocity() {} + /** + * Copy Constructor + */ + domVelocity( const domVelocity &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domVelocity &operator=( const domVelocity &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; + }; + + class domDynamic; + + typedef daeSmartRef domDynamicRef; + typedef daeTArray domDynamic_Array; + + class domDynamic : public daeElement + { + protected: // Attribute +/** + * 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; + + protected: // Value + /** + * The domBool value of the text data of this element. + */ + domBool _value; + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the value of this element. + * @return a domBool of the value. + */ + domBool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domBool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domDynamic() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domDynamic() {} + /** + * Copy Constructor + */ + domDynamic( const domDynamic &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDynamic &operator=( const domDynamic &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; + }; + + class domMass_frame; + + typedef daeSmartRef domMass_frameRef; + typedef daeTArray domMass_frame_Array; + + class domMass_frame : public daeElement + { + + 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; + + + public: //Accessors and Mutators + /** + * 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 + */ + domMass_frame() : elemTranslate_array(), elemRotate_array() {} + /** + * Destructor + */ + virtual ~domMass_frame() {} + /** + * Copy Constructor + */ + domMass_frame( const domMass_frame &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMass_frame &operator=( const domMass_frame &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; + }; + + class domShape; + + typedef daeSmartRef domShapeRef; + typedef daeTArray domShape_Array; + + class domShape : public daeElement + { + public: + class domHollow; + + typedef daeSmartRef domHollowRef; + typedef daeTArray domHollow_Array; + + class domHollow : public daeElement + { + protected: // Attribute +/** + * 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; + + protected: // Value + /** + * The domBool value of the text data of this element. + */ + domBool _value; + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the value of this element. + * @return a domBool of the value. + */ + domBool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domBool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHollow() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domHollow() {} + /** + * Copy Constructor + */ + domHollow( const domHollow &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHollow &operator=( const domHollow &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: // Elements + domHollowRef elemHollow; + domTargetableFloatRef elemMass; + domTargetableFloatRef elemDensity; + domInstance_physics_materialRef elemInstance_physics_material; + domPhysics_materialRef elemPhysics_material; + domInstance_geometryRef elemInstance_geometry; + domPlaneRef elemPlane; + domBoxRef elemBox; + domSphereRef elemSphere; + domCylinderRef elemCylinder; + domTapered_cylinderRef elemTapered_cylinder; + domCapsuleRef elemCapsule; + domTapered_capsuleRef elemTapered_capsule; + domTranslate_Array elemTranslate_array; + domRotate_Array elemRotate_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the hollow element. + * @return a daeSmartRef to the hollow element. + */ + const domHollowRef getHollow() const { return elemHollow; } + /** + * Gets the mass element. + * @return a daeSmartRef to the mass element. + */ + const domTargetableFloatRef getMass() const { return elemMass; } + /** + * Gets the density element. + * @return a daeSmartRef to the density element. + */ + const domTargetableFloatRef getDensity() const { return elemDensity; } + /** + * Gets the instance_physics_material element. + * @return a daeSmartRef to the instance_physics_material element. + */ + const domInstance_physics_materialRef getInstance_physics_material() const { return elemInstance_physics_material; } + /** + * Gets the physics_material element. + * @return a daeSmartRef to the physics_material element. + */ + const domPhysics_materialRef getPhysics_material() const { return elemPhysics_material; } + /** + * Gets the instance_geometry element. + * @return a daeSmartRef to the instance_geometry element. + */ + const domInstance_geometryRef getInstance_geometry() const { return elemInstance_geometry; } + /** + * Gets the plane element. + * @return a daeSmartRef to the plane element. + */ + const domPlaneRef getPlane() const { return elemPlane; } + /** + * Gets the box element. + * @return a daeSmartRef to the box element. + */ + const domBoxRef getBox() const { return elemBox; } + /** + * Gets the sphere element. + * @return a daeSmartRef to the sphere element. + */ + const domSphereRef getSphere() const { return elemSphere; } + /** + * Gets the cylinder element. + * @return a daeSmartRef to the cylinder element. + */ + const domCylinderRef getCylinder() const { return elemCylinder; } + /** + * Gets the tapered_cylinder element. + * @return a daeSmartRef to the tapered_cylinder element. + */ + const domTapered_cylinderRef getTapered_cylinder() const { return elemTapered_cylinder; } + /** + * Gets the capsule element. + * @return a daeSmartRef to the capsule element. + */ + const domCapsuleRef getCapsule() const { return elemCapsule; } + /** + * Gets the tapered_capsule element. + * @return a daeSmartRef to the tapered_capsule element. + */ + const domTapered_capsuleRef getTapered_capsule() const { return elemTapered_capsule; } + /** + * 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 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. + */ + 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 + */ + domShape() : elemHollow(), elemMass(), elemDensity(), elemInstance_physics_material(), elemPhysics_material(), elemInstance_geometry(), elemPlane(), elemBox(), elemSphere(), elemCylinder(), elemTapered_cylinder(), elemCapsule(), elemTapered_capsule(), elemTranslate_array(), elemRotate_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domShape() {} + /** + * Copy Constructor + */ + domShape( const domShape &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domShape &operator=( const domShape &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: // Elements +/** + * Specifies the initial angular velocity of the rigid_body instance in degrees + * per second around each axis, in the form of an X-Y-Z Euler rotation. @see + * domAngular_velocity + */ + domAngular_velocityRef elemAngular_velocity; +/** + * Specifies the initial linear velocity of the rigid_body instance. @see + * domVelocity + */ + domVelocityRef elemVelocity; + domDynamicRef elemDynamic; + domTargetableFloatRef elemMass; + domMass_frameRef elemMass_frame; + domTargetableFloat3Ref elemInertia; + domInstance_physics_materialRef elemInstance_physics_material; + domPhysics_materialRef elemPhysics_material; + domShape_Array elemShape_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the angular_velocity element. + * @return a daeSmartRef to the angular_velocity element. + */ + const domAngular_velocityRef getAngular_velocity() const { return elemAngular_velocity; } + /** + * Gets the velocity element. + * @return a daeSmartRef to the velocity element. + */ + const domVelocityRef getVelocity() const { return elemVelocity; } + /** + * Gets the dynamic element. + * @return a daeSmartRef to the dynamic element. + */ + const domDynamicRef getDynamic() const { return elemDynamic; } + /** + * Gets the mass element. + * @return a daeSmartRef to the mass element. + */ + const domTargetableFloatRef getMass() const { return elemMass; } + /** + * Gets the mass_frame element. + * @return a daeSmartRef to the mass_frame element. + */ + const domMass_frameRef getMass_frame() const { return elemMass_frame; } + /** + * Gets the inertia element. + * @return a daeSmartRef to the inertia element. + */ + const domTargetableFloat3Ref getInertia() const { return elemInertia; } + /** + * Gets the instance_physics_material element. + * @return a daeSmartRef to the instance_physics_material element. + */ + const domInstance_physics_materialRef getInstance_physics_material() const { return elemInstance_physics_material; } + /** + * Gets the physics_material element. + * @return a daeSmartRef to the physics_material element. + */ + const domPhysics_materialRef getPhysics_material() const { return elemPhysics_material; } + /** + * Gets the shape element array. + * @return Returns a reference to the array of shape elements. + */ + domShape_Array &getShape_array() { return elemShape_array; } + /** + * Gets the shape element array. + * @return Returns a constant reference to the array of shape elements. + */ + const domShape_Array &getShape_array() const { return elemShape_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 + */ + domTechnique_common() : elemAngular_velocity(), elemVelocity(), elemDynamic(), elemMass(), elemMass_frame(), elemInertia(), elemInstance_physics_material(), elemPhysics_material(), elemShape_array() {} + /** + * Destructor + */ + virtual ~domTechnique_common() {} + /** + * Copy Constructor + */ + domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_common &operator=( const domTechnique_common &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 +/** + * The body attribute indicates which rigid_body to instantiate. Required + * attribute. + */ + xsNCName attrBody; +/** + * 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 target attribute indicates which node is influenced by this rigid_body + * instance. Required attribute + */ + xsAnyURI attrTarget; + +protected: // Elements +/** + * The technique_common element specifies the instance_rigid_body information + * for the common profile which all COLLADA implementations need to support. + * @see domTechnique_common + */ + domTechnique_commonRef elemTechnique_common; +/** + * This element may contain any number of non-common profile techniques. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the body attribute. + * @return Returns a xsNCName of the body attribute. + */ + xsNCName getBody() const { return attrBody; } + /** + * Sets the body attribute. + * @param atBody The new value for the body attribute. + */ + void setBody( xsNCName atBody ) { attrBody = atBody; } + + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the target attribute. + * @return Returns a xsAnyURI reference of the target attribute. + */ + xsAnyURI &getTarget() { return attrTarget; } + /** + * Gets the target attribute. + * @return Returns a constant xsAnyURI reference of the target attribute. + */ + const xsAnyURI &getTarget() const { return attrTarget; } + /** + * Sets the target attribute. + * @param atTarget The new value for the target attribute. + */ + void setTarget( const xsAnyURI &atTarget ) { attrTarget.setURI( atTarget.getURI() ); } + + /** + * Gets the technique_common element. + * @return a daeSmartRef to the technique_common element. + */ + const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @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; } +protected: + /** + * Constructor + */ + domInstance_rigid_body() : attrBody(), attrSid(), attrTarget(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domInstance_rigid_body() {} + /** + * Copy Constructor + */ + domInstance_rigid_body( const domInstance_rigid_body &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_rigid_body &operator=( const domInstance_rigid_body &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_constraint.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_constraint.h new file mode 100644 index 000000000..93c14e5ed --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_constraint.h @@ -0,0 +1,101 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInstance_rigid_constraint_h__ +#define __domInstance_rigid_constraint_h__ + +#include +#include + +#include + +/** + * This element allows instancing a rigid_constraint within an instance_physics_model. + */ +class domInstance_rigid_constraint : public daeElement +{ +protected: // Attribute +/** + * The constraint attribute indicates which rigid_constraing to instantiate. + * Required attribute. + */ + xsNCName attrConstraint; + +protected: // Element +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the constraint attribute. + * @return Returns a xsNCName of the constraint attribute. + */ + xsNCName getConstraint() const { return attrConstraint; } + /** + * Sets the constraint attribute. + * @param atConstraint The new value for the constraint attribute. + */ + void setConstraint( xsNCName atConstraint ) { attrConstraint = atConstraint; } + + /** + * 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; } +protected: + /** + * Constructor + */ + domInstance_rigid_constraint() : attrConstraint(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domInstance_rigid_constraint() {} + /** + * Copy Constructor + */ + domInstance_rigid_constraint( const domInstance_rigid_constraint &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInstance_rigid_constraint &operator=( const domInstance_rigid_constraint &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInt_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domInt_array.h new file mode 100644 index 000000000..74d4ce3e8 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domInt_array.h @@ -0,0 +1,172 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domInt_array_h__ +#define __domInt_array_h__ + +#include +#include + + +/** + * The int_array element declares the storage for a homogenous array of integer + * values. + */ +class domInt_array : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of values in the array. Required + * attribute. + */ + domUint attrCount; +/** + * The minInclusive attribute indicates the smallest integer value that can + * be contained in the array. The default value is –2147483648. Optional + * attribute. + */ + xsInteger attrMinInclusive; +/** + * The maxInclusive attribute indicates the largest integer value that can + * be contained in the array. The default value is 2147483647. Optional attribute. + */ + xsInteger attrMaxInclusive; + +protected: // Value + /** + * The domListOfInts value of the text data of this element. + */ + domListOfInts _value; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the minInclusive attribute. + * @return Returns a xsInteger of the minInclusive attribute. + */ + xsInteger getMinInclusive() const { return attrMinInclusive; } + /** + * Sets the minInclusive attribute. + * @param atMinInclusive The new value for the minInclusive attribute. + */ + void setMinInclusive( xsInteger atMinInclusive ) { attrMinInclusive = atMinInclusive; } + + /** + * Gets the maxInclusive attribute. + * @return Returns a xsInteger of the maxInclusive attribute. + */ + xsInteger getMaxInclusive() const { return attrMaxInclusive; } + /** + * Sets the maxInclusive attribute. + * @param atMaxInclusive The new value for the maxInclusive attribute. + */ + void setMaxInclusive( xsInteger atMaxInclusive ) { attrMaxInclusive = atMaxInclusive; } + + /** + * Gets the _value array. + * @return Returns a domListOfInts reference of the _value array. + */ + domListOfInts &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfInts reference of the _value array. + */ + const domListOfInts &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfInts &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domInt_array() : attrId(), attrName(), attrCount(), attrMinInclusive(), attrMaxInclusive(), _value() {} + /** + * Destructor + */ + virtual ~domInt_array() {} + /** + * Copy Constructor + */ + domInt_array( const domInt_array &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInt_array &operator=( const domInt_array &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animation_clips.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animation_clips.h new file mode 100644 index 000000000..dd6463e8e --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animation_clips.h @@ -0,0 +1,144 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_animation_clips_h__ +#define __domLibrary_animation_clips_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_animation_clips element declares a module of animation_clip + * elements. + */ +class domLibrary_animation_clips : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_animation_clips element may contain an asset element. @see + * domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one animation_clip element. @see domAnimation_clip + */ + domAnimation_clip_Array elemAnimation_clip_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the animation_clip element array. + * @return Returns a reference to the array of animation_clip elements. + */ + domAnimation_clip_Array &getAnimation_clip_array() { return elemAnimation_clip_array; } + /** + * Gets the animation_clip element array. + * @return Returns a constant reference to the array of animation_clip elements. + */ + const domAnimation_clip_Array &getAnimation_clip_array() const { return elemAnimation_clip_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; } +protected: + /** + * Constructor + */ + domLibrary_animation_clips() : attrId(), attrName(), elemAsset(), elemAnimation_clip_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_animation_clips() {} + /** + * Copy Constructor + */ + domLibrary_animation_clips( const domLibrary_animation_clips &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_animation_clips &operator=( const domLibrary_animation_clips &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animations.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animations.h new file mode 100644 index 000000000..a8bae094c --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animations.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_animations_h__ +#define __domLibrary_animations_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_animations element declares a module of animation elements. + */ +class domLibrary_animations : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_animations element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one animation element. @see domAnimation + */ + domAnimation_Array elemAnimation_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the animation element array. + * @return Returns a reference to the array of animation elements. + */ + domAnimation_Array &getAnimation_array() { return elemAnimation_array; } + /** + * Gets the animation element array. + * @return Returns a constant reference to the array of animation elements. + */ + const domAnimation_Array &getAnimation_array() const { return elemAnimation_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; } +protected: + /** + * Constructor + */ + domLibrary_animations() : attrId(), attrName(), elemAsset(), elemAnimation_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_animations() {} + /** + * Copy Constructor + */ + domLibrary_animations( const domLibrary_animations &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_animations &operator=( const domLibrary_animations &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_cameras.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_cameras.h new file mode 100644 index 000000000..bba329f8d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_cameras.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_cameras_h__ +#define __domLibrary_cameras_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_cameras element declares a module of camera elements. + */ +class domLibrary_cameras : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_cameras element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one camera element. @see domCamera + */ + domCamera_Array elemCamera_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the camera element array. + * @return Returns a reference to the array of camera elements. + */ + domCamera_Array &getCamera_array() { return elemCamera_array; } + /** + * Gets the camera element array. + * @return Returns a constant reference to the array of camera elements. + */ + const domCamera_Array &getCamera_array() const { return elemCamera_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; } +protected: + /** + * Constructor + */ + domLibrary_cameras() : attrId(), attrName(), elemAsset(), elemCamera_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_cameras() {} + /** + * Copy Constructor + */ + domLibrary_cameras( const domLibrary_cameras &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_cameras &operator=( const domLibrary_cameras &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_controllers.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_controllers.h new file mode 100644 index 000000000..a93dc5d4c --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_controllers.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_controllers_h__ +#define __domLibrary_controllers_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_controllers element declares a module of controller elements. + */ +class domLibrary_controllers : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_controllers element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one controller element. @see domController + */ + domController_Array elemController_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the controller element array. + * @return Returns a reference to the array of controller elements. + */ + domController_Array &getController_array() { return elemController_array; } + /** + * Gets the controller element array. + * @return Returns a constant reference to the array of controller elements. + */ + const domController_Array &getController_array() const { return elemController_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; } +protected: + /** + * Constructor + */ + domLibrary_controllers() : attrId(), attrName(), elemAsset(), elemController_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_controllers() {} + /** + * Copy Constructor + */ + domLibrary_controllers( const domLibrary_controllers &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_controllers &operator=( const domLibrary_controllers &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_effects.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_effects.h new file mode 100644 index 000000000..40275caae --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_effects.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_effects_h__ +#define __domLibrary_effects_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_effects element declares a module of effect elements. + */ +class domLibrary_effects : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_effects element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one effect element. @see domEffect + */ + domEffect_Array elemEffect_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the effect element array. + * @return Returns a reference to the array of effect elements. + */ + domEffect_Array &getEffect_array() { return elemEffect_array; } + /** + * Gets the effect element array. + * @return Returns a constant reference to the array of effect elements. + */ + const domEffect_Array &getEffect_array() const { return elemEffect_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; } +protected: + /** + * Constructor + */ + domLibrary_effects() : attrId(), attrName(), elemAsset(), elemEffect_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_effects() {} + /** + * Copy Constructor + */ + domLibrary_effects( const domLibrary_effects &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_effects &operator=( const domLibrary_effects &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_force_fields.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_force_fields.h new file mode 100644 index 000000000..ed9e69966 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_force_fields.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_force_fields_h__ +#define __domLibrary_force_fields_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_force_fields element declares a module of force_field elements. + */ +class domLibrary_force_fields : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_force_fields element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one force_field element. @see domForce_field + */ + domForce_field_Array elemForce_field_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the force_field element array. + * @return Returns a reference to the array of force_field elements. + */ + domForce_field_Array &getForce_field_array() { return elemForce_field_array; } + /** + * Gets the force_field element array. + * @return Returns a constant reference to the array of force_field elements. + */ + const domForce_field_Array &getForce_field_array() const { return elemForce_field_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; } +protected: + /** + * Constructor + */ + domLibrary_force_fields() : attrId(), attrName(), elemAsset(), elemForce_field_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_force_fields() {} + /** + * Copy Constructor + */ + domLibrary_force_fields( const domLibrary_force_fields &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_force_fields &operator=( const domLibrary_force_fields &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_geometries.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_geometries.h new file mode 100644 index 000000000..f72ce58f8 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_geometries.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_geometries_h__ +#define __domLibrary_geometries_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_geometries element declares a module of geometry elements. + */ +class domLibrary_geometries : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_geometries element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one geometry element. @see domGeometry + */ + domGeometry_Array elemGeometry_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the geometry element array. + * @return Returns a reference to the array of geometry elements. + */ + domGeometry_Array &getGeometry_array() { return elemGeometry_array; } + /** + * Gets the geometry element array. + * @return Returns a constant reference to the array of geometry elements. + */ + const domGeometry_Array &getGeometry_array() const { return elemGeometry_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; } +protected: + /** + * Constructor + */ + domLibrary_geometries() : attrId(), attrName(), elemAsset(), elemGeometry_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_geometries() {} + /** + * Copy Constructor + */ + domLibrary_geometries( const domLibrary_geometries &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_geometries &operator=( const domLibrary_geometries &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_images.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_images.h new file mode 100644 index 000000000..5ffdaca42 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_images.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_images_h__ +#define __domLibrary_images_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_images element declares a module of image elements. + */ +class domLibrary_images : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_images element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one image element. @see domImage + */ + domImage_Array elemImage_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_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; } +protected: + /** + * Constructor + */ + domLibrary_images() : attrId(), attrName(), elemAsset(), elemImage_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_images() {} + /** + * Copy Constructor + */ + domLibrary_images( const domLibrary_images &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_images &operator=( const domLibrary_images &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_lights.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_lights.h new file mode 100644 index 000000000..725da687a --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_lights.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_lights_h__ +#define __domLibrary_lights_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_lights element declares a module of light elements. + */ +class domLibrary_lights : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_lights element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one light element. @see domLight + */ + domLight_Array elemLight_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the light element array. + * @return Returns a reference to the array of light elements. + */ + domLight_Array &getLight_array() { return elemLight_array; } + /** + * Gets the light element array. + * @return Returns a constant reference to the array of light elements. + */ + const domLight_Array &getLight_array() const { return elemLight_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; } +protected: + /** + * Constructor + */ + domLibrary_lights() : attrId(), attrName(), elemAsset(), elemLight_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_lights() {} + /** + * Copy Constructor + */ + domLibrary_lights( const domLibrary_lights &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_lights &operator=( const domLibrary_lights &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_materials.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_materials.h new file mode 100644 index 000000000..93ebedd97 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_materials.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_materials_h__ +#define __domLibrary_materials_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_materials element declares a module of material elements. + */ +class domLibrary_materials : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_materials element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one material element. @see domMaterial + */ + domMaterial_Array elemMaterial_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the material element array. + * @return Returns a reference to the array of material elements. + */ + domMaterial_Array &getMaterial_array() { return elemMaterial_array; } + /** + * Gets the material element array. + * @return Returns a constant reference to the array of material elements. + */ + const domMaterial_Array &getMaterial_array() const { return elemMaterial_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; } +protected: + /** + * Constructor + */ + domLibrary_materials() : attrId(), attrName(), elemAsset(), elemMaterial_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_materials() {} + /** + * Copy Constructor + */ + domLibrary_materials( const domLibrary_materials &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_materials &operator=( const domLibrary_materials &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_nodes.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_nodes.h new file mode 100644 index 000000000..41c9cad4d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_nodes.h @@ -0,0 +1,142 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_nodes_h__ +#define __domLibrary_nodes_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_nodes element declares a module of node elements. + */ +class domLibrary_nodes : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_nodes element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one node element. @see domNode + */ + domNode_Array elemNode_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the node element array. + * @return Returns a reference to the array of node elements. + */ + domNode_Array &getNode_array() { return elemNode_array; } + /** + * Gets the node element array. + * @return Returns a constant reference to the array of node elements. + */ + const domNode_Array &getNode_array() const { return elemNode_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; } +protected: + /** + * Constructor + */ + domLibrary_nodes() : attrId(), attrName(), elemAsset(), elemNode_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_nodes() {} + /** + * Copy Constructor + */ + domLibrary_nodes( const domLibrary_nodes &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_nodes &operator=( const domLibrary_nodes &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_materials.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_materials.h new file mode 100644 index 000000000..f7554a29f --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_materials.h @@ -0,0 +1,111 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_physics_materials_h__ +#define __domLibrary_physics_materials_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_physics_materials element declares a module of physics_material + * elements. + */ +class domLibrary_physics_materials : public daeElement +{ + +protected: // Elements +/** + * The library_physics_materials element may contain an asset element. @see + * domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one physics_material element. @see domPhysics_material + */ + domPhysics_material_Array elemPhysics_material_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the physics_material element array. + * @return Returns a reference to the array of physics_material elements. + */ + domPhysics_material_Array &getPhysics_material_array() { return elemPhysics_material_array; } + /** + * Gets the physics_material element array. + * @return Returns a constant reference to the array of physics_material elements. + */ + const domPhysics_material_Array &getPhysics_material_array() const { return elemPhysics_material_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; } +protected: + /** + * Constructor + */ + domLibrary_physics_materials() : elemAsset(), elemPhysics_material_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_physics_materials() {} + /** + * Copy Constructor + */ + domLibrary_physics_materials( const domLibrary_physics_materials &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_physics_materials &operator=( const domLibrary_physics_materials &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_models.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_models.h new file mode 100644 index 000000000..6a1ed426f --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_models.h @@ -0,0 +1,143 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_physics_models_h__ +#define __domLibrary_physics_models_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_physics_models element declares a module of physics_model elements. + */ +class domLibrary_physics_models : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_physics_models element may contain an asset element. @see + * domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one physics_model element. @see domPhysics_model + */ + domPhysics_model_Array elemPhysics_model_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the physics_model element array. + * @return Returns a reference to the array of physics_model elements. + */ + domPhysics_model_Array &getPhysics_model_array() { return elemPhysics_model_array; } + /** + * Gets the physics_model element array. + * @return Returns a constant reference to the array of physics_model elements. + */ + const domPhysics_model_Array &getPhysics_model_array() const { return elemPhysics_model_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; } +protected: + /** + * Constructor + */ + domLibrary_physics_models() : attrId(), attrName(), elemAsset(), elemPhysics_model_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_physics_models() {} + /** + * Copy Constructor + */ + domLibrary_physics_models( const domLibrary_physics_models &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_physics_models &operator=( const domLibrary_physics_models &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_scenes.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_scenes.h new file mode 100644 index 000000000..f3b24109c --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_scenes.h @@ -0,0 +1,143 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_physics_scenes_h__ +#define __domLibrary_physics_scenes_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_physics_scenes element declares a module of physics_scene elements. + */ +class domLibrary_physics_scenes : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_physics_scenes element may contain an asset element. @see + * domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one physics_scene element. @see domPhysics_scene + */ + domPhysics_scene_Array elemPhysics_scene_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the physics_scene element array. + * @return Returns a reference to the array of physics_scene elements. + */ + domPhysics_scene_Array &getPhysics_scene_array() { return elemPhysics_scene_array; } + /** + * Gets the physics_scene element array. + * @return Returns a constant reference to the array of physics_scene elements. + */ + const domPhysics_scene_Array &getPhysics_scene_array() const { return elemPhysics_scene_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; } +protected: + /** + * Constructor + */ + domLibrary_physics_scenes() : attrId(), attrName(), elemAsset(), elemPhysics_scene_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_physics_scenes() {} + /** + * Copy Constructor + */ + domLibrary_physics_scenes( const domLibrary_physics_scenes &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_physics_scenes &operator=( const domLibrary_physics_scenes &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_visual_scenes.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_visual_scenes.h new file mode 100644 index 000000000..d3196bcb9 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_visual_scenes.h @@ -0,0 +1,143 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLibrary_visual_scenes_h__ +#define __domLibrary_visual_scenes_h__ + +#include +#include + +#include +#include +#include + +/** + * The library_visual_scenes element declares a module of visual_scene elements. + */ +class domLibrary_visual_scenes : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The library_visual_scenes element may contain an asset element. @see + * domAsset + */ + domAssetRef elemAsset; +/** + * There must be at least one visual_scene element. @see domVisual_scene + */ + domVisual_scene_Array elemVisual_scene_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the visual_scene element array. + * @return Returns a reference to the array of visual_scene elements. + */ + domVisual_scene_Array &getVisual_scene_array() { return elemVisual_scene_array; } + /** + * Gets the visual_scene element array. + * @return Returns a constant reference to the array of visual_scene elements. + */ + const domVisual_scene_Array &getVisual_scene_array() const { return elemVisual_scene_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; } +protected: + /** + * Constructor + */ + domLibrary_visual_scenes() : attrId(), attrName(), elemAsset(), elemVisual_scene_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLibrary_visual_scenes() {} + /** + * Copy Constructor + */ + domLibrary_visual_scenes( const domLibrary_visual_scenes &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLibrary_visual_scenes &operator=( const domLibrary_visual_scenes &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLight.h b/Extras/COLLADA_DOM/include/1.4/dom/domLight.h new file mode 100644 index 000000000..de47056be --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLight.h @@ -0,0 +1,648 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLight_h__ +#define __domLight_h__ + +#include +#include + +#include +#include +#include +#include +#include + +/** + * The light element declares a light source that illuminates the scene. Light + * sources have many different properties and radiate light in many different + * patterns and frequencies. + */ +class domLight : public daeElement +{ +public: + class domTechnique_common; + + typedef daeSmartRef domTechnique_commonRef; + typedef daeTArray domTechnique_common_Array; + +/** + * The technique_common element specifies the light information for the common + * profile which all COLLADA implementations need to support. + */ + class domTechnique_common : public daeElement + { + public: + class domAmbient; + + typedef daeSmartRef domAmbientRef; + typedef daeTArray domAmbient_Array; + +/** + * The ambient element declares the parameters required to describe an ambient + * light source. An ambient light is one that lights everything evenly, + * regardless of location or orientation. + */ + class domAmbient : public daeElement + { + + protected: // Element +/** + * The color element contains three floating point numbers specifying the + * color of the light. The color element must occur exactly once. @see domColor + */ + domTargetableFloat3Ref elemColor; + + public: //Accessors and Mutators + /** + * Gets the color element. + * @return a daeSmartRef to the color element. + */ + const domTargetableFloat3Ref getColor() const { return elemColor; } + protected: + /** + * Constructor + */ + domAmbient() : elemColor() {} + /** + * Destructor + */ + virtual ~domAmbient() {} + /** + * Copy Constructor + */ + domAmbient( const domAmbient &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAmbient &operator=( const domAmbient &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; + }; + + class domDirectional; + + typedef daeSmartRef domDirectionalRef; + typedef daeTArray domDirectional_Array; + +/** + * The directional element declares the parameters required to describe a + * directional light source. A directional light is one that lights everything + * from the same direction, regardless of location. The light’s default + * direction vector in local coordinates is [0,0,-1], pointing down the -Z + * axis. The actual direction of the light is defined by the transform of + * the node where the light is instantiated. + */ + class domDirectional : public daeElement + { + + protected: // Element +/** + * The color element contains three floating point numbers specifying the + * color of the light. The color element must occur exactly once. @see domColor + */ + domTargetableFloat3Ref elemColor; + + public: //Accessors and Mutators + /** + * Gets the color element. + * @return a daeSmartRef to the color element. + */ + const domTargetableFloat3Ref getColor() const { return elemColor; } + protected: + /** + * Constructor + */ + domDirectional() : elemColor() {} + /** + * Destructor + */ + virtual ~domDirectional() {} + /** + * Copy Constructor + */ + domDirectional( const domDirectional &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDirectional &operator=( const domDirectional &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; + }; + + class domPoint; + + typedef daeSmartRef domPointRef; + typedef daeTArray domPoint_Array; + +/** + * The point element declares the parameters required to describe a point + * light source. A point light source radiates light in all directions from + * a known location in space. The intensity of a point light source is attenuated + * as the distance to the light source increases. The position of the light + * is defined by the transform of the node in which it is instantiated. + */ + class domPoint : public daeElement + { + + protected: // Elements +/** + * The color element contains three floating point numbers specifying the + * color of the light. The color element must occur exactly once. @see domColor + */ + domTargetableFloat3Ref elemColor; +/** + * The constant_attenuation is used to calculate the total attenuation of + * this light given a distance. The equation used is A = constant_attenuation + * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domConstant_attenuation + */ + domTargetableFloatRef elemConstant_attenuation; +/** + * The linear_attenuation is used to calculate the total attenuation of this + * light given a distance. The equation used is A = constant_attenuation + * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domLinear_attenuation + */ + domTargetableFloatRef elemLinear_attenuation; +/** + * The quadratic_attenuation is used to calculate the total attenuation of + * this light given a distance. The equation used is A = constant_attenuation + * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domQuadratic_attenuation + */ + domTargetableFloatRef elemQuadratic_attenuation; + + public: //Accessors and Mutators + /** + * Gets the color element. + * @return a daeSmartRef to the color element. + */ + const domTargetableFloat3Ref getColor() const { return elemColor; } + /** + * Gets the constant_attenuation element. + * @return a daeSmartRef to the constant_attenuation element. + */ + const domTargetableFloatRef getConstant_attenuation() const { return elemConstant_attenuation; } + /** + * Gets the linear_attenuation element. + * @return a daeSmartRef to the linear_attenuation element. + */ + const domTargetableFloatRef getLinear_attenuation() const { return elemLinear_attenuation; } + /** + * Gets the quadratic_attenuation element. + * @return a daeSmartRef to the quadratic_attenuation element. + */ + const domTargetableFloatRef getQuadratic_attenuation() const { return elemQuadratic_attenuation; } + protected: + /** + * Constructor + */ + domPoint() : elemColor(), elemConstant_attenuation(), elemLinear_attenuation(), elemQuadratic_attenuation() {} + /** + * Destructor + */ + virtual ~domPoint() {} + /** + * Copy Constructor + */ + domPoint( const domPoint &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPoint &operator=( const domPoint &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; + }; + + class domSpot; + + typedef daeSmartRef domSpotRef; + typedef daeTArray domSpot_Array; + +/** + * The spot element declares the parameters required to describe a spot light + * source. A spot light source radiates light in one direction from a known + * location in space. The light radiates from the spot light source in a + * cone shape. The intensity of the light is attenuated as the radiation + * angle increases away from the direction of the light source. The intensity + * of a spot light source is also attenuated as the distance to the light + * source increases. The position of the light is defined by the transform + * of the node in which it is instantiated. The light’s default direction + * vector in local coordinates is [0,0,-1], pointing down the -Z axis. The + * actual direction of the light is defined by the transform of the node + * where the light is instantiated. + */ + class domSpot : public daeElement + { + + protected: // Elements +/** + * The color element contains three floating point numbers specifying the + * color of the light. The color element must occur exactly once. @see domColor + */ + domTargetableFloat3Ref elemColor; +/** + * The constant_attenuation is used to calculate the total attenuation of + * this light given a distance. The equation used is A = constant_attenuation + * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domConstant_attenuation + */ + domTargetableFloatRef elemConstant_attenuation; +/** + * The linear_attenuation is used to calculate the total attenuation of this + * light given a distance. The equation used is A = constant_attenuation + * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domLinear_attenuation + */ + domTargetableFloatRef elemLinear_attenuation; +/** + * The quadratic_attenuation is used to calculate the total attenuation of + * this light given a distance. The equation used is A = constant_attenuation + * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domQuadratic_attenuation + */ + domTargetableFloatRef elemQuadratic_attenuation; +/** + * The falloff_angle is used to specify the amount of attenuation based on + * the direction of the light. @see domFalloff_angle + */ + domTargetableFloatRef elemFalloff_angle; +/** + * The falloff_exponent is used to specify the amount of attenuation based + * on the direction of the light. @see domFalloff_exponent + */ + domTargetableFloatRef elemFalloff_exponent; + + public: //Accessors and Mutators + /** + * Gets the color element. + * @return a daeSmartRef to the color element. + */ + const domTargetableFloat3Ref getColor() const { return elemColor; } + /** + * Gets the constant_attenuation element. + * @return a daeSmartRef to the constant_attenuation element. + */ + const domTargetableFloatRef getConstant_attenuation() const { return elemConstant_attenuation; } + /** + * Gets the linear_attenuation element. + * @return a daeSmartRef to the linear_attenuation element. + */ + const domTargetableFloatRef getLinear_attenuation() const { return elemLinear_attenuation; } + /** + * Gets the quadratic_attenuation element. + * @return a daeSmartRef to the quadratic_attenuation element. + */ + const domTargetableFloatRef getQuadratic_attenuation() const { return elemQuadratic_attenuation; } + /** + * Gets the falloff_angle element. + * @return a daeSmartRef to the falloff_angle element. + */ + const domTargetableFloatRef getFalloff_angle() const { return elemFalloff_angle; } + /** + * Gets the falloff_exponent element. + * @return a daeSmartRef to the falloff_exponent element. + */ + const domTargetableFloatRef getFalloff_exponent() const { return elemFalloff_exponent; } + protected: + /** + * Constructor + */ + domSpot() : elemColor(), elemConstant_attenuation(), elemLinear_attenuation(), elemQuadratic_attenuation(), elemFalloff_angle(), elemFalloff_exponent() {} + /** + * Destructor + */ + virtual ~domSpot() {} + /** + * Copy Constructor + */ + domSpot( const domSpot &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSpot &operator=( const domSpot &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: // Elements +/** + * The ambient element declares the parameters required to describe an ambient + * light source. An ambient light is one that lights everything evenly, + * regardless of location or orientation. @see domAmbient + */ + domAmbientRef elemAmbient; +/** + * The directional element declares the parameters required to describe a + * directional light source. A directional light is one that lights everything + * from the same direction, regardless of location. The light’s default + * direction vector in local coordinates is [0,0,-1], pointing down the -Z + * axis. The actual direction of the light is defined by the transform of + * the node where the light is instantiated. @see domDirectional + */ + domDirectionalRef elemDirectional; +/** + * The point element declares the parameters required to describe a point + * light source. A point light source radiates light in all directions from + * a known location in space. The intensity of a point light source is attenuated + * as the distance to the light source increases. The position of the light + * is defined by the transform of the node in which it is instantiated. @see + * domPoint + */ + domPointRef elemPoint; +/** + * The spot element declares the parameters required to describe a spot light + * source. A spot light source radiates light in one direction from a known + * location in space. The light radiates from the spot light source in a + * cone shape. The intensity of the light is attenuated as the radiation + * angle increases away from the direction of the light source. The intensity + * of a spot light source is also attenuated as the distance to the light + * source increases. The position of the light is defined by the transform + * of the node in which it is instantiated. The light’s default direction + * vector in local coordinates is [0,0,-1], pointing down the -Z axis. The + * actual direction of the light is defined by the transform of the node + * where the light is instantiated. @see domSpot + */ + domSpotRef elemSpot; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the ambient element. + * @return a daeSmartRef to the ambient element. + */ + const domAmbientRef getAmbient() const { return elemAmbient; } + /** + * Gets the directional element. + * @return a daeSmartRef to the directional element. + */ + const domDirectionalRef getDirectional() const { return elemDirectional; } + /** + * Gets the point element. + * @return a daeSmartRef to the point element. + */ + const domPointRef getPoint() const { return elemPoint; } + /** + * Gets the spot element. + * @return a daeSmartRef to the spot element. + */ + const domSpotRef getSpot() const { return elemSpot; } + /** + * 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 + */ + domTechnique_common() : elemAmbient(), elemDirectional(), elemPoint(), elemSpot() {} + /** + * Destructor + */ + virtual ~domTechnique_common() {} + /** + * Copy Constructor + */ + domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_common &operator=( const domTechnique_common &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 +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The light element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The technique_common element specifies the light information for the common + * profile which all COLLADA implementations need to support. @see domTechnique_common + */ + domTechnique_commonRef elemTechnique_common; +/** + * This element may contain any number of non-common profile techniques. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the technique_common element. + * @return a daeSmartRef to the technique_common element. + */ + const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @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; } +protected: + /** + * Constructor + */ + domLight() : attrId(), attrName(), elemAsset(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLight() {} + /** + * Copy Constructor + */ + domLight( const domLight &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLight &operator=( const domLight &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLines.h b/Extras/COLLADA_DOM/include/1.4/dom/domLines.h new file mode 100644 index 000000000..8cef7d53f --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLines.h @@ -0,0 +1,164 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLines_h__ +#define __domLines_h__ + +#include +#include + +#include +#include +#include + +/** + * The lines element provides the information needed to bind vertex attributes + * together and then organize those vertices into individual lines. Each + * line described by the mesh has two vertices. The first line is formed + * from first and second vertices. The second line is formed from the third + * and fourth vertices and so on. + */ +class domLines : public daeElement +{ +protected: // Attributes +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of line primitives. Required + * attribute. + */ + domUint attrCount; +/** + * The material attribute declares a symbol for a material. This symbol is + * bound to a material at the time of instantiation. If the material attribute + * is not specified then the lighting and shading results are application + * defined. Optional attribute. + */ + xsNCName attrMaterial; + +protected: // Elements +/** + * The input element may occur any number of times. This input is a local + * input with the offset and set attributes. @see domInput + */ + domInputLocalOffset_Array elemInput_array; +/** + * The p element may occur once. @see domP + */ + domPRef elemP; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the material attribute. + * @return Returns a xsNCName of the material attribute. + */ + xsNCName getMaterial() const { return attrMaterial; } + /** + * Sets the material attribute. + * @param atMaterial The new value for the material attribute. + */ + void setMaterial( xsNCName atMaterial ) { attrMaterial = atMaterial; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocalOffset_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } + /** + * Gets the p element. + * @return a daeSmartRef to the p element. + */ + const domPRef getP() const { return elemP; } + /** + * 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; } +protected: + /** + * Constructor + */ + domLines() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLines() {} + /** + * Copy Constructor + */ + domLines( const domLines &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLines &operator=( const domLines &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLinestrips.h b/Extras/COLLADA_DOM/include/1.4/dom/domLinestrips.h new file mode 100644 index 000000000..7a67689f1 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLinestrips.h @@ -0,0 +1,169 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLinestrips_h__ +#define __domLinestrips_h__ + +#include +#include + +#include +#include +#include + +/** + * The linestrips element provides the information needed to bind vertex attributes + * together and then organize those vertices into connected line-strips. + * Each line-strip described by the mesh has an arbitrary number of vertices. + * Each line segment within the line-strip is formed from the current vertex + * and the preceding vertex. + */ +class domLinestrips : public daeElement +{ +protected: // Attributes +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of linestrip primitives. Required + * attribute. + */ + domUint attrCount; +/** + * The material attribute declares a symbol for a material. This symbol is + * bound to a material at the time of instantiation. If the material attribute + * is not specified then the lighting and shading results are application + * defined. Optional attribute. + */ + xsNCName attrMaterial; + +protected: // Elements +/** + * The input element may occur any number of times. This input is a local + * input with the offset and set attributes. @see domInput + */ + domInputLocalOffset_Array elemInput_array; +/** + * The linestrips element may have any number of p elements. @see domP + */ + domP_Array elemP_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the material attribute. + * @return Returns a xsNCName of the material attribute. + */ + xsNCName getMaterial() const { return attrMaterial; } + /** + * Sets the material attribute. + * @param atMaterial The new value for the material attribute. + */ + void setMaterial( xsNCName atMaterial ) { attrMaterial = atMaterial; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocalOffset_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } + /** + * Gets the p element array. + * @return Returns a reference to the array of p elements. + */ + domP_Array &getP_array() { return elemP_array; } + /** + * Gets the p element array. + * @return Returns a constant reference to the array of p elements. + */ + const domP_Array &getP_array() const { return elemP_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; } +protected: + /** + * Constructor + */ + domLinestrips() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domLinestrips() {} + /** + * Copy Constructor + */ + domLinestrips( const domLinestrips &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLinestrips &operator=( const domLinestrips &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLookat.h b/Extras/COLLADA_DOM/include/1.4/dom/domLookat.h new file mode 100644 index 000000000..d59c0cf11 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domLookat.h @@ -0,0 +1,110 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domLookat_h__ +#define __domLookat_h__ + +#include +#include + + +/** + * The lookat element contains a position and orientation transformation suitable + * for aiming a camera. The lookat element contains three mathematical vectors + * within it that describe: 1.The position of the object; 2.The position + * of the interest point; 3.The direction that points up. + */ +class domLookat : public daeElement +{ +protected: // Attribute +/** + * 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; + +protected: // Value + /** + * The domFloat3x3 value of the text data of this element. + */ + domFloat3x3 _value; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the _value array. + * @return Returns a domFloat3x3 reference of the _value array. + */ + domFloat3x3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat3x3 reference of the _value array. + */ + const domFloat3x3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat3x3 &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domLookat() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domLookat() {} + /** + * Copy Constructor + */ + domLookat( const domLookat &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLookat &operator=( const domLookat &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domMaterial.h b/Extras/COLLADA_DOM/include/1.4/dom/domMaterial.h new file mode 100644 index 000000000..eacca1ee4 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domMaterial.h @@ -0,0 +1,137 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domMaterial_h__ +#define __domMaterial_h__ + +#include +#include + +#include +#include +#include + +/** + * Materials describe the visual appearance of a geometric object. + */ +class domMaterial : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The material element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The material must instance an effect. @see domInstance_effect + */ + domInstance_effectRef elemInstance_effect; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the instance_effect element. + * @return a daeSmartRef to the instance_effect element. + */ + const domInstance_effectRef getInstance_effect() const { return elemInstance_effect; } + /** + * 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; } +protected: + /** + * Constructor + */ + domMaterial() : attrId(), attrName(), elemAsset(), elemInstance_effect(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domMaterial() {} + /** + * Copy Constructor + */ + domMaterial( const domMaterial &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMaterial &operator=( const domMaterial &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domMatrix.h b/Extras/COLLADA_DOM/include/1.4/dom/domMatrix.h new file mode 100644 index 000000000..106602812 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domMatrix.h @@ -0,0 +1,109 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domMatrix_h__ +#define __domMatrix_h__ + +#include +#include + + +/** + * Matrix transformations embody mathematical changes to points within a coordinate + * systems or the coordinate system itself. The matrix element contains a + * 4-by-4 matrix of floating-point values. + */ +class domMatrix : public daeElement +{ +protected: // Attribute +/** + * 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; + +protected: // Value + /** + * The domFloat4x4 value of the text data of this element. + */ + domFloat4x4 _value; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the _value array. + * @return Returns a domFloat4x4 reference of the _value array. + */ + domFloat4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat4x4 reference of the _value array. + */ + const domFloat4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat4x4 &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domMatrix() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domMatrix() {} + /** + * Copy Constructor + */ + domMatrix( const domMatrix &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMatrix &operator=( const domMatrix &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domMesh.h b/Extras/COLLADA_DOM/include/1.4/dom/domMesh.h new file mode 100644 index 000000000..3780d452a --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domMesh.h @@ -0,0 +1,232 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domMesh_h__ +#define __domMesh_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * The mesh element contains vertex and primitive information sufficient to + * describe basic geometric meshes. + */ +class domMesh : public daeElement +{ + +protected: // Elements +/** + * The mesh element must contain one or more source elements. @see domSource + */ + domSource_Array elemSource_array; +/** + * The mesh element must contain one vertices element. @see domVertices + */ + domVerticesRef elemVertices; +/** + * The mesh element may contain any number of lines elements. @see domLines + */ + domLines_Array elemLines_array; +/** + * The mesh element may contain any number of linestrips elements. @see + * domLinestrips + */ + domLinestrips_Array elemLinestrips_array; +/** + * The mesh element may contain any number of polygons elements. @see domPolygons + */ + domPolygons_Array elemPolygons_array; +/** + * The mesh element may contain any number of polylist elements. @see domPolylist + */ + domPolylist_Array elemPolylist_array; +/** + * The mesh element may contain any number of triangles elements. @see domTriangles + */ + domTriangles_Array elemTriangles_array; +/** + * The mesh element may contain any number of trifans elements. @see domTrifans + */ + domTrifans_Array elemTrifans_array; +/** + * The mesh element may contain any number of tristrips elements. @see domTristrips + */ + domTristrips_Array elemTristrips_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the source element array. + * @return Returns a reference to the array of source elements. + */ + domSource_Array &getSource_array() { return elemSource_array; } + /** + * Gets the source element array. + * @return Returns a constant reference to the array of source elements. + */ + const domSource_Array &getSource_array() const { return elemSource_array; } + /** + * Gets the vertices element. + * @return a daeSmartRef to the vertices element. + */ + const domVerticesRef getVertices() const { return elemVertices; } + /** + * Gets the lines element array. + * @return Returns a reference to the array of lines elements. + */ + domLines_Array &getLines_array() { return elemLines_array; } + /** + * Gets the lines element array. + * @return Returns a constant reference to the array of lines elements. + */ + const domLines_Array &getLines_array() const { return elemLines_array; } + /** + * Gets the linestrips element array. + * @return Returns a reference to the array of linestrips elements. + */ + domLinestrips_Array &getLinestrips_array() { return elemLinestrips_array; } + /** + * Gets the linestrips element array. + * @return Returns a constant reference to the array of linestrips elements. + */ + const domLinestrips_Array &getLinestrips_array() const { return elemLinestrips_array; } + /** + * Gets the polygons element array. + * @return Returns a reference to the array of polygons elements. + */ + domPolygons_Array &getPolygons_array() { return elemPolygons_array; } + /** + * Gets the polygons element array. + * @return Returns a constant reference to the array of polygons elements. + */ + const domPolygons_Array &getPolygons_array() const { return elemPolygons_array; } + /** + * Gets the polylist element array. + * @return Returns a reference to the array of polylist elements. + */ + domPolylist_Array &getPolylist_array() { return elemPolylist_array; } + /** + * Gets the polylist element array. + * @return Returns a constant reference to the array of polylist elements. + */ + const domPolylist_Array &getPolylist_array() const { return elemPolylist_array; } + /** + * Gets the triangles element array. + * @return Returns a reference to the array of triangles elements. + */ + domTriangles_Array &getTriangles_array() { return elemTriangles_array; } + /** + * Gets the triangles element array. + * @return Returns a constant reference to the array of triangles elements. + */ + const domTriangles_Array &getTriangles_array() const { return elemTriangles_array; } + /** + * Gets the trifans element array. + * @return Returns a reference to the array of trifans elements. + */ + domTrifans_Array &getTrifans_array() { return elemTrifans_array; } + /** + * Gets the trifans element array. + * @return Returns a constant reference to the array of trifans elements. + */ + const domTrifans_Array &getTrifans_array() const { return elemTrifans_array; } + /** + * Gets the tristrips element array. + * @return Returns a reference to the array of tristrips elements. + */ + domTristrips_Array &getTristrips_array() { return elemTristrips_array; } + /** + * Gets the tristrips element array. + * @return Returns a constant reference to the array of tristrips elements. + */ + const domTristrips_Array &getTristrips_array() const { return elemTristrips_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. + */ + 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 + */ + domMesh() : elemSource_array(), elemVertices(), elemLines_array(), elemLinestrips_array(), elemPolygons_array(), elemPolylist_array(), elemTriangles_array(), elemTrifans_array(), elemTristrips_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domMesh() {} + /** + * Copy Constructor + */ + domMesh( const domMesh &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMesh &operator=( const domMesh &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domMorph.h b/Extras/COLLADA_DOM/include/1.4/dom/domMorph.h new file mode 100644 index 000000000..9d74dac66 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domMorph.h @@ -0,0 +1,235 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domMorph_h__ +#define __domMorph_h__ + +#include +#include + +#include +#include +#include + +/** + * The morph element describes the data required to blend between sets of + * static meshes. Each possible mesh that can be blended (a morph target) + * must be specified. + */ +class domMorph : public daeElement +{ +public: + class domTargets; + + typedef daeSmartRef domTargetsRef; + typedef daeTArray domTargets_Array; + +/** + * The targets element declares the morph targets, their weights and any user + * defined attributes associated with them. + */ + class domTargets : public daeElement + { + + protected: // Elements +/** + * The input element must occur at least twice. These inputs are local inputs. + * @see domInput + */ + domInputLocal_Array elemInput_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + + public: //Accessors and Mutators + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocal_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocal_Array &getInput_array() const { return elemInput_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; } + protected: + /** + * Constructor + */ + domTargets() : elemInput_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domTargets() {} + /** + * Copy Constructor + */ + domTargets( const domTargets &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTargets &operator=( const domTargets &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 +/** + * The method attribute specifies the which blending technique to use. The + * accepted values are NORMALIZED, and RELATIVE. The default value if not + * specified is NORMALIZED. Optional attribute. + */ + domMorphMethodType attrMethod; +/** + * The source attribute indicates the base mesh. Required attribute. + */ + xsAnyURI attrSource; + +protected: // Elements +/** + * The morph element must contain at least two source elements. @see domSource + */ + domSource_Array elemSource_array; +/** + * The targets element declares the morph targets, their weights and any user + * defined attributes associated with them. @see domTargets + */ + domTargetsRef elemTargets; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the method attribute. + * @return Returns a domMorphMethodType of the method attribute. + */ + domMorphMethodType getMethod() const { return attrMethod; } + /** + * Sets the method attribute. + * @param atMethod The new value for the method attribute. + */ + void setMethod( domMorphMethodType atMethod ) { attrMethod = atMethod; } + + /** + * Gets the source attribute. + * @return Returns a xsAnyURI reference of the source attribute. + */ + xsAnyURI &getSource() { return attrSource; } + /** + * Gets the source attribute. + * @return Returns a constant xsAnyURI reference of the source attribute. + */ + const xsAnyURI &getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( const xsAnyURI &atSource ) { attrSource.setURI( atSource.getURI() ); } + + /** + * Gets the source element array. + * @return Returns a reference to the array of source elements. + */ + domSource_Array &getSource_array() { return elemSource_array; } + /** + * Gets the source element array. + * @return Returns a constant reference to the array of source elements. + */ + const domSource_Array &getSource_array() const { return elemSource_array; } + /** + * Gets the targets element. + * @return a daeSmartRef to the targets element. + */ + const domTargetsRef getTargets() const { return elemTargets; } + /** + * 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; } +protected: + /** + * Constructor + */ + domMorph() : attrMethod(), attrSource(), elemSource_array(), elemTargets(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domMorph() {} + /** + * Copy Constructor + */ + domMorph( const domMorph &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMorph &operator=( const domMorph &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domName_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domName_array.h new file mode 100644 index 000000000..102c2edf9 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domName_array.h @@ -0,0 +1,139 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domName_array_h__ +#define __domName_array_h__ + +#include +#include + + +/** + * The Name_array element declares the storage for a homogenous array of Name + * string values. + */ +class domName_array : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of values in the array. Required + * attribute. + */ + domUint attrCount; + +protected: // Value + /** + * The domListOfNames value of the text data of this element. + */ + domListOfNames _value; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the _value array. + * @return Returns a domListOfNames reference of the _value array. + */ + domListOfNames &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfNames reference of the _value array. + */ + const domListOfNames &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfNames &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domName_array() : attrId(), attrName(), attrCount(), _value() {} + /** + * Destructor + */ + virtual ~domName_array() {} + /** + * Copy Constructor + */ + domName_array( const domName_array &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domName_array &operator=( const domName_array &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domNode.h b/Extras/COLLADA_DOM/include/1.4/dom/domNode.h new file mode 100644 index 000000000..99384a465 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domNode.h @@ -0,0 +1,383 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domNode_h__ +#define __domNode_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * Nodes embody the hierarchical relationship of elements in the scene. + */ +class domNode : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * 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 type attribute indicates the type of the node element. The default + * value is “NODE”. Optional attribute. + */ + domNodeType attrType; +/** + * The layer attribute indicates the names of the layers to which this node + * belongs. For example, a value of “foreground glowing” indicates that + * this node belongs to both the ‘foreground’ layer and the ‘glowing’ + * layer. The default value is empty, indicating that the node doesn’t + * belong to any layer. Optional attribute. + */ + domListOfNames attrLayer; + +protected: // Elements +/** + * The node element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The node element may contain any number of lookat elements. @see domLookat + */ + domLookat_Array elemLookat_array; +/** + * The node element may contain any number of matrix elements. @see domMatrix + */ + domMatrix_Array elemMatrix_array; +/** + * The node element may contain any number of rotate elements. @see domRotate + */ + domRotate_Array elemRotate_array; +/** + * The node element may contain any number of scale elements. @see domScale + */ + domScale_Array elemScale_array; +/** + * The node element may contain any number of skew elements. @see domSkew + */ + domSkew_Array elemSkew_array; +/** + * The node element may contain any number of translate elements. @see domTranslate + */ + domTranslate_Array elemTranslate_array; +/** + * The node element may instance any number of camera objects. @see domInstance_camera + */ + domInstance_camera_Array elemInstance_camera_array; +/** + * The node element may instance any number of controller objects. @see + * domInstance_controller + */ + domInstance_controller_Array elemInstance_controller_array; +/** + * The node element may instance any number of geometry objects. @see domInstance_geometry + */ + domInstance_geometry_Array elemInstance_geometry_array; +/** + * The node element may instance any number of light objects. @see domInstance_light + */ + domInstance_light_Array elemInstance_light_array; +/** + * The node element may instance any number of node elements or hierarchies + * objects. @see domInstance_node + */ + domInstance_node_Array elemInstance_node_array; +/** + * The node element may be hierarchical and be the parent of any number of + * other node elements. @see domNode + */ + domNode_Array elemNode_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the type attribute. + * @return Returns a domNodeType of the type attribute. + */ + domNodeType getType() const { return attrType; } + /** + * Sets the type attribute. + * @param atType The new value for the type attribute. + */ + void setType( domNodeType atType ) { attrType = atType; } + + /** + * Gets the layer array attribute. + * @return Returns a domListOfNames reference of the layer array attribute. + */ + domListOfNames &getLayer() { return attrLayer; } + /** + * Gets the layer array attribute. + * @return Returns a constant domListOfNames reference of the layer array attribute. + */ + const domListOfNames &getLayer() const { return attrLayer; } + /** + * Sets the layer array attribute. + * @param atLayer The new value for the layer array attribute. + */ + void setLayer( const domListOfNames &atLayer ) { attrLayer = atLayer; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the lookat element array. + * @return Returns a reference to the array of lookat elements. + */ + domLookat_Array &getLookat_array() { return elemLookat_array; } + /** + * Gets the lookat element array. + * @return Returns a constant reference to the array of lookat elements. + */ + const domLookat_Array &getLookat_array() const { return elemLookat_array; } + /** + * Gets the matrix element array. + * @return Returns a reference to the array of matrix elements. + */ + domMatrix_Array &getMatrix_array() { return elemMatrix_array; } + /** + * Gets the matrix element array. + * @return Returns a constant reference to the array of matrix elements. + */ + const domMatrix_Array &getMatrix_array() const { return elemMatrix_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 scale element array. + * @return Returns a reference to the array of scale elements. + */ + domScale_Array &getScale_array() { return elemScale_array; } + /** + * Gets the scale element array. + * @return Returns a constant reference to the array of scale elements. + */ + const domScale_Array &getScale_array() const { return elemScale_array; } + /** + * Gets the skew element array. + * @return Returns a reference to the array of skew elements. + */ + domSkew_Array &getSkew_array() { return elemSkew_array; } + /** + * Gets the skew element array. + * @return Returns a constant reference to the array of skew elements. + */ + const domSkew_Array &getSkew_array() const { return elemSkew_array; } + /** + * 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 instance_camera element array. + * @return Returns a reference to the array of instance_camera elements. + */ + domInstance_camera_Array &getInstance_camera_array() { return elemInstance_camera_array; } + /** + * Gets the instance_camera element array. + * @return Returns a constant reference to the array of instance_camera elements. + */ + const domInstance_camera_Array &getInstance_camera_array() const { return elemInstance_camera_array; } + /** + * Gets the instance_controller element array. + * @return Returns a reference to the array of instance_controller elements. + */ + domInstance_controller_Array &getInstance_controller_array() { return elemInstance_controller_array; } + /** + * Gets the instance_controller element array. + * @return Returns a constant reference to the array of instance_controller elements. + */ + const domInstance_controller_Array &getInstance_controller_array() const { return elemInstance_controller_array; } + /** + * Gets the instance_geometry element array. + * @return Returns a reference to the array of instance_geometry elements. + */ + domInstance_geometry_Array &getInstance_geometry_array() { return elemInstance_geometry_array; } + /** + * Gets the instance_geometry element array. + * @return Returns a constant reference to the array of instance_geometry elements. + */ + const domInstance_geometry_Array &getInstance_geometry_array() const { return elemInstance_geometry_array; } + /** + * Gets the instance_light element array. + * @return Returns a reference to the array of instance_light elements. + */ + domInstance_light_Array &getInstance_light_array() { return elemInstance_light_array; } + /** + * Gets the instance_light element array. + * @return Returns a constant reference to the array of instance_light elements. + */ + const domInstance_light_Array &getInstance_light_array() const { return elemInstance_light_array; } + /** + * Gets the instance_node element array. + * @return Returns a reference to the array of instance_node elements. + */ + domInstance_node_Array &getInstance_node_array() { return elemInstance_node_array; } + /** + * Gets the instance_node element array. + * @return Returns a constant reference to the array of instance_node elements. + */ + const domInstance_node_Array &getInstance_node_array() const { return elemInstance_node_array; } + /** + * Gets the node element array. + * @return Returns a reference to the array of node elements. + */ + domNode_Array &getNode_array() { return elemNode_array; } + /** + * Gets the node element array. + * @return Returns a constant reference to the array of node elements. + */ + const domNode_Array &getNode_array() const { return elemNode_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. + */ + 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 + */ + domNode() : attrId(), attrName(), attrSid(), attrType(), attrLayer(), elemAsset(), elemLookat_array(), elemMatrix_array(), elemRotate_array(), elemScale_array(), elemSkew_array(), elemTranslate_array(), elemInstance_camera_array(), elemInstance_controller_array(), elemInstance_geometry_array(), elemInstance_light_array(), elemInstance_node_array(), elemNode_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domNode() {} + /** + * Copy Constructor + */ + domNode( const domNode &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domNode &operator=( const domNode &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domP.h b/Extras/COLLADA_DOM/include/1.4/dom/domP.h new file mode 100644 index 000000000..7d39a478c --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domP.h @@ -0,0 +1,92 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domP_h__ +#define __domP_h__ + +#include +#include + + +/** + * The p element represents primitive data for the primitive types (lines, + * linestrips, polygons, polylist, triangles, trifans, tristrips). The p + * element contains indices that reference into the parent's source elements + * referenced by the input elements. + */ +class domP : public daeElement +{ + +protected: // Value + /** + * The domListOfUInts value of the text data of this element. + */ + domListOfUInts _value; + +public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domListOfUInts reference of the _value array. + */ + domListOfUInts &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfUInts reference of the _value array. + */ + const domListOfUInts &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfUInts &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domP() : _value() {} + /** + * Destructor + */ + virtual ~domP() {} + /** + * Copy Constructor + */ + domP( const domP &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domP &operator=( const domP &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domParam.h b/Extras/COLLADA_DOM/include/1.4/dom/domParam.h new file mode 100644 index 000000000..7733b7718 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domParam.h @@ -0,0 +1,150 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domParam_h__ +#define __domParam_h__ + +#include +#include + + +/** + * The param element declares parametric information regarding its parent + * element. + */ +class domParam : public daeElement +{ +protected: // Attributes +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * 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 semantic attribute is the user-defined meaning of the parameter. Optional + * attribute. + */ + xsNMTOKEN attrSemantic; +/** + * The type attribute indicates the type of the value data. This text string + * must be understood by the application. Required attribute. + */ + xsNMTOKEN attrType; + +protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + +public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the semantic attribute. + * @return Returns a xsNMTOKEN of the semantic attribute. + */ + xsNMTOKEN getSemantic() const { return attrSemantic; } + /** + * Sets the semantic attribute. + * @param atSemantic The new value for the semantic attribute. + */ + void setSemantic( xsNMTOKEN atSemantic ) { attrSemantic = atSemantic; } + + /** + * Gets the type attribute. + * @return Returns a xsNMTOKEN of the type attribute. + */ + xsNMTOKEN getType() const { return attrType; } + /** + * Sets the type attribute. + * @param atType The new value for the type attribute. + */ + void setType( xsNMTOKEN atType ) { attrType = atType; } + + /** + * Gets the value of this element. + * @return 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; } + +protected: + /** + * Constructor + */ + domParam() : attrName(), attrSid(), attrSemantic(), attrType(), _value() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_material.h b/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_material.h new file mode 100644 index 000000000..d97e4257b --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_material.h @@ -0,0 +1,241 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domPhysics_material_h__ +#define __domPhysics_material_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * This element defines the physical properties of an object. It contains + * a technique/profile with parameters. The COMMON profile defines the built-in + * names, such as static_friction. + */ +class domPhysics_material : public daeElement +{ +public: + class domTechnique_common; + + typedef daeSmartRef domTechnique_commonRef; + typedef daeTArray domTechnique_common_Array; + +/** + * The technique_common element specifies the physics_material information + * for the common profile which all COLLADA implementations need to support. + */ + class domTechnique_common : public daeElement + { + + protected: // Elements +/** + * Dynamic friction coefficient @see domDynamic_friction + */ + domTargetableFloatRef elemDynamic_friction; +/** + * The proportion of the kinetic energy preserved in the impact (typically + * ranges from 0.0 to 1.0) @see domRestitution + */ + domTargetableFloatRef elemRestitution; +/** + * Static friction coefficient @see domStatic_friction + */ + domTargetableFloatRef elemStatic_friction; + + public: //Accessors and Mutators + /** + * Gets the dynamic_friction element. + * @return a daeSmartRef to the dynamic_friction element. + */ + const domTargetableFloatRef getDynamic_friction() const { return elemDynamic_friction; } + /** + * Gets the restitution element. + * @return a daeSmartRef to the restitution element. + */ + const domTargetableFloatRef getRestitution() const { return elemRestitution; } + /** + * Gets the static_friction element. + * @return a daeSmartRef to the static_friction element. + */ + const domTargetableFloatRef getStatic_friction() const { return elemStatic_friction; } + protected: + /** + * Constructor + */ + domTechnique_common() : elemDynamic_friction(), elemRestitution(), elemStatic_friction() {} + /** + * Destructor + */ + virtual ~domTechnique_common() {} + /** + * Copy Constructor + */ + domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_common &operator=( const domTechnique_common &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 +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The physics_material element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The technique_common element specifies the physics_material information + * for the common profile which all COLLADA implementations need to support. + * @see domTechnique_common + */ + domTechnique_commonRef elemTechnique_common; +/** + * This element may contain any number of non-common profile techniques. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the technique_common element. + * @return a daeSmartRef to the technique_common element. + */ + const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @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; } +protected: + /** + * Constructor + */ + domPhysics_material() : attrId(), attrName(), elemAsset(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domPhysics_material() {} + /** + * Copy Constructor + */ + domPhysics_material( const domPhysics_material &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPhysics_material &operator=( const domPhysics_material &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_model.h b/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_model.h new file mode 100644 index 000000000..b30c45b4e --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_model.h @@ -0,0 +1,176 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domPhysics_model_h__ +#define __domPhysics_model_h__ + +#include +#include + +#include +#include +#include +#include +#include + +/** + * This element allows for building complex combinations of rigid-bodies and + * constraints that may be instantiated multiple times. + */ +class domPhysics_model : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The physics_model element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The physics_model may define any number of rigid_body elements. @see + * domRigid_body + */ + domRigid_body_Array elemRigid_body_array; +/** + * The physics_model may define any number of rigid_constraint elements. + * @see domRigid_constraint + */ + domRigid_constraint_Array elemRigid_constraint_array; +/** + * The physics_model may instance any number of other physics_model elements. + * @see domInstance_physics_model + */ + domInstance_physics_model_Array elemInstance_physics_model_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the rigid_body element array. + * @return Returns a reference to the array of rigid_body elements. + */ + domRigid_body_Array &getRigid_body_array() { return elemRigid_body_array; } + /** + * Gets the rigid_body element array. + * @return Returns a constant reference to the array of rigid_body elements. + */ + const domRigid_body_Array &getRigid_body_array() const { return elemRigid_body_array; } + /** + * Gets the rigid_constraint element array. + * @return Returns a reference to the array of rigid_constraint elements. + */ + domRigid_constraint_Array &getRigid_constraint_array() { return elemRigid_constraint_array; } + /** + * Gets the rigid_constraint element array. + * @return Returns a constant reference to the array of rigid_constraint elements. + */ + const domRigid_constraint_Array &getRigid_constraint_array() const { return elemRigid_constraint_array; } + /** + * Gets the instance_physics_model element array. + * @return Returns a reference to the array of instance_physics_model elements. + */ + domInstance_physics_model_Array &getInstance_physics_model_array() { return elemInstance_physics_model_array; } + /** + * Gets the instance_physics_model element array. + * @return Returns a constant reference to the array of instance_physics_model elements. + */ + const domInstance_physics_model_Array &getInstance_physics_model_array() const { return elemInstance_physics_model_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; } +protected: + /** + * Constructor + */ + domPhysics_model() : attrId(), attrName(), elemAsset(), elemRigid_body_array(), elemRigid_constraint_array(), elemInstance_physics_model_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domPhysics_model() {} + /** + * Copy Constructor + */ + domPhysics_model( const domPhysics_model &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPhysics_model &operator=( const domPhysics_model &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_scene.h b/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_scene.h new file mode 100644 index 000000000..102b52a64 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_scene.h @@ -0,0 +1,257 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domPhysics_scene_h__ +#define __domPhysics_scene_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +class domPhysics_scene : public daeElement +{ +public: + class domTechnique_common; + + typedef daeSmartRef domTechnique_commonRef; + typedef daeTArray domTechnique_common_Array; + +/** + * The technique_common element specifies the physics_scene information for + * the common profile which all COLLADA implementations need to support. + */ + class domTechnique_common : public daeElement + { + + protected: // Elements +/** + * The gravity vector to use for the physics_scene. @see domGravity + */ + domTargetableFloat3Ref elemGravity; +/** + * The time_step for the physics_scene. @see domTime_step + */ + domTargetableFloatRef elemTime_step; + + public: //Accessors and Mutators + /** + * Gets the gravity element. + * @return a daeSmartRef to the gravity element. + */ + const domTargetableFloat3Ref getGravity() const { return elemGravity; } + /** + * Gets the time_step element. + * @return a daeSmartRef to the time_step element. + */ + const domTargetableFloatRef getTime_step() const { return elemTime_step; } + protected: + /** + * Constructor + */ + domTechnique_common() : elemGravity(), elemTime_step() {} + /** + * Destructor + */ + virtual ~domTechnique_common() {} + /** + * Copy Constructor + */ + domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_common &operator=( const domTechnique_common &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 +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The physics_scene element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * There may be any number of instance_force_field elements. @see domInstance_force_field + */ + domInstance_force_field_Array elemInstance_force_field_array; +/** + * There may be any number of instance_physics_model elements. @see domInstance_physics_model + */ + domInstance_physics_model_Array elemInstance_physics_model_array; +/** + * The technique_common element specifies the physics_scene information for + * the common profile which all COLLADA implementations need to support. + * @see domTechnique_common + */ + domTechnique_commonRef elemTechnique_common; +/** + * This element may contain any number of non-common profile techniques. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the instance_force_field element array. + * @return Returns a reference to the array of instance_force_field elements. + */ + domInstance_force_field_Array &getInstance_force_field_array() { return elemInstance_force_field_array; } + /** + * Gets the instance_force_field element array. + * @return Returns a constant reference to the array of instance_force_field elements. + */ + const domInstance_force_field_Array &getInstance_force_field_array() const { return elemInstance_force_field_array; } + /** + * Gets the instance_physics_model element array. + * @return Returns a reference to the array of instance_physics_model elements. + */ + domInstance_physics_model_Array &getInstance_physics_model_array() { return elemInstance_physics_model_array; } + /** + * Gets the instance_physics_model element array. + * @return Returns a constant reference to the array of instance_physics_model elements. + */ + const domInstance_physics_model_Array &getInstance_physics_model_array() const { return elemInstance_physics_model_array; } + /** + * Gets the technique_common element. + * @return a daeSmartRef to the technique_common element. + */ + const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @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; } +protected: + /** + * Constructor + */ + domPhysics_scene() : attrId(), attrName(), elemAsset(), elemInstance_force_field_array(), elemInstance_physics_model_array(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domPhysics_scene() {} + /** + * Copy Constructor + */ + domPhysics_scene( const domPhysics_scene &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPhysics_scene &operator=( const domPhysics_scene &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPlane.h b/Extras/COLLADA_DOM/include/1.4/dom/domPlane.h new file mode 100644 index 000000000..05b6c5829 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domPlane.h @@ -0,0 +1,170 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domPlane_h__ +#define __domPlane_h__ + +#include +#include + +#include + +/** + * An infinite plane primitive. + */ +class domPlane : public daeElement +{ +public: + class domEquation; + + typedef daeSmartRef domEquationRef; + typedef daeTArray domEquation_Array; + +/** + * 4 float values that represent the coefficients for the plane’s equation: + * Ax + By + Cz + D = 0 + */ + class domEquation : public daeElement + { + + protected: // Value + /** + * The domFloat4 value of the text data of this element. + */ + domFloat4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat4 reference of the _value array. + */ + domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat4 reference of the _value array. + */ + const domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domEquation() : _value() {} + /** + * Destructor + */ + virtual ~domEquation() {} + /** + * Copy Constructor + */ + domEquation( const domEquation &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domEquation &operator=( const domEquation &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: // Elements +/** + * 4 float values that represent the coefficients for the plane’s equation: + * Ax + By + Cz + D = 0 @see domEquation + */ + domEquationRef elemEquation; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the equation element. + * @return a daeSmartRef to the equation element. + */ + const domEquationRef getEquation() const { return elemEquation; } + /** + * 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; } +protected: + /** + * Constructor + */ + domPlane() : elemEquation(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domPlane() {} + /** + * Copy Constructor + */ + domPlane( const domPlane &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPlane &operator=( const domPlane &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPolygons.h b/Extras/COLLADA_DOM/include/1.4/dom/domPolygons.h new file mode 100644 index 000000000..5e934f05d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domPolygons.h @@ -0,0 +1,353 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domPolygons_h__ +#define __domPolygons_h__ + +#include +#include + +#include +#include +#include + +/** + * The polygons element provides the information needed to bind vertex attributes + * together and then organize those vertices into individual polygons. The + * polygons described can contain arbitrary numbers of vertices. These polygons + * may be self intersecting and may also contain holes. + */ +class domPolygons : public daeElement +{ +public: + class domPh; + + typedef daeSmartRef domPhRef; + typedef daeTArray domPh_Array; + +/** + * The ph element descripes a polygon with holes. + */ + class domPh : public daeElement + { + public: + class domH; + + typedef daeSmartRef domHRef; + typedef daeTArray domH_Array; + +/** + * The h element represents a hole in the polygon specified. There must be + * at least one h element. + */ + class domH : public daeElement + { + + protected: // Value + /** + * The domListOfUInts value of the text data of this element. + */ + domListOfUInts _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domListOfUInts reference of the _value array. + */ + domListOfUInts &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfUInts reference of the _value array. + */ + const domListOfUInts &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfUInts &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domH() : _value() {} + /** + * Destructor + */ + virtual ~domH() {} + /** + * Copy Constructor + */ + domH( const domH &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domH &operator=( const domH &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: // Elements +/** + * Theere may only be one p element. @see domP + */ + domPRef elemP; +/** + * The h element represents a hole in the polygon specified. There must be + * at least one h element. @see domH + */ + domH_Array elemH_array; + + public: //Accessors and Mutators + /** + * Gets the p element. + * @return a daeSmartRef to the p element. + */ + const domPRef getP() const { return elemP; } + /** + * Gets the h element array. + * @return Returns a reference to the array of h elements. + */ + domH_Array &getH_array() { return elemH_array; } + /** + * Gets the h element array. + * @return Returns a constant reference to the array of h elements. + */ + const domH_Array &getH_array() const { return elemH_array; } + protected: + /** + * Constructor + */ + domPh() : elemP(), elemH_array() {} + /** + * Destructor + */ + virtual ~domPh() {} + /** + * Copy Constructor + */ + domPh( const domPh &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPh &operator=( const domPh &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 +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of polygon primitives. Required + * attribute. + */ + domUint attrCount; +/** + * The material attribute declares a symbol for a material. This symbol is + * bound to a material at the time of instantiation. If the material attribute + * is not specified then the lighting and shading results are application + * defined. Optional attribute. + */ + xsNCName attrMaterial; + +protected: // Elements +/** + * The input element may occur any number of times. This input is a local + * input with the offset and set attributes. @see domInput + */ + domInputLocalOffset_Array elemInput_array; +/** + * The p element may occur any number of times. @see domP + */ + domP_Array elemP_array; +/** + * The ph element descripes a polygon with holes. @see domPh + */ + domPh_Array elemPh_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the material attribute. + * @return Returns a xsNCName of the material attribute. + */ + xsNCName getMaterial() const { return attrMaterial; } + /** + * Sets the material attribute. + * @param atMaterial The new value for the material attribute. + */ + void setMaterial( xsNCName atMaterial ) { attrMaterial = atMaterial; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocalOffset_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } + /** + * Gets the p element array. + * @return Returns a reference to the array of p elements. + */ + domP_Array &getP_array() { return elemP_array; } + /** + * Gets the p element array. + * @return Returns a constant reference to the array of p elements. + */ + const domP_Array &getP_array() const { return elemP_array; } + /** + * Gets the ph element array. + * @return Returns a reference to the array of ph elements. + */ + domPh_Array &getPh_array() { return elemPh_array; } + /** + * Gets the ph element array. + * @return Returns a constant reference to the array of ph elements. + */ + const domPh_Array &getPh_array() const { return elemPh_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. + */ + 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 + */ + domPolygons() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP_array(), elemPh_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domPolygons() {} + /** + * Copy Constructor + */ + domPolygons( const domPolygons &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolygons &operator=( const domPolygons &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPolylist.h b/Extras/COLLADA_DOM/include/1.4/dom/domPolylist.h new file mode 100644 index 000000000..9e060dd3c --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domPolylist.h @@ -0,0 +1,252 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domPolylist_h__ +#define __domPolylist_h__ + +#include +#include + +#include +#include +#include + +/** + * The polylist element provides the information needed to bind vertex attributes + * together and then organize those vertices into individual polygons. The + * polygons described in polylist can contain arbitrary numbers of vertices. + * Unlike the polygons element, the polylist element cannot contain polygons + * with holes. + */ +class domPolylist : public daeElement +{ +public: + class domVcount; + + typedef daeSmartRef domVcountRef; + typedef daeTArray domVcount_Array; + +/** + * The vcount element contains a list of integers describing the number of + * sides for each polygon described by the polylist element. The vcount element + * may occur once. + */ + class domVcount : public daeElement + { + + protected: // Value + /** + * The domListOfUInts value of the text data of this element. + */ + domListOfUInts _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domListOfUInts reference of the _value array. + */ + domListOfUInts &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfUInts reference of the _value array. + */ + const domListOfUInts &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfUInts &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domVcount() : _value() {} + /** + * Destructor + */ + virtual ~domVcount() {} + /** + * Copy Constructor + */ + domVcount( const domVcount &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domVcount &operator=( const domVcount &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 +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of polygon primitives. Required + * attribute. + */ + domUint attrCount; +/** + * The material attribute declares a symbol for a material. This symbol is + * bound to a material at the time of instantiation. If the material attribute + * is not specified then the lighting and shading results are application + * defined. Optional attribute. + */ + xsNCName attrMaterial; + +protected: // Elements +/** + * The input element may occur any number of times. This input is a local + * input with the offset and set attributes. @see domInput + */ + domInputLocalOffset_Array elemInput_array; +/** + * The vcount element contains a list of integers describing the number of + * sides for each polygon described by the polylist element. The vcount element + * may occur once. @see domVcount + */ + domVcountRef elemVcount; +/** + * The p element may occur once. @see domP + */ + domPRef elemP; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the material attribute. + * @return Returns a xsNCName of the material attribute. + */ + xsNCName getMaterial() const { return attrMaterial; } + /** + * Sets the material attribute. + * @param atMaterial The new value for the material attribute. + */ + void setMaterial( xsNCName atMaterial ) { attrMaterial = atMaterial; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocalOffset_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } + /** + * Gets the vcount element. + * @return a daeSmartRef to the vcount element. + */ + const domVcountRef getVcount() const { return elemVcount; } + /** + * Gets the p element. + * @return a daeSmartRef to the p element. + */ + const domPRef getP() const { return elemP; } + /** + * 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; } +protected: + /** + * Constructor + */ + domPolylist() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemVcount(), elemP(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domPolylist() {} + /** + * Copy Constructor + */ + domPolylist( const domPolylist &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPolylist &operator=( const domPolylist &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_CG.h b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_CG.h new file mode 100644 index 000000000..5c652ccae --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_CG.h @@ -0,0 +1,1146 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domProfile_CG_h__ +#define __domProfile_CG_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * Opens a block of CG platform-specific data types and technique declarations. + */ +class domProfile_CG : public domFx_profile_abstract +{ +public: + class domTechnique; + + typedef daeSmartRef domTechniqueRef; + typedef daeTArray domTechnique_Array; + +/** + * Holds a description of the textures, samplers, shaders, parameters, and + * passes necessary for rendering this effect using one method. + */ + class domTechnique : public daeElement + { + public: + class domPass; + + typedef daeSmartRef domPassRef; + typedef daeTArray domPass_Array; + +/** + * A static declaration of all the render states, shaders, and settings for + * one rendering pipeline. + */ + class domPass : public daeElement + { + public: + class domDraw; + + typedef daeSmartRef domDrawRef; + typedef daeTArray domDraw_Array; + + class domDraw : public daeElement + { + + protected: // Value + /** + * The domFx_draw_common value of the text data of this element. + */ + domFx_draw_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_draw_common of the value. + */ + domFx_draw_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_draw_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domDraw() : _value() {} + /** + * Destructor + */ + virtual ~domDraw() {} + /** + * Copy Constructor + */ + domDraw( const domDraw &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDraw &operator=( const domDraw &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; + }; + + class domShader; + + typedef daeSmartRef domShaderRef; + typedef daeTArray domShader_Array; + +/** + * Declare and prepare a shader for execution in the rendering pipeline of + * a pass. + */ + class domShader : public daeElement + { + public: + class domCompiler_target; + + typedef daeSmartRef domCompiler_targetRef; + typedef daeTArray domCompiler_target_Array; + + class domCompiler_target : public daeElement + { + + protected: // Value + /** + * The xsNMTOKEN value of the text data of this element. + */ + xsNMTOKEN _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domCompiler_target() : _value() {} + /** + * Destructor + */ + virtual ~domCompiler_target() {} + /** + * Copy Constructor + */ + domCompiler_target( const domCompiler_target &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCompiler_target &operator=( const domCompiler_target &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; + }; + + class domCompiler_options; + + typedef daeSmartRef domCompiler_optionsRef; + typedef daeTArray domCompiler_options_Array; + +/** + * A string containing command-line operations for the shader compiler. + */ + class domCompiler_options : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domCompiler_options() : _value() {} + /** + * Destructor + */ + virtual ~domCompiler_options() {} + /** + * Copy Constructor + */ + domCompiler_options( const domCompiler_options &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCompiler_options &operator=( const domCompiler_options &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; + }; + + class domName; + + typedef daeSmartRef domNameRef; + typedef daeTArray domName_Array; + +/** + * The entry symbol for the shader function. + */ + class domName : public daeElement + { + protected: // Attribute + xsNCName attrSource; + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the source attribute. + * @return Returns a xsNCName of the source attribute. + */ + xsNCName getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( xsNCName atSource ) { attrSource = atSource; } + + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domName() : attrSource(), _value() {} + /** + * Destructor + */ + virtual ~domName() {} + /** + * Copy Constructor + */ + domName( const domName &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domName &operator=( const domName &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; + }; + + class domBind; + + typedef daeSmartRef domBindRef; + typedef daeTArray domBind_Array; + +/** + * Binds values to uniform inputs of a shader. + */ + class domBind : public daeElement + { + public: + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + +/** + * References a predefined parameter in shader binding declarations. + */ + class domParam : public daeElement + { + protected: // Attribute + xsNCName attrRef; + + + public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a xsNCName of the ref attribute. + */ + xsNCName getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( xsNCName atRef ) { attrRef = atRef; } + + protected: + /** + * Constructor + */ + domParam() : attrRef() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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: // Attribute +/** + * The identifier for a uniform input parameter to the shader (a formal function + * parameter or in-scope global) that will be bound to an external resource. + */ + xsNCName attrSymbol; + + protected: // Elements + domCg_param_typeRef elemCg_param_type; +/** + * References a predefined parameter in shader binding declarations. @see + * domParam + */ + domParamRef elemParam; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the symbol attribute. + * @return Returns a xsNCName of the symbol attribute. + */ + xsNCName getSymbol() const { return attrSymbol; } + /** + * Sets the symbol attribute. + * @param atSymbol The new value for the symbol attribute. + */ + void setSymbol( xsNCName atSymbol ) { attrSymbol = atSymbol; } + + /** + * Gets the cg_param_type element. + * @return a daeSmartRef to the cg_param_type element. + */ + const domCg_param_typeRef getCg_param_type() const { return elemCg_param_type; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * 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 + */ + domBind() : attrSymbol(), elemCg_param_type(), elemParam() {} + /** + * Destructor + */ + virtual ~domBind() {} + /** + * Copy Constructor + */ + domBind( const domBind &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBind &operator=( const domBind &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: // Attribute +/** + * In which pipeline stage this programmable shader is designed to execute, + * for example, VERTEX, FRAGMENT, etc. + */ + domCg_pipeline_stage attrStage; + + protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domCompiler_targetRef elemCompiler_target; +/** + * A string containing command-line operations for the shader compiler. @see + * domCompiler_options + */ + domCompiler_optionsRef elemCompiler_options; +/** + * The entry symbol for the shader function. @see domName + */ + domNameRef elemName; +/** + * Binds values to uniform inputs of a shader. @see domBind + */ + domBind_Array elemBind_array; + + public: //Accessors and Mutators + /** + * Gets the stage attribute. + * @return Returns a domCg_pipeline_stage of the stage attribute. + */ + domCg_pipeline_stage getStage() const { return attrStage; } + /** + * Sets the stage attribute. + * @param atStage The new value for the stage attribute. + */ + void setStage( domCg_pipeline_stage atStage ) { attrStage = atStage; } + + /** + * 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 compiler_target element. + * @return a daeSmartRef to the compiler_target element. + */ + const domCompiler_targetRef getCompiler_target() const { return elemCompiler_target; } + /** + * Gets the compiler_options element. + * @return a daeSmartRef to the compiler_options element. + */ + const domCompiler_optionsRef getCompiler_options() const { return elemCompiler_options; } + /** + * Gets the name element. + * @return a daeSmartRef to the name element. + */ + const domNameRef getName() const { return elemName; } + /** + * Gets the bind element array. + * @return Returns a reference to the array of bind elements. + */ + domBind_Array &getBind_array() { return elemBind_array; } + /** + * Gets the bind element array. + * @return Returns a constant reference to the array of bind elements. + */ + const domBind_Array &getBind_array() const { return elemBind_array; } + protected: + /** + * Constructor + */ + domShader() : attrStage(), elemAnnotate_array(), elemCompiler_target(), elemCompiler_options(), elemName(), elemBind_array() {} + /** + * Destructor + */ + virtual ~domShader() {} + /** + * Copy Constructor + */ + domShader( const domShader &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domShader &operator=( const domShader &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: // Attribute +/** + * 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; + + protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domFx_colortarget_common_Array elemColor_target_array; + domFx_depthtarget_common_Array elemDepth_target_array; + domFx_stenciltarget_common_Array elemStencil_target_array; + domFx_clearcolor_common_Array elemColor_clear_array; + domFx_cleardepth_common_Array elemDepth_clear_array; + domFx_clearstencil_common_Array elemStencil_clear_array; + domDrawRef elemDraw; + domGl_pipeline_settings_Array elemGl_pipeline_settings_array; +/** + * Declare and prepare a shader for execution in the rendering pipeline of + * a pass. @see domShader + */ + domShader_Array elemShader_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * 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 color_target element array. + * @return Returns a reference to the array of color_target elements. + */ + domFx_colortarget_common_Array &getColor_target_array() { return elemColor_target_array; } + /** + * Gets the color_target element array. + * @return Returns a constant reference to the array of color_target elements. + */ + const domFx_colortarget_common_Array &getColor_target_array() const { return elemColor_target_array; } + /** + * Gets the depth_target element array. + * @return Returns a reference to the array of depth_target elements. + */ + domFx_depthtarget_common_Array &getDepth_target_array() { return elemDepth_target_array; } + /** + * Gets the depth_target element array. + * @return Returns a constant reference to the array of depth_target elements. + */ + const domFx_depthtarget_common_Array &getDepth_target_array() const { return elemDepth_target_array; } + /** + * Gets the stencil_target element array. + * @return Returns a reference to the array of stencil_target elements. + */ + domFx_stenciltarget_common_Array &getStencil_target_array() { return elemStencil_target_array; } + /** + * Gets the stencil_target element array. + * @return Returns a constant reference to the array of stencil_target elements. + */ + const domFx_stenciltarget_common_Array &getStencil_target_array() const { return elemStencil_target_array; } + /** + * Gets the color_clear element array. + * @return Returns a reference to the array of color_clear elements. + */ + domFx_clearcolor_common_Array &getColor_clear_array() { return elemColor_clear_array; } + /** + * Gets the color_clear element array. + * @return Returns a constant reference to the array of color_clear elements. + */ + const domFx_clearcolor_common_Array &getColor_clear_array() const { return elemColor_clear_array; } + /** + * Gets the depth_clear element array. + * @return Returns a reference to the array of depth_clear elements. + */ + domFx_cleardepth_common_Array &getDepth_clear_array() { return elemDepth_clear_array; } + /** + * Gets the depth_clear element array. + * @return Returns a constant reference to the array of depth_clear elements. + */ + const domFx_cleardepth_common_Array &getDepth_clear_array() const { return elemDepth_clear_array; } + /** + * Gets the stencil_clear element array. + * @return Returns a reference to the array of stencil_clear elements. + */ + domFx_clearstencil_common_Array &getStencil_clear_array() { return elemStencil_clear_array; } + /** + * Gets the stencil_clear element array. + * @return Returns a constant reference to the array of stencil_clear elements. + */ + const domFx_clearstencil_common_Array &getStencil_clear_array() const { return elemStencil_clear_array; } + /** + * Gets the draw element. + * @return a daeSmartRef to the draw element. + */ + const domDrawRef getDraw() const { return elemDraw; } + /** + * Gets the gl_pipeline_settings element array. + * @return Returns a reference to the array of gl_pipeline_settings elements. + */ + domGl_pipeline_settings_Array &getGl_pipeline_settings_array() { return elemGl_pipeline_settings_array; } + /** + * Gets the gl_pipeline_settings element array. + * @return Returns a constant reference to the array of gl_pipeline_settings elements. + */ + const domGl_pipeline_settings_Array &getGl_pipeline_settings_array() const { return elemGl_pipeline_settings_array; } + /** + * Gets the shader element array. + * @return Returns a reference to the array of shader elements. + */ + domShader_Array &getShader_array() { return elemShader_array; } + /** + * Gets the shader element array. + * @return Returns a constant reference to the array of shader elements. + */ + const domShader_Array &getShader_array() const { return elemShader_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 + */ + 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() {} + /** + * Destructor + */ + virtual ~domPass() {} + /** + * Copy Constructor + */ + domPass( const domPass &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPass &operator=( const domPass &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 +/** + * 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; +/** + * 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; + + protected: // Elements +/** + * The technique element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; + domFx_annotate_common_Array elemAnnotate_array; + domFx_code_profile_Array elemCode_array; + domFx_include_common_Array elemInclude_array; + domImage_Array elemImage_array; + domCg_newparam_Array elemNewparam_array; + domCg_setparam_Array elemSetparam_array; +/** + * A static declaration of all the render states, shaders, and settings for + * one rendering pipeline. @see domPass + */ + domPass_Array elemPass_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + 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 ) { attrId = atId; } + + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * 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. + */ + domFx_code_profile_Array &getCode_array() { return elemCode_array; } + /** + * Gets the code element array. + * @return Returns a constant reference to the array of code elements. + */ + const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } + /** + * Gets the include element array. + * @return Returns a reference to the array of include elements. + */ + domFx_include_common_Array &getInclude_array() { return elemInclude_array; } + /** + * Gets the include element array. + * @return Returns a constant reference to the array of include elements. + */ + const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } + /** + * Gets the image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_array; } + /** + * Gets the newparam element array. + * @return Returns a reference to the array of newparam elements. + */ + domCg_newparam_Array &getNewparam_array() { return elemNewparam_array; } + /** + * Gets the newparam element array. + * @return Returns a constant reference to the array of newparam elements. + */ + const domCg_newparam_Array &getNewparam_array() const { return elemNewparam_array; } + /** + * Gets the setparam element array. + * @return Returns a reference to the array of setparam elements. + */ + domCg_setparam_Array &getSetparam_array() { return elemSetparam_array; } + /** + * Gets the setparam element array. + * @return Returns a constant reference to the array of setparam elements. + */ + const domCg_setparam_Array &getSetparam_array() const { return elemSetparam_array; } + /** + * Gets the pass element array. + * @return Returns a reference to the array of pass elements. + */ + domPass_Array &getPass_array() { return elemPass_array; } + /** + * Gets the pass element array. + * @return Returns a constant reference to the array of pass elements. + */ + const domPass_Array &getPass_array() const { return elemPass_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 + */ + domTechnique() : attrId(), attrSid(), elemAsset(), elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemSetparam_array(), elemPass_array() {} + /** + * Destructor + */ + virtual ~domTechnique() {} + /** + * Copy Constructor + */ + domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique &operator=( const domTechnique &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: // Attribute +/** + * The type of platform. This is a vendor-defined character string that indicates + * the platform or capability target for the technique. Optional + */ + xsNCName attrPlatform; + +protected: // Elements + domFx_code_profile_Array elemCode_array; + domFx_include_common_Array elemInclude_array; + domImage_Array elemImage_array; + domCg_newparam_Array elemNewparam_array; +/** + * Holds a description of the textures, samplers, shaders, parameters, and + * passes necessary for rendering this effect using one method. @see domTechnique + */ + domTechnique_Array elemTechnique_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the platform attribute. + * @return Returns a xsNCName of the platform attribute. + */ + xsNCName getPlatform() const { return attrPlatform; } + /** + * Sets the platform attribute. + * @param atPlatform The new value for the platform attribute. + */ + void setPlatform( xsNCName atPlatform ) { attrPlatform = atPlatform; } + + /** + * Gets the code element array. + * @return Returns a reference to the array of code elements. + */ + domFx_code_profile_Array &getCode_array() { return elemCode_array; } + /** + * Gets the code element array. + * @return Returns a constant reference to the array of code elements. + */ + const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } + /** + * Gets the include element array. + * @return Returns a reference to the array of include elements. + */ + domFx_include_common_Array &getInclude_array() { return elemInclude_array; } + /** + * Gets the include element array. + * @return Returns a constant reference to the array of include elements. + */ + const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } + /** + * Gets the image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_array; } + /** + * Gets the newparam element array. + * @return Returns a reference to the array of newparam elements. + */ + domCg_newparam_Array &getNewparam_array() { return elemNewparam_array; } + /** + * Gets the newparam element array. + * @return Returns a constant reference to the array of newparam elements. + */ + const domCg_newparam_Array &getNewparam_array() const { return elemNewparam_array; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @return Returns a constant reference to the array of technique elements. + */ + const domTechnique_Array &getTechnique_array() const { return elemTechnique_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 + */ + domProfile_CG() : attrPlatform(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemTechnique_array() {} + /** + * Destructor + */ + virtual ~domProfile_CG() {} + /** + * Copy Constructor + */ + domProfile_CG( const domProfile_CG &cpy ) : domFx_profile_abstract() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domProfile_CG &operator=( const domProfile_CG &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_COMMON.h b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_COMMON.h new file mode 100644 index 000000000..9b5194cf2 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_COMMON.h @@ -0,0 +1,720 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domProfile_COMMON_h__ +#define __domProfile_COMMON_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +/** + * Opens a block of COMMON platform-specific data types and technique declarations. + */ +class domProfile_COMMON : public domFx_profile_abstract +{ +public: + class domTechnique; + + typedef daeSmartRef domTechniqueRef; + typedef daeTArray domTechnique_Array; + +/** + * Holds a description of the textures, samplers, shaders, parameters, and + * passes necessary for rendering this effect using one method. + */ + class domTechnique : public daeElement + { + public: + class domConstant; + + typedef daeSmartRef domConstantRef; + typedef daeTArray domConstant_Array; + + class domConstant : public daeElement + { + + protected: // Elements + domCommon_color_or_texture_typeRef elemEmission; + domCommon_color_or_texture_typeRef elemReflective; + domCommon_float_or_param_typeRef elemReflectivity; + domCommon_color_or_texture_typeRef elemTransparent; + domCommon_float_or_param_typeRef elemTransparency; + domCommon_float_or_param_typeRef elemIndex_of_refraction; + + public: //Accessors and Mutators + /** + * Gets the emission element. + * @return a daeSmartRef to the emission element. + */ + const domCommon_color_or_texture_typeRef getEmission() const { return elemEmission; } + /** + * Gets the reflective element. + * @return a daeSmartRef to the reflective element. + */ + const domCommon_color_or_texture_typeRef getReflective() const { return elemReflective; } + /** + * Gets the reflectivity element. + * @return a daeSmartRef to the reflectivity element. + */ + const domCommon_float_or_param_typeRef getReflectivity() const { return elemReflectivity; } + /** + * Gets the transparent element. + * @return a daeSmartRef to the transparent element. + */ + const domCommon_color_or_texture_typeRef getTransparent() const { return elemTransparent; } + /** + * Gets the transparency element. + * @return a daeSmartRef to the transparency element. + */ + const domCommon_float_or_param_typeRef getTransparency() const { return elemTransparency; } + /** + * Gets the index_of_refraction element. + * @return a daeSmartRef to the index_of_refraction element. + */ + const domCommon_float_or_param_typeRef getIndex_of_refraction() const { return elemIndex_of_refraction; } + protected: + /** + * Constructor + */ + domConstant() : elemEmission(), elemReflective(), elemReflectivity(), elemTransparent(), elemTransparency(), elemIndex_of_refraction() {} + /** + * Destructor + */ + virtual ~domConstant() {} + /** + * Copy Constructor + */ + domConstant( const domConstant &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domConstant &operator=( const domConstant &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; + }; + + class domLambert; + + typedef daeSmartRef domLambertRef; + typedef daeTArray domLambert_Array; + + class domLambert : public daeElement + { + + protected: // Elements + domCommon_color_or_texture_typeRef elemEmission; + domCommon_color_or_texture_typeRef elemAmbient; + domCommon_color_or_texture_typeRef elemDiffuse; + domCommon_color_or_texture_typeRef elemReflective; + domCommon_float_or_param_typeRef elemReflectivity; + domCommon_color_or_texture_typeRef elemTransparent; + domCommon_float_or_param_typeRef elemTransparency; + domCommon_float_or_param_typeRef elemIndex_of_refraction; + + public: //Accessors and Mutators + /** + * Gets the emission element. + * @return a daeSmartRef to the emission element. + */ + const domCommon_color_or_texture_typeRef getEmission() const { return elemEmission; } + /** + * Gets the ambient element. + * @return a daeSmartRef to the ambient element. + */ + const domCommon_color_or_texture_typeRef getAmbient() const { return elemAmbient; } + /** + * Gets the diffuse element. + * @return a daeSmartRef to the diffuse element. + */ + const domCommon_color_or_texture_typeRef getDiffuse() const { return elemDiffuse; } + /** + * Gets the reflective element. + * @return a daeSmartRef to the reflective element. + */ + const domCommon_color_or_texture_typeRef getReflective() const { return elemReflective; } + /** + * Gets the reflectivity element. + * @return a daeSmartRef to the reflectivity element. + */ + const domCommon_float_or_param_typeRef getReflectivity() const { return elemReflectivity; } + /** + * Gets the transparent element. + * @return a daeSmartRef to the transparent element. + */ + const domCommon_color_or_texture_typeRef getTransparent() const { return elemTransparent; } + /** + * Gets the transparency element. + * @return a daeSmartRef to the transparency element. + */ + const domCommon_float_or_param_typeRef getTransparency() const { return elemTransparency; } + /** + * Gets the index_of_refraction element. + * @return a daeSmartRef to the index_of_refraction element. + */ + const domCommon_float_or_param_typeRef getIndex_of_refraction() const { return elemIndex_of_refraction; } + protected: + /** + * Constructor + */ + domLambert() : elemEmission(), elemAmbient(), elemDiffuse(), elemReflective(), elemReflectivity(), elemTransparent(), elemTransparency(), elemIndex_of_refraction() {} + /** + * Destructor + */ + virtual ~domLambert() {} + /** + * Copy Constructor + */ + domLambert( const domLambert &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLambert &operator=( const domLambert &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; + }; + + class domPhong; + + typedef daeSmartRef domPhongRef; + typedef daeTArray domPhong_Array; + + class domPhong : public daeElement + { + + protected: // Elements + domCommon_color_or_texture_typeRef elemEmission; + domCommon_color_or_texture_typeRef elemAmbient; + domCommon_color_or_texture_typeRef elemDiffuse; + domCommon_color_or_texture_typeRef elemSpecular; + domCommon_float_or_param_typeRef elemShininess; + domCommon_color_or_texture_typeRef elemReflective; + domCommon_float_or_param_typeRef elemReflectivity; + domCommon_color_or_texture_typeRef elemTransparent; + domCommon_float_or_param_typeRef elemTransparency; + domCommon_float_or_param_typeRef elemIndex_of_refraction; + + public: //Accessors and Mutators + /** + * Gets the emission element. + * @return a daeSmartRef to the emission element. + */ + const domCommon_color_or_texture_typeRef getEmission() const { return elemEmission; } + /** + * Gets the ambient element. + * @return a daeSmartRef to the ambient element. + */ + const domCommon_color_or_texture_typeRef getAmbient() const { return elemAmbient; } + /** + * Gets the diffuse element. + * @return a daeSmartRef to the diffuse element. + */ + const domCommon_color_or_texture_typeRef getDiffuse() const { return elemDiffuse; } + /** + * Gets the specular element. + * @return a daeSmartRef to the specular element. + */ + const domCommon_color_or_texture_typeRef getSpecular() const { return elemSpecular; } + /** + * Gets the shininess element. + * @return a daeSmartRef to the shininess element. + */ + const domCommon_float_or_param_typeRef getShininess() const { return elemShininess; } + /** + * Gets the reflective element. + * @return a daeSmartRef to the reflective element. + */ + const domCommon_color_or_texture_typeRef getReflective() const { return elemReflective; } + /** + * Gets the reflectivity element. + * @return a daeSmartRef to the reflectivity element. + */ + const domCommon_float_or_param_typeRef getReflectivity() const { return elemReflectivity; } + /** + * Gets the transparent element. + * @return a daeSmartRef to the transparent element. + */ + const domCommon_color_or_texture_typeRef getTransparent() const { return elemTransparent; } + /** + * Gets the transparency element. + * @return a daeSmartRef to the transparency element. + */ + const domCommon_float_or_param_typeRef getTransparency() const { return elemTransparency; } + /** + * Gets the index_of_refraction element. + * @return a daeSmartRef to the index_of_refraction element. + */ + const domCommon_float_or_param_typeRef getIndex_of_refraction() const { return elemIndex_of_refraction; } + protected: + /** + * Constructor + */ + domPhong() : elemEmission(), elemAmbient(), elemDiffuse(), elemSpecular(), elemShininess(), elemReflective(), elemReflectivity(), elemTransparent(), elemTransparency(), elemIndex_of_refraction() {} + /** + * Destructor + */ + virtual ~domPhong() {} + /** + * Copy Constructor + */ + domPhong( const domPhong &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPhong &operator=( const domPhong &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; + }; + + class domBlinn; + + typedef daeSmartRef domBlinnRef; + typedef daeTArray domBlinn_Array; + + class domBlinn : public daeElement + { + + protected: // Elements + domCommon_color_or_texture_typeRef elemEmission; + domCommon_color_or_texture_typeRef elemAmbient; + domCommon_color_or_texture_typeRef elemDiffuse; + domCommon_color_or_texture_typeRef elemSpecular; + domCommon_float_or_param_typeRef elemShininess; + domCommon_color_or_texture_typeRef elemReflective; + domCommon_float_or_param_typeRef elemReflectivity; + domCommon_color_or_texture_typeRef elemTransparent; + domCommon_float_or_param_typeRef elemTransparency; + domCommon_float_or_param_typeRef elemIndex_of_refraction; + + public: //Accessors and Mutators + /** + * Gets the emission element. + * @return a daeSmartRef to the emission element. + */ + const domCommon_color_or_texture_typeRef getEmission() const { return elemEmission; } + /** + * Gets the ambient element. + * @return a daeSmartRef to the ambient element. + */ + const domCommon_color_or_texture_typeRef getAmbient() const { return elemAmbient; } + /** + * Gets the diffuse element. + * @return a daeSmartRef to the diffuse element. + */ + const domCommon_color_or_texture_typeRef getDiffuse() const { return elemDiffuse; } + /** + * Gets the specular element. + * @return a daeSmartRef to the specular element. + */ + const domCommon_color_or_texture_typeRef getSpecular() const { return elemSpecular; } + /** + * Gets the shininess element. + * @return a daeSmartRef to the shininess element. + */ + const domCommon_float_or_param_typeRef getShininess() const { return elemShininess; } + /** + * Gets the reflective element. + * @return a daeSmartRef to the reflective element. + */ + const domCommon_color_or_texture_typeRef getReflective() const { return elemReflective; } + /** + * Gets the reflectivity element. + * @return a daeSmartRef to the reflectivity element. + */ + const domCommon_float_or_param_typeRef getReflectivity() const { return elemReflectivity; } + /** + * Gets the transparent element. + * @return a daeSmartRef to the transparent element. + */ + const domCommon_color_or_texture_typeRef getTransparent() const { return elemTransparent; } + /** + * Gets the transparency element. + * @return a daeSmartRef to the transparency element. + */ + const domCommon_float_or_param_typeRef getTransparency() const { return elemTransparency; } + /** + * Gets the index_of_refraction element. + * @return a daeSmartRef to the index_of_refraction element. + */ + const domCommon_float_or_param_typeRef getIndex_of_refraction() const { return elemIndex_of_refraction; } + protected: + /** + * Constructor + */ + domBlinn() : elemEmission(), elemAmbient(), elemDiffuse(), elemSpecular(), elemShininess(), elemReflective(), elemReflectivity(), elemTransparent(), elemTransparency(), elemIndex_of_refraction() {} + /** + * Destructor + */ + virtual ~domBlinn() {} + /** + * Copy Constructor + */ + domBlinn( const domBlinn &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBlinn &operator=( const domBlinn &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 +/** + * 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; +/** + * 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; + + protected: // Elements +/** + * The technique element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; + domImage_Array elemImage_array; + domCommon_newparam_type_Array elemNewparam_array; + domConstantRef elemConstant; + domLambertRef elemLambert; + domPhongRef elemPhong; + domBlinnRef elemBlinn; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + 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 ) { attrId = atId; } + + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_array; } + /** + * Gets the newparam element array. + * @return Returns a reference to the array of newparam elements. + */ + domCommon_newparam_type_Array &getNewparam_array() { return elemNewparam_array; } + /** + * Gets the newparam element array. + * @return Returns a constant reference to the array of newparam elements. + */ + const domCommon_newparam_type_Array &getNewparam_array() const { return elemNewparam_array; } + /** + * Gets the constant element. + * @return a daeSmartRef to the constant element. + */ + const domConstantRef getConstant() const { return elemConstant; } + /** + * Gets the lambert element. + * @return a daeSmartRef to the lambert element. + */ + const domLambertRef getLambert() const { return elemLambert; } + /** + * Gets the phong element. + * @return a daeSmartRef to the phong element. + */ + const domPhongRef getPhong() const { return elemPhong; } + /** + * Gets the blinn element. + * @return a daeSmartRef to the blinn element. + */ + const domBlinnRef getBlinn() const { return elemBlinn; } + /** + * 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. + */ + 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 + */ + domTechnique() : attrId(), attrSid(), elemAsset(), elemImage_array(), elemNewparam_array(), elemConstant(), elemLambert(), elemPhong(), elemBlinn(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domTechnique() {} + /** + * Copy Constructor + */ + domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique &operator=( const domTechnique &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: // Elements + domImage_Array elemImage_array; + domCommon_newparam_type_Array elemNewparam_array; +/** + * Holds a description of the textures, samplers, shaders, parameters, and + * passes necessary for rendering this effect using one method. @see domTechnique + */ + domTechniqueRef elemTechnique; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_array; } + /** + * Gets the newparam element array. + * @return Returns a reference to the array of newparam elements. + */ + domCommon_newparam_type_Array &getNewparam_array() { return elemNewparam_array; } + /** + * Gets the newparam element array. + * @return Returns a constant reference to the array of newparam elements. + */ + const domCommon_newparam_type_Array &getNewparam_array() const { return elemNewparam_array; } + /** + * Gets the technique element. + * @return a daeSmartRef to the technique element. + */ + const domTechniqueRef getTechnique() const { return elemTechnique; } + /** + * 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. + */ + 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 + */ + domProfile_COMMON() : elemImage_array(), elemNewparam_array(), elemTechnique(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domProfile_COMMON() {} + /** + * Copy Constructor + */ + domProfile_COMMON( const domProfile_COMMON &cpy ) : domFx_profile_abstract() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domProfile_COMMON &operator=( const domProfile_COMMON &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLES.h b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLES.h new file mode 100644 index 000000000..018f5437e --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLES.h @@ -0,0 +1,987 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domProfile_GLES_h__ +#define __domProfile_GLES_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +/** + * Opens a block of GLES platform-specific data types and technique declarations. + */ +class domProfile_GLES : public domFx_profile_abstract +{ +public: + class domTechnique; + + typedef daeSmartRef domTechniqueRef; + typedef daeTArray domTechnique_Array; + +/** + * Holds a description of the textures, samplers, shaders, parameters, and + * passes necessary for rendering this effect using one method. + */ + class domTechnique : public daeElement + { + public: + class domSetparam; + + typedef daeSmartRef domSetparamRef; + typedef daeTArray domSetparam_Array; + + class domSetparam : public daeElement + { + protected: // Attribute + xsNCName attrRef; + + protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domGles_basic_type_commonRef elemGles_basic_type_common; + + public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a xsNCName of the ref attribute. + */ + xsNCName getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( xsNCName atRef ) { attrRef = atRef; } + + /** + * 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 gles_basic_type_common element. + * @return a daeSmartRef to the gles_basic_type_common element. + */ + const domGles_basic_type_commonRef getGles_basic_type_common() const { return elemGles_basic_type_common; } + protected: + /** + * Constructor + */ + domSetparam() : attrRef(), elemAnnotate_array(), elemGles_basic_type_common() {} + /** + * Destructor + */ + virtual ~domSetparam() {} + /** + * Copy Constructor + */ + domSetparam( const domSetparam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSetparam &operator=( const domSetparam &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; + }; + + class domPass; + + typedef daeSmartRef domPassRef; + typedef daeTArray domPass_Array; + +/** + * A static declaration of all the render states, shaders, and settings for + * one rendering pipeline. + */ + class domPass : public daeElement + { + public: + class domColor_target; + + typedef daeSmartRef domColor_targetRef; + typedef daeTArray domColor_target_Array; + + class domColor_target : public daeElement + { + + protected: // Value + /** + * The domGles_rendertarget_common value of the text data of this element. + */ + domGles_rendertarget_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGles_rendertarget_common of the value. + */ + domGles_rendertarget_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGles_rendertarget_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domColor_target() : _value() {} + /** + * Destructor + */ + virtual ~domColor_target() {} + /** + * Copy Constructor + */ + domColor_target( const domColor_target &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domColor_target &operator=( const domColor_target &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; + }; + + class domDepth_target; + + typedef daeSmartRef domDepth_targetRef; + typedef daeTArray domDepth_target_Array; + + class domDepth_target : public daeElement + { + + protected: // Value + /** + * The domGles_rendertarget_common value of the text data of this element. + */ + domGles_rendertarget_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGles_rendertarget_common of the value. + */ + domGles_rendertarget_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGles_rendertarget_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domDepth_target() : _value() {} + /** + * Destructor + */ + virtual ~domDepth_target() {} + /** + * Copy Constructor + */ + domDepth_target( const domDepth_target &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_target &operator=( const domDepth_target &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; + }; + + class domStencil_target; + + typedef daeSmartRef domStencil_targetRef; + typedef daeTArray domStencil_target_Array; + + class domStencil_target : public daeElement + { + + protected: // Value + /** + * The domGles_rendertarget_common value of the text data of this element. + */ + domGles_rendertarget_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domGles_rendertarget_common of the value. + */ + domGles_rendertarget_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domGles_rendertarget_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domStencil_target() : _value() {} + /** + * Destructor + */ + virtual ~domStencil_target() {} + /** + * Copy Constructor + */ + domStencil_target( const domStencil_target &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_target &operator=( const domStencil_target &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; + }; + + class domColor_clear; + + typedef daeSmartRef domColor_clearRef; + typedef daeTArray domColor_clear_Array; + + class domColor_clear : public daeElement + { + + protected: // Value + /** + * The domFx_color_common value of the text data of this element. + */ + domFx_color_common _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFx_color_common reference of the _value array. + */ + domFx_color_common &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFx_color_common reference of the _value array. + */ + const domFx_color_common &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFx_color_common &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domColor_clear() : _value() {} + /** + * Destructor + */ + virtual ~domColor_clear() {} + /** + * Copy Constructor + */ + domColor_clear( const domColor_clear &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domColor_clear &operator=( const domColor_clear &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; + }; + + class domDepth_clear; + + typedef daeSmartRef domDepth_clearRef; + typedef daeTArray domDepth_clear_Array; + + class domDepth_clear : public daeElement + { + + protected: // Value + /** + * The domFloat value of the text data of this element. + */ + domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFloat of the value. + */ + domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domDepth_clear() : _value() {} + /** + * Destructor + */ + virtual ~domDepth_clear() {} + /** + * Copy Constructor + */ + domDepth_clear( const domDepth_clear &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDepth_clear &operator=( const domDepth_clear &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; + }; + + class domStencil_clear; + + typedef daeSmartRef domStencil_clearRef; + typedef daeTArray domStencil_clear_Array; + + class domStencil_clear : public daeElement + { + + protected: // Value + /** + * The xsByte value of the text data of this element. + */ + xsByte _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a xsByte of the value. + */ + xsByte getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( xsByte val ) { _value = val; } + + protected: + /** + * Constructor + */ + domStencil_clear() : _value() {} + /** + * Destructor + */ + virtual ~domStencil_clear() {} + /** + * Copy Constructor + */ + domStencil_clear( const domStencil_clear &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domStencil_clear &operator=( const domStencil_clear &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; + }; + + class domDraw; + + typedef daeSmartRef domDrawRef; + typedef daeTArray domDraw_Array; + + class domDraw : public daeElement + { + + protected: // Value + /** + * The domFx_draw_common value of the text data of this element. + */ + domFx_draw_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_draw_common of the value. + */ + domFx_draw_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_draw_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domDraw() : _value() {} + /** + * Destructor + */ + virtual ~domDraw() {} + /** + * Copy Constructor + */ + domDraw( const domDraw &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDraw &operator=( const domDraw &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: // Attribute +/** + * 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; + + protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domColor_targetRef elemColor_target; + domDepth_targetRef elemDepth_target; + domStencil_targetRef elemStencil_target; + domColor_clearRef elemColor_clear; + domDepth_clearRef elemDepth_clear; + domStencil_clearRef elemStencil_clear; + domDrawRef elemDraw; + domGles_pipeline_settings_Array elemGles_pipeline_settings_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * 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 color_target element. + * @return a daeSmartRef to the color_target element. + */ + const domColor_targetRef getColor_target() const { return elemColor_target; } + /** + * Gets the depth_target element. + * @return a daeSmartRef to the depth_target element. + */ + const domDepth_targetRef getDepth_target() const { return elemDepth_target; } + /** + * Gets the stencil_target element. + * @return a daeSmartRef to the stencil_target element. + */ + const domStencil_targetRef getStencil_target() const { return elemStencil_target; } + /** + * Gets the color_clear element. + * @return a daeSmartRef to the color_clear element. + */ + const domColor_clearRef getColor_clear() const { return elemColor_clear; } + /** + * Gets the depth_clear element. + * @return a daeSmartRef to the depth_clear element. + */ + const domDepth_clearRef getDepth_clear() const { return elemDepth_clear; } + /** + * Gets the stencil_clear element. + * @return a daeSmartRef to the stencil_clear element. + */ + const domStencil_clearRef getStencil_clear() const { return elemStencil_clear; } + /** + * Gets the draw element. + * @return a daeSmartRef to the draw element. + */ + const domDrawRef getDraw() const { return elemDraw; } + /** + * Gets the gles_pipeline_settings element array. + * @return Returns a reference to the array of gles_pipeline_settings elements. + */ + domGles_pipeline_settings_Array &getGles_pipeline_settings_array() { return elemGles_pipeline_settings_array; } + /** + * Gets the gles_pipeline_settings element array. + * @return Returns a constant reference to the array of gles_pipeline_settings elements. + */ + const domGles_pipeline_settings_Array &getGles_pipeline_settings_array() const { return elemGles_pipeline_settings_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 + */ + domPass() : attrSid(), elemAnnotate_array(), elemColor_target(), elemDepth_target(), elemStencil_target(), elemColor_clear(), elemDepth_clear(), elemStencil_clear(), elemDraw(), elemGles_pipeline_settings_array() {} + /** + * Destructor + */ + virtual ~domPass() {} + /** + * Copy Constructor + */ + domPass( const domPass &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPass &operator=( const domPass &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 + xsID attrId; +/** + * 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. + */ + xsNCName attrSid; + + protected: // Elements + domAssetRef elemAsset; + domFx_annotate_commonRef elemAnnotate; + domImage_Array elemImage_array; + domGles_newparam_Array elemNewparam_array; + domSetparam_Array elemSetparam_array; +/** + * A static declaration of all the render states, shaders, and settings for + * one rendering pipeline. @see domPass + */ + domPass_Array elemPass_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + 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 ) { attrId = atId; } + + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the annotate element. + * @return a daeSmartRef to the annotate element. + */ + const domFx_annotate_commonRef getAnnotate() const { return elemAnnotate; } + /** + * Gets the image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_array; } + /** + * Gets the newparam element array. + * @return Returns a reference to the array of newparam elements. + */ + domGles_newparam_Array &getNewparam_array() { return elemNewparam_array; } + /** + * Gets the newparam element array. + * @return Returns a constant reference to the array of newparam elements. + */ + const domGles_newparam_Array &getNewparam_array() const { return elemNewparam_array; } + /** + * Gets the setparam element array. + * @return Returns a reference to the array of setparam elements. + */ + domSetparam_Array &getSetparam_array() { return elemSetparam_array; } + /** + * Gets the setparam element array. + * @return Returns a constant reference to the array of setparam elements. + */ + const domSetparam_Array &getSetparam_array() const { return elemSetparam_array; } + /** + * Gets the pass element array. + * @return Returns a reference to the array of pass elements. + */ + domPass_Array &getPass_array() { return elemPass_array; } + /** + * Gets the pass element array. + * @return Returns a constant reference to the array of pass elements. + */ + const domPass_Array &getPass_array() const { return elemPass_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 + */ + domTechnique() : attrId(), attrSid(), elemAsset(), elemAnnotate(), elemImage_array(), elemNewparam_array(), elemSetparam_array(), elemPass_array() {} + /** + * Destructor + */ + virtual ~domTechnique() {} + /** + * Copy Constructor + */ + domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique &operator=( const domTechnique &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: // Elements + domImage_Array elemImage_array; + domGles_newparam_Array elemNewparam_array; +/** + * Holds a description of the textures, samplers, shaders, parameters, and + * passes necessary for rendering this effect using one method. @see domTechnique + */ + domTechnique_Array elemTechnique_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_array; } + /** + * Gets the newparam element array. + * @return Returns a reference to the array of newparam elements. + */ + domGles_newparam_Array &getNewparam_array() { return elemNewparam_array; } + /** + * Gets the newparam element array. + * @return Returns a constant reference to the array of newparam elements. + */ + const domGles_newparam_Array &getNewparam_array() const { return elemNewparam_array; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @return Returns a constant reference to the array of technique elements. + */ + const domTechnique_Array &getTechnique_array() const { return elemTechnique_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 + */ + domProfile_GLES() : elemImage_array(), elemNewparam_array(), elemTechnique_array() {} + /** + * Destructor + */ + virtual ~domProfile_GLES() {} + /** + * Copy Constructor + */ + domProfile_GLES( const domProfile_GLES &cpy ) : domFx_profile_abstract() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domProfile_GLES &operator=( const domProfile_GLES &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLSL.h b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLSL.h new file mode 100644 index 000000000..2ee5d1e4a --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLSL.h @@ -0,0 +1,1109 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domProfile_GLSL_h__ +#define __domProfile_GLSL_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * Opens a block of GLSL platform-specific data types and technique declarations. + */ +class domProfile_GLSL : public domFx_profile_abstract +{ +public: + class domTechnique; + + typedef daeSmartRef domTechniqueRef; + typedef daeTArray domTechnique_Array; + +/** + * Holds a description of the textures, samplers, shaders, parameters, and + * passes necessary for rendering this effect using one method. + */ + class domTechnique : public daeElement + { + public: + class domPass; + + typedef daeSmartRef domPassRef; + typedef daeTArray domPass_Array; + +/** + * A static declaration of all the render states, shaders, and settings for + * one rendering pipeline. + */ + class domPass : public daeElement + { + public: + class domDraw; + + typedef daeSmartRef domDrawRef; + typedef daeTArray domDraw_Array; + + class domDraw : public daeElement + { + + protected: // Value + /** + * The domFx_draw_common value of the text data of this element. + */ + domFx_draw_common _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFx_draw_common of the value. + */ + domFx_draw_common getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFx_draw_common val ) { _value = val; } + + protected: + /** + * Constructor + */ + domDraw() : _value() {} + /** + * Destructor + */ + virtual ~domDraw() {} + /** + * Copy Constructor + */ + domDraw( const domDraw &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDraw &operator=( const domDraw &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; + }; + + class domShader; + + typedef daeSmartRef domShaderRef; + typedef daeTArray domShader_Array; + +/** + * Declare and prepare a shader for execution in the rendering pipeline of + * a pass. + */ + class domShader : public daeElement + { + public: + class domCompiler_target; + + typedef daeSmartRef domCompiler_targetRef; + typedef daeTArray domCompiler_target_Array; + +/** + * A string declaring which profile or platform the compiler is targeting + * this shader for. + */ + class domCompiler_target : public daeElement + { + + protected: // Value + /** + * The xsNMTOKEN value of the text data of this element. + */ + xsNMTOKEN _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domCompiler_target() : _value() {} + /** + * Destructor + */ + virtual ~domCompiler_target() {} + /** + * Copy Constructor + */ + domCompiler_target( const domCompiler_target &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCompiler_target &operator=( const domCompiler_target &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; + }; + + class domCompiler_options; + + typedef daeSmartRef domCompiler_optionsRef; + typedef daeTArray domCompiler_options_Array; + +/** + * A string containing command-line operations for the shader compiler. + */ + class domCompiler_options : public daeElement + { + + protected: // Value + /** + * The xsString value of the text data of this element. + */ + xsString _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domCompiler_options() : _value() {} + /** + * Destructor + */ + virtual ~domCompiler_options() {} + /** + * Copy Constructor + */ + domCompiler_options( const domCompiler_options &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domCompiler_options &operator=( const domCompiler_options &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; + }; + + class domName; + + typedef daeSmartRef domNameRef; + typedef daeTArray domName_Array; + +/** + * The entry symbol for the shader function. + */ + class domName : public daeElement + { + protected: // Attribute + xsNCName attrSource; + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the source attribute. + * @return Returns a xsNCName of the source attribute. + */ + xsNCName getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( xsNCName atSource ) { attrSource = atSource; } + + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domName() : attrSource(), _value() {} + /** + * Destructor + */ + virtual ~domName() {} + /** + * Copy Constructor + */ + domName( const domName &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domName &operator=( const domName &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; + }; + + class domBind; + + typedef daeSmartRef domBindRef; + typedef daeTArray domBind_Array; + +/** + * Binds values to uniform inputs of a shader. + */ + class domBind : public daeElement + { + public: + class domParam; + + typedef daeSmartRef domParamRef; + typedef daeTArray domParam_Array; + + class domParam : public daeElement + { + protected: // Attribute + xsString attrRef; + + + public: //Accessors and Mutators + /** + * Gets the ref attribute. + * @return Returns a xsString of the ref attribute. + */ + xsString getRef() const { return attrRef; } + /** + * Sets the ref attribute. + * @param atRef The new value for the ref attribute. + */ + void setRef( xsString atRef ) { attrRef = atRef; } + + protected: + /** + * Constructor + */ + domParam() : attrRef() {} + /** + * Destructor + */ + virtual ~domParam() {} + /** + * Copy Constructor + */ + domParam( const domParam &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domParam &operator=( const domParam &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: // Attribute +/** + * The identifier for a uniform input parameter to the shader (a formal function + * parameter or in-scope global) that will be bound to an external resource. + */ + xsNCName attrSymbol; + + protected: // Elements + domGlsl_param_typeRef elemGlsl_param_type; + domParamRef elemParam; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the symbol attribute. + * @return Returns a xsNCName of the symbol attribute. + */ + xsNCName getSymbol() const { return attrSymbol; } + /** + * Sets the symbol attribute. + * @param atSymbol The new value for the symbol attribute. + */ + void setSymbol( xsNCName atSymbol ) { attrSymbol = atSymbol; } + + /** + * Gets the glsl_param_type element. + * @return a daeSmartRef to the glsl_param_type element. + */ + const domGlsl_param_typeRef getGlsl_param_type() const { return elemGlsl_param_type; } + /** + * Gets the param element. + * @return a daeSmartRef to the param element. + */ + const domParamRef getParam() const { return elemParam; } + /** + * 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 + */ + domBind() : attrSymbol(), elemGlsl_param_type(), elemParam() {} + /** + * Destructor + */ + virtual ~domBind() {} + /** + * Copy Constructor + */ + domBind( const domBind &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBind &operator=( const domBind &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: // Attribute +/** + * In which pipeline stage this programmable shader is designed to execute, + * for example, VERTEX, FRAGMENT, etc. + */ + domGlsl_pipeline_stage attrStage; + + protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; +/** + * A string declaring which profile or platform the compiler is targeting + * this shader for. @see domCompiler_target + */ + domCompiler_targetRef elemCompiler_target; +/** + * A string containing command-line operations for the shader compiler. @see + * domCompiler_options + */ + domCompiler_optionsRef elemCompiler_options; +/** + * The entry symbol for the shader function. @see domName + */ + domNameRef elemName; +/** + * Binds values to uniform inputs of a shader. @see domBind + */ + domBind_Array elemBind_array; + + public: //Accessors and Mutators + /** + * Gets the stage attribute. + * @return Returns a domGlsl_pipeline_stage of the stage attribute. + */ + domGlsl_pipeline_stage getStage() const { return attrStage; } + /** + * Sets the stage attribute. + * @param atStage The new value for the stage attribute. + */ + void setStage( domGlsl_pipeline_stage atStage ) { attrStage = atStage; } + + /** + * 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 compiler_target element. + * @return a daeSmartRef to the compiler_target element. + */ + const domCompiler_targetRef getCompiler_target() const { return elemCompiler_target; } + /** + * Gets the compiler_options element. + * @return a daeSmartRef to the compiler_options element. + */ + const domCompiler_optionsRef getCompiler_options() const { return elemCompiler_options; } + /** + * Gets the name element. + * @return a daeSmartRef to the name element. + */ + const domNameRef getName() const { return elemName; } + /** + * Gets the bind element array. + * @return Returns a reference to the array of bind elements. + */ + domBind_Array &getBind_array() { return elemBind_array; } + /** + * Gets the bind element array. + * @return Returns a constant reference to the array of bind elements. + */ + const domBind_Array &getBind_array() const { return elemBind_array; } + protected: + /** + * Constructor + */ + domShader() : attrStage(), elemAnnotate_array(), elemCompiler_target(), elemCompiler_options(), elemName(), elemBind_array() {} + /** + * Destructor + */ + virtual ~domShader() {} + /** + * Copy Constructor + */ + domShader( const domShader &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domShader &operator=( const domShader &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: // Attribute +/** + * 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; + + protected: // Elements + domFx_annotate_common_Array elemAnnotate_array; + domFx_colortarget_common_Array elemColor_target_array; + domFx_depthtarget_common_Array elemDepth_target_array; + domFx_stenciltarget_common_Array elemStencil_target_array; + domFx_clearcolor_common_Array elemColor_clear_array; + domFx_cleardepth_common_Array elemDepth_clear_array; + domFx_clearstencil_common_Array elemStencil_clear_array; + domDrawRef elemDraw; + domGl_pipeline_settings_Array elemGl_pipeline_settings_array; +/** + * Declare and prepare a shader for execution in the rendering pipeline of + * a pass. @see domShader + */ + domShader_Array elemShader_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * 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 color_target element array. + * @return Returns a reference to the array of color_target elements. + */ + domFx_colortarget_common_Array &getColor_target_array() { return elemColor_target_array; } + /** + * Gets the color_target element array. + * @return Returns a constant reference to the array of color_target elements. + */ + const domFx_colortarget_common_Array &getColor_target_array() const { return elemColor_target_array; } + /** + * Gets the depth_target element array. + * @return Returns a reference to the array of depth_target elements. + */ + domFx_depthtarget_common_Array &getDepth_target_array() { return elemDepth_target_array; } + /** + * Gets the depth_target element array. + * @return Returns a constant reference to the array of depth_target elements. + */ + const domFx_depthtarget_common_Array &getDepth_target_array() const { return elemDepth_target_array; } + /** + * Gets the stencil_target element array. + * @return Returns a reference to the array of stencil_target elements. + */ + domFx_stenciltarget_common_Array &getStencil_target_array() { return elemStencil_target_array; } + /** + * Gets the stencil_target element array. + * @return Returns a constant reference to the array of stencil_target elements. + */ + const domFx_stenciltarget_common_Array &getStencil_target_array() const { return elemStencil_target_array; } + /** + * Gets the color_clear element array. + * @return Returns a reference to the array of color_clear elements. + */ + domFx_clearcolor_common_Array &getColor_clear_array() { return elemColor_clear_array; } + /** + * Gets the color_clear element array. + * @return Returns a constant reference to the array of color_clear elements. + */ + const domFx_clearcolor_common_Array &getColor_clear_array() const { return elemColor_clear_array; } + /** + * Gets the depth_clear element array. + * @return Returns a reference to the array of depth_clear elements. + */ + domFx_cleardepth_common_Array &getDepth_clear_array() { return elemDepth_clear_array; } + /** + * Gets the depth_clear element array. + * @return Returns a constant reference to the array of depth_clear elements. + */ + const domFx_cleardepth_common_Array &getDepth_clear_array() const { return elemDepth_clear_array; } + /** + * Gets the stencil_clear element array. + * @return Returns a reference to the array of stencil_clear elements. + */ + domFx_clearstencil_common_Array &getStencil_clear_array() { return elemStencil_clear_array; } + /** + * Gets the stencil_clear element array. + * @return Returns a constant reference to the array of stencil_clear elements. + */ + const domFx_clearstencil_common_Array &getStencil_clear_array() const { return elemStencil_clear_array; } + /** + * Gets the draw element. + * @return a daeSmartRef to the draw element. + */ + const domDrawRef getDraw() const { return elemDraw; } + /** + * Gets the gl_pipeline_settings element array. + * @return Returns a reference to the array of gl_pipeline_settings elements. + */ + domGl_pipeline_settings_Array &getGl_pipeline_settings_array() { return elemGl_pipeline_settings_array; } + /** + * Gets the gl_pipeline_settings element array. + * @return Returns a constant reference to the array of gl_pipeline_settings elements. + */ + const domGl_pipeline_settings_Array &getGl_pipeline_settings_array() const { return elemGl_pipeline_settings_array; } + /** + * Gets the shader element array. + * @return Returns a reference to the array of shader elements. + */ + domShader_Array &getShader_array() { return elemShader_array; } + /** + * Gets the shader element array. + * @return Returns a constant reference to the array of shader elements. + */ + const domShader_Array &getShader_array() const { return elemShader_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 + */ + 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() {} + /** + * Destructor + */ + virtual ~domPass() {} + /** + * Copy Constructor + */ + domPass( const domPass &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domPass &operator=( const domPass &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 +/** + * 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; +/** + * 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; + + protected: // Elements + domFx_code_profile_Array elemCode_array; + domFx_include_common_Array elemInclude_array; + domImage_Array elemImage_array; + domGlsl_newparam_Array elemNewparam_array; + domGlsl_setparam_Array elemSetparam_array; +/** + * A static declaration of all the render states, shaders, and settings for + * one rendering pipeline. @see domPass + */ + domPass_Array elemPass_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + 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 ) { attrId = atId; } + + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the code element array. + * @return Returns a reference to the array of code elements. + */ + domFx_code_profile_Array &getCode_array() { return elemCode_array; } + /** + * Gets the code element array. + * @return Returns a constant reference to the array of code elements. + */ + const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } + /** + * Gets the include element array. + * @return Returns a reference to the array of include elements. + */ + domFx_include_common_Array &getInclude_array() { return elemInclude_array; } + /** + * Gets the include element array. + * @return Returns a constant reference to the array of include elements. + */ + const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } + /** + * Gets the image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_array; } + /** + * Gets the newparam element array. + * @return Returns a reference to the array of newparam elements. + */ + domGlsl_newparam_Array &getNewparam_array() { return elemNewparam_array; } + /** + * Gets the newparam element array. + * @return Returns a constant reference to the array of newparam elements. + */ + const domGlsl_newparam_Array &getNewparam_array() const { return elemNewparam_array; } + /** + * Gets the setparam element array. + * @return Returns a reference to the array of setparam elements. + */ + domGlsl_setparam_Array &getSetparam_array() { return elemSetparam_array; } + /** + * Gets the setparam element array. + * @return Returns a constant reference to the array of setparam elements. + */ + const domGlsl_setparam_Array &getSetparam_array() const { return elemSetparam_array; } + /** + * Gets the pass element array. + * @return Returns a reference to the array of pass elements. + */ + domPass_Array &getPass_array() { return elemPass_array; } + /** + * Gets the pass element array. + * @return Returns a constant reference to the array of pass elements. + */ + const domPass_Array &getPass_array() const { return elemPass_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 + */ + domTechnique() : attrId(), attrSid(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemSetparam_array(), elemPass_array() {} + /** + * Destructor + */ + virtual ~domTechnique() {} + /** + * Copy Constructor + */ + domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique &operator=( const domTechnique &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: // Elements + domFx_code_profile_Array elemCode_array; + domFx_include_common_Array elemInclude_array; + domImage_Array elemImage_array; + domGlsl_newparam_Array elemNewparam_array; +/** + * Holds a description of the textures, samplers, shaders, parameters, and + * passes necessary for rendering this effect using one method. @see domTechnique + */ + domTechnique_Array elemTechnique_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the code element array. + * @return Returns a reference to the array of code elements. + */ + domFx_code_profile_Array &getCode_array() { return elemCode_array; } + /** + * Gets the code element array. + * @return Returns a constant reference to the array of code elements. + */ + const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } + /** + * Gets the include element array. + * @return Returns a reference to the array of include elements. + */ + domFx_include_common_Array &getInclude_array() { return elemInclude_array; } + /** + * Gets the include element array. + * @return Returns a constant reference to the array of include elements. + */ + const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } + /** + * Gets the image element array. + * @return Returns a reference to the array of image elements. + */ + domImage_Array &getImage_array() { return elemImage_array; } + /** + * Gets the image element array. + * @return Returns a constant reference to the array of image elements. + */ + const domImage_Array &getImage_array() const { return elemImage_array; } + /** + * Gets the newparam element array. + * @return Returns a reference to the array of newparam elements. + */ + domGlsl_newparam_Array &getNewparam_array() { return elemNewparam_array; } + /** + * Gets the newparam element array. + * @return Returns a constant reference to the array of newparam elements. + */ + const domGlsl_newparam_Array &getNewparam_array() const { return elemNewparam_array; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @return Returns a constant reference to the array of technique elements. + */ + const domTechnique_Array &getTechnique_array() const { return elemTechnique_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 + */ + domProfile_GLSL() : elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemTechnique_array() {} + /** + * Destructor + */ + virtual ~domProfile_GLSL() {} + /** + * Copy Constructor + */ + domProfile_GLSL( const domProfile_GLSL &cpy ) : domFx_profile_abstract() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domProfile_GLSL &operator=( const domProfile_GLSL &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domRigid_body.h b/Extras/COLLADA_DOM/include/1.4/dom/domRigid_body.h new file mode 100644 index 000000000..6fe433caf --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domRigid_body.h @@ -0,0 +1,804 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domRigid_body_h__ +#define __domRigid_body_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * This element allows for describing simulated bodies that do not deform. + * These bodies may or may not be connected by constraints (hinge, ball-joint + * etc.). Rigid-bodies, constraints etc. are encapsulated in physics_model + * elements to allow for instantiating complex models. + */ +class domRigid_body : public daeElement +{ +public: + class domTechnique_common; + + typedef daeSmartRef domTechnique_commonRef; + typedef daeTArray domTechnique_common_Array; + +/** + * The technique_common element specifies the rigid_body information for the + * common profile which all COLLADA implementations need to support. + */ + class domTechnique_common : public daeElement + { + public: + class domDynamic; + + typedef daeSmartRef domDynamicRef; + typedef daeTArray domDynamic_Array; + +/** + * If FALSE, the rigid_body is not moveable + */ + class domDynamic : public daeElement + { + protected: // Attribute +/** + * 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; + + protected: // Value + /** + * The domBool value of the text data of this element. + */ + domBool _value; + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the value of this element. + * @return a domBool of the value. + */ + domBool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domBool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domDynamic() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domDynamic() {} + /** + * Copy Constructor + */ + domDynamic( const domDynamic &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domDynamic &operator=( const domDynamic &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; + }; + + class domMass_frame; + + typedef daeSmartRef domMass_frameRef; + typedef daeTArray domMass_frame_Array; + +/** + * Defines the center and orientation of mass of the rigid-body relative to + * the local origin of the “root” shape.This makes the off-diagonal elements + * of the inertia tensor (products of inertia) all 0 and allows us to just + * store the diagonal elements (moments of inertia). + */ + class domMass_frame : public daeElement + { + + 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; + + + public: //Accessors and Mutators + /** + * 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 + */ + domMass_frame() : elemTranslate_array(), elemRotate_array() {} + /** + * Destructor + */ + virtual ~domMass_frame() {} + /** + * Copy Constructor + */ + domMass_frame( const domMass_frame &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domMass_frame &operator=( const domMass_frame &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; + }; + + class domShape; + + typedef daeSmartRef domShapeRef; + typedef daeTArray domShape_Array; + +/** + * This element allows for describing components of a rigid_body. + */ + class domShape : public daeElement + { + public: + class domHollow; + + typedef daeSmartRef domHollowRef; + typedef daeTArray domHollow_Array; + +/** + * If TRUE, the mass is distributed along the surface of the shape + */ + class domHollow : public daeElement + { + protected: // Attribute +/** + * 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; + + protected: // Value + /** + * The domBool value of the text data of this element. + */ + domBool _value; + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the value of this element. + * @return a domBool of the value. + */ + domBool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domBool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHollow() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domHollow() {} + /** + * Copy Constructor + */ + domHollow( const domHollow &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHollow &operator=( const domHollow &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: // Elements +/** + * If TRUE, the mass is distributed along the surface of the shape @see domHollow + */ + domHollowRef elemHollow; +/** + * The mass of the shape. @see domMass + */ + domTargetableFloatRef elemMass; +/** + * The density of the shape. @see domDensity + */ + domTargetableFloatRef elemDensity; +/** + * References a physics_material for the shape. @see domInstance_physics_material + */ + domInstance_physics_materialRef elemInstance_physics_material; +/** + * Defines a physics_material for the shape. @see domPhysics_material + */ + domPhysics_materialRef elemPhysics_material; +/** + * Instances a geometry to use to define this shape. @see domInstance_geometry + */ + domInstance_geometryRef elemInstance_geometry; +/** + * Defines a plane to use for this shape. @see domPlane + */ + domPlaneRef elemPlane; +/** + * Defines a box to use for this shape. @see domBox + */ + domBoxRef elemBox; +/** + * Defines a sphere to use for this shape. @see domSphere + */ + domSphereRef elemSphere; +/** + * Defines a cyliner to use for this shape. @see domCylinder + */ + domCylinderRef elemCylinder; +/** + * Defines a tapered_cylinder to use for this shape. @see domTapered_cylinder + */ + domTapered_cylinderRef elemTapered_cylinder; +/** + * Defines a capsule to use for this shape. @see domCapsule + */ + domCapsuleRef elemCapsule; +/** + * Defines a tapered_capsule to use for this shape. @see domTapered_capsule + */ + domTapered_capsuleRef elemTapered_capsule; +/** + * Allows a tranformation for the shape. @see domTranslate + */ + domTranslate_Array elemTranslate_array; +/** + * Allows a tranformation for the shape. @see domRotate + */ + domRotate_Array elemRotate_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the hollow element. + * @return a daeSmartRef to the hollow element. + */ + const domHollowRef getHollow() const { return elemHollow; } + /** + * Gets the mass element. + * @return a daeSmartRef to the mass element. + */ + const domTargetableFloatRef getMass() const { return elemMass; } + /** + * Gets the density element. + * @return a daeSmartRef to the density element. + */ + const domTargetableFloatRef getDensity() const { return elemDensity; } + /** + * Gets the instance_physics_material element. + * @return a daeSmartRef to the instance_physics_material element. + */ + const domInstance_physics_materialRef getInstance_physics_material() const { return elemInstance_physics_material; } + /** + * Gets the physics_material element. + * @return a daeSmartRef to the physics_material element. + */ + const domPhysics_materialRef getPhysics_material() const { return elemPhysics_material; } + /** + * Gets the instance_geometry element. + * @return a daeSmartRef to the instance_geometry element. + */ + const domInstance_geometryRef getInstance_geometry() const { return elemInstance_geometry; } + /** + * Gets the plane element. + * @return a daeSmartRef to the plane element. + */ + const domPlaneRef getPlane() const { return elemPlane; } + /** + * Gets the box element. + * @return a daeSmartRef to the box element. + */ + const domBoxRef getBox() const { return elemBox; } + /** + * Gets the sphere element. + * @return a daeSmartRef to the sphere element. + */ + const domSphereRef getSphere() const { return elemSphere; } + /** + * Gets the cylinder element. + * @return a daeSmartRef to the cylinder element. + */ + const domCylinderRef getCylinder() const { return elemCylinder; } + /** + * Gets the tapered_cylinder element. + * @return a daeSmartRef to the tapered_cylinder element. + */ + const domTapered_cylinderRef getTapered_cylinder() const { return elemTapered_cylinder; } + /** + * Gets the capsule element. + * @return a daeSmartRef to the capsule element. + */ + const domCapsuleRef getCapsule() const { return elemCapsule; } + /** + * Gets the tapered_capsule element. + * @return a daeSmartRef to the tapered_capsule element. + */ + const domTapered_capsuleRef getTapered_capsule() const { return elemTapered_capsule; } + /** + * 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 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. + */ + 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 + */ + domShape() : elemHollow(), elemMass(), elemDensity(), elemInstance_physics_material(), elemPhysics_material(), elemInstance_geometry(), elemPlane(), elemBox(), elemSphere(), elemCylinder(), elemTapered_cylinder(), elemCapsule(), elemTapered_capsule(), elemTranslate_array(), elemRotate_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domShape() {} + /** + * Copy Constructor + */ + domShape( const domShape &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domShape &operator=( const domShape &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: // Elements +/** + * If FALSE, the rigid_body is not moveable @see domDynamic + */ + domDynamicRef elemDynamic; +/** + * The total mass of the rigid-body @see domMass + */ + domTargetableFloatRef elemMass; +/** + * Defines the center and orientation of mass of the rigid-body relative to + * the local origin of the “root” shape.This makes the off-diagonal elements + * of the inertia tensor (products of inertia) all 0 and allows us to just + * store the diagonal elements (moments of inertia). @see domMass_frame + */ + domMass_frameRef elemMass_frame; +/** + * float3 – The diagonal elements of the inertia tensor (moments of inertia), + * which is represented in the local frame of the center of mass. See above. + * @see domInertia + */ + domTargetableFloat3Ref elemInertia; +/** + * References a physics_material for the rigid_body. @see domInstance_physics_material + */ + domInstance_physics_materialRef elemInstance_physics_material; +/** + * Defines a physics_material for the rigid_body. @see domPhysics_material + */ + domPhysics_materialRef elemPhysics_material; +/** + * This element allows for describing components of a rigid_body. @see domShape + */ + domShape_Array elemShape_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the dynamic element. + * @return a daeSmartRef to the dynamic element. + */ + const domDynamicRef getDynamic() const { return elemDynamic; } + /** + * Gets the mass element. + * @return a daeSmartRef to the mass element. + */ + const domTargetableFloatRef getMass() const { return elemMass; } + /** + * Gets the mass_frame element. + * @return a daeSmartRef to the mass_frame element. + */ + const domMass_frameRef getMass_frame() const { return elemMass_frame; } + /** + * Gets the inertia element. + * @return a daeSmartRef to the inertia element. + */ + const domTargetableFloat3Ref getInertia() const { return elemInertia; } + /** + * Gets the instance_physics_material element. + * @return a daeSmartRef to the instance_physics_material element. + */ + const domInstance_physics_materialRef getInstance_physics_material() const { return elemInstance_physics_material; } + /** + * Gets the physics_material element. + * @return a daeSmartRef to the physics_material element. + */ + const domPhysics_materialRef getPhysics_material() const { return elemPhysics_material; } + /** + * Gets the shape element array. + * @return Returns a reference to the array of shape elements. + */ + domShape_Array &getShape_array() { return elemShape_array; } + /** + * Gets the shape element array. + * @return Returns a constant reference to the array of shape elements. + */ + const domShape_Array &getShape_array() const { return elemShape_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 + */ + domTechnique_common() : elemDynamic(), elemMass(), elemMass_frame(), elemInertia(), elemInstance_physics_material(), elemPhysics_material(), elemShape_array() {} + /** + * Destructor + */ + virtual ~domTechnique_common() {} + /** + * Copy Constructor + */ + domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_common &operator=( const domTechnique_common &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 +/** + * 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 +/** + * The technique_common element specifies the rigid_body information for the + * common profile which all COLLADA implementations need to support. @see + * domTechnique_common + */ + domTechnique_commonRef elemTechnique_common; +/** + * This element may contain any number of non-common profile techniques. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the technique_common element. + * @return a daeSmartRef to the technique_common element. + */ + const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @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; } +protected: + /** + * Constructor + */ + domRigid_body() : attrSid(), attrName(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domRigid_body() {} + /** + * Copy Constructor + */ + domRigid_body( const domRigid_body &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRigid_body &operator=( const domRigid_body &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domRigid_constraint.h b/Extras/COLLADA_DOM/include/1.4/dom/domRigid_constraint.h new file mode 100644 index 000000000..d708b6fcc --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domRigid_constraint.h @@ -0,0 +1,1160 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domRigid_constraint_h__ +#define __domRigid_constraint_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include + +/** + * This element allows for connecting components, such as rigid_body into + * complex physics models with moveable parts. + */ +class domRigid_constraint : public daeElement +{ +public: + class domRef_attachment; + + typedef daeSmartRef domRef_attachmentRef; + typedef daeTArray domRef_attachment_Array; + +/** + * Defines the attachment (to a rigid_body or a node) to be used as the reference-frame. + */ + class domRef_attachment : public daeElement + { + protected: // Attribute +/** + * The “rigid_body” attribute is a relative reference to a rigid-body + * within the same physics_model. + */ + xsAnyURI attrRigid_body; + + protected: // Elements +/** + * Allows you to "position" the attachment point. @see domTranslate + */ + domTranslate_Array elemTranslate_array; +/** + * Allows you to "position" the attachment point. @see domRotate + */ + domRotate_Array elemRotate_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the rigid_body attribute. + * @return Returns a xsAnyURI reference of the rigid_body attribute. + */ + xsAnyURI &getRigid_body() { return attrRigid_body; } + /** + * Gets the rigid_body attribute. + * @return Returns a constant xsAnyURI reference of the rigid_body attribute. + */ + const xsAnyURI &getRigid_body() const { return attrRigid_body; } + /** + * Sets the rigid_body attribute. + * @param atRigid_body The new value for the rigid_body attribute. + */ + void setRigid_body( const xsAnyURI &atRigid_body ) { attrRigid_body.setURI( atRigid_body.getURI() ); } + + /** + * 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 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. + */ + 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 + */ + domRef_attachment() : attrRigid_body(), elemTranslate_array(), elemRotate_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domRef_attachment() {} + /** + * Copy Constructor + */ + domRef_attachment( const domRef_attachment &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRef_attachment &operator=( const domRef_attachment &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; + }; + + class domAttachment; + + typedef daeSmartRef domAttachmentRef; + typedef daeTArray domAttachment_Array; + +/** + * Defines an attachment to a rigid-body or a node. + */ + class domAttachment : public daeElement + { + protected: // Attribute +/** + * The “rigid_body” attribute is a relative reference to a rigid-body + * within the same physics_model. + */ + xsAnyURI attrRigid_body; + + protected: // Elements +/** + * Allows you to "position" the attachment point. @see domTranslate + */ + domTranslate_Array elemTranslate_array; +/** + * Allows you to "position" the attachment point. @see domRotate + */ + domRotate_Array elemRotate_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + + public: //Accessors and Mutators + /** + * Gets the rigid_body attribute. + * @return Returns a xsAnyURI reference of the rigid_body attribute. + */ + xsAnyURI &getRigid_body() { return attrRigid_body; } + /** + * Gets the rigid_body attribute. + * @return Returns a constant xsAnyURI reference of the rigid_body attribute. + */ + const xsAnyURI &getRigid_body() const { return attrRigid_body; } + /** + * Sets the rigid_body attribute. + * @param atRigid_body The new value for the rigid_body attribute. + */ + void setRigid_body( const xsAnyURI &atRigid_body ) { attrRigid_body.setURI( atRigid_body.getURI() ); } + + /** + * 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 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. + */ + 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 + */ + domAttachment() : attrRigid_body(), elemTranslate_array(), elemRotate_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domAttachment() {} + /** + * Copy Constructor + */ + domAttachment( const domAttachment &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAttachment &operator=( const domAttachment &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; + }; + + class domTechnique_common; + + typedef daeSmartRef domTechnique_commonRef; + typedef daeTArray domTechnique_common_Array; + +/** + * The technique_common element specifies the rigid_constraint information + * for the common profile which all COLLADA implementations need to support. + */ + class domTechnique_common : public daeElement + { + public: + class domEnabled; + + typedef daeSmartRef domEnabledRef; + typedef daeTArray domEnabled_Array; + +/** + * If FALSE, the constraint doesn’t exert any force or influence on the + * rigid bodies. + */ + class domEnabled : public daeElement + { + protected: // Attribute +/** + * 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; + + protected: // Value + /** + * The domBool value of the text data of this element. + */ + domBool _value; + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the value of this element. + * @return a domBool of the value. + */ + domBool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domBool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domEnabled() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domEnabled() {} + /** + * Copy Constructor + */ + domEnabled( const domEnabled &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domEnabled &operator=( const domEnabled &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; + }; + + class domInterpenetrate; + + typedef daeSmartRef domInterpenetrateRef; + typedef daeTArray domInterpenetrate_Array; + +/** + * Indicates whether the attached rigid bodies may inter-penetrate. + */ + class domInterpenetrate : public daeElement + { + protected: // Attribute +/** + * 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; + + protected: // Value + /** + * The domBool value of the text data of this element. + */ + domBool _value; + + public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the value of this element. + * @return a domBool of the value. + */ + domBool getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domBool val ) { _value = val; } + + protected: + /** + * Constructor + */ + domInterpenetrate() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domInterpenetrate() {} + /** + * Copy Constructor + */ + domInterpenetrate( const domInterpenetrate &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domInterpenetrate &operator=( const domInterpenetrate &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; + }; + + class domLimits; + + typedef daeSmartRef domLimitsRef; + typedef daeTArray domLimits_Array; + +/** + * The limits element provides a flexible way to specify the constraint limits + * (degrees of freedom and ranges). + */ + class domLimits : public daeElement + { + public: + class domSwing_cone_and_twist; + + typedef daeSmartRef domSwing_cone_and_twistRef; + typedef daeTArray domSwing_cone_and_twist_Array; + +/** + * The swing_cone_and_twist element describes the angular limits along each + * rotation axis in degrees. The the X and Y limits describe a “swing cone” + * and the Z limits describe the “twist angle” range + */ + class domSwing_cone_and_twist : public daeElement + { + + protected: // Elements +/** + * The minimum values for the limit. @see domMin + */ + domTargetableFloat3Ref elemMin; +/** + * The maximum values for the limit. @see domMax + */ + domTargetableFloat3Ref elemMax; + + public: //Accessors and Mutators + /** + * Gets the min element. + * @return a daeSmartRef to the min element. + */ + const domTargetableFloat3Ref getMin() const { return elemMin; } + /** + * Gets the max element. + * @return a daeSmartRef to the max element. + */ + const domTargetableFloat3Ref getMax() const { return elemMax; } + protected: + /** + * Constructor + */ + domSwing_cone_and_twist() : elemMin(), elemMax() {} + /** + * Destructor + */ + virtual ~domSwing_cone_and_twist() {} + /** + * Copy Constructor + */ + domSwing_cone_and_twist( const domSwing_cone_and_twist &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSwing_cone_and_twist &operator=( const domSwing_cone_and_twist &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; + }; + + class domLinear; + + typedef daeSmartRef domLinearRef; + typedef daeTArray domLinear_Array; + +/** + * The linear element describes linear (translational) limits along each axis. + */ + class domLinear : public daeElement + { + + protected: // Elements +/** + * The minimum values for the limit. @see domMin + */ + domTargetableFloat3Ref elemMin; +/** + * The maximum values for the limit. @see domMax + */ + domTargetableFloat3Ref elemMax; + + public: //Accessors and Mutators + /** + * Gets the min element. + * @return a daeSmartRef to the min element. + */ + const domTargetableFloat3Ref getMin() const { return elemMin; } + /** + * Gets the max element. + * @return a daeSmartRef to the max element. + */ + const domTargetableFloat3Ref getMax() const { return elemMax; } + protected: + /** + * Constructor + */ + domLinear() : elemMin(), elemMax() {} + /** + * Destructor + */ + virtual ~domLinear() {} + /** + * Copy Constructor + */ + domLinear( const domLinear &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLinear &operator=( const domLinear &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: // Elements +/** + * The swing_cone_and_twist element describes the angular limits along each + * rotation axis in degrees. The the X and Y limits describe a “swing cone” + * and the Z limits describe the “twist angle” range @see domSwing_cone_and_twist + */ + domSwing_cone_and_twistRef elemSwing_cone_and_twist; +/** + * The linear element describes linear (translational) limits along each axis. + * @see domLinear + */ + domLinearRef elemLinear; + + public: //Accessors and Mutators + /** + * Gets the swing_cone_and_twist element. + * @return a daeSmartRef to the swing_cone_and_twist element. + */ + const domSwing_cone_and_twistRef getSwing_cone_and_twist() const { return elemSwing_cone_and_twist; } + /** + * Gets the linear element. + * @return a daeSmartRef to the linear element. + */ + const domLinearRef getLinear() const { return elemLinear; } + protected: + /** + * Constructor + */ + domLimits() : elemSwing_cone_and_twist(), elemLinear() {} + /** + * Destructor + */ + virtual ~domLimits() {} + /** + * Copy Constructor + */ + domLimits( const domLimits &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLimits &operator=( const domLimits &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; + }; + + class domSpring; + + typedef daeSmartRef domSpringRef; + typedef daeTArray domSpring_Array; + +/** + * Spring, based on distance (“LINEAR”) or angle (“ANGULAR”). + */ + class domSpring : public daeElement + { + public: + class domAngular; + + typedef daeSmartRef domAngularRef; + typedef daeTArray domAngular_Array; + +/** + * The angular spring properties. + */ + class domAngular : public daeElement + { + + protected: // Elements +/** + * The stiffness (also called spring coefficient) has units of force/angle + * in degrees. @see domStiffness + */ + domTargetableFloatRef elemStiffness; +/** + * The spring damping coefficient. @see domDamping + */ + domTargetableFloatRef elemDamping; +/** + * The spring's target or resting distance. @see domTarget_value + */ + domTargetableFloatRef elemTarget_value; + + public: //Accessors and Mutators + /** + * Gets the stiffness element. + * @return a daeSmartRef to the stiffness element. + */ + const domTargetableFloatRef getStiffness() const { return elemStiffness; } + /** + * Gets the damping element. + * @return a daeSmartRef to the damping element. + */ + const domTargetableFloatRef getDamping() const { return elemDamping; } + /** + * Gets the target_value element. + * @return a daeSmartRef to the target_value element. + */ + const domTargetableFloatRef getTarget_value() const { return elemTarget_value; } + protected: + /** + * Constructor + */ + domAngular() : elemStiffness(), elemDamping(), elemTarget_value() {} + /** + * Destructor + */ + virtual ~domAngular() {} + /** + * Copy Constructor + */ + domAngular( const domAngular &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAngular &operator=( const domAngular &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; + }; + + class domLinear; + + typedef daeSmartRef domLinearRef; + typedef daeTArray domLinear_Array; + +/** + * The linear spring properties. + */ + class domLinear : public daeElement + { + + protected: // Elements +/** + * The stiffness (also called spring coefficient) has units of force/distance. + * @see domStiffness + */ + domTargetableFloatRef elemStiffness; +/** + * The spring damping coefficient. @see domDamping + */ + domTargetableFloatRef elemDamping; +/** + * The spring's target or resting distance. @see domTarget_value + */ + domTargetableFloatRef elemTarget_value; + + public: //Accessors and Mutators + /** + * Gets the stiffness element. + * @return a daeSmartRef to the stiffness element. + */ + const domTargetableFloatRef getStiffness() const { return elemStiffness; } + /** + * Gets the damping element. + * @return a daeSmartRef to the damping element. + */ + const domTargetableFloatRef getDamping() const { return elemDamping; } + /** + * Gets the target_value element. + * @return a daeSmartRef to the target_value element. + */ + const domTargetableFloatRef getTarget_value() const { return elemTarget_value; } + protected: + /** + * Constructor + */ + domLinear() : elemStiffness(), elemDamping(), elemTarget_value() {} + /** + * Destructor + */ + virtual ~domLinear() {} + /** + * Copy Constructor + */ + domLinear( const domLinear &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLinear &operator=( const domLinear &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: // Elements +/** + * The angular spring properties. @see domAngular + */ + domAngularRef elemAngular; +/** + * The linear spring properties. @see domLinear + */ + domLinearRef elemLinear; + + public: //Accessors and Mutators + /** + * Gets the angular element. + * @return a daeSmartRef to the angular element. + */ + const domAngularRef getAngular() const { return elemAngular; } + /** + * Gets the linear element. + * @return a daeSmartRef to the linear element. + */ + const domLinearRef getLinear() const { return elemLinear; } + protected: + /** + * Constructor + */ + domSpring() : elemAngular(), elemLinear() {} + /** + * Destructor + */ + virtual ~domSpring() {} + /** + * Copy Constructor + */ + domSpring( const domSpring &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSpring &operator=( const domSpring &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: // Elements +/** + * If FALSE, the constraint doesn’t exert any force or influence on the + * rigid bodies. @see domEnabled + */ + domEnabledRef elemEnabled; +/** + * Indicates whether the attached rigid bodies may inter-penetrate. @see domInterpenetrate + */ + domInterpenetrateRef elemInterpenetrate; +/** + * The limits element provides a flexible way to specify the constraint limits + * (degrees of freedom and ranges). @see domLimits + */ + domLimitsRef elemLimits; +/** + * Spring, based on distance (“LINEAR”) or angle (“ANGULAR”). @see + * domSpring + */ + domSpringRef elemSpring; + + public: //Accessors and Mutators + /** + * Gets the enabled element. + * @return a daeSmartRef to the enabled element. + */ + const domEnabledRef getEnabled() const { return elemEnabled; } + /** + * Gets the interpenetrate element. + * @return a daeSmartRef to the interpenetrate element. + */ + const domInterpenetrateRef getInterpenetrate() const { return elemInterpenetrate; } + /** + * Gets the limits element. + * @return a daeSmartRef to the limits element. + */ + const domLimitsRef getLimits() const { return elemLimits; } + /** + * Gets the spring element. + * @return a daeSmartRef to the spring element. + */ + const domSpringRef getSpring() const { return elemSpring; } + protected: + /** + * Constructor + */ + domTechnique_common() : elemEnabled(), elemInterpenetrate(), elemLimits(), elemSpring() {} + /** + * Destructor + */ + virtual ~domTechnique_common() {} + /** + * Copy Constructor + */ + domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_common &operator=( const domTechnique_common &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 +/** + * 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 +/** + * Defines the attachment (to a rigid_body or a node) to be used as the reference-frame. + * @see domRef_attachment + */ + domRef_attachmentRef elemRef_attachment; +/** + * Defines an attachment to a rigid-body or a node. @see domAttachment + */ + domAttachmentRef elemAttachment; +/** + * The technique_common element specifies the rigid_constraint information + * for the common profile which all COLLADA implementations need to support. + * @see domTechnique_common + */ + domTechnique_commonRef elemTechnique_common; +/** + * This element may contain any number of non-common profile techniques. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the ref_attachment element. + * @return a daeSmartRef to the ref_attachment element. + */ + const domRef_attachmentRef getRef_attachment() const { return elemRef_attachment; } + /** + * Gets the attachment element. + * @return a daeSmartRef to the attachment element. + */ + const domAttachmentRef getAttachment() const { return elemAttachment; } + /** + * Gets the technique_common element. + * @return a daeSmartRef to the technique_common element. + */ + const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @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; } +protected: + /** + * Constructor + */ + domRigid_constraint() : attrSid(), attrName(), elemRef_attachment(), elemAttachment(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domRigid_constraint() {} + /** + * Copy Constructor + */ + domRigid_constraint( const domRigid_constraint &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRigid_constraint &operator=( const domRigid_constraint &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domRotate.h b/Extras/COLLADA_DOM/include/1.4/dom/domRotate.h new file mode 100644 index 000000000..c49828e61 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domRotate.h @@ -0,0 +1,108 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domRotate_h__ +#define __domRotate_h__ + +#include +#include + + +/** + * The rotate element contains an angle and a mathematical vector that represents + * the axis of rotation. + */ +class domRotate : public daeElement +{ +protected: // Attribute +/** + * 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; + +protected: // Value + /** + * The domFloat4 value of the text data of this element. + */ + domFloat4 _value; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the _value array. + * @return Returns a domFloat4 reference of the _value array. + */ + domFloat4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat4 reference of the _value array. + */ + const domFloat4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat4 &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domRotate() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domRotate() {} + /** + * Copy Constructor + */ + domRotate( const domRotate &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRotate &operator=( const domRotate &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSampler.h b/Extras/COLLADA_DOM/include/1.4/dom/domSampler.h new file mode 100644 index 000000000..d0f6e8466 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domSampler.h @@ -0,0 +1,105 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domSampler_h__ +#define __domSampler_h__ + +#include +#include + +#include + +/** + * The sampler element declares an N-dimensional function used for animation. + * Animation function curves are represented by 1-D sampler elements in COLLADA. + * The sampler defines sampling points and how to interpolate between them. + */ +class domSampler : public daeElement +{ +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: // Element +/** + * The input element must occur at least one time. These inputs are local + * inputs. @see domInput + */ + domInputLocal_Array elemInput_array; + +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 ) { attrId = atId; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocal_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocal_Array &getInput_array() const { return elemInput_array; } +protected: + /** + * Constructor + */ + domSampler() : attrId(), elemInput_array() {} + /** + * Destructor + */ + virtual ~domSampler() {} + /** + * Copy Constructor + */ + domSampler( const domSampler &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSampler &operator=( const domSampler &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domScale.h b/Extras/COLLADA_DOM/include/1.4/dom/domScale.h new file mode 100644 index 000000000..6cb070968 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domScale.h @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domScale_h__ +#define __domScale_h__ + +#include +#include + +#include + +/** + * The scale element contains a mathematical vector that represents the relative + * proportions of the X, Y and Z axes of a coordinated system. + */ +class domScale : public daeElement, public domTargetableFloat3_complexType +{ + +protected: + /** + * Constructor + */ + domScale() {} + /** + * Destructor + */ + virtual ~domScale() {} + /** + * Copy Constructor + */ + domScale( const domScale &cpy ) : daeElement(), domTargetableFloat3_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domScale &operator=( const domScale &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSkew.h b/Extras/COLLADA_DOM/include/1.4/dom/domSkew.h new file mode 100644 index 000000000..37341f554 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domSkew.h @@ -0,0 +1,108 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domSkew_h__ +#define __domSkew_h__ + +#include +#include + + +/** + * The skew element contains an angle and two mathematical vectors that represent + * the axis of rotation and the axis of translation. + */ +class domSkew : public daeElement +{ +protected: // Attribute +/** + * 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; + +protected: // Value + /** + * The domFloat7 value of the text data of this element. + */ + domFloat7 _value; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the _value array. + * @return Returns a domFloat7 reference of the _value array. + */ + domFloat7 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat7 reference of the _value array. + */ + const domFloat7 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat7 &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domSkew() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domSkew() {} + /** + * Copy Constructor + */ + domSkew( const domSkew &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSkew &operator=( const domSkew &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSkin.h b/Extras/COLLADA_DOM/include/1.4/dom/domSkin.h new file mode 100644 index 000000000..5c11c561b --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domSkin.h @@ -0,0 +1,593 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domSkin_h__ +#define __domSkin_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * The skin element contains vertex and primitive information sufficient to + * describe blend-weight skinning. + */ +class domSkin : public daeElement +{ +public: + class domBind_shape_matrix; + + typedef daeSmartRef domBind_shape_matrixRef; + typedef daeTArray domBind_shape_matrix_Array; + +/** + * This provides extra information about the position and orientation of the + * base mesh before binding. If bind_shape_matrix is not specified then an + * identity matrix may be used as the bind_shape_matrix. The bind_shape_matrix + * element may occur zero or one times. + */ + class domBind_shape_matrix : public daeElement + { + + protected: // Value + /** + * The domFloat4x4 value of the text data of this element. + */ + domFloat4x4 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat4x4 reference of the _value array. + */ + domFloat4x4 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat4x4 reference of the _value array. + */ + const domFloat4x4 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat4x4 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domBind_shape_matrix() : _value() {} + /** + * Destructor + */ + virtual ~domBind_shape_matrix() {} + /** + * Copy Constructor + */ + domBind_shape_matrix( const domBind_shape_matrix &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domBind_shape_matrix &operator=( const domBind_shape_matrix &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; + }; + + class domJoints; + + typedef daeSmartRef domJointsRef; + typedef daeTArray domJoints_Array; + +/** + * The joints element associates joint, or skeleton, nodes with attribute + * data. In COLLADA, this is specified by the inverse bind matrix of each + * joint (influence) in the skeleton. + */ + class domJoints : public daeElement + { + + protected: // Elements +/** + * The input element must occur at least twice. These inputs are local inputs. + * @see domInput + */ + domInputLocal_Array elemInput_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + + public: //Accessors and Mutators + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocal_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocal_Array &getInput_array() const { return elemInput_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; } + protected: + /** + * Constructor + */ + domJoints() : elemInput_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domJoints() {} + /** + * Copy Constructor + */ + domJoints( const domJoints &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domJoints &operator=( const domJoints &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; + }; + + class domVertex_weights; + + typedef daeSmartRef domVertex_weightsRef; + typedef daeTArray domVertex_weights_Array; + +/** + * The vertex_weights element associates a set of joint-weight pairs with + * each vertex in the base mesh. + */ + class domVertex_weights : public daeElement + { + public: + class domVcount; + + typedef daeSmartRef domVcountRef; + typedef daeTArray domVcount_Array; + +/** + * The vcount element contains a list of integers describing the number of + * influences for each vertex. The vcount element may occur once. + */ + class domVcount : public daeElement + { + + protected: // Value + /** + * The domListOfUInts value of the text data of this element. + */ + domListOfUInts _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domListOfUInts reference of the _value array. + */ + domListOfUInts &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfUInts reference of the _value array. + */ + const domListOfUInts &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfUInts &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domVcount() : _value() {} + /** + * Destructor + */ + virtual ~domVcount() {} + /** + * Copy Constructor + */ + domVcount( const domVcount &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domVcount &operator=( const domVcount &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; + }; + + class domV; + + typedef daeSmartRef domVRef; + typedef daeTArray domV_Array; + +/** + * The v element describes which bones and attributes are associated with + * each vertex. An index of –1 into the array of joints refers to the + * bind shape. Weights should be normalized before use. The v element must + * occur zero or one times. + */ + class domV : public daeElement + { + + protected: // Value + /** + * The domListOfInts value of the text data of this element. + */ + domListOfInts _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domListOfInts reference of the _value array. + */ + domListOfInts &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domListOfInts reference of the _value array. + */ + const domListOfInts &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domListOfInts &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domV() : _value() {} + /** + * Destructor + */ + virtual ~domV() {} + /** + * Copy Constructor + */ + domV( const domV &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domV &operator=( const domV &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: // Attribute +/** + * The count attribute describes the number of vertices in the base mesh. + * Required element. + */ + domUint attrCount; + + protected: // Elements +/** + * The input element must occur at least twice. @see domInput + */ + domInputLocalOffset_Array elemInput_array; +/** + * The vcount element contains a list of integers describing the number of + * influences for each vertex. The vcount element may occur once. @see domVcount + */ + domVcountRef elemVcount; +/** + * The v element describes which bones and attributes are associated with + * each vertex. An index of –1 into the array of joints refers to the + * bind shape. Weights should be normalized before use. The v element must + * occur zero or one times. @see domV + */ + domVRef elemV; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + + public: //Accessors and Mutators + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocalOffset_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } + /** + * Gets the vcount element. + * @return a daeSmartRef to the vcount element. + */ + const domVcountRef getVcount() const { return elemVcount; } + /** + * Gets the v element. + * @return a daeSmartRef to the v element. + */ + const domVRef getV() const { return elemV; } + /** + * 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; } + protected: + /** + * Constructor + */ + domVertex_weights() : attrCount(), elemInput_array(), elemVcount(), elemV(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domVertex_weights() {} + /** + * Copy Constructor + */ + domVertex_weights( const domVertex_weights &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domVertex_weights &operator=( const domVertex_weights &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: // Attribute +/** + * The source attribute contains a URI reference to the base mesh, (a static + * mesh or a morphed mesh). This also provides the bind-shape of the skinned + * mesh. Required attribute. + */ + xsAnyURI attrSource; + +protected: // Elements +/** + * This provides extra information about the position and orientation of the + * base mesh before binding. If bind_shape_matrix is not specified then an + * identity matrix may be used as the bind_shape_matrix. The bind_shape_matrix + * element may occur zero or one times. @see domBind_shape_matrix + */ + domBind_shape_matrixRef elemBind_shape_matrix; +/** + * The skin element must contain at least three source elements. @see domSource + */ + domSource_Array elemSource_array; +/** + * The joints element associates joint, or skeleton, nodes with attribute + * data. In COLLADA, this is specified by the inverse bind matrix of each + * joint (influence) in the skeleton. @see domJoints + */ + domJointsRef elemJoints; +/** + * The vertex_weights element associates a set of joint-weight pairs with + * each vertex in the base mesh. @see domVertex_weights + */ + domVertex_weightsRef elemVertex_weights; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the source attribute. + * @return Returns a xsAnyURI reference of the source attribute. + */ + xsAnyURI &getSource() { return attrSource; } + /** + * Gets the source attribute. + * @return Returns a constant xsAnyURI reference of the source attribute. + */ + const xsAnyURI &getSource() const { return attrSource; } + /** + * Sets the source attribute. + * @param atSource The new value for the source attribute. + */ + void setSource( const xsAnyURI &atSource ) { attrSource.setURI( atSource.getURI() ); } + + /** + * Gets the bind_shape_matrix element. + * @return a daeSmartRef to the bind_shape_matrix element. + */ + const domBind_shape_matrixRef getBind_shape_matrix() const { return elemBind_shape_matrix; } + /** + * Gets the source element array. + * @return Returns a reference to the array of source elements. + */ + domSource_Array &getSource_array() { return elemSource_array; } + /** + * Gets the source element array. + * @return Returns a constant reference to the array of source elements. + */ + const domSource_Array &getSource_array() const { return elemSource_array; } + /** + * Gets the joints element. + * @return a daeSmartRef to the joints element. + */ + const domJointsRef getJoints() const { return elemJoints; } + /** + * Gets the vertex_weights element. + * @return a daeSmartRef to the vertex_weights element. + */ + const domVertex_weightsRef getVertex_weights() const { return elemVertex_weights; } + /** + * 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; } +protected: + /** + * Constructor + */ + domSkin() : attrSource(), elemBind_shape_matrix(), elemSource_array(), elemJoints(), elemVertex_weights(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domSkin() {} + /** + * Copy Constructor + */ + domSkin( const domSkin &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSkin &operator=( const domSkin &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSource.h b/Extras/COLLADA_DOM/include/1.4/dom/domSource.h new file mode 100644 index 000000000..d0464c522 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domSource.h @@ -0,0 +1,272 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domSource_h__ +#define __domSource_h__ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * The source element declares a data repository that provides values according + * to the semantics of an input element that refers to it. + */ +class domSource : public daeElement +{ +public: + class domTechnique_common; + + typedef daeSmartRef domTechnique_commonRef; + typedef daeTArray domTechnique_common_Array; + +/** + * The technique common specifies the common method for accessing this source + * element's data. + */ + class domTechnique_common : public daeElement + { + + protected: // Element +/** + * The source's technique_common must have one and only one accessor. @see + * domAccessor + */ + domAccessorRef elemAccessor; + + public: //Accessors and Mutators + /** + * Gets the accessor element. + * @return a daeSmartRef to the accessor element. + */ + const domAccessorRef getAccessor() const { return elemAccessor; } + protected: + /** + * Constructor + */ + domTechnique_common() : elemAccessor() {} + /** + * Destructor + */ + virtual ~domTechnique_common() {} + /** + * Copy Constructor + */ + domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique_common &operator=( const domTechnique_common &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 +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The source element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The source element may contain an IDREF_array. @see domIDREF_array + */ + domIDREF_arrayRef elemIDREF_array; +/** + * The source element may contain a Name_array. @see domName_array + */ + domName_arrayRef elemName_array; +/** + * The source element may contain a bool_array. @see domBool_array + */ + domBool_arrayRef elemBool_array; +/** + * The source element may contain a float_array. @see domFloat_array + */ + domFloat_arrayRef elemFloat_array; +/** + * The source element may contain an int_array. @see domInt_array + */ + domInt_arrayRef elemInt_array; +/** + * The technique common specifies the common method for accessing this source + * element's data. @see domTechnique_common + */ + domTechnique_commonRef elemTechnique_common; +/** + * This element may contain any number of non-common profile techniques. + * @see domTechnique + */ + domTechnique_Array elemTechnique_array; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the IDREF_array element. + * @return a daeSmartRef to the IDREF_array element. + */ + const domIDREF_arrayRef getIDREF_array() const { return elemIDREF_array; } + /** + * Gets the Name_array element. + * @return a daeSmartRef to the Name_array element. + */ + const domName_arrayRef getName_array() const { return elemName_array; } + /** + * Gets the bool_array element. + * @return a daeSmartRef to the bool_array element. + */ + const domBool_arrayRef getBool_array() const { return elemBool_array; } + /** + * Gets the float_array element. + * @return a daeSmartRef to the float_array element. + */ + const domFloat_arrayRef getFloat_array() const { return elemFloat_array; } + /** + * Gets the int_array element. + * @return a daeSmartRef to the int_array element. + */ + const domInt_arrayRef getInt_array() const { return elemInt_array; } + /** + * Gets the technique_common element. + * @return a daeSmartRef to the technique_common element. + */ + const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } + /** + * Gets the technique element array. + * @return Returns a reference to the array of technique elements. + */ + domTechnique_Array &getTechnique_array() { return elemTechnique_array; } + /** + * Gets the technique element array. + * @return Returns a constant reference to the array of technique elements. + */ + const domTechnique_Array &getTechnique_array() const { return elemTechnique_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 + */ + domSource() : attrId(), attrName(), elemAsset(), elemIDREF_array(), elemName_array(), elemBool_array(), elemFloat_array(), elemInt_array(), elemTechnique_common(), elemTechnique_array() {} + /** + * Destructor + */ + virtual ~domSource() {} + /** + * Copy Constructor + */ + domSource( const domSource &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSource &operator=( const domSource &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSphere.h b/Extras/COLLADA_DOM/include/1.4/dom/domSphere.h new file mode 100644 index 000000000..1b32cfea4 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domSphere.h @@ -0,0 +1,163 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domSphere_h__ +#define __domSphere_h__ + +#include +#include + +#include + +/** + * A centered sphere primitive. + */ +class domSphere : public daeElement +{ +public: + class domRadius; + + typedef daeSmartRef domRadiusRef; + typedef daeTArray domRadius_Array; + +/** + * A float value that represents the radius of the sphere + */ + class domRadius : public daeElement + { + + protected: // Value + /** + * The domFloat value of the text data of this element. + */ + domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFloat of the value. + */ + domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domRadius() : _value() {} + /** + * Destructor + */ + virtual ~domRadius() {} + /** + * Copy Constructor + */ + domRadius( const domRadius &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRadius &operator=( const domRadius &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: // Elements +/** + * A float value that represents the radius of the sphere @see domRadius + */ + domRadiusRef elemRadius; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the radius element. + * @return a daeSmartRef to the radius element. + */ + const domRadiusRef getRadius() const { return elemRadius; } + /** + * 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; } +protected: + /** + * Constructor + */ + domSphere() : elemRadius(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domSphere() {} + /** + * Copy Constructor + */ + domSphere( const domSphere &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSphere &operator=( const domSphere &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSpline.h b/Extras/COLLADA_DOM/include/1.4/dom/domSpline.h new file mode 100644 index 000000000..db509905c --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domSpline.h @@ -0,0 +1,209 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domSpline_h__ +#define __domSpline_h__ + +#include +#include + +#include +#include +#include + +/** + * The spline element contains control vertex information sufficient to describe + * basic splines. + */ +class domSpline : public daeElement +{ +public: + class domControl_vertices; + + typedef daeSmartRef domControl_verticesRef; + typedef daeTArray domControl_vertices_Array; + +/** + * The control vertices element must occur exactly one time. It is used + * to describe the CVs of the spline. + */ + class domControl_vertices : public daeElement + { + + protected: // Elements +/** + * The input element must occur at least one time. These inputs are local + * inputs. @see domInput + */ + domInputLocal_Array elemInput_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + + public: //Accessors and Mutators + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocal_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocal_Array &getInput_array() const { return elemInput_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; } + protected: + /** + * Constructor + */ + domControl_vertices() : elemInput_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domControl_vertices() {} + /** + * Copy Constructor + */ + domControl_vertices( const domControl_vertices &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domControl_vertices &operator=( const domControl_vertices &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: // Attribute + domBool attrClosed; + +protected: // Elements +/** + * The mesh element must contain one or more source elements. @see domSource + */ + domSource_Array elemSource_array; +/** + * The control vertices element must occur exactly one time. It is used + * to describe the CVs of the spline. @see domControl_vertices + */ + domControl_verticesRef elemControl_vertices; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the closed attribute. + * @return Returns a domBool of the closed attribute. + */ + domBool getClosed() const { return attrClosed; } + /** + * Sets the closed attribute. + * @param atClosed The new value for the closed attribute. + */ + void setClosed( domBool atClosed ) { attrClosed = atClosed; } + + /** + * Gets the source element array. + * @return Returns a reference to the array of source elements. + */ + domSource_Array &getSource_array() { return elemSource_array; } + /** + * Gets the source element array. + * @return Returns a constant reference to the array of source elements. + */ + const domSource_Array &getSource_array() const { return elemSource_array; } + /** + * Gets the control_vertices element. + * @return a daeSmartRef to the control_vertices element. + */ + const domControl_verticesRef getControl_vertices() const { return elemControl_vertices; } + /** + * 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; } +protected: + /** + * Constructor + */ + domSpline() : attrClosed(), elemSource_array(), elemControl_vertices(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domSpline() {} + /** + * Copy Constructor + */ + domSpline( const domSpline &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domSpline &operator=( const domSpline &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTapered_capsule.h b/Extras/COLLADA_DOM/include/1.4/dom/domTapered_capsule.h new file mode 100644 index 000000000..3c244920a --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTapered_capsule.h @@ -0,0 +1,336 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domTapered_capsule_h__ +#define __domTapered_capsule_h__ + +#include +#include + +#include + +/** + * A tapered capsule primitive that is centered on, and aligned with, the + * local Y axis. + */ +class domTapered_capsule : public daeElement +{ +public: + class domHeight; + + typedef daeSmartRef domHeightRef; + typedef daeTArray domHeight_Array; + +/** + * A float value that represents the length of the line segment connecting + * the centers of the capping hemispheres. + */ + class domHeight : public daeElement + { + + protected: // Value + /** + * The domFloat value of the text data of this element. + */ + domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFloat of the value. + */ + domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHeight() : _value() {} + /** + * Destructor + */ + virtual ~domHeight() {} + /** + * Copy Constructor + */ + domHeight( const domHeight &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHeight &operator=( const domHeight &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; + }; + + class domRadius1; + + typedef daeSmartRef domRadius1Ref; + typedef daeTArray domRadius1_Array; + +/** + * Two float values that represent the radii of the tapered capsule at the + * positive (height/2) Y value.Both ends of the tapered capsule may be elliptical. + */ + class domRadius1 : public daeElement + { + + protected: // Value + /** + * The domFloat2 value of the text data of this element. + */ + domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat2 reference of the _value array. + */ + domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat2 reference of the _value array. + */ + const domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domRadius1() : _value() {} + /** + * Destructor + */ + virtual ~domRadius1() {} + /** + * Copy Constructor + */ + domRadius1( const domRadius1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRadius1 &operator=( const domRadius1 &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; + }; + + class domRadius2; + + typedef daeSmartRef domRadius2Ref; + typedef daeTArray domRadius2_Array; + +/** + * Two float values that represent the radii of the tapered capsule at the + * negative (height/2) Y value.Both ends of the tapered capsule may be elliptical. + */ + class domRadius2 : public daeElement + { + + protected: // Value + /** + * The domFloat2 value of the text data of this element. + */ + domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat2 reference of the _value array. + */ + domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat2 reference of the _value array. + */ + const domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domRadius2() : _value() {} + /** + * Destructor + */ + virtual ~domRadius2() {} + /** + * Copy Constructor + */ + domRadius2( const domRadius2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRadius2 &operator=( const domRadius2 &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: // Elements +/** + * A float value that represents the length of the line segment connecting + * the centers of the capping hemispheres. @see domHeight + */ + domHeightRef elemHeight; +/** + * Two float values that represent the radii of the tapered capsule at the + * positive (height/2) Y value.Both ends of the tapered capsule may be elliptical. + * @see domRadius1 + */ + domRadius1Ref elemRadius1; +/** + * Two float values that represent the radii of the tapered capsule at the + * negative (height/2) Y value.Both ends of the tapered capsule may be elliptical. + * @see domRadius2 + */ + domRadius2Ref elemRadius2; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the height element. + * @return a daeSmartRef to the height element. + */ + const domHeightRef getHeight() const { return elemHeight; } + /** + * Gets the radius1 element. + * @return a daeSmartRef to the radius1 element. + */ + const domRadius1Ref getRadius1() const { return elemRadius1; } + /** + * Gets the radius2 element. + * @return a daeSmartRef to the radius2 element. + */ + const domRadius2Ref getRadius2() const { return elemRadius2; } + /** + * 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; } +protected: + /** + * Constructor + */ + domTapered_capsule() : elemHeight(), elemRadius1(), elemRadius2(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domTapered_capsule() {} + /** + * Copy Constructor + */ + domTapered_capsule( const domTapered_capsule &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTapered_capsule &operator=( const domTapered_capsule &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTapered_cylinder.h b/Extras/COLLADA_DOM/include/1.4/dom/domTapered_cylinder.h new file mode 100644 index 000000000..1b2a7a734 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTapered_cylinder.h @@ -0,0 +1,336 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domTapered_cylinder_h__ +#define __domTapered_cylinder_h__ + +#include +#include + +#include + +/** + * A tapered cylinder primitive that is centered on and aligned with the local + * Y axis. + */ +class domTapered_cylinder : public daeElement +{ +public: + class domHeight; + + typedef daeSmartRef domHeightRef; + typedef daeTArray domHeight_Array; + +/** + * A float value that represents the length of the cylinder along the Y axis. + */ + class domHeight : public daeElement + { + + protected: // Value + /** + * The domFloat value of the text data of this element. + */ + domFloat _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return a domFloat of the value. + */ + domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFloat val ) { _value = val; } + + protected: + /** + * Constructor + */ + domHeight() : _value() {} + /** + * Destructor + */ + virtual ~domHeight() {} + /** + * Copy Constructor + */ + domHeight( const domHeight &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domHeight &operator=( const domHeight &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; + }; + + class domRadius1; + + typedef daeSmartRef domRadius1Ref; + typedef daeTArray domRadius1_Array; + +/** + * Two float values that represent the radii of the tapered cylinder at the + * positive (height/2) Y value. Both ends of the tapered cylinder may be + * elliptical. + */ + class domRadius1 : public daeElement + { + + protected: // Value + /** + * The domFloat2 value of the text data of this element. + */ + domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat2 reference of the _value array. + */ + domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat2 reference of the _value array. + */ + const domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domRadius1() : _value() {} + /** + * Destructor + */ + virtual ~domRadius1() {} + /** + * Copy Constructor + */ + domRadius1( const domRadius1 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRadius1 &operator=( const domRadius1 &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; + }; + + class domRadius2; + + typedef daeSmartRef domRadius2Ref; + typedef daeTArray domRadius2_Array; + +/** + * Two float values that represent the radii of the tapered cylinder at the + * negative (height/2) Y value.Both ends of the tapered cylinder may be elliptical. + */ + class domRadius2 : public daeElement + { + + protected: // Value + /** + * The domFloat2 value of the text data of this element. + */ + domFloat2 _value; + + public: //Accessors and Mutators + /** + * Gets the _value array. + * @return Returns a domFloat2 reference of the _value array. + */ + domFloat2 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat2 reference of the _value array. + */ + const domFloat2 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat2 &val ) { _value = val; } + + protected: + /** + * Constructor + */ + domRadius2() : _value() {} + /** + * Destructor + */ + virtual ~domRadius2() {} + /** + * Copy Constructor + */ + domRadius2( const domRadius2 &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRadius2 &operator=( const domRadius2 &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: // Elements +/** + * A float value that represents the length of the cylinder along the Y axis. + * @see domHeight + */ + domHeightRef elemHeight; +/** + * Two float values that represent the radii of the tapered cylinder at the + * positive (height/2) Y value. Both ends of the tapered cylinder may be + * elliptical. @see domRadius1 + */ + domRadius1Ref elemRadius1; +/** + * Two float values that represent the radii of the tapered cylinder at the + * negative (height/2) Y value.Both ends of the tapered cylinder may be elliptical. + * @see domRadius2 + */ + domRadius2Ref elemRadius2; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * Gets the height element. + * @return a daeSmartRef to the height element. + */ + const domHeightRef getHeight() const { return elemHeight; } + /** + * Gets the radius1 element. + * @return a daeSmartRef to the radius1 element. + */ + const domRadius1Ref getRadius1() const { return elemRadius1; } + /** + * Gets the radius2 element. + * @return a daeSmartRef to the radius2 element. + */ + const domRadius2Ref getRadius2() const { return elemRadius2; } + /** + * 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; } +protected: + /** + * Constructor + */ + domTapered_cylinder() : elemHeight(), elemRadius1(), elemRadius2(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domTapered_cylinder() {} + /** + * Copy Constructor + */ + domTapered_cylinder( const domTapered_cylinder &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTapered_cylinder &operator=( const domTapered_cylinder &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat.h b/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat.h new file mode 100644 index 000000000..aef7db19b --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat.h @@ -0,0 +1,127 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domTargetableFloat_h__ +#define __domTargetableFloat_h__ + +#include +#include + + +/** + * The TargetableFloat type is used to represent elements which contain a + * single float value which can be targeted for animation. + */ +class domTargetableFloat_complexType +{ +protected: // Attribute +/** + * 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; + +protected: // Value + /** + * The domFloat value of the text data of this element. + */ + domFloat _value; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the value of this element. + * @return a domFloat of the value. + */ + domFloat getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( domFloat val ) { _value = val; } + +protected: + /** + * Constructor + */ + domTargetableFloat_complexType() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domTargetableFloat_complexType() {} + /** + * Copy Constructor + */ + domTargetableFloat_complexType( const domTargetableFloat_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTargetableFloat_complexType &operator=( const domTargetableFloat_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domTargetableFloat_complexType. + */ +class domTargetableFloat : public daeElement, public domTargetableFloat_complexType +{ +protected: + /** + * Constructor + */ + domTargetableFloat() {} + /** + * Destructor + */ + virtual ~domTargetableFloat() {} + /** + * Copy Constructor + */ + domTargetableFloat( const domTargetableFloat &cpy ) : daeElement(), domTargetableFloat_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTargetableFloat &operator=( const domTargetableFloat &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat3.h b/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat3.h new file mode 100644 index 000000000..775527033 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat3.h @@ -0,0 +1,132 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domTargetableFloat3_h__ +#define __domTargetableFloat3_h__ + +#include +#include + + +/** + * The TargetableFloat3 type is used to represent elements which contain a + * float3 value which can be targeted for animation. + */ +class domTargetableFloat3_complexType +{ +protected: // Attribute +/** + * 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; + +protected: // Value + /** + * The domFloat3 value of the text data of this element. + */ + domFloat3 _value; + +public: //Accessors and Mutators + /** + * 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 ) { attrSid = atSid; } + + /** + * Gets the _value array. + * @return Returns a domFloat3 reference of the _value array. + */ + domFloat3 &getValue() { return _value; } + /** + * Gets the _value array. + * @return Returns a constant domFloat3 reference of the _value array. + */ + const domFloat3 &getValue() const { return _value; } + /** + * Sets the _value array. + * @param val The new value for the _value array. + */ + void setValue( const domFloat3 &val ) { _value = val; } + +protected: + /** + * Constructor + */ + domTargetableFloat3_complexType() : attrSid(), _value() {} + /** + * Destructor + */ + virtual ~domTargetableFloat3_complexType() {} + /** + * Copy Constructor + */ + domTargetableFloat3_complexType( const domTargetableFloat3_complexType &cpy ) { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTargetableFloat3_complexType &operator=( const domTargetableFloat3_complexType &cpy ) { (void)cpy; return *this; } +}; + +/** + * An element of type domTargetableFloat3_complexType. + */ +class domTargetableFloat3 : public daeElement, public domTargetableFloat3_complexType +{ +protected: + /** + * Constructor + */ + domTargetableFloat3() {} + /** + * Destructor + */ + virtual ~domTargetableFloat3() {} + /** + * Copy Constructor + */ + domTargetableFloat3( const domTargetableFloat3 &cpy ) : daeElement(), domTargetableFloat3_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTargetableFloat3 &operator=( const domTargetableFloat3 &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTechnique.h b/Extras/COLLADA_DOM/include/1.4/dom/domTechnique.h new file mode 100644 index 000000000..fcff25df5 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTechnique.h @@ -0,0 +1,129 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domTechnique_h__ +#define __domTechnique_h__ + +#include +#include + + +/** + * The technique element declares the information used to process some portion + * of the content. Each technique conforms to an associated profile. Techniques + * generally act as a “switch”. If more than one is present for a particular + * portion of content, on import, one or the other is picked, but usually + * not both. Selection should be based on which profile the importing application + * can support. Techniques contain application data and programs, making them + * assets that can be managed as a unit. + */ +class domTechnique : public daeElement +{ +protected: // Attribute + /** + * This element may specify its own xmlns. + */ + xsAnyURI attrXmlns; +/** + * The profile attribute indicates the type of profile. This is a vendor + * defined character string that indicates the platform or capability target + * for the technique. Required attribute. + */ + xsNMTOKEN attrProfile; + +protected: // Element + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + + +public: //Accessors and Mutators + /** + * Gets the xmlns attribute. + * @return Returns a xsAnyURI reference of the xmlns attribute. + */ + xsAnyURI &getXmlns() { return attrXmlns; } + /** + * Gets the xmlns attribute. + * @return Returns a constant xsAnyURI reference of the xmlns attribute. + */ + const xsAnyURI &getXmlns() const { return attrXmlns; } + /** + * Sets the xmlns attribute. + * @param xmlns The new value for the xmlns attribute. + */ + void setXmlns( const xsAnyURI &xmlns ) { attrXmlns.setURI( xmlns.getURI() ); } + + /** + * Gets the profile attribute. + * @return Returns a xsNMTOKEN of the profile attribute. + */ + xsNMTOKEN getProfile() const { return attrProfile; } + /** + * Sets the profile attribute. + * @param atProfile The new value for the profile attribute. + */ + void setProfile( xsNMTOKEN atProfile ) { attrProfile = atProfile; } + + /** + * 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 + */ + domTechnique() : attrProfile() {} + /** + * Destructor + */ + virtual ~domTechnique() {} + /** + * Copy Constructor + */ + domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTechnique &operator=( const domTechnique &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTranslate.h b/Extras/COLLADA_DOM/include/1.4/dom/domTranslate.h new file mode 100644 index 000000000..4ffe95a9d --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTranslate.h @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domTranslate_h__ +#define __domTranslate_h__ + +#include +#include + +#include + +/** + * The translate element contains a mathematical vector that represents the + * distance along the X, Y and Z-axes. + */ +class domTranslate : public daeElement, public domTargetableFloat3_complexType +{ + +protected: + /** + * Constructor + */ + domTranslate() {} + /** + * Destructor + */ + virtual ~domTranslate() {} + /** + * Copy Constructor + */ + domTranslate( const domTranslate &cpy ) : daeElement(), domTargetableFloat3_complexType() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTranslate &operator=( const domTranslate &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTriangles.h b/Extras/COLLADA_DOM/include/1.4/dom/domTriangles.h new file mode 100644 index 000000000..691c4f1f6 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTriangles.h @@ -0,0 +1,164 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domTriangles_h__ +#define __domTriangles_h__ + +#include +#include + +#include +#include +#include + +/** + * The triangles element provides the information needed to bind vertex attributes + * together and then organize those vertices into individual triangles.Each + * triangle described by the mesh has three vertices. The first triangle + * is formed from the first, second, and third vertices. The second triangle + * is formed from the fourth, fifth, and sixth vertices, and so on. + */ +class domTriangles : public daeElement +{ +protected: // Attributes +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of triangle primitives. Required + * attribute. + */ + domUint attrCount; +/** + * The material attribute declares a symbol for a material. This symbol is + * bound to a material at the time of instantiation. Optional attribute. + * If the material attribute is not specified then the lighting and shading + * results are application defined. + */ + xsNCName attrMaterial; + +protected: // Elements +/** + * The input element may occur any number of times. This input is a local + * input with the offset and set attributes. @see domInput + */ + domInputLocalOffset_Array elemInput_array; +/** + * The triangles element may have any number of p elements. @see domP + */ + domPRef elemP; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the material attribute. + * @return Returns a xsNCName of the material attribute. + */ + xsNCName getMaterial() const { return attrMaterial; } + /** + * Sets the material attribute. + * @param atMaterial The new value for the material attribute. + */ + void setMaterial( xsNCName atMaterial ) { attrMaterial = atMaterial; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocalOffset_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } + /** + * Gets the p element. + * @return a daeSmartRef to the p element. + */ + const domPRef getP() const { return elemP; } + /** + * 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; } +protected: + /** + * Constructor + */ + domTriangles() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domTriangles() {} + /** + * Copy Constructor + */ + domTriangles( const domTriangles &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTriangles &operator=( const domTriangles &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTrifans.h b/Extras/COLLADA_DOM/include/1.4/dom/domTrifans.h new file mode 100644 index 000000000..a1eb9c8ef --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTrifans.h @@ -0,0 +1,169 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domTrifans_h__ +#define __domTrifans_h__ + +#include +#include + +#include +#include +#include + +/** + * The trifans element provides the information needed to bind vertex attributes + * together and then organize those vertices into connected triangles. Each + * triangle described by the mesh has three vertices. The first triangle + * is formed from first, second, and third vertices. Each subsequent triangle + * is formed from the current vertex, reusing the first and the previous vertices. + */ +class domTrifans : public daeElement +{ +protected: // Attributes +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of triangle fan primitives. Required + * attribute. + */ + domUint attrCount; +/** + * The material attribute declares a symbol for a material. This symbol is + * bound to a material at the time of instantiation. If the material attribute + * is not specified then the lighting and shading results are application + * defined. Optional attribute. + */ + xsNCName attrMaterial; + +protected: // Elements +/** + * The input element may occur any number of times. This input is a local + * input with the offset and set attributes. @see domInput + */ + domInputLocalOffset_Array elemInput_array; +/** + * The trifans element may have any number of p elements. @see domP + */ + domP_Array elemP_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the material attribute. + * @return Returns a xsNCName of the material attribute. + */ + xsNCName getMaterial() const { return attrMaterial; } + /** + * Sets the material attribute. + * @param atMaterial The new value for the material attribute. + */ + void setMaterial( xsNCName atMaterial ) { attrMaterial = atMaterial; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocalOffset_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } + /** + * Gets the p element array. + * @return Returns a reference to the array of p elements. + */ + domP_Array &getP_array() { return elemP_array; } + /** + * Gets the p element array. + * @return Returns a constant reference to the array of p elements. + */ + const domP_Array &getP_array() const { return elemP_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; } +protected: + /** + * Constructor + */ + domTrifans() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domTrifans() {} + /** + * Copy Constructor + */ + domTrifans( const domTrifans &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTrifans &operator=( const domTrifans &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTristrips.h b/Extras/COLLADA_DOM/include/1.4/dom/domTristrips.h new file mode 100644 index 000000000..9d88e5fdc --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTristrips.h @@ -0,0 +1,169 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domTristrips_h__ +#define __domTristrips_h__ + +#include +#include + +#include +#include +#include + +/** + * The tristrips element provides the information needed to bind vertex attributes + * together and then organize those vertices into connected triangles. Each + * triangle described by the mesh has three vertices. The first triangle + * is formed from first, second, and third vertices. Each subsequent triangle + * is formed from the current vertex, reusing the previous two vertices. + */ +class domTristrips : public daeElement +{ +protected: // Attributes +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; +/** + * The count attribute indicates the number of triangle strip primitives. + * Required attribute. + */ + domUint attrCount; +/** + * The material attribute declares a symbol for a material. This symbol is + * bound to a material at the time of instantiation. If the material attribute + * is not specified then the lighting and shading results are application + * defined. Optional attribute. + */ + xsNCName attrMaterial; + +protected: // Elements +/** + * The input element may occur any number of times. This input is a local + * input with the offset and set attributes. @see domInput + */ + domInputLocalOffset_Array elemInput_array; +/** + * The tristrips element may have any number of p elements. @see domP + */ + domP_Array elemP_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * Gets the count attribute. + * @return Returns a domUint of the count attribute. + */ + domUint getCount() const { return attrCount; } + /** + * Sets the count attribute. + * @param atCount The new value for the count attribute. + */ + void setCount( domUint atCount ) { attrCount = atCount; } + + /** + * Gets the material attribute. + * @return Returns a xsNCName of the material attribute. + */ + xsNCName getMaterial() const { return attrMaterial; } + /** + * Sets the material attribute. + * @param atMaterial The new value for the material attribute. + */ + void setMaterial( xsNCName atMaterial ) { attrMaterial = atMaterial; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocalOffset_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } + /** + * Gets the p element array. + * @return Returns a reference to the array of p elements. + */ + domP_Array &getP_array() { return elemP_array; } + /** + * Gets the p element array. + * @return Returns a constant reference to the array of p elements. + */ + const domP_Array &getP_array() const { return elemP_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; } +protected: + /** + * Constructor + */ + domTristrips() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domTristrips() {} + /** + * Copy Constructor + */ + domTristrips( const domTristrips &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domTristrips &operator=( const domTristrips &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTypes.h b/Extras/COLLADA_DOM/include/1.4/dom/domTypes.h new file mode 100644 index 000000000..99690adb6 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domTypes.h @@ -0,0 +1,661 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DOM_TYPES_H__ +#define __DOM_TYPES_H__ + +#include + +// Register all types +extern void registerDomTypes(); + +typedef xsBoolean domBool; +typedef xsDateTime domDateTime; +typedef xsDouble domFloat; +typedef xsLong domInt; +typedef xsName domName; +typedef xsString domString; +typedef xsToken domToken; +typedef xsUnsignedLong domUint; +typedef daeTArray domListOfBools; +typedef daeTArray domListOfFloats; +typedef xsHexBinaryArray domListOfHexBinary; +typedef daeTArray domListOfInts; +typedef daeTArray domListOfNames; +typedef daeTArray domListOfTokens; +typedef daeTArray domListOfUInts; +typedef domListOfBools domBool2; +typedef domListOfBools domBool3; +typedef domListOfBools domBool4; +typedef domListOfFloats domFloat2; +typedef domListOfFloats domFloat3; +typedef domListOfFloats domFloat4; +typedef domListOfFloats domFloat7; +typedef domListOfFloats domFloat2x2; +typedef domListOfFloats domFloat3x3; +typedef domListOfFloats domFloat4x4; +typedef domListOfFloats domFloat2x3; +typedef domListOfFloats domFloat2x4; +typedef domListOfFloats domFloat3x2; +typedef domListOfFloats domFloat3x4; +typedef domListOfFloats domFloat4x2; +typedef domListOfFloats domFloat4x3; +typedef domListOfInts domInt2; +typedef domListOfInts domInt3; +typedef domListOfInts domInt4; +typedef domListOfInts domInt2x2; +typedef domListOfInts domInt3x3; +typedef domListOfInts domInt4x4; +/** + * This type is used for URI reference which can only reference a resource + * declared within it's same document. + */ +typedef xsAnyURI domURIFragmentType; +typedef domFloat4 domFx_color_common; +typedef xsString domFx_draw_common; +typedef xsNonNegativeInteger domGL_MAX_LIGHTS_index; +typedef xsNonNegativeInteger domGL_MAX_CLIP_PLANES_index; +typedef xsNonNegativeInteger domGL_MAX_TEXTURE_IMAGE_UNITS_index; +typedef xsFloat domGl_alpha_value_type; +typedef xsFloat domGlsl_float; +typedef xsInt domGlsl_int; +typedef xsBoolean domGlsl_bool; +typedef daeTArray domGlsl_ListOfBool; +typedef daeTArray domGlsl_ListOfFloat; +typedef daeTArray domGlsl_ListOfInt; +typedef domGlsl_ListOfBool domGlsl_bool2; +typedef domGlsl_ListOfBool domGlsl_bool3; +typedef domGlsl_ListOfBool domGlsl_bool4; +typedef domGlsl_ListOfFloat domGlsl_float2; +typedef domGlsl_ListOfFloat domGlsl_float3; +typedef domGlsl_ListOfFloat domGlsl_float4; +typedef domGlsl_ListOfFloat domGlsl_float2x2; +typedef domGlsl_ListOfFloat domGlsl_float3x3; +typedef domGlsl_ListOfFloat domGlsl_float4x4; +typedef domGlsl_ListOfInt domGlsl_int2; +typedef domGlsl_ListOfInt domGlsl_int3; +typedef domGlsl_ListOfInt domGlsl_int4; +typedef xsString domGlsl_identifier; +typedef xsBoolean domCg_bool; +typedef xsFloat domCg_float; +typedef xsInt domCg_int; +typedef xsFloat domCg_half; +typedef xsFloat domCg_fixed; +typedef xsBoolean domCg_bool1; +typedef xsFloat domCg_float1; +typedef xsInt domCg_int1; +typedef xsFloat domCg_half1; +typedef xsFloat domCg_fixed1; +typedef daeTArray domCg_ListOfBool; +typedef daeTArray domCg_ListOfFloat; +typedef daeTArray domCg_ListOfInt; +typedef daeTArray domCg_ListOfHalf; +typedef daeTArray domCg_ListOfFixed; +typedef domCg_ListOfBool domCg_bool2; +typedef domCg_ListOfBool domCg_bool3; +typedef domCg_ListOfBool domCg_bool4; +typedef domCg_ListOfBool domCg_bool1x1; +typedef domCg_ListOfBool domCg_bool1x2; +typedef domCg_ListOfBool domCg_bool1x3; +typedef domCg_ListOfBool domCg_bool1x4; +typedef domCg_ListOfBool domCg_bool2x1; +typedef domCg_ListOfBool domCg_bool2x2; +typedef domCg_ListOfBool domCg_bool2x3; +typedef domCg_ListOfBool domCg_bool2x4; +typedef domCg_ListOfBool domCg_bool3x1; +typedef domCg_ListOfBool domCg_bool3x2; +typedef domCg_ListOfBool domCg_bool3x3; +typedef domCg_ListOfBool domCg_bool3x4; +typedef domCg_ListOfBool domCg_bool4x1; +typedef domCg_ListOfBool domCg_bool4x2; +typedef domCg_ListOfBool domCg_bool4x3; +typedef domCg_ListOfBool domCg_bool4x4; +typedef domCg_ListOfFloat domCg_float2; +typedef domCg_ListOfFloat domCg_float3; +typedef domCg_ListOfFloat domCg_float4; +typedef domCg_ListOfFloat domCg_float1x1; +typedef domCg_ListOfFloat domCg_float1x2; +typedef domCg_ListOfFloat domCg_float1x3; +typedef domCg_ListOfFloat domCg_float1x4; +typedef domCg_ListOfFloat domCg_float2x1; +typedef domCg_ListOfFloat domCg_float2x2; +typedef domCg_ListOfFloat domCg_float2x3; +typedef domCg_ListOfFloat domCg_float2x4; +typedef domCg_ListOfFloat domCg_float3x1; +typedef domCg_ListOfFloat domCg_float3x2; +typedef domCg_ListOfFloat domCg_float3x3; +typedef domCg_ListOfFloat domCg_float3x4; +typedef domCg_ListOfFloat domCg_float4x1; +typedef domCg_ListOfFloat domCg_float4x2; +typedef domCg_ListOfFloat domCg_float4x3; +typedef domCg_ListOfFloat domCg_float4x4; +typedef domCg_ListOfInt domCg_int2; +typedef domCg_ListOfInt domCg_int3; +typedef domCg_ListOfInt domCg_int4; +typedef domCg_ListOfInt domCg_int1x1; +typedef domCg_ListOfInt domCg_int1x2; +typedef domCg_ListOfInt domCg_int1x3; +typedef domCg_ListOfInt domCg_int1x4; +typedef domCg_ListOfInt domCg_int2x1; +typedef domCg_ListOfInt domCg_int2x2; +typedef domCg_ListOfInt domCg_int2x3; +typedef domCg_ListOfInt domCg_int2x4; +typedef domCg_ListOfInt domCg_int3x1; +typedef domCg_ListOfInt domCg_int3x2; +typedef domCg_ListOfInt domCg_int3x3; +typedef domCg_ListOfInt domCg_int3x4; +typedef domCg_ListOfInt domCg_int4x1; +typedef domCg_ListOfInt domCg_int4x2; +typedef domCg_ListOfInt domCg_int4x3; +typedef domCg_ListOfInt domCg_int4x4; +typedef domCg_ListOfHalf domCg_half2; +typedef domCg_ListOfHalf domCg_half3; +typedef domCg_ListOfHalf domCg_half4; +typedef domCg_ListOfHalf domCg_half1x1; +typedef domCg_ListOfHalf domCg_half1x2; +typedef domCg_ListOfHalf domCg_half1x3; +typedef domCg_ListOfHalf domCg_half1x4; +typedef domCg_ListOfHalf domCg_half2x1; +typedef domCg_ListOfHalf domCg_half2x2; +typedef domCg_ListOfHalf domCg_half2x3; +typedef domCg_ListOfHalf domCg_half2x4; +typedef domCg_ListOfHalf domCg_half3x1; +typedef domCg_ListOfHalf domCg_half3x2; +typedef domCg_ListOfHalf domCg_half3x3; +typedef domCg_ListOfHalf domCg_half3x4; +typedef domCg_ListOfHalf domCg_half4x1; +typedef domCg_ListOfHalf domCg_half4x2; +typedef domCg_ListOfHalf domCg_half4x3; +typedef domCg_ListOfHalf domCg_half4x4; +typedef domCg_ListOfFixed domCg_fixed2; +typedef domCg_ListOfFixed domCg_fixed3; +typedef domCg_ListOfFixed domCg_fixed4; +typedef domCg_ListOfFixed domCg_fixed1x1; +typedef domCg_ListOfFixed domCg_fixed1x2; +typedef domCg_ListOfFixed domCg_fixed1x3; +typedef domCg_ListOfFixed domCg_fixed1x4; +typedef domCg_ListOfFixed domCg_fixed2x1; +typedef domCg_ListOfFixed domCg_fixed2x2; +typedef domCg_ListOfFixed domCg_fixed2x3; +typedef domCg_ListOfFixed domCg_fixed2x4; +typedef domCg_ListOfFixed domCg_fixed3x1; +typedef domCg_ListOfFixed domCg_fixed3x2; +typedef domCg_ListOfFixed domCg_fixed3x3; +typedef domCg_ListOfFixed domCg_fixed3x4; +typedef domCg_ListOfFixed domCg_fixed4x1; +typedef domCg_ListOfFixed domCg_fixed4x2; +typedef domCg_ListOfFixed domCg_fixed4x3; +typedef domCg_ListOfFixed domCg_fixed4x4; +typedef xsString domCg_identifier; +typedef xsNonNegativeInteger domGLES_MAX_LIGHTS_index; +typedef xsNonNegativeInteger domGLES_MAX_CLIP_PLANES_index; +typedef xsNonNegativeInteger domGLES_MAX_TEXTURE_COORDS_index; +typedef xsNonNegativeInteger domGLES_MAX_TEXTURE_IMAGE_UNITS_index; +typedef xsNonNegativeInteger domGles_texcombiner_argument_index_type; +typedef xsNCName domGles_rendertarget_common; + +/** + * An enumuerated type specifying the acceptable morph methods. + */ +enum domMorphMethodType { + MORPHMETHODTYPE_NORMALIZED, + MORPHMETHODTYPE_RELATIVE, + MORPHMETHODTYPE_COUNT = 2 +}; + +/** + * An enumerated type specifying the acceptable node types. + */ +enum domNodeType { + NODETYPE_JOINT, + NODETYPE_NODE, + NODETYPE_COUNT = 2 +}; + +/** + * An enumerated type specifying the acceptable up-axis values. + */ +enum domUpAxisType { + UPAXISTYPE_X_UP, + UPAXISTYPE_Y_UP, + UPAXISTYPE_Z_UP, + UPAXISTYPE_COUNT = 3 +}; + +/** + * An enumerated type specifying the acceptable document versions. + */ +enum domVersionType { + VERSIONTYPE_1_4_0, + VERSIONTYPE_COUNT = 1 +}; + +enum domFx_surface_type_enum { + FX_SURFACE_TYPE_ENUM_UNTYPED, + FX_SURFACE_TYPE_ENUM_1D, + FX_SURFACE_TYPE_ENUM_2D, + FX_SURFACE_TYPE_ENUM_3D, + FX_SURFACE_TYPE_ENUM_RECT, + FX_SURFACE_TYPE_ENUM_CUBE, + FX_SURFACE_TYPE_ENUM_DEPTH, + FX_SURFACE_TYPE_ENUM_COUNT = 7 +}; + +enum domFx_surface_face_enum { + FX_SURFACE_FACE_ENUM_POSITIVE_X, + FX_SURFACE_FACE_ENUM_NEGATIVE_X, + FX_SURFACE_FACE_ENUM_POSITIVE_Y, + FX_SURFACE_FACE_ENUM_NEGATIVE_Y, + FX_SURFACE_FACE_ENUM_POSITIVE_Z, + FX_SURFACE_FACE_ENUM_NEGATIVE_Z, + FX_SURFACE_FACE_ENUM_COUNT = 6 +}; + +enum domFx_sampler_wrap_common { + FX_SAMPLER_WRAP_COMMON_NONE, + FX_SAMPLER_WRAP_COMMON_WRAP, + FX_SAMPLER_WRAP_COMMON_MIRROR, + FX_SAMPLER_WRAP_COMMON_CLAMP, + FX_SAMPLER_WRAP_COMMON_BORDER, + FX_SAMPLER_WRAP_COMMON_COUNT = 5 +}; + +enum domFx_sampler_filter_common { + FX_SAMPLER_FILTER_COMMON_NONE, + FX_SAMPLER_FILTER_COMMON_NEAREST, + FX_SAMPLER_FILTER_COMMON_LINEAR, + FX_SAMPLER_FILTER_COMMON_NEAREST_MIPMAP_NEAREST, + FX_SAMPLER_FILTER_COMMON_LINEAR_MIPMAP_NEAREST, + FX_SAMPLER_FILTER_COMMON_NEAREST_MIPMAP_LINEAR, + FX_SAMPLER_FILTER_COMMON_LINEAR_MIPMAP_LINEAR, + FX_SAMPLER_FILTER_COMMON_COUNT = 7 +}; + +enum domFx_modifier_enum_common { + FX_MODIFIER_ENUM_COMMON_CONST, + FX_MODIFIER_ENUM_COMMON_UNIFORM, + FX_MODIFIER_ENUM_COMMON_VARYING, + FX_MODIFIER_ENUM_COMMON_STATIC, + FX_MODIFIER_ENUM_COMMON_VOLATILE, + FX_MODIFIER_ENUM_COMMON_EXTERN, + FX_MODIFIER_ENUM_COMMON_SHARED, + FX_MODIFIER_ENUM_COMMON_COUNT = 7 +}; + +enum domFx_pipeline_stage_common { + FX_PIPELINE_STAGE_COMMON_VERTEXPROGRAM, + FX_PIPELINE_STAGE_COMMON_FRAGMENTPROGRAM, + FX_PIPELINE_STAGE_COMMON_VERTEXSHADER, + FX_PIPELINE_STAGE_COMMON_PIXELSHADER, + FX_PIPELINE_STAGE_COMMON_COUNT = 4 +}; + +enum domGl_blend_type { + GL_BLEND_TYPE_ZERO = 0x0, + GL_BLEND_TYPE_ONE = 0x1, + GL_BLEND_TYPE_SRC_COLOR = 0x0300, + GL_BLEND_TYPE_ONE_MINUS_SRC_COLOR = 0x0301, + GL_BLEND_TYPE_DEST_COLOR = 0x0306, + GL_BLEND_TYPE_ONE_MINUS_DEST_COLOR = 0x0307, + GL_BLEND_TYPE_SRC_ALPHA = 0x0302, + GL_BLEND_TYPE_ONE_MINUS_SRC_ALPHA = 0x0303, + GL_BLEND_TYPE_DST_ALPHA = 0x0304, + GL_BLEND_TYPE_ONE_MINUS_DST_ALPHA = 0x0305, + GL_BLEND_TYPE_CONSTANT_COLOR = 0x8001, + GL_BLEND_TYPE_ONE_MINUS_CONSTANT_COLOR = 0x8002, + GL_BLEND_TYPE_CONSTANT_ALPHA = 0x8003, + GL_BLEND_TYPE_ONE_MINUS_CONSTANT_ALPHA = 0x8004, + GL_BLEND_TYPE_SRC_ALPHA_SATURATE = 0x0308, + GL_BLEND_TYPE_COUNT = 15 +}; + +enum domGl_face_type { + GL_FACE_TYPE_FRONT = 0x0404, + GL_FACE_TYPE_BACK = 0x0405, + GL_FACE_TYPE_FRONT_AND_BACK = 0x0408, + GL_FACE_TYPE_COUNT = 3 +}; + +enum domGl_blend_equation_type { + GL_BLEND_EQUATION_TYPE_FUNC_ADD = 0x8006, + GL_BLEND_EQUATION_TYPE_FUNC_SUBTRACT = 0x800A, + GL_BLEND_EQUATION_TYPE_FUNC_REVERSE_SUBTRACT = 0x800B, + GL_BLEND_EQUATION_TYPE_MIN = 0x8007, + GL_BLEND_EQUATION_TYPE_MAX = 0x8008, + GL_BLEND_EQUATION_TYPE_COUNT = 5 +}; + +enum domGl_func_type { + GL_FUNC_TYPE_NEVER = 0x0200, + GL_FUNC_TYPE_LESS = 0x0201, + GL_FUNC_TYPE_LEQUAL = 0x0203, + GL_FUNC_TYPE_EQUAL = 0x0202, + GL_FUNC_TYPE_GREATER = 0x0204, + GL_FUNC_TYPE_NOTEQUAL = 0x0205, + GL_FUNC_TYPE_GEQUAL = 0x0206, + GL_FUNC_TYPE_ALWAYS = 0x0207, + GL_FUNC_TYPE_COUNT = 8 +}; + +enum domGl_stencil_op_type { + GL_STENCIL_OP_TYPE_KEEP = 0x1E00, + GL_STENCIL_OP_TYPE_ZERO = 0x0, + GL_STENCIL_OP_TYPE_REPLACE = 0x1E01, + GL_STENCIL_OP_TYPE_INCR = 0x1E02, + GL_STENCIL_OP_TYPE_DECR = 0x1E03, + GL_STENCIL_OP_TYPE_INVERT = 0x150A, + GL_STENCIL_OP_TYPE_INCR_WRAP = 0x8507, + GL_STENCIL_OP_TYPE_DECR_WRAP = 0x8508, + GL_STENCIL_OP_TYPE_COUNT = 8 +}; + +enum domGl_material_type { + GL_MATERIAL_TYPE_EMISSION = 0x1600, + GL_MATERIAL_TYPE_AMBIENT = 0x1200, + GL_MATERIAL_TYPE_DIFFUSE = 0x1201, + GL_MATERIAL_TYPE_SPECULAR = 0x1202, + GL_MATERIAL_TYPE_AMBIENT_AND_DIFFUSE = 0x1602, + GL_MATERIAL_TYPE_COUNT = 5 +}; + +enum domGl_fog_type { + GL_FOG_TYPE_LINEAR = 0x2601, + GL_FOG_TYPE_EXP = 0x0800, + GL_FOG_TYPE_EXP2 = 0x0801, + GL_FOG_TYPE_COUNT = 3 +}; + +enum domGl_fog_coord_src_type { + GL_FOG_COORD_SRC_TYPE_FOG_COORDINATE = 0x8451, + GL_FOG_COORD_SRC_TYPE_FRAGMENT_DEPTH = 0x8452, + GL_FOG_COORD_SRC_TYPE_COUNT = 2 +}; + +enum domGl_front_face_type { + GL_FRONT_FACE_TYPE_CW = 0x0900, + GL_FRONT_FACE_TYPE_CCW = 0x0901, + GL_FRONT_FACE_TYPE_COUNT = 2 +}; + +enum domGl_light_model_color_control_type { + GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_SINGLE_COLOR = 0x81F9, + GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_SEPARATE_SPECULAR_COLOR = 0x81FA, + GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_COUNT = 2 +}; + +enum domGl_logic_op_type { + GL_LOGIC_OP_TYPE_CLEAR = 0x1500, + GL_LOGIC_OP_TYPE_AND = 0x1501, + GL_LOGIC_OP_TYPE_AND_REVERSE = 0x1502, + GL_LOGIC_OP_TYPE_COPY = 0x1503, + GL_LOGIC_OP_TYPE_AND_INVERTED = 0x1504, + GL_LOGIC_OP_TYPE_NOOP = 0x1505, + GL_LOGIC_OP_TYPE_XOR = 0x1506, + GL_LOGIC_OP_TYPE_OR = 0x1507, + GL_LOGIC_OP_TYPE_NOR = 0x1508, + GL_LOGIC_OP_TYPE_EQUIV = 0x1509, + GL_LOGIC_OP_TYPE_INVERT = 0x150A, + GL_LOGIC_OP_TYPE_OR_REVERSE = 0x150B, + GL_LOGIC_OP_TYPE_COPY_INVERTED = 0x150C, + GL_LOGIC_OP_TYPE_NAND = 0x150E, + GL_LOGIC_OP_TYPE_SET = 0x150F, + GL_LOGIC_OP_TYPE_COUNT = 15 +}; + +enum domGl_polygon_mode_type { + GL_POLYGON_MODE_TYPE_POINT = 0x1B00, + GL_POLYGON_MODE_TYPE_LINE = 0x1B01, + GL_POLYGON_MODE_TYPE_FILL = 0x1B02, + GL_POLYGON_MODE_TYPE_COUNT = 3 +}; + +enum domGl_shade_model_type { + GL_SHADE_MODEL_TYPE_FLAT = 0x1D00, + GL_SHADE_MODEL_TYPE_SMOOTH = 0x1D01, + GL_SHADE_MODEL_TYPE_COUNT = 2 +}; + +enum domGlsl_pipeline_stage { + GLSL_PIPELINE_STAGE_VERTEXPROGRAM, + GLSL_PIPELINE_STAGE_FRAGMENTPROGRAM, + GLSL_PIPELINE_STAGE_COUNT = 2 +}; + +enum domCg_pipeline_stage { + CG_PIPELINE_STAGE_VERTEX, + CG_PIPELINE_STAGE_FRAGMENT, + CG_PIPELINE_STAGE_COUNT = 2 +}; + +enum domGles_texenv_mode_enums { + GLES_TEXENV_MODE_ENUMS_REPLACE = 0x1E01, + GLES_TEXENV_MODE_ENUMS_MODULATE = 0x2100, + GLES_TEXENV_MODE_ENUMS_DECAL = 0x2101, + GLES_TEXENV_MODE_ENUMS_BLEND = 0x0BE2, + GLES_TEXENV_MODE_ENUMS_ADD = 0x0104, + GLES_TEXENV_MODE_ENUMS_COUNT = 5 +}; + +enum domGles_texcombiner_operatorRGB_enums { + GLES_TEXCOMBINER_OPERATORRGB_ENUMS_REPLACE = 0x1E01, + GLES_TEXCOMBINER_OPERATORRGB_ENUMS_MODULATE = 0x2100, + GLES_TEXCOMBINER_OPERATORRGB_ENUMS_ADD = 0x0104, + GLES_TEXCOMBINER_OPERATORRGB_ENUMS_ADD_SIGNED = 0x8574, + GLES_TEXCOMBINER_OPERATORRGB_ENUMS_INTERPOLATE = 0x8575, + GLES_TEXCOMBINER_OPERATORRGB_ENUMS_SUBTRACT = 0x84E7, + GLES_TEXCOMBINER_OPERATORRGB_ENUMS_DOT3_RGB = 0x86AE, + GLES_TEXCOMBINER_OPERATORRGB_ENUMS_DOT3_RGBA = 0x86AF, + GLES_TEXCOMBINER_OPERATORRGB_ENUMS_COUNT = 8 +}; + +enum domGles_texcombiner_operatorAlpha_enums { + GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_REPLACE = 0x1E01, + GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_MODULATE = 0x2100, + GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_ADD = 0x0104, + GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_ADD_SIGNED = 0x8574, + GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_INTERPOLATE = 0x8575, + GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_SUBTRACT = 0x84E7, + GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_COUNT = 6 +}; + +enum domGles_texcombiner_source_enums { + GLES_TEXCOMBINER_SOURCE_ENUMS_TEXTURE = 0x1702, + GLES_TEXCOMBINER_SOURCE_ENUMS_CONSTANT = 0x8576, + GLES_TEXCOMBINER_SOURCE_ENUMS_PRIMARY = 0x8577, + GLES_TEXCOMBINER_SOURCE_ENUMS_PREVIOUS = 0x8578, + GLES_TEXCOMBINER_SOURCE_ENUMS_COUNT = 4 +}; + +enum domGles_texcombiner_operandRGB_enums { + GLES_TEXCOMBINER_OPERANDRGB_ENUMS_SRC_COLOR = 0x0300, + GLES_TEXCOMBINER_OPERANDRGB_ENUMS_ONE_MINUS_SRC_COLOR = 0x0301, + GLES_TEXCOMBINER_OPERANDRGB_ENUMS_SRC_ALPHA = 0x0302, + GLES_TEXCOMBINER_OPERANDRGB_ENUMS_ONE_MINUS_SRC_ALPHA = 0x0303, + GLES_TEXCOMBINER_OPERANDRGB_ENUMS_COUNT = 4 +}; + +enum domGles_texcombiner_operandAlpha_enums { + GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_SRC_ALPHA = 0x0302, + GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_ONE_MINUS_SRC_ALPHA = 0x0303, + GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_COUNT = 2 +}; + +enum domGles_sampler_wrap { + GLES_SAMPLER_WRAP_REPEAT, + GLES_SAMPLER_WRAP_CLAMP, + GLES_SAMPLER_WRAP_CLAMP_TO_EDGE, + GLES_SAMPLER_WRAP_MIRRORED_REPEAT, /**< supported by GLES 1.1 only */ + GLES_SAMPLER_WRAP_COUNT = 4 +}; + +enum domGles_stencil_op_type { + GLES_STENCIL_OP_TYPE_KEEP = 0x1E00, + GLES_STENCIL_OP_TYPE_ZERO = 0x0, + GLES_STENCIL_OP_TYPE_REPLACE = 0x1E01, + GLES_STENCIL_OP_TYPE_INCR = 0x1E02, + GLES_STENCIL_OP_TYPE_DECR = 0x1E03, + GLES_STENCIL_OP_TYPE_INVERT = 0x150A, + GLES_STENCIL_OP_TYPE_COUNT = 6 +}; + +enum domSpringType { + SPRINGTYPE_LINEAR, + SPRINGTYPE_ANGULAR, + SPRINGTYPE_COUNT = 2 +}; + +enum domGl_enumeration { + GL_ENUMERATION_ZERO = 0x0, + GL_ENUMERATION_ONE = 0x1, + GL_ENUMERATION_SRC_COLOR = 0x0300, + GL_ENUMERATION_ONE_MINUS_SRC_COLOR = 0x0301, + GL_ENUMERATION_DEST_COLOR = 0x0306, + GL_ENUMERATION_ONE_MINUS_DEST_COLOR = 0x0307, + GL_ENUMERATION_SRC_ALPHA = 0x0302, + GL_ENUMERATION_ONE_MINUS_SRC_ALPHA = 0x0303, + GL_ENUMERATION_DST_ALPHA = 0x0304, + GL_ENUMERATION_ONE_MINUS_DST_ALPHA = 0x0305, + GL_ENUMERATION_CONSTANT_COLOR = 0x8001, + GL_ENUMERATION_ONE_MINUS_CONSTANT_COLOR = 0x8002, + GL_ENUMERATION_CONSTANT_ALPHA = 0x8003, + GL_ENUMERATION_ONE_MINUS_CONSTANT_ALPHA = 0x8004, + GL_ENUMERATION_SRC_ALPHA_SATURATE = 0x0308, + GL_ENUMERATION_FRONT = 0x0404, + GL_ENUMERATION_BACK = 0x0405, + GL_ENUMERATION_FRONT_AND_BACK = 0x0408, + GL_ENUMERATION_FUNC_ADD = 0x8006, + GL_ENUMERATION_FUNC_SUBTRACT = 0x800A, + GL_ENUMERATION_FUNC_REVERSE_SUBTRACT = 0x800B, + GL_ENUMERATION_MIN = 0x8007, + GL_ENUMERATION_MAX = 0x8008, + GL_ENUMERATION_NEVER = 0x0200, + GL_ENUMERATION_LESS = 0x0201, + GL_ENUMERATION_LEQUAL = 0x0203, + GL_ENUMERATION_EQUAL = 0x0202, + GL_ENUMERATION_GREATER = 0x0204, + GL_ENUMERATION_NOTEQUAL = 0x0205, + GL_ENUMERATION_GEQUAL = 0x0206, + GL_ENUMERATION_ALWAYS = 0x0207, + GL_ENUMERATION_KEEP = 0x1E00, + GL_ENUMERATION_REPLACE = 0x1E01, + GL_ENUMERATION_INCR = 0x1E02, + GL_ENUMERATION_DECR = 0x1E03, + GL_ENUMERATION_INVERT = 0x150A, + GL_ENUMERATION_INCR_WRAP = 0x8507, + GL_ENUMERATION_DECR_WRAP = 0x8508, + GL_ENUMERATION_EMISSION = 0x1600, + GL_ENUMERATION_AMBIENT = 0x1200, + GL_ENUMERATION_DIFFUSE = 0x1201, + GL_ENUMERATION_SPECULAR = 0x1202, + GL_ENUMERATION_AMBIENT_AND_DIFFUSE = 0x1602, + GL_ENUMERATION_LINEAR = 0x2601, + GL_ENUMERATION_EXP = 0x0800, + GL_ENUMERATION_EXP2 = 0x0801, + GL_ENUMERATION_FOG_COORDINATE = 0x8451, + GL_ENUMERATION_FRAGMENT_DEPTH = 0x8452, + GL_ENUMERATION_CW = 0x0900, + GL_ENUMERATION_CCW = 0x0901, + GL_ENUMERATION_SINGLE_COLOR = 0x81F9, + GL_ENUMERATION_SEPARATE_SPECULAR_COLOR = 0x81FA, + GL_ENUMERATION_CLEAR = 0x1500, + GL_ENUMERATION_AND = 0x1501, + GL_ENUMERATION_AND_REVERSE = 0x1502, + GL_ENUMERATION_COPY = 0x1503, + GL_ENUMERATION_AND_INVERTED = 0x1504, + GL_ENUMERATION_NOOP = 0x1505, + GL_ENUMERATION_XOR = 0x1506, + GL_ENUMERATION_OR = 0x1507, + GL_ENUMERATION_NOR = 0x1508, + GL_ENUMERATION_EQUIV = 0x1509, + GL_ENUMERATION_OR_REVERSE = 0x150B, + GL_ENUMERATION_COPY_INVERTED = 0x150C, + GL_ENUMERATION_NAND = 0x150E, + GL_ENUMERATION_SET = 0x150F, + GL_ENUMERATION_POINT = 0x1B00, + GL_ENUMERATION_LINE = 0x1B01, + GL_ENUMERATION_FILL = 0x1B02, + GL_ENUMERATION_FLAT = 0x1D00, + GL_ENUMERATION_SMOOTH = 0x1D01, + GL_ENUMERATION_COUNT = 72 +}; + +enum domGles_enumeration { + GLES_ENUMERATION_ZERO = 0x0, + GLES_ENUMERATION_ONE = 0x1, + GLES_ENUMERATION_SRC_COLOR = 0x0300, + GLES_ENUMERATION_ONE_MINUS_SRC_COLOR = 0x0301, + GLES_ENUMERATION_DEST_COLOR = 0x0306, + GLES_ENUMERATION_ONE_MINUS_DEST_COLOR = 0x0307, + GLES_ENUMERATION_SRC_ALPHA = 0x0302, + GLES_ENUMERATION_ONE_MINUS_SRC_ALPHA = 0x0303, + GLES_ENUMERATION_DST_ALPHA = 0x0304, + GLES_ENUMERATION_ONE_MINUS_DST_ALPHA = 0x0305, + GLES_ENUMERATION_CONSTANT_COLOR = 0x8001, + GLES_ENUMERATION_ONE_MINUS_CONSTANT_COLOR = 0x8002, + GLES_ENUMERATION_CONSTANT_ALPHA = 0x8003, + GLES_ENUMERATION_ONE_MINUS_CONSTANT_ALPHA = 0x8004, + GLES_ENUMERATION_SRC_ALPHA_SATURATE = 0x0308, + GLES_ENUMERATION_FRONT = 0x0404, + GLES_ENUMERATION_BACK = 0x0405, + GLES_ENUMERATION_FRONT_AND_BACK = 0x0408, + GLES_ENUMERATION_NEVER = 0x0200, + GLES_ENUMERATION_LESS = 0x0201, + GLES_ENUMERATION_LEQUAL = 0x0203, + GLES_ENUMERATION_EQUAL = 0x0202, + GLES_ENUMERATION_GREATER = 0x0204, + GLES_ENUMERATION_NOTEQUAL = 0x0205, + GLES_ENUMERATION_GEQUAL = 0x0206, + GLES_ENUMERATION_ALWAYS = 0x0207, + GLES_ENUMERATION_KEEP = 0x1E00, + GLES_ENUMERATION_REPLACE = 0x1E01, + GLES_ENUMERATION_INCR = 0x1E02, + GLES_ENUMERATION_DECR = 0x1E03, + GLES_ENUMERATION_INVERT = 0x150A, + GLES_ENUMERATION_INCR_WRAP = 0x8507, + GLES_ENUMERATION_DECR_WRAP = 0x8508, + GLES_ENUMERATION_EMISSION = 0x1600, + GLES_ENUMERATION_AMBIENT = 0x1200, + GLES_ENUMERATION_DIFFUSE = 0x1201, + GLES_ENUMERATION_SPECULAR = 0x1202, + GLES_ENUMERATION_AMBIENT_AND_DIFFUSE = 0x1602, + GLES_ENUMERATION_LINEAR = 0x2601, + GLES_ENUMERATION_EXP = 0x0800, + GLES_ENUMERATION_EXP2 = 0x0801, + GLES_ENUMERATION_CW = 0x0900, + GLES_ENUMERATION_CCW = 0x0901, + GLES_ENUMERATION_SINGLE_COLOR = 0x81F9, + GLES_ENUMERATION_SEPARATE_SPECULAR_COLOR = 0x81FA, + GLES_ENUMERATION_CLEAR = 0x1500, + GLES_ENUMERATION_AND = 0x1501, + GLES_ENUMERATION_AND_REVERSE = 0x1502, + GLES_ENUMERATION_COPY = 0x1503, + GLES_ENUMERATION_AND_INVERTED = 0x1504, + GLES_ENUMERATION_NOOP = 0x1505, + GLES_ENUMERATION_XOR = 0x1506, + GLES_ENUMERATION_OR = 0x1507, + GLES_ENUMERATION_NOR = 0x1508, + GLES_ENUMERATION_EQUIV = 0x1509, + GLES_ENUMERATION_OR_REVERSE = 0x150B, + GLES_ENUMERATION_COPY_INVERTED = 0x150C, + GLES_ENUMERATION_NAND = 0x150E, + GLES_ENUMERATION_SET = 0x150F, + GLES_ENUMERATION_POINT = 0x1B00, + GLES_ENUMERATION_LINE = 0x1B01, + GLES_ENUMERATION_FILL = 0x1B02, + GLES_ENUMERATION_FLAT = 0x1D00, + GLES_ENUMERATION_SMOOTH = 0x1D01, + GLES_ENUMERATION_COUNT = 65 +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domVertices.h b/Extras/COLLADA_DOM/include/1.4/dom/domVertices.h new file mode 100644 index 000000000..09be00708 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domVertices.h @@ -0,0 +1,136 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domVertices_h__ +#define __domVertices_h__ + +#include +#include + +#include +#include + +/** + * The vertices element declares the attributes and identity of mesh-vertices. + * The vertices element describes mesh-vertices in a mesh geometry. The mesh-vertices + * represent the position (identity) of the vertices comprising the mesh + * and other vertex attributes that are invariant to tessellation. + */ +class domVertices : public daeElement +{ +protected: // Attributes +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The input element must occur at least one time. These inputs are local + * inputs. @see domInput + */ + domInputLocal_Array elemInput_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the input element array. + * @return Returns a reference to the array of input elements. + */ + domInputLocal_Array &getInput_array() { return elemInput_array; } + /** + * Gets the input element array. + * @return Returns a constant reference to the array of input elements. + */ + const domInputLocal_Array &getInput_array() const { return elemInput_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; } +protected: + /** + * Constructor + */ + domVertices() : attrId(), attrName(), elemInput_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domVertices() {} + /** + * Copy Constructor + */ + domVertices( const domVertices &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domVertices &operator=( const domVertices &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domVisual_scene.h b/Extras/COLLADA_DOM/include/1.4/dom/domVisual_scene.h new file mode 100644 index 000000000..d2491dc78 --- /dev/null +++ b/Extras/COLLADA_DOM/include/1.4/dom/domVisual_scene.h @@ -0,0 +1,425 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domVisual_scene_h__ +#define __domVisual_scene_h__ + +#include +#include + +#include +#include +#include +#include + +/** + * The visual_scene element declares the base of the visual_scene hierarchy + * or scene graph. The scene contains elements that comprise much of the + * visual and transformational information content as created by the authoring + * tools. + */ +class domVisual_scene : public daeElement +{ +public: + class domEvaluate_scene; + + typedef daeSmartRef domEvaluate_sceneRef; + typedef daeTArray domEvaluate_scene_Array; + +/** + * The evaluate_scene element declares information specifying a specific way + * to evaluate this visual_scene. There may be any number of evaluate_scene + * elements. + */ + class domEvaluate_scene : public daeElement + { + public: + class domRender; + + typedef daeSmartRef domRenderRef; + typedef daeTArray domRender_Array; + +/** + * The render element describes one effect pass to evaluate the scene. There + * must be at least one render element. + */ + class domRender : public daeElement + { + public: + class domLayer; + + typedef daeSmartRef domLayerRef; + typedef daeTArray domLayer_Array; + +/** + * The layer element specifies which layer to render in this compositing step + * while evaluating the scene. You may specify any number of layers. + */ + class domLayer : public daeElement + { + + protected: // Value + /** + * The xsNCName value of the text data of this element. + */ + xsNCName _value; + + public: //Accessors and Mutators + /** + * Gets the value of this element. + * @return 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; } + + protected: + /** + * Constructor + */ + domLayer() : _value() {} + /** + * Destructor + */ + virtual ~domLayer() {} + /** + * Copy Constructor + */ + domLayer( const domLayer &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domLayer &operator=( const domLayer &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: // Attribute +/** + * The camera_node attribute refers to a node that contains a camera describing + * the viewpoint to render this compositing step from. + */ + xsAnyURI attrCamera_node; + + protected: // Elements +/** + * The layer element specifies which layer to render in this compositing step + * while evaluating the scene. You may specify any number of layers. @see + * domLayer + */ + domLayer_Array elemLayer_array; +/** + * The instance_effect element specifies which effect to render in this compositing + * step while evaluating the scene. @see domInstance_effect + */ + domInstance_effectRef elemInstance_effect; + + public: //Accessors and Mutators + /** + * Gets the camera_node attribute. + * @return Returns a xsAnyURI reference of the camera_node attribute. + */ + xsAnyURI &getCamera_node() { return attrCamera_node; } + /** + * Gets the camera_node attribute. + * @return Returns a constant xsAnyURI reference of the camera_node attribute. + */ + const xsAnyURI &getCamera_node() const { return attrCamera_node; } + /** + * Sets the camera_node attribute. + * @param atCamera_node The new value for the camera_node attribute. + */ + void setCamera_node( const xsAnyURI &atCamera_node ) { attrCamera_node.setURI( atCamera_node.getURI() ); } + + /** + * Gets the layer element array. + * @return Returns a reference to the array of layer elements. + */ + domLayer_Array &getLayer_array() { return elemLayer_array; } + /** + * Gets the layer element array. + * @return Returns a constant reference to the array of layer elements. + */ + const domLayer_Array &getLayer_array() const { return elemLayer_array; } + /** + * Gets the instance_effect element. + * @return a daeSmartRef to the instance_effect element. + */ + const domInstance_effectRef getInstance_effect() const { return elemInstance_effect; } + protected: + /** + * Constructor + */ + domRender() : attrCamera_node(), elemLayer_array(), elemInstance_effect() {} + /** + * Destructor + */ + virtual ~domRender() {} + /** + * Copy Constructor + */ + domRender( const domRender &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domRender &operator=( const domRender &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: // Attribute +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + + protected: // Element +/** + * The render element describes one effect pass to evaluate the scene. There + * must be at least one render element. @see domRender + */ + domRender_Array elemRender_array; + + public: //Accessors and Mutators + /** + * 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 ) { attrName = atName; } + + /** + * Gets the render element array. + * @return Returns a reference to the array of render elements. + */ + domRender_Array &getRender_array() { return elemRender_array; } + /** + * Gets the render element array. + * @return Returns a constant reference to the array of render elements. + */ + const domRender_Array &getRender_array() const { return elemRender_array; } + protected: + /** + * Constructor + */ + domEvaluate_scene() : attrName(), elemRender_array() {} + /** + * Destructor + */ + virtual ~domEvaluate_scene() {} + /** + * Copy Constructor + */ + domEvaluate_scene( const domEvaluate_scene &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domEvaluate_scene &operator=( const domEvaluate_scene &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 +/** + * 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; +/** + * The name attribute is the text string name of this element. Optional attribute. + */ + xsNCName attrName; + +protected: // Elements +/** + * The visual_scene element may contain an asset element. @see domAsset + */ + domAssetRef elemAsset; +/** + * The visual_scene element must have at least one node element. @see domNode + */ + domNode_Array elemNode_array; +/** + * The evaluate_scene element declares information specifying a specific way + * to evaluate this visual_scene. There may be any number of evaluate_scene + * elements. @see domEvaluate_scene + */ + domEvaluate_scene_Array elemEvaluate_scene_array; +/** + * The extra element may appear any number of times. @see domExtra + */ + domExtra_Array elemExtra_array; + +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 ) { attrId = atId; } + + /** + * 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 ) { attrName = atName; } + + /** + * Gets the asset element. + * @return a daeSmartRef to the asset element. + */ + const domAssetRef getAsset() const { return elemAsset; } + /** + * Gets the node element array. + * @return Returns a reference to the array of node elements. + */ + domNode_Array &getNode_array() { return elemNode_array; } + /** + * Gets the node element array. + * @return Returns a constant reference to the array of node elements. + */ + const domNode_Array &getNode_array() const { return elemNode_array; } + /** + * Gets the evaluate_scene element array. + * @return Returns a reference to the array of evaluate_scene elements. + */ + domEvaluate_scene_Array &getEvaluate_scene_array() { return elemEvaluate_scene_array; } + /** + * Gets the evaluate_scene element array. + * @return Returns a constant reference to the array of evaluate_scene elements. + */ + const domEvaluate_scene_Array &getEvaluate_scene_array() const { return elemEvaluate_scene_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; } +protected: + /** + * Constructor + */ + domVisual_scene() : attrId(), attrName(), elemAsset(), elemNode_array(), elemEvaluate_scene_array(), elemExtra_array() {} + /** + * Destructor + */ + virtual ~domVisual_scene() {} + /** + * Copy Constructor + */ + domVisual_scene( const domVisual_scene &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domVisual_scene &operator=( const domVisual_scene &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; +}; + + +#endif diff --git a/Extras/COLLADA_DOM/include/dae.h b/Extras/COLLADA_DOM/include/dae.h new file mode 100644 index 000000000..25787dad2 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae.h @@ -0,0 +1,108 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE__ +#define __DAE__ + +#include +#include +#include +#include +#include +#include + +class daeIDRefResolver; +class domCOLLADA; + +/** + * The @c DAE class implements a standard interface to the + * COLLADA runtime database. + * + * @c DAE serves as a wrapper for the entire pipeline ensuring + * a consistent interface, regardless of extensions to or replacements + * for the various API components. It provides methods to load, store, + * translate and query COLLADA elements. A @c DAE object automatically creates + * and initializes default versions of the COLLADA backend, the COLLADA + * runtime database, and registered integration libraries. + */ +class DAE : public daeInterface +{ +public: + /** + * Constructor. + */ + DAE(); + /** + * Destructor. + */ + virtual ~DAE(); + + /** + * Before exiting an application, call @c cleanup() + * to release all static meta information associated with the + * COLLADA api. + * The @c daeMetaElement::releaseMetas() and + * @c daeAtomicType::uninitializeKnownTypes() functions are called + * if there are no remaining instances of a @c DAE. + * @note This function is useless when called by the application in a non-static + * context. It should be called after you delete your DAE object. + */ + static void cleanup(); + + // Abstract Interface Class for the daeDatabase front end +public: + // Database setup + virtual daeDatabase* getDatabase(); + virtual daeInt setDatabase(daeDatabase* database); + + // IO Plugin setup + virtual daeIOPlugin* getIOPlugin(); + virtual daeInt setIOPlugin(daeIOPlugin* plugin); + + // Integration Library Setup + virtual daeIntegrationLibraryFunc getIntegrationLibrary(); + virtual daeInt setIntegrationLibrary(daeIntegrationLibraryFunc regFunc); + + // batch file operations + virtual daeInt load(daeString name, daeString docBuffer = NULL); + virtual daeInt save(daeString documentName, daeBool replace=true); + virtual daeInt save(daeUInt documentIndex, daeBool replace=true); + virtual daeInt saveAs(daeString name, daeString documentName, daeBool replace=true); + virtual daeInt saveAs(daeString name, daeUInt documentIndex=0, daeBool replace=true); + + virtual daeInt unload(daeString name); + virtual daeInt clear(); + + // Load/Save Progress + virtual void getProgress(daeInt* bytesParsed, + daeInt* lineNumber, + daeInt* totalBytes, + daeBool reset = false ); + + // Simple Query + virtual domCOLLADA* getDom(daeString name); + virtual daeString getDomVersion(); + virtual daeInt setDom(daeString name, domCOLLADA* dom); + +private: + daeDatabase *database; + daeIOPlugin *plugin; + daeURIResolver* resolver; + daeIDRefResolver* idResolver; + bool defaultDatabase; + bool defaultPlugin; + daeIntegrationLibraryFunc registerFunc; + daeMetaElement *topMeta; +}; + +#endif // __DAE_INTERFACE__ diff --git a/Extras/COLLADA_DOM/include/dae/daeArray.h b/Extras/COLLADA_DOM/include/dae/daeArray.h new file mode 100644 index 000000000..af6ac3790 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeArray.h @@ -0,0 +1,320 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_ARRAY_H__ +#define __DAE_ARRAY_H__ +#include + +class daeAtomicType; + +/** + * COLLADA C++ class that implements storage for resizable array containers. + */ +class daeArray +{ +protected: + size_t _count; + size_t _capacity; + daeMemoryRef _data; + size_t _elementSize; + daeAtomicType* _type; +public: + /** + * Constructor + */ + daeArray(); + /** + * Copy Constructor + */ + daeArray( const daeArray &cpy ): _count(cpy._count), _capacity(cpy._capacity), _data(0), + _elementSize( cpy._elementSize), _type( cpy._type ) { + grow(_capacity); + memcpy( _data, cpy._data, _elementSize * _count ); + } + + /** + * Destructor + */ + virtual ~daeArray(); + /** + * Clears the contents of the array. Do not use this function if the array contains @c daeSmartRef objects and the + * @c dom* class the array belongs to has a @c _contents member. + * + * Many @c dom* objects have a @c _contents member that stores the original creation order of the @c daeElements + * that are their children. If you use @c clear() on a @c daeArray of @c daeSmartRef derived objects, these + * objects will not be removed from @c _contents, which can cause problems when you + * save the data. We recommended that @c clear() not be used on arrays that are part of a @c dom* object. + */ + virtual void clear(); + /** + * Sets the size of an element in the array when creating a @c daeArray of a specific type. + * @param elementSize Size of an element in the array. + */ + void setElementSize(size_t elementSize) {_elementSize = elementSize;} + /** + * Grows the array to the specified size and sets the @c daeArray to that size. + * @param cnt Size to grow the array to. + */ + inline void setRawCount(size_t cnt) {grow(cnt);_count = cnt;} + /** + * Gets the current capacity of the array, the biggest it can get without incurring a realloc. + * @return Returns the capacity of the array. + */ + inline size_t getCapacity() const {return _capacity;} + /** + * Gets the number of items stored in this @c daeArray. + * @return Returns the number of items stored in this @c daeArray. + */ + inline size_t getCount() const {return _count;} + /** + * Gets the size of an element in this array. + * @return Returns the size of an element in this array. + */ + inline size_t getElementSize() const {return _elementSize;} + /** + * Gets a pointer to the memory where the raw data for this @c daeArray is stored. + * @return Returns a pointer to the memory for the raw data. + */ + inline daeMemoryRef getRawData() const {return _data;} + + /** + * Increases the size of the @c daeArray. + * @param sz Size to grow the array to. + */ + void grow(size_t sz); + /** + * Removes an item at a specific index in the @c daeArray. + * @param index Index number of the item to delete. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + * @note The @c daeElement objects sometimes list + * objects in two places, the class member and the @c _contents array, when you remove something from the + * dom, you must remove it from both places. + */ + virtual daeInt removeIndex(size_t index); +}; + +/** + * COLLADA C++ templated version of @c daeArray for storing items of various types. + */ +template +class daeTArray : public daeArray +{ +public: + /** + * Constructor. + */ + daeTArray() { +// _type = daeAtomicType::getType("" T ""); + _elementSize = sizeof( T ); + } + /** + * Copy Constructor + */ + daeTArray( const daeTArray &cpy ) : daeArray() { + _count = cpy._count; + _capacity = cpy._capacity; + _data = NULL; + _elementSize = cpy._elementSize; + _type = cpy._type; + grow(_capacity); + for(size_t i=0;i<_count;i++) + set( i, cpy[i] ); + } + /** + * Destructor. + */ + virtual ~daeTArray() { + clear(); + } + /** + * Frees the memory in this array and resets it to it's initial state. + */ + virtual void clear() + { + size_t i; + for(i=0;i<_count;i++) + ((T*)_data + i)->~T(); + daeArray::clear(); + } + + /** + * Removes an item at a specific index in the @c daeArray. + * @param index Index number of the item to delete. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + * @note The @c daeElement objects sometimes list + * objects in two places, the class member and the @c _contents array, when you remove something from the + * dom, you must remove it from both places. + */ + virtual daeInt removeIndex(size_t index) + { + if ((index >= _count)||(_count < 1)) + return(DAE_ERR_INVALID_CALL); + ((T*)_data + index)->~T(); + return(daeArray::removeIndex(index)); + + } + + /** + * Resets the count of items in a daeArray to an absolute value, if necessary the array + * storage will grow to the requested size and new elements will be initialized to zero + * @param nElements The new size of the array. + * @note Shrinking the array does NOT free up memory. + */ + inline void setCount(size_t nElements) + { + grow(nElements); + if(nElements < _count) + { + // If the array shrank, destruct the elements + size_t i; + for(i=_count-1; i>= nElements; i--) + { + ((T*)_data + i)->~T(); + memset(_data+i*_elementSize,0,_elementSize); + } + } + _count = nElements; + } + + /** + * Sets a specific index in the @c daeArray, growing the array if necessary. + * @param index Index of the object to set, asserts if the index is out of bounds. + * @param value Value to store at index in the array. + */ + inline void set(size_t index, const T& value) { + if (index >= _capacity) + grow(index); + ((T*)_data)[index] = value; } + + /** + * Gets the object at a specific index in the @c daeArray. + * @param index Index of the object to get, asserts if the index is out of bounds. + * @return Returns the object at index. + */ + inline T& get(size_t index) const { + assert(index < _count); + return ((T*)_data)[index]; } + + /** + * Appends a new object to the end of the @c daeArray. + * @param value Value of the object to append. + * @return Returns the index of the new object. + */ + inline size_t append(const T& value) { + set(_count, value); + _count++; + return _count-1; + } + + /** + * Appends a unique object to the end of the @c daeArray. + * Functions the same as @c append(), but does nothing if the value is already in the @c daeArray. + * @param value Value of the object to append. + * @return Returns the index where this value was appended. If the value already exists in the array, + * returns the index in this array where the value was found. + */ + inline size_t appendUnique(const T& value) { + size_t ret; + if (find(value,ret) != DAE_OK) + return append(value); + else + return ret; + } + + /** + * Removes an item from the @c daeArray. + * @param value A reference to the item to delete. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + * @note The @c daeElement objects sometimes list + * objects in two places, the class member and the @c _contents array, when you remove something from the + * do, you must remove it from both places. + */ + inline daeInt remove(const T& value) + { + size_t index; + if(find(value,index) == DAE_OK) + { + return(removeIndex( index )); + } + else + { + return(DAE_ERR_INVALID_CALL); + } + } + /** + * Finds an item from the @c daeArray. + * @param value A reference to the item to find. + * @param index If the function returns DAE_OK, this is set to the index where the value appears in the array. + * @return Returns DAE_OK if no error or DAE_ERR_QUERY_NO_MATCH if the value was not found. + */ + inline daeInt find(const T& value, size_t &index) const + { + size_t i; + for(i=0;i<_count;i++) + { + if (((T*)_data)[i] == value) + { + index = i; + return DAE_OK; + } + } + return DAE_ERR_QUERY_NO_MATCH; + } + /** + * Gets the object at a specific index in the @c daeArray. + * @param index Index of the object to get, asserts if the index is out of bounds. + * @return Returns the object at @c index. + */ + inline T& operator[](size_t index) const { + assert(index < _count); + return ((T*)_data)[index]; } + + /** + * Inserts an object at a specific index in the daeArray, growing the array if neccessary + * @param index Index into the array for where to place the object, asserts if the index is out of bounds + * @param value of the object to append + */ + inline void insertAt(size_t index, const T& value) { + assert(index <= _capacity); + if ( _count == _capacity ) { + grow( _count +1 ); + } + //memmove( &(((T*)_data)[index+1]), &(((T*)_data)[index]), (_count - index)*_elementSize ); + for (size_t i = _count; i > index; i-- ) { + set( i, ((T*)_data)[i-1] ); + } + set( index, value ); + _count++; + } + + /** + * Overloaded assignment operator. + * @param other A reference to the array to copy + * @return A reference to this object. + */ + inline daeTArray &operator=( const daeTArray &other ) { + clear(); + _count = other._count; + _capacity = other._capacity; + grow(_capacity); + for(size_t i=0;i<_count;i++) + set( i, other[i] ); + + return *this; + } +}; + + +#endif //__DAE_ARRAY_H__ + + diff --git a/Extras/COLLADA_DOM/include/dae/daeArrayTypes.h b/Extras/COLLADA_DOM/include/dae/daeArrayTypes.h new file mode 100644 index 000000000..13781e029 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeArrayTypes.h @@ -0,0 +1,30 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_ARRAY_TYPES_H__ +#define __DAE_ARRAY_TYPES_H__ + +#include +#include +typedef daeTArray daeIntArray; +typedef daeTArray daeUIntArray; +typedef daeTArray daeFloatArray; +typedef daeTArray daeEnumArray; +typedef daeTArray daeStringArray; +typedef daeTArray daeCharArray; +typedef daeTArray daeBoolArray; +typedef daeTArray daeDoubleArray; +typedef daeTArray daeLongArray; +typedef daeTArray daeShortArray; + +#endif //__DAE_ARRAY_TYPES_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeAtomicType.h b/Extras/COLLADA_DOM/include/dae/daeAtomicType.h new file mode 100644 index 000000000..fff432963 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeAtomicType.h @@ -0,0 +1,720 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_ATOMIC_TYPE_H__ +#define __DAE_ATOMIC_TYPE_H__ + +#include +#include +#include +#include + +#ifndef _WIN32 +#include +#endif + +class daeAtomicType; +class daeMetaElement; + +typedef daeTArray daeAtomicTypeArray; +class daeMetaAttribute; +typedef daeSmartRef daeMetaAttributeRef; + +/** + * The @c daeAtomicType class implements a standard interface for + * data elements in the reflective object system. + * + * @c daeAtomicType provides a central virtual interface that can be + * used by the rest of the reflective object system. + * + * The atomic type system if very useful for file IO and building + * automatic tools for data inspection and manipulation, + * such as hierarchy examiners and object editors. + * + * Types provide the following symantic operations: + * - @c print() + * - @c memoryToString() + * - @c stringToMemory() + * - @c resolve() + * + * Types are also able to align data pointers appropriately. + */ +class daeAtomicType +{ +public: + /** + * destructor + */ + virtual ~daeAtomicType() {} + + /** + * constructor + */ + daeAtomicType(); + +public: + /** + * Prints an atomic typed element into a destination string. + * @param src Source of the raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, false if not successful. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); + + /** + * Reads an atomic typed item into the destination runtime memory. + * @param src Source string. + * @param dst Raw binary location to store the resulting value. + * @return Returns true if the operation was successful, false if not successful. + */ + virtual daeBool stringToMemory(daeChar* src, daeChar* dst); + + /** + * Resolves a reference, if indeed this type is a reference type. + * @param element The containing element. + * @param ma The @c deaMetaAttribute where the resolved reference + * should be placed. + */ + virtual void resolve(daeElementRef element, daeMetaAttributeRef ma); + + /** + * Determines if this atomic type requires a special string-based + * parse state. + * @return Returns true if this type requires string contents parsing, false if not. + */ + virtual daeBool getUsesStrings() { return false; } + + /** + * Gets the array of strings as name bindings for this type. + * @return Returns the array of strings. + */ + daeStringRefArray& getNameBindings() { return _nameBindings; } + + /** + * Gets the enum associated with this atomic type. This is not scalable and only + * works for base types, otherwise 'extension' is used. + * @return Returns the enum associated with this atomic type. + */ + daeEnum getTypeEnum() { return _typeEnum; } + + /** + * Gets the size in bytes for this atomic type. + * @return Returns the size of the atomic type in bytes. + */ + daeInt getSize() { return _size; } + + /** + * Gets the scanf format used for this type. + * @return Returns the scanf format. + * @note + * Warning - this field is only for convenience and may not always work. + * It is used only when the read functions are left to the base + * implementation. + */ + daeStringRef getScanFormat() { return _scanFormat; } + + /** + * Gets the printf format used for this type. + * @return Returns the printf format. + * @note + * Warning - this field is only for convenience and may not always work. + * It is used only when the print functions are left to the base + * implementation. + */ + daeStringRef getPrintFormat() { return _printFormat; } + + /** + * Gets the alignment in bytes necessary for this type on this + * platform. + * @return Returns the alignment in bytes. + */ + daeInt getAlignment() { return _alignment; } + + /** + * Gets the string associated with this type. + * @return Returns the string associated with this type. + */ + daeStringRef getTypeString() { return _typeString; } + + /** + * Performs an alignment based on the alignment for this type. + * @param ptr Pointer to be aligned. + * @return Returns the aligned pointer computed via + * (ptr+alignment-1)&(~(alignment-1). + * + */ + daeChar* align(daeChar* ptr) { + return (daeChar*)(((intptr_t)(ptr+_alignment-1))&(~(_alignment - 1))); } + +protected: + daeInt _size; + daeInt _alignment; + daeEnum _typeEnum; + daeStringRef _typeString; + daeStringRef _printFormat; + daeStringRef _scanFormat; + //daeStringRefArray _nameBindings; + daeInt _maxStringLength; + +public: + /** + * An array of strings as name bindings for this type. + */ + daeStringRefArray _nameBindings; + +private: // Static Members + static daeAtomicTypeArray* _Types; + static daeBool _TypesInitialized; +public: // Static Interface + /** An enum for identifying the different atomic types */ + enum daeAtomicTypes { + /** bool atomic type */ + BoolType, + /** enum atomic type */ + EnumType, + /** character atomic type */ + CharType, + /** short integer atomic type */ + ShortType, + /** integer atomic type */ + IntType, + /** unsigned integer atomic type */ + UIntType, + /** long integer atomic type */ + LongType, + /** unsigned long integer atomic type */ + ULongType, + /** floating point atomic type */ + FloatType, + /** double precision floating point atomic type */ + DoubleType, + /** string reference atomic type */ + StringRefType, + /** element reference atomic type */ + ElementRefType, + /** memory reference atomic type */ + MemoryRefType, + /** void reference atomic type */ + RawRefType, + /** resolver atomic type */ + ResolverType, + /** ID resolver atomic type */ + IDResolverType, + /** string token atomic type */ + TokenType, + /** extension atomic type */ + ExtensionType + }; + +public: // STATIC INTERFACE + /** + * Appends a new type to the global list of types. + * @param t Type to append. + * @return Returns the index of the type in the list of types. + */ + static daeInt append(daeAtomicType* t); + + /** + * Performs a static initialization of all known atomic types. + */ + static void initializeKnownTypes(); + + /** + * Performs an uninitialization for all known types, freeing associated memory. + */ + static void uninitializeKnownTypes(); + /** + * Performs a static initialization of all known base atomic types. + */ + static void initializeKnownBaseTypes(); + + /** + * Gets a type from the list of types, based on its index. + * @param index Index of the type to retrieve. + * @return Returns the @c daeAtomicType indicated by index. + */ + static const daeAtomicType* getByIndex(daeInt index); + + /** + * Gets the number of known atomic types. + * @return Returns the number of known atomic types. + */ + static daeInt getCount(); + + /** + * Finds a type by its string name. + * @param type String name of the type. + * @return Returns the type with the corresponding name. + */ + static daeAtomicType* get(daeStringRef type); + + /** + * Finds a type by its enum. + * @param type Enum representing the desired type. + * @return Returns the type with the corresponding enum. + */ + static daeAtomicType* get(daeEnum type); +}; + +/** + * The @c daeBoolType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeBool. + */ +class daeBoolType : public daeAtomicType +{ +public: + /** + * Constructor + */ + daeBoolType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); + + /** + * Overrides the base class @c stringToMemoryFunction(). + * Reads an atomic typed item into the destination runtime memory. + * @param src Source string. + * @param dst Raw binary to store the resulting value. + * @return Returns true if the operation was successful, false if not successful. + */ + virtual daeBool stringToMemory(daeChar* src, daeChar* dst); + +}; + +/** + * The @c daeIntType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeInt. + */ +class daeIntType : public daeAtomicType +{ +public: + /** + * Constructor + */ + daeIntType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); +}; + +/** + * The @c daeLongType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeLong. + */ +class daeLongType : public daeAtomicType +{ +public: + /** + * Constructor + */ + daeLongType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); +}; + +/** + * The @c daeUIntType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeUInt. + */ +class daeUIntType : public daeAtomicType +{ +public: + /** + * Constructor + */ + daeUIntType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); +}; + +/** + * The @c daeUIntType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeUInt. + */ +class daeULongType : public daeAtomicType +{ +public: + /** + * Constructor + */ + daeULongType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); +}; + +/** + * The @c daeShortType is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeShort. + */ +class daeShortType : public daeAtomicType +{ +public: + /** + * Constructor + */ + daeShortType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); +}; + +/** + * The @c daeFloatType is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeFloat. + */ +class daeFloatType : public daeAtomicType +{ +public: + /** + * Constructor + */ + daeFloatType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); +}; + +/** + * The @c daeDoubleType is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeDouble. + */ +class daeDoubleType : public daeAtomicType +{ +public: + /** + * Constructor + */ + daeDoubleType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); +}; + +/** + * The @c daeStringRefType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeStringRef. + */ +class daeStringRefType : public daeAtomicType +{ +public: + /** + * Constructor + */ + daeStringRefType(); +public: + /** + * Override base class function. + * Determines if this atomic type requires a special string-based + * parse state. + * @return Returns true if this type requires string contents parsing, false if not. + */ + virtual daeBool getUsesStrings(); + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); + /** + * Overrides the base class @c stringToMemoryFunction(). + * Reads an atomic typed item into the destination runtime memory. + * @param src Source string. + * @param dst Raw binary to store the resulting value. + * @return Returns true if the operation was successful, false if not successful. + */ + virtual daeBool stringToMemory(daeChar* src, daeChar* dst); + +}; + +/** + * The @c daeTokenType class is derived from @c daeStringRefType, and implements + * the reflective system for objects of type daeStringRef, with specialized + * treatment from the parser. + */ +class daeTokenType : public daeStringRefType +{ +public: + /** + * Constructor + */ + daeTokenType(); + +public: + /** + * Override base class function. + * Determines if this atomic type requires a special string-based + * parse state. + * @return Returns true if this type requires string contents parsing, false if not. + */ + virtual daeBool getUsesStrings(); + +}; + +/** + * The @c daeElementRefType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeElementRef. + */ +class daeElementRefType : public daeAtomicType +{ +public: + /** + * The @c daeMetaElement for the type this @c daeElementRefType represents. + */ + daeMetaElement* _elementType; + +public: + /** + * Constructor + */ + daeElementRefType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); +}; + +/** + * The @c daeEnumType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type daeEnum. + */ +class daeEnumType: public daeAtomicType +{ +public: + /** + * The array which contains the values used in this enum. + */ + daeEnumArray* _values; + /** + * The array which contains the strings to associate with the values used in this enum. + */ + daeStringRefArray* _strings; + +public: + /** + * Constructor + */ + daeEnumType(); + + /** + * Destructor + */ + ~daeEnumType(); + +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); + /** + * Overrides the base class @c stringToMemoryFunction(). + * Reads an atomic typed item into the destination runtime memory. + * @param src Source string. + * @param dst Raw binary to store the resulting value. + * @return Returns true if the operation was successful, false if not successful. + */ + virtual daeBool stringToMemory(daeChar* src, daeChar* dst); + +}; + +/** + * The @c daeRawRefType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeRawRef. + */ +class daeRawRefType: public daeAtomicType +{ +public: + /** + * Constructor. + */ + daeRawRefType(); + +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); +}; + +/** + * The @c daeResolverType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeResolver. + */ +class daeResolverType : public daeAtomicType +{ +public: + /** + * Constructor. + */ + daeResolverType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); + /** + * Overrides the base class @c stringToMemoryFunction(). + * Reads an atomic typed item into the destination runtime memory. + * @param src Source string. + * @param dst Raw binary to store the resulting value. + * @return Returns true if the operation was successful, false if not successful. + */ + virtual daeBool stringToMemory(daeChar* src, daeChar* dst); + + /** + * Overrides the base class @c resolve() function + * Resolves a reference, if indeed this type is a reference type + * @param element The containing element. + * @param ma The @c deaMetaAttribute where the resolved reference + * should be placed. + */ + virtual void resolve(daeElementRef element, daeMetaAttributeRef ma); + /** + * Override base class function. + * Determines if this atomic type requires a special string-based + * parse state. + * @return Returns true if this type requires string contents parsing, false if not. + */ + virtual daeBool getUsesStrings() { return true; } +}; + +/** + * The @c daeIDResolverType class is derived from @c daeAtomicType, and implements + * the reflective system for objects of type @c daeIDResolver. + */ +class daeIDResolverType : public daeAtomicType +{ +public: + /** + * Constructor. + */ + daeIDResolverType(); +public: + /** + * Overrides the base class memory to string conversion function. + * @param src Raw data from which to get the typed items. + * @param dst Destination to output the string version of the elements to. + * @param dstSize Number of bytes available in the destination memory. + * @return Returns true if the operation was successful, + * false if the operation would cause the destination buffer to overflow. + */ + virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); + /** + * Overrides the base class @c stringToMemoryFunction(). + * Reads an atomic typed item into the destination runtime memory. + * @param src Source string. + * @param dst Raw binary to store the resulting value. + * @return Returns true if the operation was successful, false if not successful. + */ + virtual daeBool stringToMemory(daeChar* src, daeChar* dst); + + /** + * Overrides the base class @c resolve() function + * Resolves a reference, if indeed this type is a reference type. + * @param element The containing element. + * @param ma The @c deaMetaAttribute where the resolved reference + * should be placed. + */ + virtual void resolve(daeElementRef element, daeMetaAttributeRef ma); +}; + + + +#endif // __DAE_ATOMIC_TYPE_H__ + + + diff --git a/Extras/COLLADA_DOM/include/dae/daeDatabase.h b/Extras/COLLADA_DOM/include/dae/daeDatabase.h new file mode 100644 index 000000000..cb4c632e5 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeDatabase.h @@ -0,0 +1,265 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_DATABASE__ +#define __DAE_DATABASE__ + +#include +#include +#include +#include + + +/** + * The @c daeDatabase class defines the COLLADA runtime database interface. + */ +class daeDatabase +{ +public: + /** + * Destructor. + */ + virtual ~daeDatabase() {} + + /** @name Documents */ + //@{ + /** + * Creates a new document, defining its root as the dom object; returns an error if the document name already exists. + * @param name Name of the new document, must be a valid URI. + * @param dom Existing @c domCOLLADA root element of the document + * @param document Pointer to a @c daeDocument pointer that receives the document created + * @return Returns @c DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h. + * @note The @c daeElement passed in as dom should always be a @c domCOLLADA object, the API may enforce this in the future. + * @deprecated This function will be removed in future versions. Please use createDocument. + */ + virtual daeInt insertDocument(daeString name, daeElement* dom, daeDocument** document = NULL) = 0; + /** + * Creates a new @c domCOLLADA root element and a new document; returns an error if the document name already exists. + * @param name Name of the new document, must be a valid URI. + * @param document Pointer to a @c daeDocument pointer that receives the document created + * @return Returns DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h. + * @deprecated This function will be removed in future versions. Please use createDocument. + */ + virtual daeInt insertDocument(daeString name, daeDocument** document = NULL) = 0; + /** + * Creates a new document, defining its root as the dom object; returns an error if the document name already exists. + * @param name Name of the new document, must be a valid URI. + * @param dom Existing @c domCOLLADA root element of the document + * @param document Pointer to a @c daeDocument pointer that receives the document created + * @return Returns @c DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h. + * @note The @c daeElement passed in as dom should always be a @c domCOLLADA object, the API may enforce this in the future. + */ + virtual daeInt createDocument(daeString name, daeElement* dom, daeDocument** document = NULL) = 0; + /** + * Creates a new @c domCOLLADA root element and a new document; returns an error if the document name already exists. + * @param name Name of the new document, must be a valid URI. + * @param document Pointer to a @c daeDocument pointer that receives the document created + * @return Returns DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h. + */ + virtual daeInt createDocument(daeString name, daeDocument** document = NULL) = 0; + + /** + * Inserts an already existing document into the database. + * @param c The document to insert. + * @return Returns DAE_OK if the document was inserted successfully, otherwise returns a negative value as defined in daeError.h. + */ + virtual daeInt insertDocument( daeDocument *c ) = 0; + + /** + * Removes a document from the database. + * @param document Document to remove from the database + * @return Returns DAE_OK if the document was successfully removed, otherwise returns a negative value as defined in daeError.h. + */ + virtual daeInt removeDocument(daeDocument* document) = 0; + /** + * Gets the number of documents. + * @return Returns the number of documents. + */ + virtual daeUInt getDocumentCount() = 0; + /** + * Gets a document based on the document index. + * @param index Index of the document to get. + * @return Returns a pointer on the document, or NULL if not found. + */ + virtual daeDocument* getDocument(daeUInt index) = 0; + /** + * Gets a document based on the document name. + * @param name The name of the document as a URI. + * @return Returns a pointer to the document, or NULL if not found. + * @note If the URI contains a fragment, the fragment is stripped off. + */ + virtual daeDocument* getDocument(daeString name) = 0; + /** + * Gets a document name. + * @param index Index of the document to get. + * @return Returns the name of the document at the given index. + */ + virtual daeString getDocumentName(daeUInt index) = 0; + /** + * Indicates if a document is loaded or not. + * @param name Name of the document as a URI. + * @return Returns true if the document is loaded, false otherwise. + * @note If the URI contains a fragment, the fragment is stripped off. + */ + virtual daeBool isDocumentLoaded(daeString name) = 0; + //@} + + /** @name Elements */ + //@{ + /** + * Gets the number of types in the database. + * @return Returns the number of different types of objects inserted in the database. + */ + virtual daeUInt getTypeCount() = 0; + /** + * Retrieves the name of a type of object inserted in the database. + * @param index Index of the type; must be between 0 and daeDatabase::getTypeCount()-1 + * @return Returns the name of the type, NULL if the index is invalid. + */ + virtual daeString getTypeName(daeUInt index) = 0; + /** + * Inserts a @c daeElement into the runtime database. + * @param document Document in which the @c daeElement lives. + * @param element @c daeElement to insert in the database + * @return Returns @c DAE_OK if element successfully inserted, otherwise returns a negative value as defined in daeError.h. + */ + virtual daeInt insertElement(daeDocument* document, + daeElement* element) = 0; + /** + * Removes a @c daeElement from the runtime database; not implemented in the reference STL implementation. + * @param document Document in which the @c daeElement lives. + * @param element Element to remove. + * @return Returns @c DAE_OK if element successfully removed, otherwise returns a negative value as defined in daeError.h. + * @note This function is not implemented in the reference STL implementation. + */ + virtual daeInt removeElement(daeDocument* document, + daeElement* element) = 0; + /** + * Unloads all of the documents of the runtime database. + * This function frees all the @c dom* objects and integration objects created so far, + * except any objects on which you still have a smart pointer reference (@c daeSmartRef). + * @return Returns @c DAE_OK if all documents successfully unloaded, otherwise returns a negative value as defined in daeError.h. + */ + virtual daeInt clear() = 0; + /** + * Optimizes the database. + * This function takes time; it is called by the interface at the end of a load operation. + * Some databases cannot be queried when items are being inserted; for instance, they may + * need to be sorted. All database search functions call @c validate(); you should not need to + * call this function directly. + */ + virtual void validate() = 0; + //@} + + /** @name Queries */ + //@{ + /** + * Gets the number of daeElement objects that match the search criteria + * Any combination of search criteria can be NULL, if a criterion is NULL all + * the parameters will match for this criterion. + * Hence @c getElementCount() called without parameters returns the total number of @c daeElement objects in the database. + * Criteria can not be specified with wildcards, either a criterion is set and it will have + * to match, or it is not set and all @c daeElements match for this criterion. + * @param name Name or id of the @c daeElement, for example, "mycube1", can be NULL + * @param type Type of @c daeElement to find, this can be any COLLADA tag such as or , can be NULL + * @param file Name of the document or file, for example, "myDocument.xml", can be NULL + * @return Returns the number of elements matching this query. + */ + virtual daeUInt getElementCount(daeString name = NULL, + daeString type = NULL, + daeString file = NULL) = 0; + /** + * Returns the @c daeElement which matches the search criteria. + * Any combination of search criteria can be NULL, if a criterion is NULL all + * the parameters will match for this criterion. + * The function operates on the set of assets that match the name, type and file search criteria, + * with the index parameter indicating which asset within the set is returned. + * Calling @c daeElement(&pElement,index) without search criteria returns the @c daeElement number index in the database without + * any consideration of name, type or document. + * Criteria can not be specified with wildcards, either a criterion is set and it will have + * to match, or it is not set and all @c daeElements match for this criterion. + * The default database search is roughly in log2(n). Maximum performance is obtained when querying + * by type and a name. Any other combination results in a slight overhead, but the overall search time + * remains around log2(n). + * @param pElement Pointer of a @c daeElement* which receives the found @c daeElement if the search succeeds + * @param index Index within the set of @c daeElements that match the search criteria + * @param name Name or id of the @c daeElement, for example "mycube1", can be NULL + * @param type Type of the @c daeElement to get, this can be any COLLADA tag such as or , can be NULL + * @param file Name of the document or file, for example, "myDocument.xml", can be NULL + * @return Returns DAE_OK upon success, returns DAE_ERR_QUERY_NO_MATCH if there is no match, otherwise, returns a negative value as defined in daeError.h. + */ + virtual daeInt getElement(daeElement** pElement, + daeInt index, + daeString name = NULL, + daeString type = NULL, + daeString file = NULL ) = 0; + /** + * Returns the @c daeElement which matches the genericQuery parameter; not implemented. + * @param pElement Element to return. + * @param genericQuery Generic query + * @return Returns DAE_OK if it succeeds, returns DAE_ERR_QUERY_NO_MATCH if there is no match, otherwise returns a negative value as defined in daeError.h. + * @note This function is not implemented. + */ + virtual daeInt queryElement(daeElement** pElement, daeString genericQuery) = 0; + //@} + + /** + * Sets the top meta object. + * Called by @c dae::setDatabase() when the database changes. It passes to this function the + * top meta object, which is the root of a + * hierarchy of @c daeMetaElement objects. This top meta object is capable of creating + * any of the root objects in the DOM tree. + * @param _topMeta Top meta object to use to create objects to fill the database. + * @return Returns DAE_OK if successful, otherwise returns a negative value defined in daeError.h. + */ + virtual daeInt setMeta(daeMetaElement *_topMeta) = 0; + +public: //Depricated methods + inline daeInt insertCollection(daeString name, daeElement* dom, daeDocument** document = NULL) { + return insertDocument( name, dom, document ); + } + inline daeInt insertCollection(daeString name, daeDocument** document = NULL) { + return insertDocument( name, document ); + } + inline daeInt createCollection(daeString name, daeElement* dom, daeDocument** document = NULL) { + return createDocument( name, dom, document ); + } + inline daeInt createCollection(daeString name, daeDocument** document = NULL) { + return createDocument( name, document ); + } + inline daeInt insertCollection( daeDocument *c ) { + return insertDocument( c ); + } + inline daeInt removeCollection(daeDocument* document) { + return removeDocument( document ); + } + inline daeUInt getCollectionCount() { + return getDocumentCount(); + } + inline daeDocument* getCollection(daeUInt index) { + return getDocument( index ); + } + inline daeDocument* getCollection(daeString name) { + return getDocument( name ); + } + inline daeString getCollectionName(daeUInt index) { + return getDocumentName( index ); + } + inline daeBool isCollectionLoaded(daeString name) { + return isDocumentLoaded( name ); + } + +}; + +#endif //__DAE_DATABASE__ + diff --git a/Extras/COLLADA_DOM/include/dae/daeDocument.h b/Extras/COLLADA_DOM/include/dae/daeDocument.h new file mode 100644 index 000000000..78c567050 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeDocument.h @@ -0,0 +1,149 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_DOCUMENT__ +#define __DAE_DOCUMENT__ + +#include +#include +#include +#include + +/** + * The @c daeDocument class implements a COLLADA runtime database entry. + */ +class daeDocument +{ +public: + /** + * Accessor to get the @c domCollada associated with this document. + * @return A @c daeElementRef for the @c domCollada that is the root of this document. + * @note This function should really return a domColladaRef, + * but we're trying to avoid having @c dae classes depend on generated dom classes. + */ + daeElement* getDomRoot() const {return(dom);} + /** + * Accessor to set the domCollada associated with this document + * @param domRoot the domCollada that is the root of this document + * @remarks Should really require a domColladaRef but we're trying to avoid having dae classes depend on generated dom classes. + */ + void setDomRoot(daeElement* domRoot) {dom = domRoot;} + /** + * Accessor to get the URI associated with the document in this document; + * this is currently set to the URI from which the document was loaded, but + * is blank if the document was created with @c insertDocument(). + * @return Returns a pointer to the URI for this document. + * @note This is the full URI of the document and not the document base URI. + */ + daeURI* getDocumentURI() {return (&uri);} + + /** + * Const accessor to get the URI associated with the document in this collection; + * this is currently set to the URI from which the collection was loaded, but + * is blank if the collection was created with @c insertCollection(). + * @return Returns a pointer to the URI for this collection. + * @note This is the full URI of the document and not the document base URI. + */ + const daeURI* getDocumentURI() const {return (&uri);} + + /** + * Accessor to get if this document has been modified since the last time the database was validated. + * @return Returns true if the document was modified, false otherwise. + */ + daeBool getModified() const {return modified;} + /** + * Sets if this document has been modified since the last time the database was validated. + * @param A boolean value specifying if the document was modified. + */ + void setModified( daeBool mod ) { if (!mod) { insertedElements.clear(); removedElements.clear(); } modified = mod;} + + /** + * This function is used to track how a document gets modified. It gets called internally. + * @param element The element that was added to this document. + * @note This function is called internally and not meant to be called by the client application. + * Calling this function from the client application may result in unexpected behavior. + */ + void insertElement( daeElementRef element ) { insertedElements.append( element ); } + /** + * This function is used to track how a document gets modified. It gets called internally. + * @param element The element that was removed from this document. + * @note This function is called internally and not meant to be called by the client application. + * Calling this function from the client application may result in unexpected behavior. + */ + void removeElement( daeElementRef element ) { removedElements.append( element ); } + + /** + * This function is used to track how a document gets modified. It gets called internally. + * @return Returns an array of elements that have been added since the last database update. + */ + const daeElementRefArray &getInsertedArray() const { return insertedElements; } + /** + * This function is used to track how a document gets modified. It gets called internally. + * @return Returns an array of elements that have been removed since the last database update. + */ + const daeElementRefArray &getRemovedArray() const { return removedElements; } + /** + * Adds a URI to the list of external references in this document. + * @param uri The URI that is the external reference. + * @note This function gets called internally from daeURI upon trying to resolve an element. + * Calling this function in your client code my result in unexpected behavior. + */ + void addExternalReference( daeURI &uri ); + /** + * Removes a URI to the list of external references in this document. + * @param uri The URI that was the external reference. + * @note This function gets called internally from daeURI upon trying to resolve an element. + * Calling this function in your client code my result in unexpected behavior. + */ + void removeExternalReference( daeURI &uri ); + /** + * Gets a list of all the documents that are referenced from URI contained within this document. + * @return Returns a list of URI strings, each being a URI which is referenced from within this document. + */ + const daeStringRefArray &getReferencedDocuments() const { return referencedDocuments; } + /** + * Resolves the URIs that reference the document specified by docURI. + * @param docURI The URI string of the document that you want to resolve against. + * @note This function is called internally whenever a new document is loaded. + */ + void resolveExternals( daeString docURI); + +private: + /** + * Top Level element for of the document, always a domCollada + * @remarks This member will eventually be taken private, use getDomRoot() to access it. + */ + daeElementRef dom; + + /** + * The URI of the document, may be blank if the document wasn't loaded from a URI + * @remarks This member will eventually be taken private, use getDocumentURI() to access it. + */ + daeURI uri; + + /** + * A flag that indicates if this document has been modified. + */ + daeBool modified; + + daeElementRefArray insertedElements; + daeElementRefArray removedElements; + + daeStringRefArray referencedDocuments; + daeTArray< daeTArray* > externalURIs; +}; + +typedef daeDocument daeCollection; + +#endif + diff --git a/Extras/COLLADA_DOM/include/dae/daeDom.h b/Extras/COLLADA_DOM/include/dae/daeDom.h new file mode 100644 index 000000000..8a0bc9591 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeDom.h @@ -0,0 +1,21 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_DOM__ +#define __DAE_DOM__ + +class daeMetaElement; + +daeMetaElement* initializeDomMeta(); + +#endif //__DAE_DOM__ diff --git a/Extras/COLLADA_DOM/include/dae/daeDomTypes.h b/Extras/COLLADA_DOM/include/dae/daeDomTypes.h new file mode 100644 index 000000000..17363ce64 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeDomTypes.h @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_DOM_TYPES__ +#define __DAE_DOM_TYPES__ + +#include +#include +#include +#include +#include + +//This line is used as a workaround because the array types enum is invalid when autogenerated +//typedef daeString domArrayTypes; // ENUM +typedef daeElement domElement; + +typedef daeURI xsAnyURI; +typedef daeString xsDateTime; + +typedef daeString xsID; +typedef daeIDRef xsIDREF; +typedef daeTArray xsIDREFS; +typedef daeString xsNCName; +typedef daeString xsNMTOKEN; +typedef daeString xsName; +typedef daeString xsToken; +typedef daeString xsString; +typedef daeBool xsBoolean; +typedef daeShort xsShort; +typedef daeInt xsInt; +typedef daeLong xsInteger; +typedef daeUInt xsNonNegativeInteger; +typedef daeLong xsLong; +typedef daeFloat xsFloat; +typedef daeDouble xsDouble; +typedef daeDouble xsDecimal; +typedef daeCharArray xsHexBinaryArray; +typedef daeBoolArray xsBooleanArray; +typedef daeFloatArray xsFloatArray; +typedef daeDoubleArray xsDoubleArray; +typedef daeShortArray xsShortArray; +typedef daeIntArray xsIntegerArray; +typedef daeLongArray xsLongArray; +typedef daeStringRefArray xsNameArray; +typedef daeStringRefArray xsNCNameArray; +typedef daeStringRefArray xsTokenArray; + +typedef daeChar xsByte; +typedef daeUChar xsUnsignedByte; +typedef daeUInt xsUnsignedInt; +typedef daeUInt xsPositiveInteger; +typedef daeULong xsUnsignedLong; + + +#define daeTSmartRef daeSmartRef + +#endif //__DAE_DOM_TYPES__ + diff --git a/Extras/COLLADA_DOM/include/dae/daeElement.h b/Extras/COLLADA_DOM/include/dae/daeElement.h new file mode 100644 index 000000000..596b5e5ba --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeElement.h @@ -0,0 +1,387 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_ELEMENT_H__ +#define __DAE_ELEMENT_H__ +#include +#include +#include +#include + +//#ifndef NO_MALLOC_HEADER +//#include +//#endif + +class daeMetaElement; +class daeIntegrationObject; +class daeDocument; +class daeURI; + +template class daeSmartRef; + +/** + * The @c daeElement class represents an instance of a COLLADA "Element"; + * it is the main base class for the COLLADA Dom. + * Features of this class include: + * - Uses factory concepts defined via daeMetaElement + * - Composed of attributes, content elements and content values + * - Reference counted via daeSmartRef + * - Contains information for XML base URI, and XML containing element + */ +class daeElement +{ +public: + /** + * Macro that defines new and delete overrides for this class + */ + DAE_ALLOC; +private: + mutable daeInt _refCount; + daeIntegrationObject* _intObject; + daeElement* _parent; + daeDocument* _document; + +protected: + daeMetaElement* _meta; + daeString _elementName; + +public: + /** An enum that describes the state of user integration with this object */ + enum IntegrationState { + /** The user integration is not initialized */ + int_uninitialized, + /** The user integration object has been created */ + int_created, + /** The user integration object has been converted */ + int_converted, + /** The user integration object is completed */ + int_finished + }; +protected: + daeElement( const daeElement &cpy ) { (void)cpy; }; + virtual daeElement &operator=( const daeElement &cpy ) { (void)cpy; return *this; } + +public: + /** + * Element Constructor. + * @note This should not be used externally. + * Use factories to create elements + */ + daeElement(); + /** + * Element Destructor. + * @note This should not be used externally, + * if daeSmartRefs are being used. + */ + virtual ~daeElement(); + + /** + * Decrements the reference count and deletes the object if reference count is zero. + * @note Should not be used externally if daeSmartRefs are being used, they call it + * automatically. + */ + void release() const; + + /** + * Increments the reference count of this element. + * @note Should not be used externally if daeSmartRefs are being used, they call it + * automatically. + */ + inline void ref() const {_refCount++;} + + /** + * Resolves all fields of type daeURI. + * This is done via database query of the URI. + */ + void resolve(); + + /** + * Sets up a @c daeElement. Called on all @c daeElements as part of their initialization. + * @param meta Meta element to use to configure this element. + * @note Should not be called externally. + */ + void setup(daeMetaElement* meta); + + /** + * Places an element as a child of @c this element. + * This function searches through the list of potential child element + * fields in @c this element, checking for a matching element type where the new element can be added. + * If a match of type is found, the element* is assigned or appended to + * that field, based on whether it is a single child or an array of + * children. This automatically adds the new element to the _contents of its parent, if the parent has one. + * + * @param element Element to be placed in the @c this container. + * @return Returns true if the element was successfully placed, false otherwise. + */ + daeBool placeElement(daeElement* element); + + /** + * This function searches through the list of potential child elements + * (fields) checking for a matching element type where this element can be added. + * If a match of type is found, the element* is assigned or appended to + * that field (based on whether it is a single child or an array of + * children. + * If the parent element contains a _contents array, element will be placed at the specified index, + * otherwise element gets placed among elements of the same type. + * + * @param index is the place in the _contents array to insert element. + * @param element is the element to be placed in the 'this' container. + * @return return whether or not the element was successfully placed. + */ + daeBool placeElementAt(daeInt index, daeElement* element); + + /** + * Places an element as a child of @c this element. + * This function inserts the new element before the element specified as marker. + * This automatically adds the new element to the _contents of its parent, if the parent has one. + * @param marker The daeElement used to determine where the new child will be placed. + * @param element Element to be placed in the @c this container. + * @return Returns true if the element was successfully placed, false otherwise. + */ + daeBool placeElementBefore( daeElement* marker, daeElement *element ); + + /** + * Places an element as a child of @c this element. + * This function inserts the new element After the element specified as marker. + * This automatically adds the new element to the _contents of its parent, if the parent has one. + * @param marker The daeElement used to determine where the new child will be placed. + * @param element Element to be placed in the @c this container. + * @return Returns true if the element was successfully placed, false otherwise. + */ + daeBool placeElementAfter( daeElement* marker, daeElement *element ); + + /** + * Finds the last index into the array of children of the type specified. + * @param elementName The name to look for. + * @return Returns the index into the children array of the last element of type typeName. -1 if + * there are no children of type typeName. + */ + daeInt findLastIndexOf( daeString elementName ); + + /** + * Removes the specified element from it parent, the @c this element. + * This function is the opposite of @c placeElement(). It removes the specified + * element from the _contents array, and from wherever else it appears + * inside of the @c this element. Use this function instead of @c clear(), @c remove() or @c delete() + * if you want to keep the _contents field up-to-date. + * + * @param element Element to be removed in the @c this container. + * @return Returns true if the element was successfully removed, false otherwise. + */ + daeBool removeChildElement(daeElement* element); + + /** + * Removes the specified element from its parent element. + * This function is the opposite of @c placeElement(). It removes the specified + * element from both the _contents array and from wherever else it appears + * inside of its parent. The function itself finds the parent, and is defined as a static method, + * since removing the element from its parent may result in the deletion of the element. + * If the element has no parent, nothing is done. + * + * Use this function instead of @c clear(), @c remove() or @c delete() + * if you want to keep _contents up-to-date. + * + * @param element Element to remove from its parent container, the function finds the parent element. + * @return Returns true if the element was successfully removed, false otherwise. + */ + static daeBool removeFromParent(daeElement* element) + { + if(element != NULL && element->_parent != NULL) + return(element->_parent->removeChildElement(element)); + return false; + }; + + /** + * Looks up an attribute field via its meta name and assign its value + * as the attrValue String. + * @param attrName Attribute to set. + * @param attrValue String-based value to apply to the attribute. + * @return Returns true if the attribute was found and the value was set, false otherwise. + */ + virtual daeBool setAttribute(daeString attrName, daeString attrValue); + + /** + * Finds the database document associated with @c this element. + * @return Returns the @c daeDocument representing the containing file or database + * group. + */ + daeDocument* getDocument() const { return _document; } + + /** + * Deprecated. + */ + daeDocument* getCollection() const { return _document; } + + /** + * Sets the database document associated with this element. + * @param c The daeDocument to associate with this element. + */ + void setDocument(daeDocument* c ); + /** + * Deprecated. + */ + void setCollection(daeDocument* c ); + + /** + * Gets the URI of the document containing this element, note that this is NOT the URI of the element. + * @return Returns a pointer to the daeURI of the document containing this element. + */ + daeURI* getDocumentURI() const; + + /** + * Creates an element via the element factory system. This creation + * is based @em only on potential child elements of this element. + * @param className Class name of the subelement to create. + * @return Returns the created @c daeElement, if it was successfully created. + */ + daeSmartRef createElement(daeString className); + + /** + * Creates a subelement via @c createElement() and places it via @c placeElement(). + * Automatically adds the new element to the _contents of its parent, if the parent has one. + * This is the primary method used to construct the COLLADA dom hierarchy. + * @param className - Class name of the subelement to create. + * @return Returns the created @c daeElement, if it was successfully created. + */ + daeElement* createAndPlace(daeString className); + + //!!!ACL + /** + * Create a sub-element via #createElement and place it via #placeElementAt + * This also automatically inserts the new element at the specified index in the _contents of it's + * parent, if the parent has one. + * This is useful when constructing the COLLADA dom hierarchy + * @param index the position in the _contents array the newly created element is to be placed at + * @param className - the className of the sub-element to be created + * @return the created element if it was in fact successfully created. + */ + daeElement* createAndPlaceAt(daeInt index, daeString className); + + /** + * Gets the container element for @c this element. + * If @c createAndPlace() was used to create the element, its parent is the the caller of @c createAndPlace(). + * @return Returns the parent element, if @c this is not the top level element. + */ + daeElement* getXMLParentElement() { return _parent;} + + /** + * Gets the associated Meta information for this element. This + * Meta also acts as a factory. See @c daeMetaElement documentation for more + * information. + * @return Returns the associated meta information. + */ + inline daeMetaElement* getMeta() { return _meta; } + + /** + * Gets the integration object associated with this @c daeElement object. + * See @c daeIntegrationObject for more details. + * Integration Objects can be automatically created and associated + * with the COLLADA dom via the meta-factory mechanism and + * can be very useful for using the API to integrate with COLLADA. + * @param from_state Specifies where in the conversion process from COLLADA you are interested. A full conversion is the default. + * @param to_state Specifies where in the conversion process to COLLADA you are interested. No conversion is the default. + * @return Returns the @c daeIntegrationObject associated with this COLLADA element + * instance. + */ + daeIntegrationObject* getIntObject( IntegrationState from_state = int_converted, IntegrationState to_state = int_uninitialized ); + + /** + * Gets the element type name for this element. + * @return Returns the string for the type name. + */ + daeString getTypeName() const; + /** + * Gets this element's name. + * @return Returns the string for the name. + * @remarks This function returns NULL if the element's name is identical to it's type's name. + */ + daeString getElementName() const; + /** + * Sets this element's name. + * @param nm Specifies the string to use as the element's name. + * @remarks Use caution when using this function since you can easily create invalid COLLADA documents. + */ + void setElementName( daeString nm ); + + /** + * Gets the element ID if it exists. + * @return Returns the value of the ID attribute, if there is such + * an attribute on this element type. + * @return the string for the element ID if it exists. + */ + daeString getID() const; + + //!!! ACL + /** + * Gets the children/sub-elements of this element. + * This is a helper function used to easily access an element's children without the use of the + * _meta objects. This function adds the convenience of the _contents array to elements that do + * not contain a _contents array. + * @param array The return value. An elementref array to append this element's children to. + */ + //void getChildren( daeElementRefArray &array ); + void getChildren( daeTArray > &array ); + + /** + * Clones/deep copies this @c daeElement and all of it's subtree. + * @param idSuffix A string to append to the copied element's ID, if one exists. + * Default is no ID mangling. + * @param nameSuffix A string to append to the copied element's name, if one exists. + * Default is no name mangling. + * @return Returns a @c daeElement smartref of the copy of this element. + */ + daeSmartRef clone( daeString idSuffix = NULL, daeString nameSuffix = NULL ); + +public: + /** + * Resolves all @c daeURIs yet to be resolved in all @c daeElements that have been + * created. + * This is used as part of post-parsing process of a COLLADA instance document, + * which results in a new document in the database. + */ + static void resolveAll(); +public: + /** + * Releases the element passed in. This function is a static wrapper that invokes + * elem->release() on the passed in element, + * if it is not NULL. + * @param elem Element to call @c release() for, if the element exists. + */ + static void release(const daeElement* elem) {if (elem != NULL) elem->release();} + + /** + * Increments the reference counter for the element passed in. This function is a static wrapper + * that invokes elem->ref() on the passed in element, + * if it is not NULL. + * @param elem Element to call @c ref() for, if the element exists. + */ + static void ref(const daeElement* elem) { if (elem != NULL) elem->ref(); } + + /** + * Appends the passed in element to the list of elements that need to be resolved. + * The elements in this list will be resolved during @c resolveAll(). + * @param elem Element to add to the list of elements + * waiting for their @c daeURIs to be resolved. + */ + static void appendResolveElement(daeElement* elem); + +}; +#include +typedef daeSmartRef daeElementRef; +typedef daeSmartRef daeElementConstRef; +//#include +typedef daeTArray daeElementRefArray; + +extern daeElementRef DAECreateElement(int nbytes); + +#endif //__DAE_ELEMENT_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeError.h b/Extras/COLLADA_DOM/include/dae/daeError.h new file mode 100644 index 000000000..15c1a199d --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeError.h @@ -0,0 +1,46 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE__ERROR__ +#define __DAE__ERROR__ + +/** Success */ +#define DAE_OK 0 +/** Fatal Error, should never be returned unless there is a bug in the library. */ +#define DAE_ERR_FATAL -1 +/** Call invalid, the combination of parameters given is invalid. */ +#define DAE_ERR_INVALID_CALL -2 +/** IO error, the file hasn't been found or there is a problem with the IO plugin. */ +#define DAE_ERR_BACKEND_IO -100 +/** The IOPlugin backend wasn't able to successfully validate the data. */ +#define DAE_ERR_BACKEND_VALIDATION -101 +/** The IOPlugin tried to write to a file that already exists and the "replace" parameter was set to false */ +#define DAE_ERR_BACKEND_FILE_EXISTS -102 +/** Error in the syntax of the query. */ +#define DAE_ERR_QUERY_SYNTAX -200 +/** No match to the search criteria. */ +#define DAE_ERR_QUERY_NO_MATCH -201 +/** A document with that name already exists. */ +#define DAE_ERR_COLLECTION_ALREADY_EXISTS -202 +/** A document with that name does not exist. */ +#define DAE_ERR_COLLECTION_DOES_NOT_EXIST -203 +/** Function is not implemented. */ +#define DAE_ERR_NOT_IMPLEMENTED -1000 + +/** Gets the ASCII error string. +* @param errorCode Error code returned by a function of the API. +* @return Returns an English string describing the error. +*/ +const char *daeErrorString(int errorCode); + +#endif //__DAE__ERROR__ diff --git a/Extras/COLLADA_DOM/include/dae/daeErrorHandler.h b/Extras/COLLADA_DOM/include/dae/daeErrorHandler.h new file mode 100644 index 000000000..458721474 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeErrorHandler.h @@ -0,0 +1,65 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef _DAE_ERROR_HANDLER_ +#define _DAE_ERROR_HANDLER_ + +#include + +/** + * The @c daeErrorHandler class is a plugin that allows the use to overwrite how error and warning + * messages get handled in the client application. An example of this would be a class that reports + * the message to a gui front end instead of just printing on stdout. + */ +class daeErrorHandler { +public: + /** + * Constructor. + */ + daeErrorHandler(); + /** + * Destructor. + */ + virtual ~daeErrorHandler(); + + /** + * This function is called when there is an error and a string needs to be sent to the user. + * You must overwrite this function in your plugin. + * @param msg Error message. + */ + virtual void handleError( daeString msg ) = 0; + /** + * This function is called when there is a warning and a string needs to be sent to the user. + * You must overwrite this function in your plugin. + * @param msg Warning message. + */ + virtual void handleWarning( daeString msg ) = 0; + + /** + * Sets the daeErrorHandler to the one specified. + * @param eh The new daeErrorHandler to use. Passing in NULL results in the default plugin being used. + */ + static void setErrorHandler( daeErrorHandler *eh ); + /** + * Returns the current daeErrorHandlerPlugin. DaeErrorHandler implements a singleton design pattern + * so you can get the current daeErrorHandler statically. + * @return The current daeErrorHandler. + */ + static daeErrorHandler *get(); + +private: + static daeErrorHandler *_instance; + static daeBool _default; +}; + +#endif diff --git a/Extras/COLLADA_DOM/include/dae/daeGenericPlatform.h b/Extras/COLLADA_DOM/include/dae/daeGenericPlatform.h new file mode 100644 index 000000000..4d35110cf --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeGenericPlatform.h @@ -0,0 +1,31 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_WIN32_PLATFORM_H__ +#define __DAE_WIN32_PLATFORM_H__ + +#define PLATFORM_INT8 char +#define PLATFORM_INT16 short +#define PLATFORM_INT32 int +#define PLATFORM_INT64 long +#define PLATFORM_INT128 long long +#define PLATFORM_UINT8 unsigned char +#define PLATFORM_UINT16 unsigned short +#define PLATFORM_UINT32 unsigned int +#define PLATFORM_UINT64 unsigned long +#define PLATFORM_UINT128 unsigned long long +#define PLATFORM_FLOAT32 float +#define PLATFORM_FLOAT64 double + + +#endif diff --git a/Extras/COLLADA_DOM/include/dae/daeIDRef.h b/Extras/COLLADA_DOM/include/dae/daeIDRef.h new file mode 100644 index 000000000..c137eefc3 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeIDRef.h @@ -0,0 +1,315 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_IDREF_H__ +#define __DAE_IDREF_H__ + +#include +#include + +/** + * The @c daeIDRef is a simple class designed to aid in the parsing and resolution of + * ID references inside of COLLADA elements. + * A @c daeIDRef is created for every IDREF data type in the COLLADA schema. + * It also has the capability to attempt to resolve this reference + * into a @c daeElement. If a @c daeIDRef is stored within a @c daeElement it fills + * in its container field to point to the containing element. + * + * The main API is the @c daeIDRef::resolveElement() will use a @c daeIDRefResolver + * to search for the @c daeElement inside of a @c daeDatabase. + * + */ +class daeIDRef +{ +public: + /** + * An enum describing the status of the ID resolution process. + */ + enum ResolveState{ + /** No ID specified */ + id_empty, + /** ID specified but not resolved */ + id_loaded, + /** ID resolution pending */ + id_pending, + /** ID resolved correctly */ + id_success, + /** Resolution failed because ID was not found */ + id_failed_id_not_found, + /** Resolution failed because ID was invalid */ + id_failed_invalid_id, + /** Resoltion failed due to invalid reference */ + id_failed_invalid_reference, + /** Resolution failed due to an external error */ + id_failed_externalization + }; + +private: + /** Id used to refer to another element */ + daeString id; + + /** Reference to the actual element the ID refers to */ + daeElementRef element; + + /** Element that owns this ID (if any) */ + daeElement* container; + + /** Current state of this id's resolution */ + ResolveState state; + +public: + /** + * Gets the element that this URI resolves to in memory. + * @return Returns a ref to the element. + */ + inline daeElementRef getElement(){return(element);}; + + /** + * Gets the element that this URI resolves to in memory. + * @return Returns a ref to the element. + */ + inline daeElementConstRef getElement() const {return(element);}; + + /** + * Sets the element that this URI resolves to in memory. + * @param newref A ref to the element. + */ + inline void setElement(daeElementRef newref){element=newref;}; + + /** + * Gets the resolve state of the URI. + * @return Returns the current state. + * @note This will be removed when daeURI starts managing its state internally. + */ + inline ResolveState getState() const {return(state);}; + + /** + * Sets the resolve state of the URI. + * @param newState The new state. + * @note This will be removed when daeURI starts managing its state internally. + */ + inline void setState(ResolveState newState){state=newState;}; + + /** + * Gets a pointer to the @c daeElement that contains this URI. + * @return Returns the pointer to the containing daeElmement. + */ + + inline daeElement* getContainer() const {return(container);}; + /** + * Sets the pointer to the @c daeElement that contains this URI. + * @param element Pointer to the containing @c daeElmement. + */ + inline void setContainer(daeElement* element){container=element;}; + +public: + /** + * Simple Constructor + */ + daeIDRef(); + /** + * Destructor + */ + ~daeIDRef(); + + /** + * Constructs an id reference via a string, using @c setID(); loads the status. + * @param id ID to construct a reference for, passed to @c setID() automatically. + */ + daeIDRef(daeString id); + + /** + * Constructs a new id reference by copying an existing one. + * @param constructFromIDRef @c daeIDRef to copy into this one. + */ + daeIDRef(daeIDRef& constructFromIDRef); + + /** + * Copies ID into the id data member. + * After the call to @c setID(), the state is set to @c id_loaded + * @param ID String to use to configure this @c daeIDRef. + */ + void setID(daeString ID); + + /** + * Gets the ID string + * @return Returns the full ID string from id. + */ + daeString getID() const; + + /** + * Uses the @c daeIDRefResolver static API to try to resolve this ID + * into a @c daeElement reference. + * This function can effectively force a load of a file, perform + * a database query, et cetera based on the @c daeIDRefResolver plugins + * implemented. + */ + void resolveElement( daeString typeNameHint = NULL ); + + /** + * Configures the id string of this @c daeIDRef based on the element set its element data member. + * Uses @c daeElement::getID() to get the element's ID information to configure + * the id string. + */ + void resolveID(); + + /** + * Sets the state of this @c daeIDRef to @c id_pending, as it is awaiting a call to + * @c resolveElement(). + */ + void validate(); + + /** + * Copies from into this. + * The function does a simple copy, and not "base validation". + * @param from @c daeIDRef to copy from. + */ + void copyFrom(daeIDRef& from); + + /** + * Outputs all components of this @c daeIDRef to stderr. + */ + void print(); + + /** + * Resets this @c daeIDRef; frees all string references + * and returns state to @c empty. + */ + void reset(); + + /** + * Initializes the @c daeIDREf, setting id, element, and container to NULL. + */ + void initialize(); +}; + +class daeIDRefResolver; +typedef daeTArray daeIDRefResolverPtrArray; + +/** + * The @c daeIDRefResolver class is the plugin point for @c daeIDRef resolution. + * This class is an abstract base class that defines an interface for + * resolving @c daeIDRefs. + * All instances of @c daeIDRefResolvers are tracked centrally. + * Every @c daeIDRef is passed through this list of @c aeIDRefResolvers for resolution. + * The list is ordered on a first come, first serve basis, and resolution + * terminates after any resolver instance is able to resolve the ID. + */ +class daeIDRefResolver +{ +public: + /** + * Constructor; base constructor appends @c this to _KnownResolvers list. + */ + daeIDRefResolver(); + + /** + * Destructor + */ + virtual ~daeIDRefResolver(); + +protected: + static daeIDRefResolverPtrArray _KnownResolvers; + +public: + /** + * Iterates through known resolvers + * calling @c resolveElement(). + * @param id @c daeIDRef to resolve. + */ + static void attemptResolveElement(daeIDRef &id, daeString typeNameHint = NULL ); + + /** + * attemptResolveID iterates through known resolvers + * calling resolveID(). + * @param id @c daeIDRef to resolve. + */ + static void attemptResolveID(daeIDRef &id); + +public: // Abstract Interface + /** + * Provides an abstract interface to convert a @c daeIDRef into a @c daeElement. + * @param IDRef @c daeIDRef to resolve. + * @return Returns true if the @c daeIDRefResolver successfully resolved the IDRef, + * returns false otherwise. + */ + virtual daeBool resolveElement(daeIDRef& IDRef, daeString typeNameHint = NULL ) = 0; + /** + * Provides an abstract interface to convert a @c daeElement into a @c daeIDRef. + * @param IDRef @c daeIDRef to resolve. + * @return Returns true if the @c daeIDRefResolver successfully resolved the element + * into a @c daeIDRef, returns false otherwise. + */ + virtual daeBool resolveID(daeIDRef& IDRef) = 0; + + /** + * Gets the name of this resolver. + * @return Returns the string name. + */ + virtual daeString getName() = 0; + +}; + +class daeDatabase; + +/** + * The @c daeDefaultIDRefResolver resolves a @c daeIDRef by checking with a database. + * It is a concrete implementation for @c daeIDRefResolver. + */ +class daeDefaultIDRefResolver : public daeIDRefResolver +{ +public: + /** + * Constructor + * @param database @c daeDatabase for this implementation. + */ + daeDefaultIDRefResolver(daeDatabase* database); + + /** + * Destructor + */ + ~daeDefaultIDRefResolver(); + +protected: + daeDatabase* _database; + +public: // Abstract Interface + /* + * Implements base class abstract routine from @c daeIDRefResolver. + */ + virtual daeBool resolveElement(daeIDRef& id, daeString typeNameHint = NULL ); + + /* + * Implements base class abstract routine from @c daeIDRefResolver. + */ + virtual daeBool resolveID(daeIDRef& id); + + /* + * Implements base class abstract routine from @c daeIDRefResolver. + */ + virtual daeString getName(); +}; + +#endif //__DAE_IDREF_H__ + + + + + + + + + + + + diff --git a/Extras/COLLADA_DOM/include/dae/daeIOPlugin.h b/Extras/COLLADA_DOM/include/dae/daeIOPlugin.h new file mode 100644 index 000000000..ce4a5f0f7 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeIOPlugin.h @@ -0,0 +1,112 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_IOPLUGIN__ +#define __DAE_IOPLUGIN__ + +#include +class daeDatabase; +class daeMetaElement; +class daeURI; +class daeDocument; + +/** +* The @c daeIOPlugin class provides the input/output plugin interface, which is +* the interface between the COLLADA runtime and the backend storage. A native +* COLLADA XML plugin implementation is provided along with this interface. +*/ +class daeIOPlugin +{ +public: + /** + * Destructor + */ + virtual ~daeIOPlugin() {} + /** + * Sets the top meta object. + * Called by @c dae::setIOPlugin() when the IO plugin changes. It passes to this function the + * top meta object, which is the root of a + * hierarchy of @c daeMetaElement objects. This top meta object is capable of creating + * any of the root objects in the DOM tree. + * @param topMeta Top meta object to use to create objects to fill the database. + * @return Returns DAE_OK if successful, otherwise returns a negative value defined in daeError.h. + */ + virtual daeInt setMeta(daeMetaElement *topMeta) = 0; + + /** @name Database setup */ + //@{ + /** + * Sets the database to use. + * All @c daeIOPlugins use the same interface to the @c daeDatabase, + * @c setDatabase() tells the @c daeIOPlugin which @c daeDatabase object it should use + * for storage and queries. + * @param database Database to set. + */ + virtual void setDatabase(daeDatabase* database) = 0; + //@} + + + /** @name Operations */ + //@{ + /** + * Imports content into the database from an input. + * The input can be a file, a database or another runtime. + * @param uri the URI of the COLLADA document to load, not all plugins accept all types of URIs, + * check the documentation for the IO plugin you are using. + * @param docBuffer A string containing the text of the document to load. This is an optional attribute + * and should only be used if the document has already been loaded into memory. + * @return Returns DAE_OK if successfully loaded, otherwise returns a negative value defined in daeError.h. + * @see @c daeInterface::load(). + */ + virtual daeInt read(daeURI& uri, daeString docBuffer) = 0; + + /** @name Operations */ + //@{ + /** + * Writes a specific document to an output. + * @param name URI to write the document to, not all IO plugins support all types of URIs + * check the documentation for the IO plugin you are using. + * @param document Pointer to the document that we're going to write out. + * @param replace True if write should overwrite an existing file. False otherwise. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + * @see @c daeInterface::saveAS() + */ + virtual daeInt write(daeURI *name, daeDocument *document, daeBool replace) = 0; + //@} + + /** @name Load/Save Progress */ + //@{ + /** + * Gets the progress of @c load() operation. + * This function can be used from another thread to check the progress of a @c load() + * operation. The user can update a progress bar bytesParsed/totalBytes gives the + * percentage of progress of the operation. + * @param bytesParsed Pointer to an integer that receives the number of bytes already + * consumed from the file, can be NULL if the user don't want to retrieve this information. + * @param lineNumber Pointer to an integer that receives the number of lines read so far, + * can be NULL. + * @param totalBytes Pointer to an integer that receives the total number of bytes in the + * file currently beeing loaded, can be NULL. + * @param reset Indicates whether to reset the counters. A value of false is the default behaviour + * that fits most usage. Set it to true to reset + * the bytesParsed and lineNumber counters. The system resets the counter at the beginning of + * each file. + */ + virtual void getProgress(daeInt* bytesParsed, + daeInt* lineNumber, + daeInt* totalBytes, + daeBool reset = false ) = 0; + //@} +}; + +#endif // __DAE_IOPLUGIN__ diff --git a/Extras/COLLADA_DOM/include/dae/daeIntegrationObject.h b/Extras/COLLADA_DOM/include/dae/daeIntegrationObject.h new file mode 100644 index 000000000..615185c73 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeIntegrationObject.h @@ -0,0 +1,179 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_INTEGRATION_OBJECT_H__ +#define __DAE_INTEGRATION_OBJECT_H__ + +#include + +class daeIntegrationObject; +typedef daeSmartRef daeIntegrationObjectRef; +/** + * The @c daeIntegrationObject class provides methods to translate COLLADA + * objects to and from application objects. + */ +class daeIntegrationObject : public daeElement +{ +public: + /** + * Constructor. + */ + daeIntegrationObject() { _element = NULL; _object = NULL; _from_state = int_uninitialized; _to_state = int_uninitialized; } + /** + * Destructor. + */ + virtual ~daeIntegrationObject() {} + +public: + /** A smartRef to the element associated with this integration object. */ + daeElementRef _element; + /** A pointer at which to store the user object associated with this element. */ + void* _object; + /** An enum describing the state of the conversion from COLLADA. */ + IntegrationState _from_state; + /** An enum describing the state of the conversion to COLLADA. */ + IntegrationState _to_state; + +public: + /** + * Sets the element associated with this integration object. + * @param element A daeSmartRef to the element for this integration object. + */ + void setElement(daeElementRef element) { _element = element; } + /** + * Gets the element associated with this integration object. + * @return The element associated with this integration object. + */ + daeElementRef getElement() { return _element; } + /** + * Sets the user object associated with this integration object. + * @param object A void * to the user object to be associated with this integration object. + */ + void setObject(void* object) { _object = object; } + /** + * Gets the user object associated with this integration object. + * @return The user object associated with this integration object. + */ + void* getObject() { return _object; } +public: // Do not implement these by default + virtual daeElementRef lookupElement(daeString s) { (void)s; return NULL;} + virtual daeIntegrationObjectRef lookup(daeString s) { (void)s; return NULL;} +protected: + /** + * Defines the code to create the application-specific data structure associated with the DOM class + * for this integration template. This method sets up the integration object for the DOM class. + * @param element A daeSmartRef to the element to convert into the user's structure. + */ + virtual void createFrom(daeElementRef element) = 0; + /** + * Defines the code to convert the COLLADA Object Model data structure into your application-specific + * data structure. + */ + virtual void fromCOLLADA() = 0; + /** + * Defines any postprocessing code that must execute after the basic conversion. + */ + virtual void fromCOLLADAPostProcess() = 0; + /** + * Defines code to create the COLLADA Object Model data structure associated with the DOM class for + * this template. + * @param userData A pointer to the application-specific data structure to convert to the DOM structure. + */ + virtual void createTo(void *userData) = 0; + /** + * Defines the code to convert your application's data structures back into COLLADA Object Model data + * structures. + */ + virtual void toCOLLADA() = 0; + /** + * Defines any postprocessing code that must execute after the basic conversion. + */ + virtual void toCOLLADAPostProcess() = 0; + +public: + /** + * Defines the code to create the application-specific data structure associated with the DOM class + * for this integration template. This method sets up the integration object for the DOM class. This + * method checks and updates the conversion state stored in _from_state and converts only if + * necessary. + * @param element A daeSmartRef to the element to convert into the user's structure. + */ + void createFromChecked(daeElementRef element) { + if ( _from_state >= int_created ) { + return; + } + createFrom(element); + _from_state = int_created; + }; + /** + * Defines the code to convert the COLLADA Object Model data structure into your application-specific + * data structure. This method checks and updates the conversion state stored in _from_state and + * converts only if necessary. + */ + void fromCOLLADAChecked() { + if ( _from_state >= int_converted ) { + return; + } + fromCOLLADA(); + _from_state = int_converted; + }; + /** + * Defines any postprocessing code that must execute after the basic conversion. This method + * checks and updates the conversion state stored in _from_state and converts only if necessary. + */ + void fromCOLLADAPostProcessChecked() { + if ( _from_state >= int_finished) { + return; + } + fromCOLLADAPostProcess(); + _from_state = int_finished; + }; + /** + * Defines code to create the COLLADA Object Model data structure associated with the DOM class for + * this template. This method checks and updates the conversion state stored in _to_state and + * converts only if necessary. + * @param userData A pointer to the application-specific data structure to convert to the DOM structure. + */ + void createToChecked(void *userData) { + if ( _to_state >= int_created ) { + return; + } + createTo(userData); + _to_state = int_created; + }; + /** + * Defines the code to convert your application's data structures back into COLLADA Object Model data + * structures. This method checks and updates the conversion state stored in _to_state and + * converts only if necessary. + */ + void toCOLLADAChecked() { + if ( _to_state >= int_converted ) { + return; + } + toCOLLADA(); + _to_state = int_converted; + }; + /** + * Defines any postprocessing code that must execute after the basic conversion. This method + * checks and updates the conversion state stored in _to_state and converts only if necessary. + */ + void toCOLLADAPostProcessChecked() { + if ( _to_state >= int_finished) { + return; + } + toCOLLADAPostProcess(); + _to_state = int_finished; + }; + +}; +#endif diff --git a/Extras/COLLADA_DOM/include/dae/daeInterface.h b/Extras/COLLADA_DOM/include/dae/daeInterface.h new file mode 100644 index 000000000..9271586c1 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeInterface.h @@ -0,0 +1,231 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_INTERFACE__ +#define __DAE_INTERFACE__ + +#include +class daeElement; +class daeDatabase; +class daeIOPlugin; +class domCOLLADA; + +/** +* Integration library meta register function. +* +* Such a function (@c intRegisterElements() )is autogenerated by the COLLADA code generator +* and can be modified if necessary to register the meta of the +* integration library objects. +*/ +typedef void (*daeIntegrationLibraryFunc)(); + +/** +* The @c daeInterface class provides an interface with the COLLADA runtime database. +*/ +class daeInterface +{ +public: + /** + * Destructor. + */ + virtual ~daeInterface() {} + + /** @name Database setup + * management of the database that stores the COLLADA elements. + */ + //@{ + /** + * Gets the COLLADA runtime database currently being used. + * @return Returns the database currently being used. + */ + virtual daeDatabase* getDatabase() = 0; + /** + * Sets the COLLADA runtime database to use. + * @param database Database that stores the COLLADA data, + * if set to NULL a default database is set. + * @return Returns @c DAE_OK if success, otherwise, returns a negative error value as defined in daeError.h. + */ + virtual daeInt setDatabase(daeDatabase* database) = 0; + //@} + + /** @name IOPlugin setup + * handle the backend, which can import or export the COLLADA + * database to a file system, to a runtime or to any other storage system. + */ + //@{ + /** + * Gets the @c daeIOPlugin currently set. + * @return Returns the @c daeIOPlugin currently set on the interface. + */ + virtual daeIOPlugin* getIOPlugin() = 0; + /** + * Sets the plugin which will be the interface between the COLLADA runtime database + * and the rest of the system. + * It can be used to read or write from a native XML file, to convert, or to store + * in a more complex structure like a storage database. + * @param plugin Plugin to use, if set to NULL a default plugin is set. + * @return Returns @c DAE_OK if success, otherwise, returns a negative error value as defined in daeError.h. + */ + virtual daeInt setIOPlugin(daeIOPlugin* plugin) = 0; + //@} + + /** @name Integration Library Setup + * definition of an integration library to use when processing COLLADA file. + * It defines a framework for a user to insert a source code that will be called + * in the context of an import or export. Hence, it's the preferred way of + * accessing COLLADA runtime structure and convert between COLLADA and the user's + * runtime. + */ + //@{ + /** + * Gets the integration library register function currently being used. + * @return Returns the integration library register function currently being used. + */ + virtual daeIntegrationLibraryFunc getIntegrationLibrary() = 0; + /** + * Sets the integration library register function. + * @param regFunc Integration library register function to use. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + */ + virtual daeInt setIntegrationLibrary(daeIntegrationLibraryFunc regFunc)=0; + //@} + + /** @name Batch import/export operations + * import or export a COLLADA database by using the daeIOPlugin currently set. + */ + //@{ + /** + * Loads a COLLADA document into the runtime database + * @param name the document to load. The format for this is defined by the IO plugin + * being used, in most cases this will be an rfc 2396 compliant relative or absolute URI. Please check + * the class documentation for the IO plugin you are using for specific restrictions. Not all IO plugins + * support all types of URIs. + * @param docBuffer A string containing the text of the document to load. This is an optional attribute + * and should only be used if the document has already been loaded into memory. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + */ + virtual daeInt load(daeString name, daeString docBuffer = NULL) = 0; + /** + * Saves a single document/document back to the location it was loaded from. + * @param documentName the name of the loaded document to be saved, in most cases this will be an rfc 2396 compliant + * URI but some IO plugins may work differently. Please check the class documentation for the IO plugin you are using for specific restrictions. + * @param replace If set to false, save won't save over top of an existing document and will return a DAE_ERR_BACKEND_FILE_EXISTS + * error. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + */ + virtual daeInt save(daeString documentName, daeBool replace=true) = 0; + /** + * Saves a single document/document back to the location it was loaded from. + * @param documentIndex the index of a loaded document to be saved. + * @param replace If set to false, save won't save over top of an existing document and will return a DAE_ERR_BACKEND_FILE_EXISTS + * error. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + */ + virtual daeInt save(daeUInt documentIndex=0, daeBool replace=true) = 0; + /** + * Saves a single document/document from the runtime database by name. + * @param name the name to save the document to. The format for this is defined by the IO plugin + * being used, in most cases this will be an rfc 2396 compliant relative or absolute URI. Please check + * the class documentation for the IO plugin you are using for specific restrictions. Not all IO plugins + * support all types of URIs. + * @param documentName the name of the document/document to save. This is also defined by the IO plugin, in + * most cases this will be the URI of where the document was loaded from. + * @param replace If set to false, saveAs won't save over top of an existing document and will return a DAE_ERR_BACKEND_FILE_EXISTS + * error. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + */ + virtual daeInt saveAs(daeString name, daeString documentName, daeBool replace=true) = 0; + /** + * Saves a single document/document from the runtime database by index. + * @param name the name to save the document to. The format for this is defined by the IO plugin + * being used, in most cases this will be an rfc 2396 compliant relative or absolute URI. Please check + * the class documentation for the IO plugin you are using for specific restrictions. Not all IO plugins + * support all types of URIs. + * @param documentIndex the index of the document/document to save, 0 is the first document loaded...etc. + * Defaults to saving the first document loaded + * @param replace If set to false, saveAs won't save over top of an existing document and will return a DAE_ERR_BACKEND_FILE_EXISTS + * error. + * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. + */ + virtual daeInt saveAs(daeString name, daeUInt documentIndex=0, daeBool replace=true) = 0; + /** + * Unloads a specific document from the runtime database. + * @param name Name of the document to remove. + * @return Returns DAE_OK if unloaded successfully, otherwise returns a negative value as defined in daeError.h. + * @note This function is not currently implemented. + */ + virtual daeInt unload(daeString name) = 0; + /** + * Unloads all the documents of the runtime database. + * This function frees all the @c dom* objects and integration objects created so far, + * except the object on which the user still has a smart pointer reference. + * @return Returns DAE_OK if all documents unloaded successfully, otherwise returns a negative value as defined in daeError.h. + */ + virtual daeInt clear() = 0; + //@} + + /** @name Import/export progress + */ + //@{ + /** + * Gets the progress of @c load() operation. + * This function can be used from another thread to check the progress of a @c load() + * operation. The user can update a progress bar bytesParsed/totalBytes gives the + * percentage of progress of the operation. + * @param bytesParsed Pointer to an integer that receives the number of bytes already + * consumed from the file, can be NULL if the user don't want to retrieve this information. + * @param lineNumber Pointer to an integer that receives the number of lines read so far, + * can be NULL. + * @param totalBytes Pointer to an integer that receives the total number of bytes in the + * file currently being loaded, can be NULL. + * @param reset Indicates whether to reset the counters. A value of false is the default behavior + * that fits most usage. Set it to true to reset + * the bytesParsed and lineNumber counters. The system resets the counter at the beginning of + * each file. + */ + virtual void getProgress(daeInt* bytesParsed, + daeInt* lineNumber, + daeInt* totalBytes, + daeBool reset = false )=0; + //@} + + /** @name Main DOM Query + */ + //@{ + /** + * Gets the COLLADA tree root of a given document. + * @param name Document name, for the file @c daeIOPlugin, this will be the filename for a file. + * @return Returns the @c domCOLLADA root object of the document, or NULL if the document is not found. + */ + virtual domCOLLADA* getDom(daeString name) = 0; + /** + * Gets the COLLADA schema version that was used to build the DOM classes + * @return a text string with the version number in it (ie: 1.3.1) + */ + virtual daeString getDomVersion() = 0; + /** + * Sets or inserts a COLLADA tree into the database. + * The system creates a default database if none is set and then creates a document + * if the document doesn't already exist. The document keeps a reference on the + * @c daeElement, so you can then delete your own reference to the object safely. + * @param name the document name, may be an absolute or relative URI. The URI will be resolved to an absolute version + * and then compared with the absolute version of the document's URI. If the URI contains a fragment, it is stripped out. + * @param dom Root tree. + * @return Returns DAE_OK if success, otherwise returns a negative value as defined in daeError.h. + */ + virtual daeInt setDom(daeString name, domCOLLADA* dom) = 0; + //@} +}; + +#endif // __DAE_INTERFACE__ + diff --git a/Extras/COLLADA_DOM/include/dae/daeMemorySystem.h b/Extras/COLLADA_DOM/include/dae/daeMemorySystem.h new file mode 100644 index 000000000..444f0caed --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeMemorySystem.h @@ -0,0 +1,63 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_MEMORY_SYSTEM_H__ +#define __DAE_MEMORY_SYSTEM_H__ + +#include + +/** + * The @c daeMemorySystem class is a simple wrapper for memory operations. + * Every allocation passes a string pool name such that + * in the future different pools can be used based on allocation type. + * Currently the system is just a pass-through to system @c malloc. + */ +class daeMemorySystem +{ +public: + /** + * Provides a wrapper malloc with pool field. + * @param pool String name of the pool to use for this allocation. + * @param n Number of bytes to allocate. + * @return Returns the memory allocated if successful, or NULL if not. + */ + static daeRawRef malloc(daeString pool, size_t n); + + /** + * Provides a wrapper free with pool argument. + * @param pool Pool the memory should be freed from. + * @param mem Memory to be freed. + */ + static void free(daeString pool, daeRawRef mem); +}; + +// Shorthand for defining new and delete overrides for classes, bad use of macros! + +#define DAE_ALLOC \ + inline void* operator new(size_t n) { \ + return daeMemorySystem::malloc("meta",n); \ + } \ + inline void* operator new(size_t , size_t runtimeSize) { \ + return daeMemorySystem::malloc("meta",runtimeSize); \ + } \ + inline void operator delete(void* p) { \ + daeMemorySystem::free("meta",p); \ + } \ + inline void operator delete(void* p, size_t runtimeSize) { \ + (void)runtimeSize; \ + daeMemorySystem::free("meta",p); \ + } + + + +#endif // __DAE_MEMORY_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaAttribute.h b/Extras/COLLADA_DOM/include/dae/daeMetaAttribute.h new file mode 100644 index 000000000..9259792c9 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeMetaAttribute.h @@ -0,0 +1,483 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_META_ATTRIBUTE_H__ +#define __DAE_META_ATTRIBUTE_H__ + +#include +#include +#include +#include +#include + +class daeElement; +class daeMetaElement; +class daeMetaAttribute; +class daeMetaElementAttribute; + +typedef daeSmartRef daeMetaElementAttributeRef; +typedef daeSmartRef daeMetaElementRef; +typedef daeSmartRef daeMetaAttributeRef; + +typedef daeTArray daeMetaAttributeRefArray; +typedef daeTArray daeMetaAttributePtrArray; +typedef daeTArray daeMetaElementAttributeRefArray; + +/** + * The @c daeMetaAttribute class describes one attribute in a C++ COLLADA dom element. + * + * In the case of the C++ object model a conceptual attribute can be + * either a dom attribute, a dom element, or a dom value. + * Essentially, the meta attribute describes fields on the C++ class. + * However these attributes are stored separately in the containing meta + * @c daeMetaElement. + * @c daeMetaAttributes always exist inside of @c daeMetaElements. + * Each @c daeMetaAttribute has certain symantic operations it is capable of + * including @c set(), @c get(), @c print(), and @c resolve(). + * @c daeMetaAttributes use the @c daeAtomicType system as their underlying semantic + * implementation, but contain additional information about the packaging + * of the atomic types into the C++ dom classes such as offset, and + * array information. + */ +class daeMetaAttribute : public daeElement +{ +protected: + daeStringRef _name; + daeInt _offset; + daeAtomicType* _type; + daeMetaElement* _container; + daeString _default; + daeBool _isValid; + daeBool _isRequired; + +public: + /** + * Constructor + */ + daeMetaAttribute(); + + /** + * Destructor + */ + ~daeMetaAttribute() {} +public: + /** + * Determines if the value of this attribute was ever set. + * This will be the case if @c setDefault() was + * called or if the attribute was assigned a value by the input file. If you set the value yourself, + * you need to call @c setIsValid() to set this flag. + * @return Returns true if the value in this attribute is valid. + */ + daeBool getIsValid() {return _isValid; } + /** + * Sets the value that indicates if this attribute contains a valid value. + * If you don't set this on an optional + * attribute, that attribute will not be written. + * @param isValid Indicates if the value in this attribute valid, true if it is, false if not. + */ + void setIsValid(daeBool isValid) {_isValid = isValid;} + /** + * Determines if the schema indicates that this is a required attribute. + * @return Returns true if this is a required attribute, false if not. + */ + daeBool getIsRequired() {return _isRequired; } + /** + * Sets the value that indicates that this attribute is required by the schema. If set, the attribute + * will always be exported by the API regardless of its value. + * @param isRequired Indicates if the schema says this attribute is required, true if it is, false if not. + */ + void setIsRequired(daeBool isRequired) {_isRequired = isRequired;} + /** + * Sets the byte offset (from @c this) where this attribute's storage is + * found in its container element class. + * @param offset Integer byte offset from @c this pointer. + */ + void setOffset(daeInt offset) { _offset = offset; } + + /** + * Gets the byte offset (from @ this) where this attribute's storage is + * found in its container element class. + * @return Returns the integer byte offset from @c this pointer for this attribute. + */ + daeInt getOffset() { return _offset; } + + /** + * Sets the name of the attribute. + * @param name @c daeString that is directly stored as a pointer + * without being copied. + */ + void setName(daeString name) { _name = name; } + + /** + * Gets the name of this attribute. + * @return Returnsthe name of this attribute. + */ + daeStringRef getName() { return _name; } + + /** + * Sets the type of the attribute. + * @param type @c daeAtomicType to use for interacting with this + * attribute in a containing @c daeElement. + */ + void setType(daeAtomicType* type) { _type = type; } + + /** + * Gets the @c daeAtomicType used by this attribute. + * @return Returns the @c daeAtomicType that this attribute uses for its + * implementation. + */ + daeAtomicType* getType() { return _type; } + + /** + * Sets the default for this attribute via a string. The attribute's + * type is used to convert the string into a binary value + * inside of an element. + * @param defaultVal @c daeString representing the default value. + */ + void setDefault(daeString defaultVal) { _default = defaultVal; } + + /** + * Gets the default for this attribute via a string. The attribute's + * type is used to convert the string into a binary value + * inside of an element. + * @return Returns a @c daeString representing the default value. + */ + daeString getDefault() { return _default; } + + /** + * Sets the containing @c daeMetaElement for this attribute. + * @param container Element on which this @c daeMetaAttribute belongs. + */ + void setContainer(daeMetaElement* container) { _container = container; } + + /** + * Gets the containing @c daeMetaElement for this attribute. + * @return Returns the @c daeMetaElement to which this @c daeAttribute belongs. + */ + daeMetaElement* getContainer() { return _container; } + + /** + * Gets the number of particles associated with this attribute in instance e. + * @param e Containing element to run the operation on. + * @return Returns the number of particles associated with this attribute + * in instance e. + */ + virtual daeInt getCount(daeElement* e); + + /** + * Gets a particle from containing element e based on index. + * @param e Containing element from which to get the element. + * @param index Index of the particle to retrieve if indeed + * there is an array of elements rather than a singleton. + * @return Returns the associated particle out of parent element e, based on index, if necessary. + */ + virtual daeMemoryRef get(daeElement* e, daeInt index); + +public: // STATIC MEMBERS + /** + * Lists the type names that can be created by factories and indicates which _FactoryTemplates to use for each type. + */ + static daeStringRefArrayArray _NameBindings; + /** + * Points to the factory objects used to construct various types of attributes, _NameBindings specifies which type names are bound to which factories. + */ + static daeMetaAttributeRefArray _FactoryTemplates; + +public: //STATIC INTERFACE + /** + * Obsolete + */ + static daeMetaAttributeRef Factory(daeStringRef xmlTypeName); + /** + * Obsolete + */ + static void InitializeKnownTypes(); + +public: + /** + * Clones the @c daeMetaAttribute. + * @return Returns a duplicate of this @c daeMetaAttribute. + * @note Not Implemented. + */ + virtual daeMetaAttributeRef clone(); + + /** + * Resolves a reference (if there is one) in the attribute type; + * only useful for reference types. + * @param elem Containing element on which this attribute + * should be resolved. + */ + virtual void resolve(daeElementRef elem); + + /** + * Gets the number of bytes for this attribute. + * @return Returns the number of bytes in the C++ COLLADA dom element for this + * attribute. + */ + virtual daeInt getSize(); + + /** + * Gets the alignment in bytes on the class of this meta attribute type. + * @return Returns the alignment in bytes. + */ + virtual daeInt getAlignment(); + + /** + * Sets the value of this attribute on element by converting string s + * to a binary value and assigning it via the underlying @c daeAtomicType + * system. + * @param element Element on which to set this attribute. + * @param s String containing the value to be converted via the + * atomic type system. + */ + virtual void set(daeElement* element, daeString s); + + /** + * Copys the value of this attribute from fromElement into toElement. + * @param toElement Pointer to a @c daeElement to copy this attribute to. + * @param fromElement Pointer to a @c daeElement to copy this attribute from. + */ + virtual void copy(daeElement* toElement, daeElement* fromElement); + +public: + /** + * Gets the storage inside of e associated with + * this attribute. It is very useful for performing generic processing + * on elements and attributes from external tools regardless of element + * and attribute type. + * @param e Element from which to apply this attributes offset. + * @return Returns the storage associate with this attribute in e. + */ + daeChar* getWritableMemory(daeElement* e) { + return (daeChar*)e+_offset; } +}; +/** +* The @c daeMetaElementAttribute class represents a single attribute whose value is an element. +*/ +class daeMetaElementAttribute : public daeMetaAttribute +{ +public: + /** Minimum number of times this meta element can occur. */ + daeInt _minOccurs; + /** Maximum number of times this meta element can occur. */ + daeInt _maxOccurs; + /** If this element is found in a choice group in the schema */ + daeBool _isInChoice; + /** If this element is found in a sequence group in the schema */ + daeBool _isInSequence; + + /** The element found before this one in the sequence group in the schema */ + daeMetaElement* _previousInSequence; + /** The metaElement that describes the element type of this attribute */ + daeMetaElement* _elementType; +public: + /** + * Constructor + */ + daeMetaElementAttribute(); + /** + * Destructor + */ + ~daeMetaElementAttribute() {} +public: + /** + * Sets the element type for the element that this attribute points to. + * @param elementType @c daeMetaElement representing the type. + */ + void setElementType(daeMetaElement *elementType) { + _elementType = elementType; } + + /** + * Gets the element type for the element that this attribute points to. + * @return Returns the @c daeMetaElement representing the type. + */ + daeMetaElement* getElementType() { return _elementType; } + + /** + * Defines the override version of base method. + * @see daeMetaAttribute::clone() + */ + virtual daeMetaAttributeRef clone(); + + /** + * Places element child in element parent using @c this element attribute. + * @param parent The Element in which to place child. + * @param child The Element to place in parent. + */ + virtual void placeElement(daeElement* parent, daeElement* child); + /** + * Removes element child from element parent using @c this element attribute. + * @param parent The Element in which to remove child. + * @param child The Element to remove from parent. + */ + virtual void removeElement(daeElement* parent, daeElement* child); + /** + * Sets the database document associated with this element. + * @param parent The daeElement to set the document. + * @param c The @c daeDocument to associate with this element. + */ + virtual void setDocument(daeElement *parent, daeDocument* c ); + inline void setCollection(daeElement *parent, daeDocument* c ) { + setDocument( parent, c ); + } + + /** + * Gets the number of elements associated with this attribute in instance e. + * @param e Containing element to run the operation on. + * @return Returns the number of elements associated with this attribute + * in instance e. + */ + virtual daeInt getCount(daeElement* e); + + /** + * Gets an element from containing element e based on index. + * @param e Containing element from which to get the element. + * @param index Index of the element to retrieve if indeed + * there is an array of elements rather than a singleton. + * @return Returns the associated element out of parent element e, based on index, if necessary. + */ + virtual daeMemoryRef get(daeElement* e, daeInt index); + + /** + * Defines the override version of base method. + * @param element Element on which to set this attribute. + * @param s String containing the value to be converted via the + * atomic type system. + */ + virtual void set(daeElement* element, daeString s); + /** + * Defines the override version of base method. + * @param toElement Pointer to a @c daeElement to copy this attribute to. + * @param fromElement Pointer to a @c daeElement to copy this attribute from. + */ + virtual void copy(daeElement* toElement, daeElement* fromElement); +}; +typedef daeSmartRef daeMetaElementAttributeRef; +typedef daeTArray daeMetaElementAttributeArray; + + +/** + * The @c daeMetaElementArrayAttribute class is similar to daeMetaElementAttribute + * except that this meta attribute + * describes an array of elements rather than a singleton. + */ +class daeMetaElementArrayAttribute : public daeMetaElementAttribute +{ +public: + /** + * Constructor + */ + daeMetaElementArrayAttribute(); +public: + /** + * Defines the override version of this method from @c daeMetaElement. + * @return Returns a duplicate of this @c daeMetaAttribute. + * @note Not Implemented. + */ + virtual daeMetaAttributeRef clone(); + /** + * Defines the override version of this method from @c daeMetaElement. + */ + virtual void placeElement(daeElement* parent, daeElement* child); + /** + * Defines the override version of this method from @c daeMetaElement. + */ + virtual void removeElement(daeElement* parent, daeElement* child); + /** + * Sets the database document associated with this element. + * @param c The @c daeDocument to associate with this element. + */ + virtual void setDocument(daeElement *parent, daeDocument* c ); + inline void setCollection(daeElement *parent, daeDocument* c ) { + setDocument( parent, c ); + } + + /** + * Defines the override version of this method from @c daeMetaElement. + * @param e Containing element to run the operation on. + * @return Returns the number of particles associated with this attribute + * in instance e. + */ + virtual daeInt getCount(daeElement* e); + /** + * Defines the override version of this method from @c daeMetaElement. + * @param e Containing element from which to get the element. + * @param index Index of the particle to retrieve if indeed + * there is an array of elements rather than a singleton. + * @return Returns the associated particle out of parent element e, based on index, if necessary. + */ + virtual daeMemoryRef get(daeElement* e, daeInt index); + /** + * Defines the override version of this method from @c daeMetaElement. + * @param toElement Pointer to a @c daeElement to copy this attribute to. + * @param fromElement Pointer to a @c daeElement to copy this attribute from. + */ + virtual void copy(daeElement* toElement, daeElement* fromElement); +}; +typedef daeSmartRef daeMetaElementArrayAttributeRef; +typedef daeTArray daeMetaElementArrayAttributeArray; + +/** + * The @c daeMetaArrayAttribute class is simple a wrapper that implements + * an array of atomic types rather than a singleton. + * The corresponding storage is an array + * and the corresponding operations are implemented on the array + * data structure rather than on inlined storage in elements. + */ +class daeMetaArrayAttribute : public daeMetaAttribute +{ + daeMetaAttributeRef arrayType; +public: + /** + * Defines the override version of this method from @c daeMetaAttribute. + * @return Returns a duplicate of this @c daeMetaAttribute. + * @note Not Implemented. + */ + virtual daeMetaAttributeRef clone(); + /** + * Defines the override version of this method from @c daeMetaAttribute. + * @param element Element on which to set this attribute. + * @param s String containing the value to be converted via the + * atomic type system. + */ + virtual void set(daeElement* element, daeString s); + /** + * Defines the override version of this method from @c daeMetaAttribute. + * @param toElement Pointer to a @c daeElement to copy this attribute to. + * @param fromElement Pointer to a @c daeElement to copy this attribute from. + */ + virtual void copy(daeElement* toElement, daeElement* fromElement); + /** + * Defines the override version of this method from @c daeMetaElement. + * @param e Containing element to run the operation on. + * @return Returns the number of particles associated with this attribute + * in instance e. + */ + virtual daeInt getCount(daeElement* e); + /** + * Defines the override version of this method from @c daeMetaElement. + * @param e Containing element from which to get the element. + * @param index Index of the particle to retrieve if indeed + * there is an array of elements rather than a singleton. + * @return Returns the associated particle out of parent element e, based on index, if necessary. + */ + virtual daeMemoryRef get(daeElement* e, daeInt index); +}; + +#endif //__DAE_META_ATTRIBUTE_H__ + + + + + + diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaElement.h b/Extras/COLLADA_DOM/include/dae/daeMetaElement.h new file mode 100644 index 000000000..f95bedd5d --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeMetaElement.h @@ -0,0 +1,462 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_META_ELEMENT_H__ +#define __DAE_META_ELEMENT_H__ + +#include +#include +#include +#include + +typedef daeElementRef (*daeElementConstructFunctionPtr)(daeInt bytes); +class daeMetaElement; +typedef daeSmartRef daeMetaElementRef; +typedef daeTArray daeMetaElementRefArray; + +/** + * Each instance of the @c daeMetaElement class describes a C++ COLLADA dom + * element type. + * @par + * The meta information in @c daeMetaElement is a combination of the information + * required to create and maintain C++ object instances and + * the information necessary to parse and construct a hierarchy of COLLADA + * elements. + * @par + * @c daeMetaElement objects also act as factories for C++ COLLADA dom classes where + * each @c daeElement is capable of creating an instance of the class it describes. + * Further, each @c daeMetaElement contains references to other @c daeMetaElements + * for potential XML children elements. This enables this system to easily + * create @c daeElements of the appropriate type while navigating through XML + * recursive parse. + * @par + * See @c daeElement for information about the functionality that every @c daeElement implements. + */ +class daeMetaElement : public daeElement +{ +protected: + daeStringRef _name; + + daeElementConstructFunctionPtr _createFunc; + daeInt _minOccurs; + daeInt _maxOccurs; + daeStringRef _ref; + daeBool _isSequence; + daeBool _isChoice; + daeBool _needsResolve; + daeInt _elementSize; + + daeMetaElementAttributeArray _metaElements; + daeMetaAttributeRefArray _metaAttributes; + daeMetaAttributeRef _metaValue; + daeMetaElementArrayAttribute* _metaContents; + daeMetaElement * _metaIntegration; + daeMetaAttributeRef _metaID; + + daeMetaElement* _parent; + + daeMetaElement** _staticPointerAddress; + + daeMetaAttributePtrArray _resolvers; + + daeBool _isTrackableForQueries; + daeBool _usesStringContents; + + daeBool _isTransparent; + daeBool _isAbstract; + daeBool _allowsAny; + + static daeMetaElementRefArray _metas; + + daeStringArray _otherChildren; + daeStringArray _otherChildrenTypes; + daeTArray _otherChildrenContainer; + + +public: + /** + * Constructor + */ + daeMetaElement(); + + /** + * Destructor + */ + ~daeMetaElement(); + +public: // public accessors + /** + * Gets the number of possible children of elements of this type that don't actually + * belong to this type. + * @return Returns the number of other possible children. + */ + size_t getPossibleChildrenCount() { return _otherChildren.getCount(); } + /** + * Gets the name of the possible child specified. + * @param index Index into the _otherChildren array. + * @return Returns the name of the possible child specified. + */ + daeString getPossibleChildName(daeInt index) { return _otherChildren.get(index); } + /** + * Gets the containing element for the possible child specified. + * @param index Index into the _otherChildrenContainer array. + * @return Returns the containing element for the possible child specified. + */ + daeMetaElementAttribute* getPossibleChildContainer(daeInt index) { return _otherChildrenContainer.get(index); } + /** + * Gets the type of the possible child specified. + * @param index Index into the _otherChildren array. + * @return Returns a string of the type of the possible child specified. + */ + daeString getPossibleChildType(daeInt index) { return _otherChildrenTypes.get(index); } + + /** + * Determines if elements of this type can be placed in the object model. + * @return Returns true if this element type is abstract, false otherwise. + */ + daeBool getIsAbstract() { return _isAbstract; } + /** + * Determines if elements of this type should have an element tag printed when saving. + * @return Returns true if this element type should not have a tag, false otherwise. + */ + daeBool getIsTransparent() { return _isTransparent; } + /** + * Sets if elements of this type are abstract. + * @param abstract True if this type is abstract. + */ + void setIsAbstract( daeBool abstract ) { _isAbstract = abstract; } + /** + * Sets whether or not elements of this type should have an element tag printed when saving. + * @param transparent True if this type is transparent. + */ + void setIsTransparent( daeBool transparent ) { _isTransparent = transparent; } + + /** + * Determines if elements of this type should be tracked + * for daeDatabase queries. + * @return Returns true if this element type should be tracked + */ + daeBool getIsTrackableForQueries() { return _isTrackableForQueries; } + + /** + * Gets whether elements of this type have "string" based + * contents; this is necessary to change the parsing mode for strings. + * @return Returns true if this element type has string contents, false if not. + */ + daeBool getUsesStringContents() { return _usesStringContents; } + + /** + * Sets whether elements of this type should be tracked + * for @c daeDatabase queries. + * @param trackable Indicates whether this element should be tracked. + * A value of true indicates this element type should be tracked and be available for + * database queries. + */ + void setIsTrackableForQueries(daeBool trackable) { + _isTrackableForQueries = trackable; } + + /** + * Determines if elements of this type allow for any element as a child. + * @return Returns true if this element can have any child element, false otherwise. + */ + daeBool getAllowsAny() { return _allowsAny; } + /** + * Sets if elements of this type allow for any element as a child. + * @param allows True if this element allows for any child element, false otherwise. + */ + void setAllowsAny( daeBool allows ) { _allowsAny = allows; } + + /** + * Gets the @c daeMetaElement for the corresponding integration object + * associated with this COLLADA element (if any). + * @return Returns the @c daeMetaElement for the integration object; this can + * be used as a factory. + */ + daeMetaElement* getMetaIntegration() { return _metaIntegration; } + + /** + * Sets the @c daeMetaElement for the corresponding integration object + * associated with this COLLADA element (if any). + * @param mI @c daeMetaElement for the integration object; this is + * used as a factory to automatically create this integration object + * whenever an instance of this element is created. + */ + void setMetaIntegration(daeMetaElement* mI) { _metaIntegration = mI; } + + /** + * Gets the @c daeMetaAttribute for the non-element contents of a @c daeElement. + * This corresponds to a @c daeMetaFloatAttribute, @c daeMetaFloatArrayAttribute, + * et cetera. + * @return Returns the @c daeMetaAttribute pointer for the non-element contents of + * this element type. + */ + daeMetaAttribute* getValueAttribute() { return _metaValue; } + + /** + * Gets the @c daeMetaAttribute for the ID attribute of a @c daeElement. + * @return Returns the ID @c daeMetaAttribute, or NULL if the element type + * does not have an ID attribute. + */ + daeMetaAttribute* getIDAttribute() { return _metaID; } + + /** + * Gets the @c daeMetaElement associated with a child element of a given + * element type. + * @param elementName Name of the element to find as a child of @c this. + * @return Returns the @c daeMetaElement describing the potential child element, or + * NULL if no such child type exists in the context of this element. + */ + daeMetaElement* findChild(daeString elementName); + + /** + * Gets the container of this element type as defined by the COLLADA's XML + * schema. This parent type controls where this element + * can be directly inlined inside of another element. + * Although an element can be referred to in multiple places, it is only + * included in one; thus a single parent. + * @return Returns the parent @c daeMetaElement. + */ + daeMetaElement* getParent() { return _parent; } + + /** + * Gets the name of this element type. + * @return Returns the name of this element type. + */ + daeStringRef getName() { return _name; } + + /** + * Sets the name of this element type. + * @param s String name to set. + */ + void setName(daeString s) { _name = s; } + + /** + * Gets the array of element attributes associated with this element type. + * @return Returns the array of potential child elements in the XML COLLADA + * hierarchy. + */ + daeMetaElementAttributeArray& getMetaElements() { + return _metaElements; } + + /** + * Gets the array of attributes that represent URI fields that need + * to be "resolved" after the database is completely read in. + * @return Returns the array of @c daeMetaAttribute*'s with all of the relevant + * attributes. + */ + daeMetaAttributePtrArray& getMetaResolvers() { + return _resolvers; } + + /** + * Gets the array of all known attributes on this element type. + * This includes all meta attributes except those describing child + * elements. It does include the value element. + * @return Returns the array of @c daeMetaAttributeRefs. + */ + daeMetaAttributeRefArray& getMetaAttributes() { + return _metaAttributes; } + + /** + * Gets the array of element attributes associated with this element type. + * @returns Returns the array of potential child elements in the XML COLLADA + * hierarchy. + */ + daeMetaElementAttributeArray& getMetaElementArray() { + return _metaElements; } + + /** + * Gets the attribute which has a name as provided by the s parameter. + * @param s String containing the desired attribute's name. + * @return Returns the corresponding @c daeMetaAttribute, or NULL if none found. + */ + daeMetaAttribute* getMetaAttribute(daeString s); + + /** + * Sets the size in bytes of each instance of this element type. + * Used for factory element creation. + * @param size Number of bytes for each C++ element instance. + */ + void setElementSize(daeInt size) {_elementSize = size;} + + /** + * Gets the size in bytes of each instance of this element type. + * Used for factory element creation. + * @return Returns the number of bytes for each C++ element instance. + */ + daeInt getElementSize() { return _elementSize;} + +public: + /** + * Resisters with the reflective object system that the dom class described by this @c daeMetaElement + * contains a _contents array. This method is @em only for @c daeMetaElement contstuction, and + * should only be called by the system as it sets up the Reflective Object System. + * @param offset Byte offset for the contents field in the C++ + * element class. + */ + void addContents(daeInt offset); + + /** + * Gets the attribute associated with the contents meta information. + * @see @c addContents() + * @return Returns the @c daeMetaElementArrayAttribute. + */ + daeMetaElementArrayAttribute* getContents() { return _metaContents; } + + /** + * Appends another element type to be a potential child + * element of this element type. + * @param metaElement @c daeMetaElement of the potential child element. + * @param offset Byte offset where the corresponding C++ field lives + * in each c++ class instance for this element type. + * @param name The name for this attribute if the type is complex, if none is + * specified, the name of the @c daeMetaElement will be used. + */ + void appendElement(daeMetaElement* metaElement, daeInt offset, daeString name=NULL); + + /** + * Appends the potential child element + * as a list of potential child elements rather than as a singleton. + * @param metaElement @c daeMetaElement of the potential child element. + * @param offset Byte offset where the corresponding C++ field lives + * in each C++ class instance for this element type. In this case the + * C++ field will be an array of elements rather than merely a pointer to + * one. + * @param name The name for this attribute if the type is complex, if none is + * specified, the name of the metaElement will be used. + * @note This function is the same as @c appendElement(), except that it appends the potential child element + * as a list of potential child elements rather than as a singleton. + */ + void appendArrayElement(daeMetaElement* metaElement, daeInt offset, daeString name=NULL); + + /** + * Appends a @c daeMetaAttribute that represents a field corresponding to an + * XML attribute to the C++ version of this element type. + * @param attr Attribute to append to this element types list + * of potential attributes. + */ + void appendAttribute(daeMetaAttribute* attr); + + /** + * Appends a possible child and maps the name to the actual container. + * @param name The name of the child element. + * @param cont Pointer to the @c daeMetaElementAttribute which contains the element. + * @param type The type name of the possible child. + */ + void appendPossibleChild( daeString name, daeMetaElementAttribute* cont, daeString type = NULL ); + + /** + * Sets the address where the static pointer lives for this element type's + * @c daeMetaElement. For instance, daeNode::_Meta will point to its + * corresponding @c daeMetaElement. + * If the @c daeMetaElement is deleted independently, this pointer is automatically set to NULL. + * @param addr Address of the storage for the pointer to the @c daeMetaElement. + */ + void setStaticPointerAddress(daeMetaElement** addr) { + _staticPointerAddress = addr; } + + + /** + * Gets the address where the static pointer lives for this element type's + * @c daeMetaElement. For instance, daeNode::_Meta will point to its + * corresponding @c daeMetaElement. + * If the @c daeMetaElement is deleted independently, this pointer is automatically set to NULL. + * @return Returns the address of the storage for the pointer to the @c daeMetaElement. + */ + daeMetaElement** getStaticPointerAddress() { return _staticPointerAddress;} + + /** + * Registers the function that can construct a C++ instance + * of this class. Necessary for the factory system such that C++ + * can still call @c new and the @c vptr will still be initialized even when + * constructed via the factory system. + * @param func Pointer to a function that does object construction. + */ + void registerConstructor(daeElementConstructFunctionPtr func) { + _createFunc = func; } + + /** + * Determines if this element contains attributes + * of type @c daeURI which need to be resolved after they are read + * or setup. + * @return Returns true if this element type requires resolving, false if not. + */ + daeBool needsResolve() { return _needsResolve; } + + /** + * Validates this class to be used by the runtime c++ object model + * including factory creation. + */ + void validate(); + /** + * Places a child element into the parent element where the + * calling object is the @c daeMetaElement for the parent element. + * @param parent Element to act as the container. + * @param child Child element to place in the parent. + * @return Returns true if the operation was successful, false otherwise. + */ + daeBool place(daeElementRef parent, daeElementRef child); + + /** + * Invokes the factory element creation routine set by @c registerConstructor() + * to return a C++ COLLADA Object Model instance of this element type. + * @return Returns a created @c daeElement of appropriate type via the + * object creation function and the daeElement::setup() function. + */ + daeElementRef create(); + + /** + * Looks through the list of potential child elements + * for this element type finding the corresponding element type; if a corresponding element type + * is found, use that type as a factory and return an instance of that + * child type. Typically @c place() is called after @c create(childelementname) + * @param childElementTypeName Type name to create. + * @return Returns the created element if the type was found as a potential child element. + */ + daeElementRef create(daeString childElementTypeName); + + /** + * Gets the meta information for a given subelement + * @param s Name of the child element type to look up. + * @return Returns the meta information for a given subelement. + */ + daeMetaElement* getChildMetaElement(daeString s); + + /** + * Gets the meta information for a given subelement + * @param s Name of the child element type to look up. + * @return Returns the meta information for a given subelement. + */ + daeMetaElementAttribute* getChildMetaElementAttribute(daeString s); + +public: + /** + * Unused + */ + static daeMetaElement* _Schema; +public: + /** + * Empty no-op function. + */ + static void initializeSchemaMeta(); + + /** + * Releases all of the meta information contained in @c daeMetaElements. + */ + static void releaseMetas(); +}; +#endif //__DAE_META_ELEMENT_H__ + + + + + diff --git a/Extras/COLLADA_DOM/include/dae/daeSmartRef.h b/Extras/COLLADA_DOM/include/dae/daeSmartRef.h new file mode 100644 index 000000000..7f6cdf5dc --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeSmartRef.h @@ -0,0 +1,156 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_SMARTREF_H__ +#define __DAE_SMARTREF_H__ + +#include +#include + +template class daeElementWrapper {}; + +/** + * The @c daeSmartRef template class automates reference counting for + * objects derived from @c daeElement. + */ +template class daeSmartRef +{ +public: + /** + * Constructor + */ + inline daeSmartRef() : _ptr((T*) NULL){} + + /** + * Destructor + */ + inline ~daeSmartRef() { + daeElement::release((daeElement*)_ptr); } + + /** + * Constructor that will convert from one template to the other. + * unimplemented. + * @param + */ + template + inline daeSmartRef(const daeElementWrapper&) : _ptr(U::instance()) {} + + /** + * Copy Constructor that will convert from one template to the other. + * @param smartRef a daeSmartRef to the object to copy from. + */ + template + inline daeSmartRef(const daeSmartRef& smartRef) : _ptr(smartRef.cast()){ + daeElement::ref((const daeElement*)_ptr); } + + /** + * Function that returns a pointer to object being reference counted. + * @return the object being reference counted. + */ + inline T* cast() const { return _ptr; } + + /** + * Copy Constructor. + * @param smartRef a daeSmartRef of the same template type to copy from + */ + inline daeSmartRef(const daeSmartRef& smartRef) : _ptr(smartRef._ptr){ + daeElement::ref((const daeElement*)_ptr); } + + /** + * Constructor + * @param ptr a pointer to an object of the same template type. + */ + inline daeSmartRef(T* ptr) : _ptr(ptr) { + daeElement::ref((const daeElement*)_ptr); } + + /** + * Overloaded assignment operator which will convert between template types. + * @return Returns a reference to this object. + * @note Unimplemented + */ + template + inline const daeSmartRef& operator=(const daeElementWrapper&){ + daeElement::release((const daeElement*)_ptr); + _ptr = U::instance(); + return *this; } + + /** + * Overloaded assignment operator which will convert between template types. + * @param smartRef a daeSmartRef to the object to copy from. + * @return Returns a reference to this object. + */ + template + inline const daeSmartRef& operator=(const daeSmartRef& smartRef) { + T* ptr = smartRef.cast(); + daeElement::ref((const daeElement*)ptr); + daeElement::release((const daeElement*)_ptr); + _ptr = ptr; + return *this; } + + /** + * Overloaded assignment operator. + * @param other a daeSmartRef to the object to copy from. Must be of the same template type. + * @return Returns a reference to this object. + */ + inline const daeSmartRef& operator=(const daeSmartRef& other) { + T* ptr = other._ptr; + daeElement::ref((const daeElement*)ptr); + daeElement::release((const daeElement *)_ptr); + _ptr = ptr; + return *this; } + + /** + * Overloaded assignment operator. + * @param ptr a pointer to the object to copy from. Must be of the same template type. + * @return Returns a reference to this object. + */ + inline const daeSmartRef& operator=(T* ptr) { + daeElement::ref((const daeElement*)ptr); + daeElement::release((const daeElement*)_ptr); + _ptr = ptr; + return *this; } + + /** + * Overloaded member selection operator. + * @return a pointer of the template class to the object. + */ + inline T* operator->() const { + assert (_ptr != (T*)NULL); return _ptr; } + + /** + * Overloaded cast operator. + * @return a pointer of the template class to the object. + */ + inline operator T*() const { + return _ptr; } + + /** + * Static cast function. + * @param smartRef a smartRef to cast from + * @return a pointer to an object of this template class + */ + template + inline static T* staticCast(const daeSmartRef& smartRef) { + return static_cast(smartRef.cast()); } + +private: + /* The pointer to the element which is being reference counted */ + T* _ptr; +}; + +#endif // __DAE_SMARTREF_H__ + + + + + diff --git a/Extras/COLLADA_DOM/include/dae/daeStringRef.h b/Extras/COLLADA_DOM/include/dae/daeStringRef.h new file mode 100644 index 000000000..e3db034e9 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeStringRef.h @@ -0,0 +1,101 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_STRING_REF_H__ +#define __DAE_STRING_REF_H__ + +#include +#include + +/** + *Defines the @c daeStringRef class. + */ +class daeStringRef +{ +public: + /** + * Macro that defines new and delete overrides for this class + */ + DAE_ALLOC; +private: + daeString _string; + static daeStringTable _stringTable; +public: + + /** + * Destructor + */ + inline ~daeStringRef() { _string = NULL; } + + /** + * Constructor + */ + inline daeStringRef() { _string = NULL; } + + /** + * Constructor that copies from another @c daeStringRef. + * @param other Reference to copy from. + */ + inline daeStringRef(const daeStringRef& other) { + _string = other._string; } + + /** + * Constructor that creates from a const char *. + * @param string External string to create from. + */ + daeStringRef(daeString string); + + /** + * Assignment operator. + * @param other The daeStringRef to copy. + * @return A reference to this object. + */ + inline const daeStringRef& operator= (const daeStringRef& other) { + _string = other._string; + return *this; + } + + /** + * Sets a string from an external const char *. + * @param string The daeString to copy. + * @return A reference to this object. + */ + const daeStringRef& set(daeString string); + + /** + * Assignment operator from an external const char *. + * @param string The daeString to copy. + * @return A reference to this object. + */ + const daeStringRef& operator= (daeString string); + + /** + * Cast operator that returns a const char *. + */ + inline operator daeString() const { return _string; } + + /** + * Comparison operator, the comparison is done via pointers as both + * strings will have same pointer if they are the same address + * @param other The daeStringRef to compare + * @return True if strings are equal. False otherwise. + */ + inline bool operator==(const daeStringRef& other) const{ + //return (other._string == _string); } + return (!strcmp(other._string, _string)); } +}; + +typedef daeTArray daeStringRefArray; +typedef daeTArray daeStringRefArrayArray; + +#endif //__DAE_STRING_REF_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeStringTable.h b/Extras/COLLADA_DOM/include/dae/daeStringTable.h new file mode 100644 index 000000000..21fe70f68 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeStringTable.h @@ -0,0 +1,62 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_STRING_TABLE_H__ +#define __DAE_STRING_TABLE_H__ +#include +#include + +/** + * The @c daeStringTable is a simple string table class to hold a float list of strings + * without a lot of allocations. + */ +class daeStringTable +{ +public: // allocate/construct/destruct/deallocate + /** + * Macro that defines new and delete overrides for this class + */ + DAE_ALLOC; + /** + * Constructor which specifies fixed buffer size. + * @param stringBufferSize The size of the buffer to create for string allocation. + */ + daeStringTable(int stringBufferSize = 1024*1024); + + /** + * Destructor. + */ + ~daeStringTable() { clear(); } + +public: // INTERFACE + /** + * Allocates a string from the table. + * @param string const char * to copy into the table. + * @return Returns an allocated string. + */ + daeString allocString(daeString string); + + /** + * Clears the storage. + */ + void clear(); + +private: // MEMBERS + size_t _stringBufferSize; + size_t _stringBufferIndex; + daeStringArray _stringBuffersList; + + daeString allocateBuffer(); +}; + +#endif //__DAE_STRING_TABLE_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeTypes.h b/Extras/COLLADA_DOM/include/dae/daeTypes.h new file mode 100644 index 000000000..20d2f3064 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeTypes.h @@ -0,0 +1,59 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_TYPES_H__ +#define __DAE_TYPES_H__ + +#ifdef WIN32 +#include +#else +#include +#endif +#include +#include +#include +#include +#include +#include + +#include + +#define daeOffsetOf(class, member) \ + ((size_t)&(((class*)0x0100)->member) - (size_t)0x0100) + +typedef PLATFORM_INT8 daeChar; +typedef PLATFORM_INT16 daeShort; +typedef PLATFORM_INT32 daeInt; +typedef PLATFORM_INT64 daeLong; +typedef PLATFORM_UINT8 daeUChar; +typedef PLATFORM_UINT16 daeUShort; +typedef PLATFORM_UINT32 daeUInt; +typedef PLATFORM_UINT64 daeULong; +typedef PLATFORM_FLOAT32 daeFloat; +typedef PLATFORM_FLOAT64 daeDouble; + +// base types + +typedef const char* daeString; +typedef bool daeBool; +typedef const void* daeConstRawRef; +typedef void* daeRawRef; +typedef daeInt daeEnum; +typedef daeChar* daeMemoryRef; + +typedef daeChar daeFixedName[512]; + +#include +#include + +#endif //__DAE_TYPES_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeURI.h b/Extras/COLLADA_DOM/include/dae/daeURI.h new file mode 100644 index 000000000..1ef17cf73 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeURI.h @@ -0,0 +1,487 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_URI_H__ +#define __DAE_URI_H__ + +#include +#include + +/** + * The @c daeURI is a simple class designed to aid in the parsing and resolution + * of URI references inside COLLADA elements. + * A @c daeURI is created for every @c anyURL and @c IDREF in the COLLADA schema. + * For example, the element has the url= attribute of type @c anyURL, and the + * element has the target= attribute of type @c IDREF. + * The @c daeURI class contains a URI string; the @c setURI() method breaks the string into + * its components including protocol, authority, path (directory), and ID. + * It also has the capability to attempt to resolve this reference + * into a @c daeElement, through the method @c resolveElement(). + * If a @c daeURI is stored within a @c daeElement, it fills + * its container field to point to the containing element. + * + * The main API on the @c daeURI, @c resolveElement(), uses a @c daeURIResolver + * to search for the @c daeElement inside a @c daeDatabase. + * + * URIs are resolved hierarchically, where each URI is resolved based on + * the following criteria via itself and its element's base URI, which represents the + * URI of the document that contains the element, retrieved by + * daeElement::getBaseURI(). + * If no base URI is provided, then the application URI + * is used as a base. + * + * The URI resolution order for the COLLADA DOM is as follows: + * - Absolute URI is specified (see definition below): + * The URI ignores its parent/base URI when validating. + * - Relative URI is specified: + * The URI uses the base URI to provide the protocol, authority, and base path. + * This URI's path is appended to the path given the the base URI. + * This URI's file and ID are used. + * - Each level of URI is resolved in this way against the base URI of the + * containing file until the top level is reached. Then the application URI + * is used as the default. + * + * Definition of Absolute URI: + * For the purposes of the COLLADA DOM, a URI is considered absolute + * if it starts by specifying a protocol. + * For example, + * - file://c:/data/foo.dae#myScene is an absolute URI. + * - foo.dae#myScene is relative. + * - foo.dae is a top-level file reference and is relative. + * If the URI does not include a pound sign (#), the id is empty. + */ +class daeURI +{ +private: + void internalSetURI(daeString uri); + +public: + /** + * An enum describing the status of the URI resolution process. + */ + enum ResolveState{ + /** No URI specified */ + uri_empty, + /** URI specified but unresolved */ + uri_loaded, + /** Resolution pending */ + uri_pending, + /** Resolution successful */ + uri_success, + /** Failure due to unsupported URI scheme */ + uri_failed_unsupported_protocol, + /** Failure because the file was not found */ + uri_failed_file_not_found, + /** Failure because the ID was not found */ + uri_failed_id_not_found, + /** Failure due to an invalid ID */ + uri_failed_invalid_id, + /** A flag specifying that the URI should be resolved locally to its own document */ + uri_resolve_local, + /** A flag specifying that the URI should be resolved using this relative URI */ + uri_resolve_relative, + /** A flag specifying that the URI should be resolved using this absolute URI */ + uri_resolve_absolute, + /** Failure due to an invalid reference */ + uri_failed_invalid_reference, + /** Failure due to an external error */ + uri_failed_externalization, + /** Failure due to missing document */ + uri_failed_missing_container, + /** Failure because autmoatic loading of a document is turned off */ + uri_failed_external_document + }; + +private: + /** Resolved version of the URI */ + daeString uriString; + + /** Original URI before resolution */ + daeString originalURIString; + + // Parceled out of storage as const char*'s + /** Protocol substring parsed from the URI */ + daeString protocol; + /** authority substring parsed from the URI */ + daeString authority; + /** Path substring parsed from the URI */ + daeString filepath; + /** File name substring parsed from the URI */ + daeString file; + /** Id substring parsed from the URI */ + daeString id; + /** Extension parsed from the filename in the URI */ + daeString extension; + /** Reference to the element that the URI resolves to in memory */ + daeElementRef element; + /** Pointer to the element that owns this URI */ + daeElement* container; + /** Current resolver state of the URI */ + ResolveState state; + /** Flag for if this URI references an external element. */ + daeBool external; + +public: + /** + * Constructs a daeURI object that contains no URI reference. + */ + daeURI(); + /** + * Destructor + */ + ~daeURI(); + + /** + * Constructs a daeURI object that points to the application's current working + * directory. + * @param dummy An integer value that has no meaning. + * @note This is used only to initialize the Application URI. It's a simple + * workaround to insure that the ApplicationURI is initialized only once and before the user can call + * daeURI::setBaseURI() (so when we initialize ApplicationURI there is no chance of wiping out a user value). + */ + daeURI(int dummy); + + /** + * Constructs a daeURI object from a URI passed in as a string. + * @param URIString Passed to setURI() automatically. + * @param nofrag If true, the fragment part of the URI is stripped off before construction. + */ + daeURI(daeString URIString, daeBool nofrag = false); + + /** + * Constructs a daeURI object using a baseURI and a uriString. + * Calls setURI(URIString), and @c validate(baseURI). + * @param baseURI Base URI to resolve against. + * @param URIString String designating this URI. + */ + daeURI(daeURI& baseURI, daeString URIString); + + /** + * Constructs a daeURI object based on a simple copy from an existing @c daeURI. + * @param constructFromURI URI to copy into this one. + */ + daeURI(daeURI& constructFromURI); + + /** + * Gets the ID string parsed from the URI. + * @return Returns a pointer to the string. + */ + inline daeString getID(){return(id);}; + + /** + * Gets the file string parsed from the URI. + * @return Returns a pointer to the string. + */ + inline daeString getFile(){return(file);}; + + /** + * Gets the path string to the file, without the path name, parsed from the URI. + * @return Returns a pointer to the string. + */ + inline daeString getFilepath(){return(filepath);}; + + /** + * Gets the protocol string parsed from the URI. + * @return Returns a pointer to the string. + */ + inline daeString getProtocol(){return(protocol);}; + + /** + * Gets the authority string parsed from the URI. + * @return Returns a pointer to the string. + */ + inline daeString getAuthority(){return(authority);}; + + /** + * Gets the extension string parsed from the URI. + * @return Returns a pointer to the string. + */ + inline daeString getExtension(){return(extension);}; + + /** + * Gets the element that this URI resolves to in memory. + * @return Returns a ref to the element. + */ + inline daeElementRef getElement(){return(element);}; + + /** + * Gets the element that this URI resolves to in memory. + * @return Returns a ref to the element. + */ + inline daeElementConstRef getElement() const {return(element);}; + + /** + * Sets the element that this URI resolves to in memory. + * @param newref A ref to the element. + */ + inline void setElement(daeElementRef newref){element=newref;}; + + /** + * Gets the resolve state of the URI. + * @return Returns the current state. + * @note This will be removed when daeURI starts managing its state internally. + */ + inline ResolveState getState() const {return(state);}; + + /** + * Sets the resolve state of the URI. + * @param newState The new state. + * @note This will be removed when daeURI starts managing its state internally. + */ + inline void setState(ResolveState newState){state=newState;}; + + /** + * Gets a pointer to the @c daeElement that contains this URI. + * @return Returns the pointer to the containing daeElmement. + */ + inline daeElement* getContainer() const {return(container);}; + + /** + * Sets the pointer to the @c daeElement that contains this URI. + * @param element Pointer to the containing @c daeElmement. + */ + inline void setContainer(daeElement* element){container=element;}; + + /** + * Copies parameter uri into data member uriString, and then decomposes each of + * protocol, authority, filepath, file, and id. + * After @c setURI(), the state is set to @c uri_loaded. + * @param uri String to use to configure this URI. + */ + void setURI(daeString uri); + + /** + * Gets the URI stored in the daeURI. + * @return Returns the full URI String, from uriString. + */ + daeString getURI() const; + + /** + * Gets the original URI String as originally set, not flattened against the base URI. + * @return Returns the original URI String as originally set, not flattened against the base URI. + */ + daeString getOriginalURI() const; + + /** + * Gets if this URI resolves to an element that is not contained in the same document as the URI. + * @return Returns true if the URI references an external element. False otherwise. + */ + daeBool isExternalReference() const { return external; } + + /** + * Uses the @c daeURIResolver static API to try to resolve this URI + * into a @c daeElement reference, placing the resolved element into element. + * This function can effectively force a load of a file, perform + * a database query, and so on, based on the @c daeURIResolver plugins implemented. + */ + void resolveElement(daeString typeNameHint = NULL); + + /** + * Configures the uriString for this @c daeURI based on the element set in element. + * Uses the element's base URI and ID information to configure + * the URI string. + */ + void resolveURI(); + + /** + * Flattens this URI with base URI to obtain a useable + * complete URI for resolution. + * @param baseURI Base URI to flatten against if this URI is + * relative. + * @note After @c validate(), state is @c uri_pending as it is awaiting a call to + * @c resolveElement(). + */ + void validate(daeURI* baseURI = NULL); + + /** + * Copies the URI specified in from into @c this. + * Performs a simple copy without validating the URI. + * @param from URI to copy from. + */ + void copyFrom(daeURI& from); + + /** + * Outputs all components of this URI to stderr. + * Useful for debugging URIs, this outputs each part of the URI separately. + */ + void print(); + + /** + * Makes the "originalURI" in this URI relative to some other uri + * @param uri the URI to make "this" relative to. + * @note this is experimental and not fully tested, please don't use in critical code yet. + */ + int daeURI::makeRelativeTo(daeURI* uri); + + /** + * Comparison operator. + * @return Returns true if URI's are equal. + */ + inline bool operator==(const daeURI& other) const{ + return (!strcmp(other.getURI(), getURI())); } + +private: + /** + * Resets this URI; frees all string references + * and returns state to @c empty. + */ + void reset(); + + /** + * Provides a shared initialization for all constructors + */ + void initialize(); +public: + /** + * Gets the path part of the URI, including everything from immediately after the authority up to and + * including the file name, but not the query or fragment. + * @param dest The user allocated buffer that will receive the path. + * @param size The size of the buffer. + * @return Returns true for success, false if the path exceeded the size of the user provided buffer. + */ + daeBool getPath(daeChar *dest, daeInt size); + +public: + /** + * Sets the application's default base URI. This is effectively the default protocol, + * authority, and path in the case of top-level relative URIs. + * @param uri Base URI to use as the default application URI. + */ + static void setBaseURI(daeURI& uri); + + /** + * Gets the application's default base URI. + * @return Returns the base URI used in the case of top-level relative URIs. + */ + static daeURI* getBaseURI(); + + /** + * Performs RFC2396 path normalization. + * @param path Path to be normalized. + */ + static void normalizeURIPath(char *path); + +}; + +class daeURIResolver; +typedef daeTArray daeURIResolverPtrArray; + +/** + * The @c daeURIResolver class is the plugin point for URI resolution. + * This class is an abstract base class that defines an interface for + * resolving URIs. + * All instances of @c daeURIResolvers are tracked centrally. + * Every URI is passed through this list of @c daeURIResolvers for resolution. + * Before a @c daeURIResolver receives a URI, the API checks whether it supports + * the protocol. + * The list is ordered on a first come, first serve basis, and resolution + * terminates after any resolver instance resolves the URI. + */ +class daeURIResolver +{ +public: + /** + * This base constructor appends @c this to KnownResolvers list. + */ + daeURIResolver(); + + /** + * Destructor + */ + virtual ~daeURIResolver(); + +protected: + static daeURIResolverPtrArray _KnownResolvers; + + static daeBool _loadExternalDocuments; + +public: + /** + * Iterates through known resolvers + * calling @c isProtocolSupported() and, if it is supported, calling + * @c resolveElement(). + * @param uri @c daeURI to resolve. + */ + static void attemptResolveElement(daeURI &uri, daeString typeNameHint = NULL); + + /** + * Iterates through known resolvers + * calling @c isProtocolSupported() and, if it is supported, calling + * @c resolveURI(). + * @param uri @c daeURI to resolve. + */ + static void attemptResolveURI(daeURI &uri); + + /** + * Sets a flag that tells the URI resolver whether or not to load a separate document if a URI + * being resolved points to one. + * @param load Set to true if you want the URI Resolver to automatically load other documents to + * resolve URIs. + */ + static void setAutoLoadExternalDocuments( daeBool load ) { _loadExternalDocuments = load; } + + /** + * Gets a flag that tells if the URI resolver is set to load an external document if a URI + * being resolved points to one. + * @return Returns true if the resolver will automatically load documents to resolve a URI. + * False otherwise. + */ + static daeBool getAutoLoadExternalDocuments() { return _loadExternalDocuments; } + +public: // Abstract Interface + /** + * Provides an abstract interface for converting a @c daeURI into a @c daeElement + * @param uri @c daeURI to resolve. + * @return Returns true if the @c daeURIResolver successfully resolved the URI, + * returns false otherwise. + */ + virtual daeBool resolveElement(daeURI& uri, daeString typeNameHint = NULL) = 0; + /** + * Provides an abstract interface for converting a @c daeElement into a @c daeURI + * @param uri @c daeURI to resolve. + * @return Returns true if the @c daeURIResolver successfully resolved the element + * into a URI, returns false otherwise. + */ + virtual daeBool resolveURI(daeURI& uri) = 0; + + /** + * Gets the name of this resolver. + * @return Returns the resolver name as a string. + */ + virtual daeString getName() = 0; + + /** + * Determines whether this resolver supports a particular protocol + * for resolution. + * @param protocol Determine whether the resolver supports this protocol. + * @return Returns true if this @c daeURIResolver understands how to resolve using this protocol, returns + * false otherwise + */ + virtual daeBool isProtocolSupported(daeString protocol) = 0; + + /** + * Determines whether this resolver supports the given extension. + * This keeps parsers from trying to process incompatible + * file formats. + * @param extension Extension string found after the '.' in the file name. + * @return Returns true if the given extension is supported, returns false otherwise. + */ + virtual daeBool isExtensionSupported(daeString extension) = 0; + +}; + + +#endif //__DAE_URI_H__ + + + diff --git a/Extras/COLLADA_DOM/include/dae/daeWin32Platform.h b/Extras/COLLADA_DOM/include/dae/daeWin32Platform.h new file mode 100644 index 000000000..00115ffcf --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/daeWin32Platform.h @@ -0,0 +1,32 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_WIN32_PLATFORM_H__ +#define __DAE_WIN32_PLATFORM_H__ + +#define PLATFORM_INT8 char +#define PLATFORM_INT16 short +#define PLATFORM_INT32 int +#define PLATFORM_INT64 long +#define PLATFORM_UINT8 unsigned char +#define PLATFORM_UINT16 unsigned short +#define PLATFORM_UINT32 unsigned int +#define PLATFORM_UINT64 unsigned long +#define PLATFORM_FLOAT32 float +#define PLATFORM_FLOAT64 double + +#if _MSC_VER <= 1200 +typedef int intptr_t; +#endif + +#endif diff --git a/Extras/COLLADA_DOM/include/dae/domAny.h b/Extras/COLLADA_DOM/include/dae/domAny.h new file mode 100644 index 000000000..0e25abf2c --- /dev/null +++ b/Extras/COLLADA_DOM/include/dae/domAny.h @@ -0,0 +1,135 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __domAny_h__ +#define __domAny_h__ + +#include +#include +#include +#include +#include + +#define MAX_ATTRIBUTES 32 + +/** + * The domAny class allows for weakly typed xml elements. This class is used anywhere in the + * COLLADA schema where an xs:any element appears. The content and type information for a domAny + * object is generated at runtime. + */ +class domAny : public daeElement +{ +protected: // Attribute + + /** + * The array of daeStrings to hold attribute data for this element. + */ + daeString attrs[MAX_ATTRIBUTES]; + /** + * The domString value of the text data of this element. + */ + daeString _value; + /** + * Used to preserve order in elements that do not specify strict sequencing of sub-elements. + */ + daeElementRefArray _contents; + +public: + /** + * 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; } + + /** + * Gets the number of attributes this element has. + * @return Returns the number of attributes on this element. + */ + daeUInt getAttributeCount() const { return (daeUInt)_meta->getMetaAttributes().getCount(); } + /** + * Gets an attribute's name. + * @param index The index into the attribute list. + * @return Returns the attribute's name. + */ + daeString getAttributeName( daeUInt index ) const { return _meta->getMetaAttributes()[index]->getName(); } + /** + * Gets an attribute's value. + * @param index The index into the attribute list. + * @return Returns the attribute's value as a string. + */ + daeString getAttributeValue( daeUInt index ) const { return attrs[ index ]; } + /** + * Gets the value of this element. + * @return Returns a daeString of the value. + */ + daeString getValue() const { return _value; } + /** + * Sets the _value of this element. + * @param val The new value for this element. + */ + void setValue( daeString val ) { _value = val; } + +protected: + /** + * Constructor + */ + domAny() : _value() {} + /** + * Destructor + */ + virtual ~domAny() {} + /** + * Copy Constructor + */ + domAny( const domAny &cpy ) : daeElement() { (void)cpy; } + /** + * Overloaded assignment operator + */ + virtual domAny &operator=( const domAny &cpy ) { (void)cpy; return *this; } + +public: //METHODS + /** + * Override of the Base class method. Creates and registers an attribute field with its meta + * and assigns its value as the attrValue String. + * @param attrName Attribute to set. + * @param attrValue String-based value to apply to the attribute. + * @return Returns true if the attribute was created and the value was set, false otherwise. + */ + virtual daeBool setAttribute(daeString attrName, daeString attrValue); + +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. + * @return A daeMetaElement describing this COLLADA element. + * @remarks Unlike other dom* elements, domAny will always create a new daeMetaElement when this + * function is called. + */ + static daeMetaElement* registerElement(); + +}; + +typedef daeSmartRef domAnyRef; +typedef daeTArray domAny_Array; + +#endif + diff --git a/Extras/COLLADA_DOM/include/dom.h b/Extras/COLLADA_DOM/include/dom.h new file mode 100644 index 000000000..8405e7bc7 --- /dev/null +++ b/Extras/COLLADA_DOM/include/dom.h @@ -0,0 +1,28 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#ifndef __DOM__ +#define __DOM__ + +class daeMetaElement; + +extern daeString COLLADA_VERSION; +extern daeString COLLADA_NAMESPACE; + +// Register all types +void registerDomTypes(); + +// Register all elements +daeMetaElement* registerDomElements(); + + +#endif // __DOM_INTERFACE__ diff --git a/Extras/COLLADA_DOM/include/modules/daeLIBXMLPlugin.h b/Extras/COLLADA_DOM/include/modules/daeLIBXMLPlugin.h new file mode 100644 index 000000000..6514a7de8 --- /dev/null +++ b/Extras/COLLADA_DOM/include/modules/daeLIBXMLPlugin.h @@ -0,0 +1,92 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_LIBXMLPLUGIN__ +#define __DAE_LIBXMLPLUGIN__ + +#include +#include +#include +#include +#include +#include + +class daeElement; +class daeIntegrationObject; +class daeMetaElement; +class daeDocument; + +/** + * The @c daeLIBXMLPlugin class derives from @c daeIOPlugin and implements an XML + * input/output backend using libxml2 as a parser. When using this plugin, daeInterface::load() expects + * an rfc 2396 compliant URI, any URI supported by libxml2 should be properly + * handled including ones with network schemes and authority. If the URI contains a fragment it will be ignored + * and the entire referenced document will be loaded. daeInterface::saveAs will only + * handle a filename path at present (ie: no scheme or authority). + */ +class daeLIBXMLPlugin : public daeIOPlugin +{ +public: + // Constructor / destructor + /** + * Constructor. + */ + daeLIBXMLPlugin(); + /** + * Destructor. + */ + virtual ~daeLIBXMLPlugin(); + virtual daeInt setMeta(daeMetaElement *topMeta); + + // Database setup + virtual void setDatabase(daeDatabase* database); + + // Operations + virtual daeInt read(daeURI& uri, daeString docBuffer); + virtual daeInt write(daeURI *name, daeDocument *document, daeBool replace); + + // Parsing support + + daeElementRef startParse(daeMetaElement* thisMetaElement, xmlTextReaderPtr reader); + daeElementRef nextElement(daeMetaElement* thisMetaElement, xmlTextReaderPtr reader); + + // Stats + virtual void getProgress(daeInt* bytesParsed, + daeInt* lineNumber, + daeInt* totalBytes, + daeBool reset = false ); + +private: +// xmlTextReaderPtr reader; + xmlTextWriterPtr writer; + + typedef struct + { + daeElement* element; + daeIntegrationObject* intObject; + } INTEGRATION_ITEM; + + daeMetaElement* topMeta; +// std::vector intItems; + daeDatabase* database; + + void postProcessDom(daeDocument *document, daeElement* element, std::vector &intItems); + + void writeElement( daeElement* element ); + void writeAttribute( daeMetaAttribute* attr, daeElement* element ); + + void readAttributes( daeElement *element, xmlTextReaderPtr reader ); + void readValue( daeElement *element, xmlTextReaderPtr reader ); +}; + +#endif //__DAE_XMLPLUGIN__ diff --git a/Extras/COLLADA_DOM/include/modules/daeLIBXMLResolver.h b/Extras/COLLADA_DOM/include/modules/daeLIBXMLResolver.h new file mode 100644 index 000000000..005f11d18 --- /dev/null +++ b/Extras/COLLADA_DOM/include/modules/daeLIBXMLResolver.h @@ -0,0 +1,52 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_LIBXMLRESOLVER__ +#define __DAE_LIBXMLRESOVLER__ + +#include "dae/daeURI.h" +class daeIOPlugin; +class daeDatabase; + +/** + * The @c daeLIBXMLResolver class derives from @c daeURIResolver and implements + * the default XML backend resolver. + */ +class daeLIBXMLResolver : public daeURIResolver +{ +public: + /** + * Constructor. + * @param database The @c daeDatabase used. + * @param plugin The @c daeIOPlugin used. + */ + daeLIBXMLResolver(daeDatabase* database, daeIOPlugin* plugin); + /** + * Destructor. + */ + ~daeLIBXMLResolver(); + +protected: + daeDatabase* _database; + daeIOPlugin* _plugin; +public: +public: // Abstract Interface + virtual daeBool resolveElement(daeURI& uri, daeString typeNameHint = NULL); + virtual daeBool resolveURI(daeURI& uri); + virtual daeString getName(); + virtual daeBool isProtocolSupported(daeString protocol); + virtual daeBool isExtensionSupported(daeString extension); +}; + +#endif //__DAE_XMLRESOLVER__ + diff --git a/Extras/COLLADA_DOM/include/modules/daeSTLDatabase.h b/Extras/COLLADA_DOM/include/modules/daeSTLDatabase.h new file mode 100644 index 000000000..10131fc59 --- /dev/null +++ b/Extras/COLLADA_DOM/include/modules/daeSTLDatabase.h @@ -0,0 +1,137 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef __DAE_STLDATABASE__ +#define __DAE_STLDATABASE__ + +#include + +#include +#include +#include + +#include +#include + +/** + * The @c daeSTLDatabase class derives from @c daeDatabase and implements + * the default database. + */ +class daeSTLDatabase : public daeDatabase +{ +public: + /** + * Constructor + */ + daeSTLDatabase(); + /** + * Destructor + */ + virtual ~daeSTLDatabase(); + +public: + // Element Types of all Elements + virtual daeUInt getTypeCount(); + virtual daeString getTypeName(daeUInt index); + virtual daeInt setMeta(daeMetaElement *_topMeta); + + // Documents + virtual daeInt insertDocument(const char *name, daeElement* dom, daeDocument** document = NULL); + virtual daeInt insertDocument(daeString name, daeDocument** document = NULL); + virtual daeInt createDocument(daeString name, daeElement* dom, daeDocument** document = NULL); + virtual daeInt createDocument(daeString name, daeDocument** document = NULL); + virtual daeInt insertDocument( daeDocument *c ); + + virtual daeInt removeDocument(daeDocument* document); + virtual daeUInt getDocumentCount(); + virtual daeDocument* getDocument(daeUInt index); + virtual daeDocument* getDocument(daeString name); + virtual daeString getDocumentName(daeUInt index); + virtual daeBool isDocumentLoaded(daeString name); + + // Elements + virtual daeInt insertElement(daeDocument* document, daeElement* element); + virtual daeInt removeElement(daeDocument* document, daeElement* element); + virtual daeInt clear(); + virtual void validate(); + virtual daeUInt getElementCount(daeString name = NULL, + daeString type = NULL, + daeString file = NULL); + virtual daeInt getElement(daeElement** pElement, + daeInt index, + daeString name = NULL, + daeString type = NULL, + daeString file = NULL); + + // Generic Query + virtual daeInt queryElement(daeElement** pElement, daeString genericQuery); + +private: + + /** + * A struct to describe a cell in the STL run-time database. + */ + typedef struct + { + daeElement* element; + daeString name; + daeString type; + daeDocument *document; + } DAE_STL_DATABASE_CELL; + + /** + * Sorting structure. + */ + struct daeSTLDatabaseLess: public std::binary_function + { + bool operator() (const DAE_STL_DATABASE_CELL& x, const DAE_STL_DATABASE_CELL& y) const + { + int res = strcmp(x.type,y.type); + if (res != 0) + return res<0; + else + return strcmp(x.name,y.name)<0; + } + }; + + /** + * Sorting structure. + */ + struct daeSTLDatabaseTypeLess: public std::binary_function + { + bool operator() (const DAE_STL_DATABASE_CELL& x, const DAE_STL_DATABASE_CELL& y) const + { + int res = strcmp(x.type,y.type); + return res<0; + } + }; + + std::vector elements; + std::vector documents; + bool validated; + daeMetaElement* topMeta; + + //!!!ACL removing this function. + /*daeInt getElementByType(daeElement** pElement, + int *currentIndex, + int index, + daeString name = NULL, + daeString type = NULL, + daeString file = NULL);*/ + + daeInt insertChildren( daeDocument *c, daeElement *element ); + daeInt removeChildren( daeDocument *c, daeElement *element ); + +}; + +#endif // __DAE_STLDATABASE__ diff --git a/Extras/COLLADA_DOM/include/modules/stdErrPlugin.h b/Extras/COLLADA_DOM/include/modules/stdErrPlugin.h new file mode 100644 index 000000000..770cc5ae2 --- /dev/null +++ b/Extras/COLLADA_DOM/include/modules/stdErrPlugin.h @@ -0,0 +1,33 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#ifndef _STDERR_PLUGIN_ +#define _STDERR_PLUGIN_ + +#include +#include +/** + * The @c stdErrPlugin class is the default implementation of daeErrorHandler. It routes the Error + * and Warning messaged to stdout. + */ +class stdErrPlugin : public daeErrorHandler { +public: + stdErrPlugin(); + virtual ~stdErrPlugin(); + +public: + void handleError( daeString msg ); + void handleWarning( daeString msg ); +}; + +#endif diff --git a/Extras/COLLADA_DOM/scea-shared-source-lic1.0.txt b/Extras/COLLADA_DOM/scea-shared-source-lic1.0.txt new file mode 100644 index 000000000..4ba12ea7d --- /dev/null +++ b/Extras/COLLADA_DOM/scea-shared-source-lic1.0.txt @@ -0,0 +1,64 @@ +SCEA Shared Source License 1.0 + + + +Terms and Conditions: + +1. Definitions: + +"Software" shall mean the software and related documentation, whether in Source or Object Form, made available under this SCEA Shared Source license ("License"), that is indicated by a copyright notice file included in the source files or attached or accompanying the source files. + +"Licensor" shall mean Sony Computer Entertainment America, Inc. (herein "SCEA") + +"Object Code" or "Object Form" shall mean any form that results from translation or transformation of Source Code, including but not limited to compiled object code or conversions to other forms intended for machine execution. + +"Source Code" or "Source Form" shall have the plain meaning generally accepted in the software industry, including but not limited to software source code, documentation source, header and configuration files. + +"You" or "Your" shall mean you as an individual or as a company, or whichever form under which you are exercising rights under this License. + + 2. License Grant. + +Licensor hereby grants to You, free of charge subject to the terms and conditions of this License, an irrevocable, non-exclusive, worldwide, perpetual, and royalty-free license to use, modify, reproduce, distribute, publicly perform or display the Software in Object or Source Form . + +3. No Right to File for Patent. + +In exchange for the rights that are granted to You free of charge under this License, You agree that You will not file for any patent application, seek copyright protection or take any other action that might otherwise impair the ownership rights in and to the Software that may belong to SCEA or any of the other contributors/authors of the Software. + +4. Contributions. + +SCEA welcomes contributions in form of modifications, optimizations, tools or documentation designed to improve or expand the performance and scope of the Software (collectively "Contributions"). Per the terms of this License You are free to modify the Software and those modifications would belong to You. You may however wish to donate Your Contributions to SCEA for consideration for inclusion into the Software. For the avoidance of doubt, if You elect to send Your Contributions to SCEA, You are doing so voluntarily and are giving the Contributions to SCEA and its parent company Sony Computer Entertainment, Inc., free of charge, to use, modify or distribute in any form or in any manner. SCEA acknowledges that if You make a donation of Your Contributions to SCEA, such Contributions shall not exclusively belong to SCEA or its parent company and such donation shall not be to Your exclusion. SCEA, in its sole discretion, shall determine whether or not to include Your donated Contributions into the Software, in whole, in part, or as modified by SCEA. Should SCEA elect to include any such Contributions into the Software, it shall do so at its own risk and may elect to give credit or special thanks to any such contributors in the attached copyright notice. However, if any of Your contributions are included into the Software, they will become part of the Software and will be distributed under the terms and conditions of this License. Further, if Your donated Contributions are integrated into the Software then Sony Computer Entertainment, Inc. shall become the copyright owner of the Software now containing Your contributions and SCEA would be the Licensor. + +5. Redistribution in Source Form + +You may redistribute copies of the Software, modifications or derivatives thereof in Source Code Form, provided that You: +a. Include a copy of this License and any copyright notices with source +b. Identify modifications if any were made to the Software +c. Include a copy of all documentation accompanying the Software and modifications made by You + +6. Redistribution in Object Form + +If You redistribute copies of the Software, modifications or derivatives thereof in Object Form only (as incorporated into finished goods, i.e. end user applications) then You will not have a duty to include any copies of the code, this License, copyright notices, other attributions or documentation. + +7. No Warranty + +THE SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT ANY REPRESENTATIONS OR WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, MODIFYING OR REDISTRIBUTING THE SOFTWARE AND ASSUME ANY RISKS ASSOCIATED WITH YOUR EXERCISE OF PERMISSIONS UNDER THIS LICENSE. + +8. Limitation of Liability + +UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY WILL EITHER PARTY BE LIABLE TO THE OTHER PARTY OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, SPECIAL, INCIDENTAL, OR EXEMPLARY DAMAGES WITH RESPECT TO ANY INJURY, LOSS, OR DAMAGE, ARISING UNDER OR IN CONNECTION WITH THIS LETTER AGREEMENT, WHETHER FORESEEABLE OR UNFORESEEABLE, EVEN IF SUCH PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH INJURY, LOSS, OR DAMAGE. THE LIMITATIONS OF LIABILITY SET FORTH IN THIS SECTION SHALL APPLY TO THE FULLEST EXTENT PERMISSIBLE AT LAW OR ANY GOVERMENTAL REGULATIONS. + +9. Governing Law and Consent to Jurisdiction + +This Agreement shall be governed by and interpreted in accordance with the laws of the State of California, excluding that body of law related to choice of laws, and of the United States of America. Any action or proceeding brought to enforce the terms of this Agreement or to adjudicate any dispute arising hereunder shall be brought in the Superior Court of the County of San Mateo, State of California or the United States District Court for the Northern District of California. Each of the parties hereby submits itself to the exclusive jurisdiction and venue of such courts for purposes of any such action. In addition, each party hereby waives the right to a jury trial in any action or proceeding related to this Agreement. + +10. Copyright Notice for Redistribution of Source Code + +Copyright 2005 Sony Computer Entertainment Inc. + +Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: + +http://research.scea.com/scea_shared_source_license.html + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + diff --git a/Extras/COLLADA_DOM/scea-shared-source-license1.0.pdf b/Extras/COLLADA_DOM/scea-shared-source-license1.0.pdf new file mode 100644 index 000000000..6ef100888 Binary files /dev/null and b/Extras/COLLADA_DOM/scea-shared-source-license1.0.pdf differ diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domAccessor.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domAccessor.cpp new file mode 100644 index 000000000..cf29fe400 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domAccessor.cpp @@ -0,0 +1,96 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domAccessor::create(daeInt bytes) +{ + domAccessorRef ref = new(bytes) domAccessor; + ref->attrSource.setContainer( (domAccessor*)ref ); + return ref; +} + + +daeMetaElement * +domAccessor::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "accessor" ); + _Meta->setStaticPointerAddress(&domAccessor::_Meta); + _Meta->registerConstructor(domAccessor::create); + + // Add elements: param + _Meta->appendArrayElement(domParam::registerElement(),daeOffsetOf(domAccessor,elemParam_array)); + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domAccessor , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: offset + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "offset" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domAccessor , attrOffset )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domAccessor , attrSource )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: stride + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "stride" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domAccessor , attrStride )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAccessor)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domAccessor::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domAnimation.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domAnimation.cpp new file mode 100644 index 000000000..d0a22d794 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domAnimation.cpp @@ -0,0 +1,78 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domAnimation::create(daeInt bytes) +{ + domAnimationRef ref = new(bytes) domAnimation; + return ref; +} + + +daeMetaElement * +domAnimation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "animation" ); + _Meta->setStaticPointerAddress(&domAnimation::_Meta); + _Meta->registerConstructor(domAnimation::create); + + // Add elements: asset, source, sampler, channel, animation, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domAnimation,elemAsset)); + _Meta->appendArrayElement(domSource::registerElement(),daeOffsetOf(domAnimation,elemSource_array)); + _Meta->appendArrayElement(domSampler::registerElement(),daeOffsetOf(domAnimation,elemSampler_array)); + _Meta->appendArrayElement(domChannel::registerElement(),daeOffsetOf(domAnimation,elemChannel_array)); + _Meta->appendArrayElement(domAnimation::registerElement(),daeOffsetOf(domAnimation,elemAnimation_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domAnimation,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domAnimation,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domAnimation , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domAnimation , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAnimation)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domAnimation::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domAnimation_clip.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domAnimation_clip.cpp new file mode 100644 index 000000000..e37557fad --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domAnimation_clip.cpp @@ -0,0 +1,95 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domAnimation_clip::create(daeInt bytes) +{ + domAnimation_clipRef ref = new(bytes) domAnimation_clip; + return ref; +} + + +daeMetaElement * +domAnimation_clip::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "animation_clip" ); + _Meta->setStaticPointerAddress(&domAnimation_clip::_Meta); + _Meta->registerConstructor(domAnimation_clip::create); + + // Add elements: asset, instance_animation, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domAnimation_clip,elemAsset)); + _Meta->appendArrayElement(domInstanceWithExtra::registerElement(),daeOffsetOf(domAnimation_clip,elemInstance_animation_array),"instance_animation"); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domAnimation_clip,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domAnimation_clip , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domAnimation_clip , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: start + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "start" ); + ma->setType( daeAtomicType::get("xsDouble")); + ma->setOffset( daeOffsetOf( domAnimation_clip , attrStart )); + ma->setContainer( _Meta ); + ma->setDefault( "0.0"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: end + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "end" ); + ma->setType( daeAtomicType::get("xsDouble")); + ma->setOffset( daeOffsetOf( domAnimation_clip , attrEnd )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAnimation_clip)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domAnimation_clip::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domAsset.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domAsset.cpp new file mode 100644 index 000000000..68b2d4c8d --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domAsset.cpp @@ -0,0 +1,573 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domAsset::create(daeInt bytes) +{ + domAssetRef ref = new(bytes) domAsset; + return ref; +} + + +daeMetaElement * +domAsset::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "asset" ); + _Meta->setStaticPointerAddress(&domAsset::_Meta); + _Meta->registerConstructor(domAsset::create); + + // Add elements: contributor, created, keywords, modified, revision, subject, title, unit, up_axis + _Meta->appendArrayElement(domAsset::domContributor::registerElement(),daeOffsetOf(domAsset,elemContributor_array)); + _Meta->appendElement(domAsset::domCreated::registerElement(),daeOffsetOf(domAsset,elemCreated)); + _Meta->appendElement(domAsset::domKeywords::registerElement(),daeOffsetOf(domAsset,elemKeywords)); + _Meta->appendElement(domAsset::domModified::registerElement(),daeOffsetOf(domAsset,elemModified)); + _Meta->appendElement(domAsset::domRevision::registerElement(),daeOffsetOf(domAsset,elemRevision)); + _Meta->appendElement(domAsset::domSubject::registerElement(),daeOffsetOf(domAsset,elemSubject)); + _Meta->appendElement(domAsset::domTitle::registerElement(),daeOffsetOf(domAsset,elemTitle)); + _Meta->appendElement(domAsset::domUnit::registerElement(),daeOffsetOf(domAsset,elemUnit)); + _Meta->appendElement(domAsset::domUp_axis::registerElement(),daeOffsetOf(domAsset,elemUp_axis)); + + + _Meta->setElementSize(sizeof(domAsset)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domContributor::create(daeInt bytes) +{ + domAsset::domContributorRef ref = new(bytes) domAsset::domContributor; + return ref; +} + + +daeMetaElement * +domAsset::domContributor::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "contributor" ); + _Meta->setStaticPointerAddress(&domAsset::domContributor::_Meta); + _Meta->registerConstructor(domAsset::domContributor::create); + + // Add elements: author, authoring_tool, comments, copyright, source_data + _Meta->appendElement(domAsset::domContributor::domAuthor::registerElement(),daeOffsetOf(domAsset::domContributor,elemAuthor)); + _Meta->appendElement(domAsset::domContributor::domAuthoring_tool::registerElement(),daeOffsetOf(domAsset::domContributor,elemAuthoring_tool)); + _Meta->appendElement(domAsset::domContributor::domComments::registerElement(),daeOffsetOf(domAsset::domContributor,elemComments)); + _Meta->appendElement(domAsset::domContributor::domCopyright::registerElement(),daeOffsetOf(domAsset::domContributor,elemCopyright)); + _Meta->appendElement(domAsset::domContributor::domSource_data::registerElement(),daeOffsetOf(domAsset::domContributor,elemSource_data)); + + + _Meta->setElementSize(sizeof(domAsset::domContributor)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domContributor::domAuthor::create(daeInt bytes) +{ + domAsset::domContributor::domAuthorRef ref = new(bytes) domAsset::domContributor::domAuthor; + return ref; +} + + +daeMetaElement * +domAsset::domContributor::domAuthor::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "author" ); + _Meta->setStaticPointerAddress(&domAsset::domContributor::domAuthor::_Meta); + _Meta->registerConstructor(domAsset::domContributor::domAuthor::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domAsset::domContributor::domAuthor , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domContributor::domAuthor)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domContributor::domAuthoring_tool::create(daeInt bytes) +{ + domAsset::domContributor::domAuthoring_toolRef ref = new(bytes) domAsset::domContributor::domAuthoring_tool; + return ref; +} + + +daeMetaElement * +domAsset::domContributor::domAuthoring_tool::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "authoring_tool" ); + _Meta->setStaticPointerAddress(&domAsset::domContributor::domAuthoring_tool::_Meta); + _Meta->registerConstructor(domAsset::domContributor::domAuthoring_tool::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domAsset::domContributor::domAuthoring_tool , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domContributor::domAuthoring_tool)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domContributor::domComments::create(daeInt bytes) +{ + domAsset::domContributor::domCommentsRef ref = new(bytes) domAsset::domContributor::domComments; + return ref; +} + + +daeMetaElement * +domAsset::domContributor::domComments::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "comments" ); + _Meta->setStaticPointerAddress(&domAsset::domContributor::domComments::_Meta); + _Meta->registerConstructor(domAsset::domContributor::domComments::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domAsset::domContributor::domComments , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domContributor::domComments)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domContributor::domCopyright::create(daeInt bytes) +{ + domAsset::domContributor::domCopyrightRef ref = new(bytes) domAsset::domContributor::domCopyright; + return ref; +} + + +daeMetaElement * +domAsset::domContributor::domCopyright::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "copyright" ); + _Meta->setStaticPointerAddress(&domAsset::domContributor::domCopyright::_Meta); + _Meta->registerConstructor(domAsset::domContributor::domCopyright::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domAsset::domContributor::domCopyright , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domContributor::domCopyright)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domContributor::domSource_data::create(daeInt bytes) +{ + domAsset::domContributor::domSource_dataRef ref = new(bytes) domAsset::domContributor::domSource_data; + ref->_value.setContainer( (domAsset::domContributor::domSource_data*)ref ); + return ref; +} + + +daeMetaElement * +domAsset::domContributor::domSource_data::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "source_data" ); + _Meta->setStaticPointerAddress(&domAsset::domContributor::domSource_data::_Meta); + _Meta->registerConstructor(domAsset::domContributor::domSource_data::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domAsset::domContributor::domSource_data , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domContributor::domSource_data)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domCreated::create(daeInt bytes) +{ + domAsset::domCreatedRef ref = new(bytes) domAsset::domCreated; + return ref; +} + + +daeMetaElement * +domAsset::domCreated::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "created" ); + _Meta->setStaticPointerAddress(&domAsset::domCreated::_Meta); + _Meta->registerConstructor(domAsset::domCreated::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsDateTime")); + ma->setOffset( daeOffsetOf( domAsset::domCreated , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domCreated)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domKeywords::create(daeInt bytes) +{ + domAsset::domKeywordsRef ref = new(bytes) domAsset::domKeywords; + return ref; +} + + +daeMetaElement * +domAsset::domKeywords::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "keywords" ); + _Meta->setStaticPointerAddress(&domAsset::domKeywords::_Meta); + _Meta->registerConstructor(domAsset::domKeywords::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domAsset::domKeywords , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domKeywords)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domModified::create(daeInt bytes) +{ + domAsset::domModifiedRef ref = new(bytes) domAsset::domModified; + return ref; +} + + +daeMetaElement * +domAsset::domModified::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "modified" ); + _Meta->setStaticPointerAddress(&domAsset::domModified::_Meta); + _Meta->registerConstructor(domAsset::domModified::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsDateTime")); + ma->setOffset( daeOffsetOf( domAsset::domModified , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domModified)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domRevision::create(daeInt bytes) +{ + domAsset::domRevisionRef ref = new(bytes) domAsset::domRevision; + return ref; +} + + +daeMetaElement * +domAsset::domRevision::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "revision" ); + _Meta->setStaticPointerAddress(&domAsset::domRevision::_Meta); + _Meta->registerConstructor(domAsset::domRevision::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domAsset::domRevision , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domRevision)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domSubject::create(daeInt bytes) +{ + domAsset::domSubjectRef ref = new(bytes) domAsset::domSubject; + return ref; +} + + +daeMetaElement * +domAsset::domSubject::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "subject" ); + _Meta->setStaticPointerAddress(&domAsset::domSubject::_Meta); + _Meta->registerConstructor(domAsset::domSubject::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domAsset::domSubject , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domSubject)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domTitle::create(daeInt bytes) +{ + domAsset::domTitleRef ref = new(bytes) domAsset::domTitle; + return ref; +} + + +daeMetaElement * +domAsset::domTitle::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "title" ); + _Meta->setStaticPointerAddress(&domAsset::domTitle::_Meta); + _Meta->registerConstructor(domAsset::domTitle::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domAsset::domTitle , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domTitle)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domUnit::create(daeInt bytes) +{ + domAsset::domUnitRef ref = new(bytes) domAsset::domUnit; + return ref; +} + + +daeMetaElement * +domAsset::domUnit::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "unit" ); + _Meta->setStaticPointerAddress(&domAsset::domUnit::_Meta); + _Meta->registerConstructor(domAsset::domUnit::create); + + + // Add attribute: meter + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "meter" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domAsset::domUnit , attrMeter )); + ma->setContainer( _Meta ); + ma->setDefault( "1.0"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domAsset::domUnit , attrName )); + ma->setContainer( _Meta ); + ma->setDefault( "meter"); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domUnit)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domAsset::domUp_axis::create(daeInt bytes) +{ + domAsset::domUp_axisRef ref = new(bytes) domAsset::domUp_axis; + return ref; +} + + +daeMetaElement * +domAsset::domUp_axis::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "up_axis" ); + _Meta->setStaticPointerAddress(&domAsset::domUp_axis::_Meta); + _Meta->registerConstructor(domAsset::domUp_axis::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("UpAxisType")); + ma->setOffset( daeOffsetOf( domAsset::domUp_axis , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domAsset::domUp_axis)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domAsset::_Meta = NULL; +daeMetaElement * domAsset::domContributor::_Meta = NULL; +daeMetaElement * domAsset::domContributor::domAuthor::_Meta = NULL; +daeMetaElement * domAsset::domContributor::domAuthoring_tool::_Meta = NULL; +daeMetaElement * domAsset::domContributor::domComments::_Meta = NULL; +daeMetaElement * domAsset::domContributor::domCopyright::_Meta = NULL; +daeMetaElement * domAsset::domContributor::domSource_data::_Meta = NULL; +daeMetaElement * domAsset::domCreated::_Meta = NULL; +daeMetaElement * domAsset::domKeywords::_Meta = NULL; +daeMetaElement * domAsset::domModified::_Meta = NULL; +daeMetaElement * domAsset::domRevision::_Meta = NULL; +daeMetaElement * domAsset::domSubject::_Meta = NULL; +daeMetaElement * domAsset::domTitle::_Meta = NULL; +daeMetaElement * domAsset::domUnit::_Meta = NULL; +daeMetaElement * domAsset::domUp_axis::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domBind_material.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domBind_material.cpp new file mode 100644 index 000000000..c6b5f513d --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domBind_material.cpp @@ -0,0 +1,79 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domBind_material::create(daeInt bytes) +{ + domBind_materialRef ref = new(bytes) domBind_material; + return ref; +} + + +daeMetaElement * +domBind_material::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bind_material" ); + _Meta->setStaticPointerAddress(&domBind_material::_Meta); + _Meta->registerConstructor(domBind_material::create); + + // Add elements: param, technique_common, technique + _Meta->appendArrayElement(domParam::registerElement(),daeOffsetOf(domBind_material,elemParam_array)); + _Meta->appendElement(domBind_material::domTechnique_common::registerElement(),daeOffsetOf(domBind_material,elemTechnique_common)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domBind_material,elemTechnique_array)); + + + _Meta->setElementSize(sizeof(domBind_material)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domBind_material::domTechnique_common::create(daeInt bytes) +{ + domBind_material::domTechnique_commonRef ref = new(bytes) domBind_material::domTechnique_common; + return ref; +} + + +daeMetaElement * +domBind_material::domTechnique_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_common" ); + _Meta->setStaticPointerAddress(&domBind_material::domTechnique_common::_Meta); + _Meta->registerConstructor(domBind_material::domTechnique_common::create); + + // Add elements: instance_material + _Meta->appendArrayElement(domInstance_material::registerElement(),daeOffsetOf(domBind_material::domTechnique_common,elemInstance_material_array)); + + + _Meta->setElementSize(sizeof(domBind_material::domTechnique_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domBind_material::_Meta = NULL; +daeMetaElement * domBind_material::domTechnique_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domBool_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domBool_array.cpp new file mode 100644 index 000000000..9919c263b --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domBool_array.cpp @@ -0,0 +1,89 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domBool_array::create(daeInt bytes) +{ + domBool_arrayRef ref = new(bytes) domBool_array; + return ref; +} + + +daeMetaElement * +domBool_array::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool_array" ); + _Meta->setStaticPointerAddress(&domBool_array::_Meta); + _Meta->registerConstructor(domBool_array::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfBools")); + ma->setOffset( daeOffsetOf( domBool_array , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domBool_array , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domBool_array , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domBool_array , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domBool_array)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domBool_array::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domBox.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domBox.cpp new file mode 100644 index 000000000..0a1008a78 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domBox.cpp @@ -0,0 +1,85 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domBox::create(daeInt bytes) +{ + domBoxRef ref = new(bytes) domBox; + return ref; +} + + +daeMetaElement * +domBox::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "box" ); + _Meta->setStaticPointerAddress(&domBox::_Meta); + _Meta->registerConstructor(domBox::create); + + // Add elements: half_extents, extra + _Meta->appendElement(domBox::domHalf_extents::registerElement(),daeOffsetOf(domBox,elemHalf_extents)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domBox,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domBox)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domBox::domHalf_extents::create(daeInt bytes) +{ + domBox::domHalf_extentsRef ref = new(bytes) domBox::domHalf_extents; + return ref; +} + + +daeMetaElement * +domBox::domHalf_extents::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half_extents" ); + _Meta->setStaticPointerAddress(&domBox::domHalf_extents::_Meta); + _Meta->registerConstructor(domBox::domHalf_extents::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domBox::domHalf_extents , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domBox::domHalf_extents)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domBox::_Meta = NULL; +daeMetaElement * domBox::domHalf_extents::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCOLLADA.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCOLLADA.cpp new file mode 100644 index 000000000..09694e5cb --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCOLLADA.cpp @@ -0,0 +1,127 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +extern daeString COLLADA_VERSION; +extern daeString COLLADA_NAMESPACE; + +daeElementRef +domCOLLADA::create(daeInt bytes) +{ + domCOLLADARef ref = new(bytes) domCOLLADA; + ref->attrXmlns.setContainer( (domCOLLADA*)ref ); + ref->setAttribute("version", COLLADA_VERSION ); + ref->setAttribute("xmlns", COLLADA_NAMESPACE ); + return ref; +} + + +daeMetaElement * +domCOLLADA::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "COLLADA" ); + _Meta->setStaticPointerAddress(&domCOLLADA::_Meta); + _Meta->registerConstructor(domCOLLADA::create); + + // Add elements: asset, library_animations, library_animation_clips, library_cameras, library_controllers, library_geometries, library_effects, library_force_fields, library_images, library_lights, library_materials, library_nodes, library_physics_materials, library_physics_models, library_physics_scenes, library_visual_scenes, scene, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domCOLLADA,elemAsset)); + _Meta->appendArrayElement(domLibrary_animations::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_animations_array)); + _Meta->appendArrayElement(domLibrary_animation_clips::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_animation_clips_array)); + _Meta->appendArrayElement(domLibrary_cameras::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_cameras_array)); + _Meta->appendArrayElement(domLibrary_controllers::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_controllers_array)); + _Meta->appendArrayElement(domLibrary_geometries::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_geometries_array)); + _Meta->appendArrayElement(domLibrary_effects::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_effects_array)); + _Meta->appendArrayElement(domLibrary_force_fields::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_force_fields_array)); + _Meta->appendArrayElement(domLibrary_images::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_images_array)); + _Meta->appendArrayElement(domLibrary_lights::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_lights_array)); + _Meta->appendArrayElement(domLibrary_materials::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_materials_array)); + _Meta->appendArrayElement(domLibrary_nodes::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_nodes_array)); + _Meta->appendArrayElement(domLibrary_physics_materials::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_physics_materials_array)); + _Meta->appendArrayElement(domLibrary_physics_models::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_physics_models_array)); + _Meta->appendArrayElement(domLibrary_physics_scenes::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_physics_scenes_array)); + _Meta->appendArrayElement(domLibrary_visual_scenes::registerElement(),daeOffsetOf(domCOLLADA,elemLibrary_visual_scenes_array)); + _Meta->appendElement(domCOLLADA::domScene::registerElement(),daeOffsetOf(domCOLLADA,elemScene)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domCOLLADA,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCOLLADA,_contents)); + + // Add attribute: xmlns + { + daeMetaAttribute* ma = new daeMetaAttribute; + ma->setName( "xmlns" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domCOLLADA , attrXmlns )); + ma->setContainer( _Meta ); + //ma->setIsRequired( true ); + _Meta->appendAttribute(ma); + } + + // Add attribute: version + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "version" ); + ma->setType( daeAtomicType::get("VersionType")); + ma->setOffset( daeOffsetOf( domCOLLADA , attrVersion )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCOLLADA)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCOLLADA::domScene::create(daeInt bytes) +{ + domCOLLADA::domSceneRef ref = new(bytes) domCOLLADA::domScene; + return ref; +} + + +daeMetaElement * +domCOLLADA::domScene::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "scene" ); + _Meta->setStaticPointerAddress(&domCOLLADA::domScene::_Meta); + _Meta->registerConstructor(domCOLLADA::domScene::create); + + // Add elements: instance_physics_scene, instance_visual_scene, extra + _Meta->appendArrayElement(domInstanceWithExtra::registerElement(),daeOffsetOf(domCOLLADA::domScene,elemInstance_physics_scene_array),"instance_physics_scene"); + _Meta->appendElement(domInstanceWithExtra::registerElement(),daeOffsetOf(domCOLLADA::domScene,elemInstance_visual_scene),"instance_visual_scene"); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domCOLLADA::domScene,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domCOLLADA::domScene)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCOLLADA::_Meta = NULL; +daeMetaElement * domCOLLADA::domScene::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCamera.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCamera.cpp new file mode 100644 index 000000000..c82b24ab6 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCamera.cpp @@ -0,0 +1,239 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCamera::create(daeInt bytes) +{ + domCameraRef ref = new(bytes) domCamera; + return ref; +} + + +daeMetaElement * +domCamera::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "camera" ); + _Meta->setStaticPointerAddress(&domCamera::_Meta); + _Meta->registerConstructor(domCamera::create); + + // Add elements: asset, optics, imager, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domCamera,elemAsset)); + _Meta->appendElement(domCamera::domOptics::registerElement(),daeOffsetOf(domCamera,elemOptics)); + _Meta->appendElement(domCamera::domImager::registerElement(),daeOffsetOf(domCamera,elemImager)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domCamera,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domCamera , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCamera , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCamera)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCamera::domOptics::create(daeInt bytes) +{ + domCamera::domOpticsRef ref = new(bytes) domCamera::domOptics; + return ref; +} + + +daeMetaElement * +domCamera::domOptics::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "optics" ); + _Meta->setStaticPointerAddress(&domCamera::domOptics::_Meta); + _Meta->registerConstructor(domCamera::domOptics::create); + + // Add elements: technique_common, technique, extra + _Meta->appendElement(domCamera::domOptics::domTechnique_common::registerElement(),daeOffsetOf(domCamera::domOptics,elemTechnique_common)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domCamera::domOptics,elemTechnique_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domCamera::domOptics,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domCamera::domOptics)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCamera::domOptics::domTechnique_common::create(daeInt bytes) +{ + domCamera::domOptics::domTechnique_commonRef ref = new(bytes) domCamera::domOptics::domTechnique_common; + return ref; +} + + +daeMetaElement * +domCamera::domOptics::domTechnique_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_common" ); + _Meta->setStaticPointerAddress(&domCamera::domOptics::domTechnique_common::_Meta); + _Meta->registerConstructor(domCamera::domOptics::domTechnique_common::create); + + // Add elements: orthographic, perspective + _Meta->appendElement(domCamera::domOptics::domTechnique_common::domOrthographic::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common,elemOrthographic)); + _Meta->appendElement(domCamera::domOptics::domTechnique_common::domPerspective::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common,elemPerspective)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCamera::domOptics::domTechnique_common,_contents)); + + + + _Meta->setElementSize(sizeof(domCamera::domOptics::domTechnique_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCamera::domOptics::domTechnique_common::domOrthographic::create(daeInt bytes) +{ + domCamera::domOptics::domTechnique_common::domOrthographicRef ref = new(bytes) domCamera::domOptics::domTechnique_common::domOrthographic; + return ref; +} + + +daeMetaElement * +domCamera::domOptics::domTechnique_common::domOrthographic::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "orthographic" ); + _Meta->setStaticPointerAddress(&domCamera::domOptics::domTechnique_common::domOrthographic::_Meta); + _Meta->registerConstructor(domCamera::domOptics::domTechnique_common::domOrthographic::create); + + // Add elements: xmag, ymag, aspect_ratio, znear, zfar + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemXmag),"xmag"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemYmag),"ymag"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemAspect_ratio),"aspect_ratio"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemZnear),"znear"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemZfar),"zfar"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,_contents)); + + + + _Meta->setElementSize(sizeof(domCamera::domOptics::domTechnique_common::domOrthographic)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCamera::domOptics::domTechnique_common::domPerspective::create(daeInt bytes) +{ + domCamera::domOptics::domTechnique_common::domPerspectiveRef ref = new(bytes) domCamera::domOptics::domTechnique_common::domPerspective; + return ref; +} + + +daeMetaElement * +domCamera::domOptics::domTechnique_common::domPerspective::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "perspective" ); + _Meta->setStaticPointerAddress(&domCamera::domOptics::domTechnique_common::domPerspective::_Meta); + _Meta->registerConstructor(domCamera::domOptics::domTechnique_common::domPerspective::create); + + // Add elements: xfov, yfov, aspect_ratio, znear, zfar + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemXfov),"xfov"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemYfov),"yfov"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemAspect_ratio),"aspect_ratio"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemZnear),"znear"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemZfar),"zfar"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,_contents)); + + + + _Meta->setElementSize(sizeof(domCamera::domOptics::domTechnique_common::domPerspective)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCamera::domImager::create(daeInt bytes) +{ + domCamera::domImagerRef ref = new(bytes) domCamera::domImager; + return ref; +} + + +daeMetaElement * +domCamera::domImager::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "imager" ); + _Meta->setStaticPointerAddress(&domCamera::domImager::_Meta); + _Meta->registerConstructor(domCamera::domImager::create); + + // Add elements: technique, extra + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domCamera::domImager,elemTechnique_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domCamera::domImager,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domCamera::domImager)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCamera::_Meta = NULL; +daeMetaElement * domCamera::domOptics::_Meta = NULL; +daeMetaElement * domCamera::domOptics::domTechnique_common::_Meta = NULL; +daeMetaElement * domCamera::domOptics::domTechnique_common::domOrthographic::_Meta = NULL; +daeMetaElement * domCamera::domOptics::domTechnique_common::domPerspective::_Meta = NULL; +daeMetaElement * domCamera::domImager::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCapsule.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCapsule.cpp new file mode 100644 index 000000000..770cd9508 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCapsule.cpp @@ -0,0 +1,122 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCapsule::create(daeInt bytes) +{ + domCapsuleRef ref = new(bytes) domCapsule; + return ref; +} + + +daeMetaElement * +domCapsule::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "capsule" ); + _Meta->setStaticPointerAddress(&domCapsule::_Meta); + _Meta->registerConstructor(domCapsule::create); + + // Add elements: height, radius, extra + _Meta->appendElement(domCapsule::domHeight::registerElement(),daeOffsetOf(domCapsule,elemHeight)); + _Meta->appendElement(domCapsule::domRadius::registerElement(),daeOffsetOf(domCapsule,elemRadius)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domCapsule,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domCapsule)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCapsule::domHeight::create(daeInt bytes) +{ + domCapsule::domHeightRef ref = new(bytes) domCapsule::domHeight; + return ref; +} + + +daeMetaElement * +domCapsule::domHeight::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "height" ); + _Meta->setStaticPointerAddress(&domCapsule::domHeight::_Meta); + _Meta->registerConstructor(domCapsule::domHeight::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domCapsule::domHeight , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCapsule::domHeight)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCapsule::domRadius::create(daeInt bytes) +{ + domCapsule::domRadiusRef ref = new(bytes) domCapsule::domRadius; + return ref; +} + + +daeMetaElement * +domCapsule::domRadius::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "radius" ); + _Meta->setStaticPointerAddress(&domCapsule::domRadius::_Meta); + _Meta->registerConstructor(domCapsule::domRadius::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domCapsule::domRadius , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCapsule::domRadius)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCapsule::_Meta = NULL; +daeMetaElement * domCapsule::domHeight::_Meta = NULL; +daeMetaElement * domCapsule::domRadius::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_connect_param.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_connect_param.cpp new file mode 100644 index 000000000..ab73515f5 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_connect_param.cpp @@ -0,0 +1,58 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_connect_param::create(daeInt bytes) +{ + domCg_connect_paramRef ref = new(bytes) domCg_connect_param; + return ref; +} + + +daeMetaElement * +domCg_connect_param::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_connect_param" ); + _Meta->setStaticPointerAddress(&domCg_connect_param::_Meta); + _Meta->registerConstructor(domCg_connect_param::create); + + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("Cg_identifier")); + ma->setOffset( daeOffsetOf( domCg_connect_param , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_connect_param)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_connect_param::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_newarray_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_newarray_type.cpp new file mode 100644 index 000000000..eb0c25baf --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_newarray_type.cpp @@ -0,0 +1,180 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_newarray_type::create(daeInt bytes) +{ + domCg_newarray_typeRef ref = new(bytes) domCg_newarray_type; + return ref; +} + + +daeMetaElement * +domCg_newarray_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_newarray_type" ); + _Meta->setStaticPointerAddress(&domCg_newarray_type::_Meta); + _Meta->registerConstructor(domCg_newarray_type::create); + + // Add elements: cg_param_type, array, usertype, connect_param + _Meta->appendArrayElement(domCg_param_type::registerElement(),daeOffsetOf(domCg_newarray_type,elemCg_param_type_array)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[0], "cg_surface_type"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[0], "cg_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[0], "cg_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[0], "cg_sampler3D"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[0], "cg_samplerRECT"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[0], "cg_samplerCUBE"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[0], "cg_samplerDEPTH"); + _Meta->appendPossibleChild( "string", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[0]); + _Meta->appendArrayElement(domCg_newarray_type::registerElement(),daeOffsetOf(domCg_newarray_type,elemArray_array),"array"); + _Meta->appendArrayElement(domCg_setuser_type::registerElement(),daeOffsetOf(domCg_newarray_type,elemUsertype_array),"usertype"); + _Meta->appendArrayElement(domCg_connect_param::registerElement(),daeOffsetOf(domCg_newarray_type,elemConnect_param_array),"connect_param"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCg_newarray_type,_contents)); + + + // Add attribute: length + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "length" ); + ma->setType( daeAtomicType::get("xsPositiveInteger")); + ma->setOffset( daeOffsetOf( domCg_newarray_type , attrLength )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_newarray_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_newarray_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_newparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_newparam.cpp new file mode 100644 index 000000000..4b3e27c5e --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_newparam.cpp @@ -0,0 +1,254 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_newparam::create(daeInt bytes) +{ + domCg_newparamRef ref = new(bytes) domCg_newparam; + return ref; +} + + +daeMetaElement * +domCg_newparam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_newparam" ); + _Meta->setStaticPointerAddress(&domCg_newparam::_Meta); + _Meta->registerConstructor(domCg_newparam::create); + + // Add elements: annotate, semantic, modifier, cg_param_type, usertype, array + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domCg_newparam,elemAnnotate_array),"annotate"); + _Meta->appendElement(domCg_newparam::domSemantic::registerElement(),daeOffsetOf(domCg_newparam,elemSemantic)); + _Meta->appendElement(domCg_newparam::domModifier::registerElement(),daeOffsetOf(domCg_newparam,elemModifier)); + _Meta->appendElement(domCg_param_type::registerElement(),daeOffsetOf(domCg_newparam,elemCg_param_type)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool1x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool1x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool1x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool1x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool2x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool2x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool2x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool2x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool3x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool3x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool3x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool3x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool4x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool4x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool4x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool4x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int1x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int1x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int1x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int1x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int2x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int2x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int2x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int2x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int3x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int3x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int3x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int3x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int4x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int4x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int4x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int4x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half1x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half1x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half1x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half1x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half2x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half2x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half2x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half2x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half3x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half3x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half3x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half3x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half4x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half4x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half4x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "half4x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed1x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed1x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed1x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed1x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed2x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed2x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed2x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed2x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed3x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed3x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed3x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed3x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed4x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed4x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed4x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "fixed4x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[3], "cg_surface_type"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[3], "cg_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[3], "cg_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[3], "cg_sampler3D"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[3], "cg_samplerRECT"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[3], "cg_samplerCUBE"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[3], "cg_samplerDEPTH"); + _Meta->appendPossibleChild( "string", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[3]); + _Meta->appendElement(domCg_setuser_type::registerElement(),daeOffsetOf(domCg_newparam,elemUsertype),"usertype"); + _Meta->appendElement(domCg_newarray_type::registerElement(),daeOffsetOf(domCg_newparam,elemArray),"array"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCg_newparam,_contents)); + + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("Cg_identifier")); + ma->setOffset( daeOffsetOf( domCg_newparam , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_newparam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_newparam::domSemantic::create(daeInt bytes) +{ + domCg_newparam::domSemanticRef ref = new(bytes) domCg_newparam::domSemantic; + return ref; +} + + +daeMetaElement * +domCg_newparam::domSemantic::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "semantic" ); + _Meta->setStaticPointerAddress(&domCg_newparam::domSemantic::_Meta); + _Meta->registerConstructor(domCg_newparam::domSemantic::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCg_newparam::domSemantic , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_newparam::domSemantic)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_newparam::domModifier::create(daeInt bytes) +{ + domCg_newparam::domModifierRef ref = new(bytes) domCg_newparam::domModifier; + return ref; +} + + +daeMetaElement * +domCg_newparam::domModifier::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "modifier" ); + _Meta->setStaticPointerAddress(&domCg_newparam::domModifier::_Meta); + _Meta->registerConstructor(domCg_newparam::domModifier::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_modifier_enum_common")); + ma->setOffset( daeOffsetOf( domCg_newparam::domModifier , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_newparam::domModifier)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_newparam::_Meta = NULL; +daeMetaElement * domCg_newparam::domSemantic::_Meta = NULL; +daeMetaElement * domCg_newparam::domModifier::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_param_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_param_type.cpp new file mode 100644 index 000000000..6de66c17c --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_param_type.cpp @@ -0,0 +1,4017 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_param_type::create(daeInt bytes) +{ + domCg_param_typeRef ref = new(bytes) domCg_param_type; + return ref; +} + + +daeMetaElement * +domCg_param_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_param_type" ); + _Meta->setStaticPointerAddress(&domCg_param_type::_Meta); + _Meta->registerConstructor(domCg_param_type::create); + + _Meta->setIsTransparent( true ); + // Add elements: bool, bool1, bool2, bool3, bool4, bool1x1, bool1x2, bool1x3, bool1x4, bool2x1, bool2x2, bool2x3, bool2x4, bool3x1, bool3x2, bool3x3, bool3x4, bool4x1, bool4x2, bool4x3, bool4x4, float, float1, float2, float3, float4, float1x1, float1x2, float1x3, float1x4, float2x1, float2x2, float2x3, float2x4, float3x1, float3x2, float3x3, float3x4, float4x1, float4x2, float4x3, float4x4, int, int1, int2, int3, int4, int1x1, int1x2, int1x3, int1x4, int2x1, int2x2, int2x3, int2x4, int3x1, int3x2, int3x3, int3x4, int4x1, int4x2, int4x3, int4x4, half, half1, half2, half3, half4, half1x1, half1x2, half1x3, half1x4, half2x1, half2x2, half2x3, half2x4, half3x1, half3x2, half3x3, half3x4, half4x1, half4x2, half4x3, half4x4, fixed, fixed1, fixed2, fixed3, fixed4, fixed1x1, fixed1x2, fixed1x3, fixed1x4, fixed2x1, fixed2x2, fixed2x3, fixed2x4, fixed3x1, fixed3x2, fixed3x3, fixed3x4, fixed4x1, fixed4x2, fixed4x3, fixed4x4, surface, sampler1D, sampler2D, sampler3D, samplerRECT, samplerCUBE, samplerDEPTH, string, enum + _Meta->appendElement(domCg_param_type::domBool::registerElement(),daeOffsetOf(domCg_param_type,elemBool)); + _Meta->appendElement(domCg_param_type::domBool1::registerElement(),daeOffsetOf(domCg_param_type,elemBool1)); + _Meta->appendElement(domCg_param_type::domBool2::registerElement(),daeOffsetOf(domCg_param_type,elemBool2)); + _Meta->appendElement(domCg_param_type::domBool3::registerElement(),daeOffsetOf(domCg_param_type,elemBool3)); + _Meta->appendElement(domCg_param_type::domBool4::registerElement(),daeOffsetOf(domCg_param_type,elemBool4)); + _Meta->appendElement(domCg_param_type::domBool1x1::registerElement(),daeOffsetOf(domCg_param_type,elemBool1x1)); + _Meta->appendElement(domCg_param_type::domBool1x2::registerElement(),daeOffsetOf(domCg_param_type,elemBool1x2)); + _Meta->appendElement(domCg_param_type::domBool1x3::registerElement(),daeOffsetOf(domCg_param_type,elemBool1x3)); + _Meta->appendElement(domCg_param_type::domBool1x4::registerElement(),daeOffsetOf(domCg_param_type,elemBool1x4)); + _Meta->appendElement(domCg_param_type::domBool2x1::registerElement(),daeOffsetOf(domCg_param_type,elemBool2x1)); + _Meta->appendElement(domCg_param_type::domBool2x2::registerElement(),daeOffsetOf(domCg_param_type,elemBool2x2)); + _Meta->appendElement(domCg_param_type::domBool2x3::registerElement(),daeOffsetOf(domCg_param_type,elemBool2x3)); + _Meta->appendElement(domCg_param_type::domBool2x4::registerElement(),daeOffsetOf(domCg_param_type,elemBool2x4)); + _Meta->appendElement(domCg_param_type::domBool3x1::registerElement(),daeOffsetOf(domCg_param_type,elemBool3x1)); + _Meta->appendElement(domCg_param_type::domBool3x2::registerElement(),daeOffsetOf(domCg_param_type,elemBool3x2)); + _Meta->appendElement(domCg_param_type::domBool3x3::registerElement(),daeOffsetOf(domCg_param_type,elemBool3x3)); + _Meta->appendElement(domCg_param_type::domBool3x4::registerElement(),daeOffsetOf(domCg_param_type,elemBool3x4)); + _Meta->appendElement(domCg_param_type::domBool4x1::registerElement(),daeOffsetOf(domCg_param_type,elemBool4x1)); + _Meta->appendElement(domCg_param_type::domBool4x2::registerElement(),daeOffsetOf(domCg_param_type,elemBool4x2)); + _Meta->appendElement(domCg_param_type::domBool4x3::registerElement(),daeOffsetOf(domCg_param_type,elemBool4x3)); + _Meta->appendElement(domCg_param_type::domBool4x4::registerElement(),daeOffsetOf(domCg_param_type,elemBool4x4)); + _Meta->appendElement(domCg_param_type::domFloat::registerElement(),daeOffsetOf(domCg_param_type,elemFloat)); + _Meta->appendElement(domCg_param_type::domFloat1::registerElement(),daeOffsetOf(domCg_param_type,elemFloat1)); + _Meta->appendElement(domCg_param_type::domFloat2::registerElement(),daeOffsetOf(domCg_param_type,elemFloat2)); + _Meta->appendElement(domCg_param_type::domFloat3::registerElement(),daeOffsetOf(domCg_param_type,elemFloat3)); + _Meta->appendElement(domCg_param_type::domFloat4::registerElement(),daeOffsetOf(domCg_param_type,elemFloat4)); + _Meta->appendElement(domCg_param_type::domFloat1x1::registerElement(),daeOffsetOf(domCg_param_type,elemFloat1x1)); + _Meta->appendElement(domCg_param_type::domFloat1x2::registerElement(),daeOffsetOf(domCg_param_type,elemFloat1x2)); + _Meta->appendElement(domCg_param_type::domFloat1x3::registerElement(),daeOffsetOf(domCg_param_type,elemFloat1x3)); + _Meta->appendElement(domCg_param_type::domFloat1x4::registerElement(),daeOffsetOf(domCg_param_type,elemFloat1x4)); + _Meta->appendElement(domCg_param_type::domFloat2x1::registerElement(),daeOffsetOf(domCg_param_type,elemFloat2x1)); + _Meta->appendElement(domCg_param_type::domFloat2x2::registerElement(),daeOffsetOf(domCg_param_type,elemFloat2x2)); + _Meta->appendElement(domCg_param_type::domFloat2x3::registerElement(),daeOffsetOf(domCg_param_type,elemFloat2x3)); + _Meta->appendElement(domCg_param_type::domFloat2x4::registerElement(),daeOffsetOf(domCg_param_type,elemFloat2x4)); + _Meta->appendElement(domCg_param_type::domFloat3x1::registerElement(),daeOffsetOf(domCg_param_type,elemFloat3x1)); + _Meta->appendElement(domCg_param_type::domFloat3x2::registerElement(),daeOffsetOf(domCg_param_type,elemFloat3x2)); + _Meta->appendElement(domCg_param_type::domFloat3x3::registerElement(),daeOffsetOf(domCg_param_type,elemFloat3x3)); + _Meta->appendElement(domCg_param_type::domFloat3x4::registerElement(),daeOffsetOf(domCg_param_type,elemFloat3x4)); + _Meta->appendElement(domCg_param_type::domFloat4x1::registerElement(),daeOffsetOf(domCg_param_type,elemFloat4x1)); + _Meta->appendElement(domCg_param_type::domFloat4x2::registerElement(),daeOffsetOf(domCg_param_type,elemFloat4x2)); + _Meta->appendElement(domCg_param_type::domFloat4x3::registerElement(),daeOffsetOf(domCg_param_type,elemFloat4x3)); + _Meta->appendElement(domCg_param_type::domFloat4x4::registerElement(),daeOffsetOf(domCg_param_type,elemFloat4x4)); + _Meta->appendElement(domCg_param_type::domInt::registerElement(),daeOffsetOf(domCg_param_type,elemInt)); + _Meta->appendElement(domCg_param_type::domInt1::registerElement(),daeOffsetOf(domCg_param_type,elemInt1)); + _Meta->appendElement(domCg_param_type::domInt2::registerElement(),daeOffsetOf(domCg_param_type,elemInt2)); + _Meta->appendElement(domCg_param_type::domInt3::registerElement(),daeOffsetOf(domCg_param_type,elemInt3)); + _Meta->appendElement(domCg_param_type::domInt4::registerElement(),daeOffsetOf(domCg_param_type,elemInt4)); + _Meta->appendElement(domCg_param_type::domInt1x1::registerElement(),daeOffsetOf(domCg_param_type,elemInt1x1)); + _Meta->appendElement(domCg_param_type::domInt1x2::registerElement(),daeOffsetOf(domCg_param_type,elemInt1x2)); + _Meta->appendElement(domCg_param_type::domInt1x3::registerElement(),daeOffsetOf(domCg_param_type,elemInt1x3)); + _Meta->appendElement(domCg_param_type::domInt1x4::registerElement(),daeOffsetOf(domCg_param_type,elemInt1x4)); + _Meta->appendElement(domCg_param_type::domInt2x1::registerElement(),daeOffsetOf(domCg_param_type,elemInt2x1)); + _Meta->appendElement(domCg_param_type::domInt2x2::registerElement(),daeOffsetOf(domCg_param_type,elemInt2x2)); + _Meta->appendElement(domCg_param_type::domInt2x3::registerElement(),daeOffsetOf(domCg_param_type,elemInt2x3)); + _Meta->appendElement(domCg_param_type::domInt2x4::registerElement(),daeOffsetOf(domCg_param_type,elemInt2x4)); + _Meta->appendElement(domCg_param_type::domInt3x1::registerElement(),daeOffsetOf(domCg_param_type,elemInt3x1)); + _Meta->appendElement(domCg_param_type::domInt3x2::registerElement(),daeOffsetOf(domCg_param_type,elemInt3x2)); + _Meta->appendElement(domCg_param_type::domInt3x3::registerElement(),daeOffsetOf(domCg_param_type,elemInt3x3)); + _Meta->appendElement(domCg_param_type::domInt3x4::registerElement(),daeOffsetOf(domCg_param_type,elemInt3x4)); + _Meta->appendElement(domCg_param_type::domInt4x1::registerElement(),daeOffsetOf(domCg_param_type,elemInt4x1)); + _Meta->appendElement(domCg_param_type::domInt4x2::registerElement(),daeOffsetOf(domCg_param_type,elemInt4x2)); + _Meta->appendElement(domCg_param_type::domInt4x3::registerElement(),daeOffsetOf(domCg_param_type,elemInt4x3)); + _Meta->appendElement(domCg_param_type::domInt4x4::registerElement(),daeOffsetOf(domCg_param_type,elemInt4x4)); + _Meta->appendElement(domCg_param_type::domHalf::registerElement(),daeOffsetOf(domCg_param_type,elemHalf)); + _Meta->appendElement(domCg_param_type::domHalf1::registerElement(),daeOffsetOf(domCg_param_type,elemHalf1)); + _Meta->appendElement(domCg_param_type::domHalf2::registerElement(),daeOffsetOf(domCg_param_type,elemHalf2)); + _Meta->appendElement(domCg_param_type::domHalf3::registerElement(),daeOffsetOf(domCg_param_type,elemHalf3)); + _Meta->appendElement(domCg_param_type::domHalf4::registerElement(),daeOffsetOf(domCg_param_type,elemHalf4)); + _Meta->appendElement(domCg_param_type::domHalf1x1::registerElement(),daeOffsetOf(domCg_param_type,elemHalf1x1)); + _Meta->appendElement(domCg_param_type::domHalf1x2::registerElement(),daeOffsetOf(domCg_param_type,elemHalf1x2)); + _Meta->appendElement(domCg_param_type::domHalf1x3::registerElement(),daeOffsetOf(domCg_param_type,elemHalf1x3)); + _Meta->appendElement(domCg_param_type::domHalf1x4::registerElement(),daeOffsetOf(domCg_param_type,elemHalf1x4)); + _Meta->appendElement(domCg_param_type::domHalf2x1::registerElement(),daeOffsetOf(domCg_param_type,elemHalf2x1)); + _Meta->appendElement(domCg_param_type::domHalf2x2::registerElement(),daeOffsetOf(domCg_param_type,elemHalf2x2)); + _Meta->appendElement(domCg_param_type::domHalf2x3::registerElement(),daeOffsetOf(domCg_param_type,elemHalf2x3)); + _Meta->appendElement(domCg_param_type::domHalf2x4::registerElement(),daeOffsetOf(domCg_param_type,elemHalf2x4)); + _Meta->appendElement(domCg_param_type::domHalf3x1::registerElement(),daeOffsetOf(domCg_param_type,elemHalf3x1)); + _Meta->appendElement(domCg_param_type::domHalf3x2::registerElement(),daeOffsetOf(domCg_param_type,elemHalf3x2)); + _Meta->appendElement(domCg_param_type::domHalf3x3::registerElement(),daeOffsetOf(domCg_param_type,elemHalf3x3)); + _Meta->appendElement(domCg_param_type::domHalf3x4::registerElement(),daeOffsetOf(domCg_param_type,elemHalf3x4)); + _Meta->appendElement(domCg_param_type::domHalf4x1::registerElement(),daeOffsetOf(domCg_param_type,elemHalf4x1)); + _Meta->appendElement(domCg_param_type::domHalf4x2::registerElement(),daeOffsetOf(domCg_param_type,elemHalf4x2)); + _Meta->appendElement(domCg_param_type::domHalf4x3::registerElement(),daeOffsetOf(domCg_param_type,elemHalf4x3)); + _Meta->appendElement(domCg_param_type::domHalf4x4::registerElement(),daeOffsetOf(domCg_param_type,elemHalf4x4)); + _Meta->appendElement(domCg_param_type::domFixed::registerElement(),daeOffsetOf(domCg_param_type,elemFixed)); + _Meta->appendElement(domCg_param_type::domFixed1::registerElement(),daeOffsetOf(domCg_param_type,elemFixed1)); + _Meta->appendElement(domCg_param_type::domFixed2::registerElement(),daeOffsetOf(domCg_param_type,elemFixed2)); + _Meta->appendElement(domCg_param_type::domFixed3::registerElement(),daeOffsetOf(domCg_param_type,elemFixed3)); + _Meta->appendElement(domCg_param_type::domFixed4::registerElement(),daeOffsetOf(domCg_param_type,elemFixed4)); + _Meta->appendElement(domCg_param_type::domFixed1x1::registerElement(),daeOffsetOf(domCg_param_type,elemFixed1x1)); + _Meta->appendElement(domCg_param_type::domFixed1x2::registerElement(),daeOffsetOf(domCg_param_type,elemFixed1x2)); + _Meta->appendElement(domCg_param_type::domFixed1x3::registerElement(),daeOffsetOf(domCg_param_type,elemFixed1x3)); + _Meta->appendElement(domCg_param_type::domFixed1x4::registerElement(),daeOffsetOf(domCg_param_type,elemFixed1x4)); + _Meta->appendElement(domCg_param_type::domFixed2x1::registerElement(),daeOffsetOf(domCg_param_type,elemFixed2x1)); + _Meta->appendElement(domCg_param_type::domFixed2x2::registerElement(),daeOffsetOf(domCg_param_type,elemFixed2x2)); + _Meta->appendElement(domCg_param_type::domFixed2x3::registerElement(),daeOffsetOf(domCg_param_type,elemFixed2x3)); + _Meta->appendElement(domCg_param_type::domFixed2x4::registerElement(),daeOffsetOf(domCg_param_type,elemFixed2x4)); + _Meta->appendElement(domCg_param_type::domFixed3x1::registerElement(),daeOffsetOf(domCg_param_type,elemFixed3x1)); + _Meta->appendElement(domCg_param_type::domFixed3x2::registerElement(),daeOffsetOf(domCg_param_type,elemFixed3x2)); + _Meta->appendElement(domCg_param_type::domFixed3x3::registerElement(),daeOffsetOf(domCg_param_type,elemFixed3x3)); + _Meta->appendElement(domCg_param_type::domFixed3x4::registerElement(),daeOffsetOf(domCg_param_type,elemFixed3x4)); + _Meta->appendElement(domCg_param_type::domFixed4x1::registerElement(),daeOffsetOf(domCg_param_type,elemFixed4x1)); + _Meta->appendElement(domCg_param_type::domFixed4x2::registerElement(),daeOffsetOf(domCg_param_type,elemFixed4x2)); + _Meta->appendElement(domCg_param_type::domFixed4x3::registerElement(),daeOffsetOf(domCg_param_type,elemFixed4x3)); + _Meta->appendElement(domCg_param_type::domFixed4x4::registerElement(),daeOffsetOf(domCg_param_type,elemFixed4x4)); + _Meta->appendElement(domCg_surface_type::registerElement(),daeOffsetOf(domCg_param_type,elemSurface),"surface"); + _Meta->appendElement(domCg_sampler1D::registerElement(),daeOffsetOf(domCg_param_type,elemSampler1D),"sampler1D"); + _Meta->appendElement(domCg_sampler2D::registerElement(),daeOffsetOf(domCg_param_type,elemSampler2D),"sampler2D"); + _Meta->appendElement(domCg_sampler3D::registerElement(),daeOffsetOf(domCg_param_type,elemSampler3D),"sampler3D"); + _Meta->appendElement(domCg_samplerRECT::registerElement(),daeOffsetOf(domCg_param_type,elemSamplerRECT),"samplerRECT"); + _Meta->appendElement(domCg_samplerCUBE::registerElement(),daeOffsetOf(domCg_param_type,elemSamplerCUBE),"samplerCUBE"); + _Meta->appendElement(domCg_samplerDEPTH::registerElement(),daeOffsetOf(domCg_param_type,elemSamplerDEPTH),"samplerDEPTH"); + _Meta->appendElement(domCg_param_type::domString::registerElement(),daeOffsetOf(domCg_param_type,elemString)); + _Meta->appendElement(domCg_param_type::domEnum::registerElement(),daeOffsetOf(domCg_param_type,elemEnum)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCg_param_type,_contents)); + + + + _Meta->setElementSize(sizeof(domCg_param_type)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool::create(daeInt bytes) +{ + domCg_param_type::domBoolRef ref = new(bytes) domCg_param_type::domBool; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool1::create(daeInt bytes) +{ + domCg_param_type::domBool1Ref ref = new(bytes) domCg_param_type::domBool1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool1::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool2::create(daeInt bytes) +{ + domCg_param_type::domBool2Ref ref = new(bytes) domCg_param_type::domBool2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool2::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool3::create(daeInt bytes) +{ + domCg_param_type::domBool3Ref ref = new(bytes) domCg_param_type::domBool3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool3::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool4::create(daeInt bytes) +{ + domCg_param_type::domBool4Ref ref = new(bytes) domCg_param_type::domBool4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool4::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool1x1::create(daeInt bytes) +{ + domCg_param_type::domBool1x1Ref ref = new(bytes) domCg_param_type::domBool1x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool1x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool1x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool1x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool1x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool1x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool1x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool1x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool1x2::create(daeInt bytes) +{ + domCg_param_type::domBool1x2Ref ref = new(bytes) domCg_param_type::domBool1x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool1x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool1x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool1x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool1x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool1x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool1x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool1x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool1x3::create(daeInt bytes) +{ + domCg_param_type::domBool1x3Ref ref = new(bytes) domCg_param_type::domBool1x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool1x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool1x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool1x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool1x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool1x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool1x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool1x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool1x4::create(daeInt bytes) +{ + domCg_param_type::domBool1x4Ref ref = new(bytes) domCg_param_type::domBool1x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool1x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool1x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool1x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool1x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool1x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool1x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool1x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool2x1::create(daeInt bytes) +{ + domCg_param_type::domBool2x1Ref ref = new(bytes) domCg_param_type::domBool2x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool2x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool2x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool2x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool2x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool2x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool2x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool2x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool2x2::create(daeInt bytes) +{ + domCg_param_type::domBool2x2Ref ref = new(bytes) domCg_param_type::domBool2x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool2x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool2x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool2x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool2x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool2x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool2x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool2x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool2x3::create(daeInt bytes) +{ + domCg_param_type::domBool2x3Ref ref = new(bytes) domCg_param_type::domBool2x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool2x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool2x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool2x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool2x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool2x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool2x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool2x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool2x4::create(daeInt bytes) +{ + domCg_param_type::domBool2x4Ref ref = new(bytes) domCg_param_type::domBool2x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool2x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool2x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool2x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool2x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool2x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool2x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool2x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool3x1::create(daeInt bytes) +{ + domCg_param_type::domBool3x1Ref ref = new(bytes) domCg_param_type::domBool3x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool3x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool3x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool3x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool3x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool3x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool3x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool3x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool3x2::create(daeInt bytes) +{ + domCg_param_type::domBool3x2Ref ref = new(bytes) domCg_param_type::domBool3x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool3x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool3x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool3x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool3x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool3x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool3x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool3x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool3x3::create(daeInt bytes) +{ + domCg_param_type::domBool3x3Ref ref = new(bytes) domCg_param_type::domBool3x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool3x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool3x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool3x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool3x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool3x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool3x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool3x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool3x4::create(daeInt bytes) +{ + domCg_param_type::domBool3x4Ref ref = new(bytes) domCg_param_type::domBool3x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool3x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool3x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool3x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool3x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool3x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool3x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool3x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool4x1::create(daeInt bytes) +{ + domCg_param_type::domBool4x1Ref ref = new(bytes) domCg_param_type::domBool4x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool4x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool4x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool4x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool4x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool4x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool4x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool4x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool4x2::create(daeInt bytes) +{ + domCg_param_type::domBool4x2Ref ref = new(bytes) domCg_param_type::domBool4x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool4x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool4x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool4x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool4x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool4x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool4x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool4x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool4x3::create(daeInt bytes) +{ + domCg_param_type::domBool4x3Ref ref = new(bytes) domCg_param_type::domBool4x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool4x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool4x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool4x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool4x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool4x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool4x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool4x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domBool4x4::create(daeInt bytes) +{ + domCg_param_type::domBool4x4Ref ref = new(bytes) domCg_param_type::domBool4x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domBool4x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool4x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domBool4x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domBool4x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_bool4x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domBool4x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domBool4x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat::create(daeInt bytes) +{ + domCg_param_type::domFloatRef ref = new(bytes) domCg_param_type::domFloat; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat1::create(daeInt bytes) +{ + domCg_param_type::domFloat1Ref ref = new(bytes) domCg_param_type::domFloat1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat2::create(daeInt bytes) +{ + domCg_param_type::domFloat2Ref ref = new(bytes) domCg_param_type::domFloat2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat3::create(daeInt bytes) +{ + domCg_param_type::domFloat3Ref ref = new(bytes) domCg_param_type::domFloat3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat4::create(daeInt bytes) +{ + domCg_param_type::domFloat4Ref ref = new(bytes) domCg_param_type::domFloat4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat1x1::create(daeInt bytes) +{ + domCg_param_type::domFloat1x1Ref ref = new(bytes) domCg_param_type::domFloat1x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat1x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat1x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat1x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float1x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat1x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat1x2::create(daeInt bytes) +{ + domCg_param_type::domFloat1x2Ref ref = new(bytes) domCg_param_type::domFloat1x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat1x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat1x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat1x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float1x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat1x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat1x3::create(daeInt bytes) +{ + domCg_param_type::domFloat1x3Ref ref = new(bytes) domCg_param_type::domFloat1x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat1x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat1x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat1x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float1x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat1x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat1x4::create(daeInt bytes) +{ + domCg_param_type::domFloat1x4Ref ref = new(bytes) domCg_param_type::domFloat1x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat1x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat1x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat1x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float1x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat1x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat2x1::create(daeInt bytes) +{ + domCg_param_type::domFloat2x1Ref ref = new(bytes) domCg_param_type::domFloat2x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat2x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat2x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat2x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float2x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat2x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat2x2::create(daeInt bytes) +{ + domCg_param_type::domFloat2x2Ref ref = new(bytes) domCg_param_type::domFloat2x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat2x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat2x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat2x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float2x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat2x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat2x3::create(daeInt bytes) +{ + domCg_param_type::domFloat2x3Ref ref = new(bytes) domCg_param_type::domFloat2x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat2x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat2x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat2x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float2x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat2x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat2x4::create(daeInt bytes) +{ + domCg_param_type::domFloat2x4Ref ref = new(bytes) domCg_param_type::domFloat2x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat2x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat2x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat2x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float2x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat2x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat3x1::create(daeInt bytes) +{ + domCg_param_type::domFloat3x1Ref ref = new(bytes) domCg_param_type::domFloat3x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat3x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat3x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat3x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float3x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat3x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat3x2::create(daeInt bytes) +{ + domCg_param_type::domFloat3x2Ref ref = new(bytes) domCg_param_type::domFloat3x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat3x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat3x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat3x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float3x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat3x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat3x3::create(daeInt bytes) +{ + domCg_param_type::domFloat3x3Ref ref = new(bytes) domCg_param_type::domFloat3x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat3x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat3x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat3x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float3x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat3x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat3x4::create(daeInt bytes) +{ + domCg_param_type::domFloat3x4Ref ref = new(bytes) domCg_param_type::domFloat3x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat3x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat3x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat3x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float3x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat3x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat4x1::create(daeInt bytes) +{ + domCg_param_type::domFloat4x1Ref ref = new(bytes) domCg_param_type::domFloat4x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat4x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat4x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat4x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float4x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat4x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat4x2::create(daeInt bytes) +{ + domCg_param_type::domFloat4x2Ref ref = new(bytes) domCg_param_type::domFloat4x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat4x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat4x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat4x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float4x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat4x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat4x3::create(daeInt bytes) +{ + domCg_param_type::domFloat4x3Ref ref = new(bytes) domCg_param_type::domFloat4x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat4x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat4x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat4x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float4x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat4x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFloat4x4::create(daeInt bytes) +{ + domCg_param_type::domFloat4x4Ref ref = new(bytes) domCg_param_type::domFloat4x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFloat4x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFloat4x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFloat4x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_float4x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFloat4x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt::create(daeInt bytes) +{ + domCg_param_type::domIntRef ref = new(bytes) domCg_param_type::domInt; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt1::create(daeInt bytes) +{ + domCg_param_type::domInt1Ref ref = new(bytes) domCg_param_type::domInt1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt1::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt2::create(daeInt bytes) +{ + domCg_param_type::domInt2Ref ref = new(bytes) domCg_param_type::domInt2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt2::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt3::create(daeInt bytes) +{ + domCg_param_type::domInt3Ref ref = new(bytes) domCg_param_type::domInt3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt3::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt4::create(daeInt bytes) +{ + domCg_param_type::domInt4Ref ref = new(bytes) domCg_param_type::domInt4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt4::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt1x1::create(daeInt bytes) +{ + domCg_param_type::domInt1x1Ref ref = new(bytes) domCg_param_type::domInt1x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt1x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int1x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt1x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt1x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int1x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt1x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt1x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt1x2::create(daeInt bytes) +{ + domCg_param_type::domInt1x2Ref ref = new(bytes) domCg_param_type::domInt1x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt1x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int1x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt1x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt1x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int1x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt1x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt1x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt1x3::create(daeInt bytes) +{ + domCg_param_type::domInt1x3Ref ref = new(bytes) domCg_param_type::domInt1x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt1x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int1x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt1x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt1x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int1x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt1x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt1x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt1x4::create(daeInt bytes) +{ + domCg_param_type::domInt1x4Ref ref = new(bytes) domCg_param_type::domInt1x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt1x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int1x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt1x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt1x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int1x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt1x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt1x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt2x1::create(daeInt bytes) +{ + domCg_param_type::domInt2x1Ref ref = new(bytes) domCg_param_type::domInt2x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt2x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int2x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt2x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt2x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int2x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt2x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt2x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt2x2::create(daeInt bytes) +{ + domCg_param_type::domInt2x2Ref ref = new(bytes) domCg_param_type::domInt2x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt2x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int2x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt2x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt2x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int2x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt2x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt2x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt2x3::create(daeInt bytes) +{ + domCg_param_type::domInt2x3Ref ref = new(bytes) domCg_param_type::domInt2x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt2x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int2x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt2x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt2x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int2x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt2x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt2x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt2x4::create(daeInt bytes) +{ + domCg_param_type::domInt2x4Ref ref = new(bytes) domCg_param_type::domInt2x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt2x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int2x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt2x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt2x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int2x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt2x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt2x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt3x1::create(daeInt bytes) +{ + domCg_param_type::domInt3x1Ref ref = new(bytes) domCg_param_type::domInt3x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt3x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int3x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt3x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt3x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int3x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt3x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt3x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt3x2::create(daeInt bytes) +{ + domCg_param_type::domInt3x2Ref ref = new(bytes) domCg_param_type::domInt3x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt3x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int3x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt3x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt3x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int3x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt3x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt3x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt3x3::create(daeInt bytes) +{ + domCg_param_type::domInt3x3Ref ref = new(bytes) domCg_param_type::domInt3x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt3x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int3x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt3x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt3x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int3x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt3x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt3x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt3x4::create(daeInt bytes) +{ + domCg_param_type::domInt3x4Ref ref = new(bytes) domCg_param_type::domInt3x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt3x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int3x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt3x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt3x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int3x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt3x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt3x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt4x1::create(daeInt bytes) +{ + domCg_param_type::domInt4x1Ref ref = new(bytes) domCg_param_type::domInt4x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt4x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int4x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt4x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt4x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int4x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt4x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt4x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt4x2::create(daeInt bytes) +{ + domCg_param_type::domInt4x2Ref ref = new(bytes) domCg_param_type::domInt4x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt4x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int4x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt4x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt4x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int4x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt4x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt4x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt4x3::create(daeInt bytes) +{ + domCg_param_type::domInt4x3Ref ref = new(bytes) domCg_param_type::domInt4x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt4x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int4x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt4x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt4x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int4x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt4x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt4x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domInt4x4::create(daeInt bytes) +{ + domCg_param_type::domInt4x4Ref ref = new(bytes) domCg_param_type::domInt4x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domInt4x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int4x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domInt4x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domInt4x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_int4x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domInt4x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domInt4x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf::create(daeInt bytes) +{ + domCg_param_type::domHalfRef ref = new(bytes) domCg_param_type::domHalf; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf1::create(daeInt bytes) +{ + domCg_param_type::domHalf1Ref ref = new(bytes) domCg_param_type::domHalf1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf1::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf2::create(daeInt bytes) +{ + domCg_param_type::domHalf2Ref ref = new(bytes) domCg_param_type::domHalf2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf2::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf3::create(daeInt bytes) +{ + domCg_param_type::domHalf3Ref ref = new(bytes) domCg_param_type::domHalf3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf3::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf4::create(daeInt bytes) +{ + domCg_param_type::domHalf4Ref ref = new(bytes) domCg_param_type::domHalf4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf4::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf1x1::create(daeInt bytes) +{ + domCg_param_type::domHalf1x1Ref ref = new(bytes) domCg_param_type::domHalf1x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf1x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half1x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf1x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf1x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half1x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf1x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf1x2::create(daeInt bytes) +{ + domCg_param_type::domHalf1x2Ref ref = new(bytes) domCg_param_type::domHalf1x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf1x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half1x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf1x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf1x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half1x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf1x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf1x3::create(daeInt bytes) +{ + domCg_param_type::domHalf1x3Ref ref = new(bytes) domCg_param_type::domHalf1x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf1x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half1x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf1x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf1x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half1x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf1x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf1x4::create(daeInt bytes) +{ + domCg_param_type::domHalf1x4Ref ref = new(bytes) domCg_param_type::domHalf1x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf1x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half1x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf1x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf1x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half1x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf1x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf2x1::create(daeInt bytes) +{ + domCg_param_type::domHalf2x1Ref ref = new(bytes) domCg_param_type::domHalf2x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf2x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half2x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf2x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf2x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half2x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf2x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf2x2::create(daeInt bytes) +{ + domCg_param_type::domHalf2x2Ref ref = new(bytes) domCg_param_type::domHalf2x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf2x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half2x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf2x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf2x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half2x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf2x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf2x3::create(daeInt bytes) +{ + domCg_param_type::domHalf2x3Ref ref = new(bytes) domCg_param_type::domHalf2x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf2x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half2x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf2x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf2x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half2x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf2x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf2x4::create(daeInt bytes) +{ + domCg_param_type::domHalf2x4Ref ref = new(bytes) domCg_param_type::domHalf2x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf2x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half2x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf2x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf2x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half2x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf2x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf3x1::create(daeInt bytes) +{ + domCg_param_type::domHalf3x1Ref ref = new(bytes) domCg_param_type::domHalf3x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf3x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half3x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf3x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf3x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half3x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf3x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf3x2::create(daeInt bytes) +{ + domCg_param_type::domHalf3x2Ref ref = new(bytes) domCg_param_type::domHalf3x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf3x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half3x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf3x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf3x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half3x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf3x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf3x3::create(daeInt bytes) +{ + domCg_param_type::domHalf3x3Ref ref = new(bytes) domCg_param_type::domHalf3x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf3x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half3x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf3x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf3x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half3x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf3x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf3x4::create(daeInt bytes) +{ + domCg_param_type::domHalf3x4Ref ref = new(bytes) domCg_param_type::domHalf3x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf3x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half3x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf3x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf3x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half3x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf3x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf4x1::create(daeInt bytes) +{ + domCg_param_type::domHalf4x1Ref ref = new(bytes) domCg_param_type::domHalf4x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf4x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half4x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf4x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf4x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half4x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf4x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf4x2::create(daeInt bytes) +{ + domCg_param_type::domHalf4x2Ref ref = new(bytes) domCg_param_type::domHalf4x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf4x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half4x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf4x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf4x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half4x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf4x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf4x3::create(daeInt bytes) +{ + domCg_param_type::domHalf4x3Ref ref = new(bytes) domCg_param_type::domHalf4x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf4x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half4x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf4x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf4x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half4x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf4x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domHalf4x4::create(daeInt bytes) +{ + domCg_param_type::domHalf4x4Ref ref = new(bytes) domCg_param_type::domHalf4x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domHalf4x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "half4x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domHalf4x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domHalf4x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_half4x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domHalf4x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed::create(daeInt bytes) +{ + domCg_param_type::domFixedRef ref = new(bytes) domCg_param_type::domFixed; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed1::create(daeInt bytes) +{ + domCg_param_type::domFixed1Ref ref = new(bytes) domCg_param_type::domFixed1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed2::create(daeInt bytes) +{ + domCg_param_type::domFixed2Ref ref = new(bytes) domCg_param_type::domFixed2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed3::create(daeInt bytes) +{ + domCg_param_type::domFixed3Ref ref = new(bytes) domCg_param_type::domFixed3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed4::create(daeInt bytes) +{ + domCg_param_type::domFixed4Ref ref = new(bytes) domCg_param_type::domFixed4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed1x1::create(daeInt bytes) +{ + domCg_param_type::domFixed1x1Ref ref = new(bytes) domCg_param_type::domFixed1x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed1x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed1x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed1x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed1x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed1x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed1x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed1x2::create(daeInt bytes) +{ + domCg_param_type::domFixed1x2Ref ref = new(bytes) domCg_param_type::domFixed1x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed1x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed1x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed1x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed1x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed1x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed1x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed1x3::create(daeInt bytes) +{ + domCg_param_type::domFixed1x3Ref ref = new(bytes) domCg_param_type::domFixed1x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed1x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed1x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed1x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed1x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed1x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed1x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed1x4::create(daeInt bytes) +{ + domCg_param_type::domFixed1x4Ref ref = new(bytes) domCg_param_type::domFixed1x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed1x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed1x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed1x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed1x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed1x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed1x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed2x1::create(daeInt bytes) +{ + domCg_param_type::domFixed2x1Ref ref = new(bytes) domCg_param_type::domFixed2x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed2x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed2x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed2x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed2x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed2x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed2x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed2x2::create(daeInt bytes) +{ + domCg_param_type::domFixed2x2Ref ref = new(bytes) domCg_param_type::domFixed2x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed2x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed2x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed2x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed2x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed2x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed2x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed2x3::create(daeInt bytes) +{ + domCg_param_type::domFixed2x3Ref ref = new(bytes) domCg_param_type::domFixed2x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed2x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed2x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed2x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed2x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed2x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed2x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed2x4::create(daeInt bytes) +{ + domCg_param_type::domFixed2x4Ref ref = new(bytes) domCg_param_type::domFixed2x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed2x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed2x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed2x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed2x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed2x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed2x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed3x1::create(daeInt bytes) +{ + domCg_param_type::domFixed3x1Ref ref = new(bytes) domCg_param_type::domFixed3x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed3x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed3x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed3x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed3x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed3x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed3x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed3x2::create(daeInt bytes) +{ + domCg_param_type::domFixed3x2Ref ref = new(bytes) domCg_param_type::domFixed3x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed3x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed3x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed3x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed3x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed3x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed3x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed3x3::create(daeInt bytes) +{ + domCg_param_type::domFixed3x3Ref ref = new(bytes) domCg_param_type::domFixed3x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed3x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed3x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed3x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed3x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed3x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed3x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed3x4::create(daeInt bytes) +{ + domCg_param_type::domFixed3x4Ref ref = new(bytes) domCg_param_type::domFixed3x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed3x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed3x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed3x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed3x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed3x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed3x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed4x1::create(daeInt bytes) +{ + domCg_param_type::domFixed4x1Ref ref = new(bytes) domCg_param_type::domFixed4x1; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed4x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed4x1" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed4x1::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed4x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed4x1")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed4x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed4x2::create(daeInt bytes) +{ + domCg_param_type::domFixed4x2Ref ref = new(bytes) domCg_param_type::domFixed4x2; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed4x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed4x2" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed4x2::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed4x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed4x2")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed4x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed4x3::create(daeInt bytes) +{ + domCg_param_type::domFixed4x3Ref ref = new(bytes) domCg_param_type::domFixed4x3; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed4x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed4x3" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed4x3::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed4x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed4x3")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed4x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domFixed4x4::create(daeInt bytes) +{ + domCg_param_type::domFixed4x4Ref ref = new(bytes) domCg_param_type::domFixed4x4; + return ref; +} + + +daeMetaElement * +domCg_param_type::domFixed4x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fixed4x4" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domFixed4x4::_Meta); + _Meta->registerConstructor(domCg_param_type::domFixed4x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Cg_fixed4x4")); + ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domFixed4x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domString::create(daeInt bytes) +{ + domCg_param_type::domStringRef ref = new(bytes) domCg_param_type::domString; + return ref; +} + + +daeMetaElement * +domCg_param_type::domString::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "string" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domString::_Meta); + _Meta->registerConstructor(domCg_param_type::domString::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domCg_param_type::domString , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domString)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_param_type::domEnum::create(daeInt bytes) +{ + domCg_param_type::domEnumRef ref = new(bytes) domCg_param_type::domEnum; + return ref; +} + + +daeMetaElement * +domCg_param_type::domEnum::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "enum" ); + _Meta->setStaticPointerAddress(&domCg_param_type::domEnum::_Meta); + _Meta->registerConstructor(domCg_param_type::domEnum::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Gl_enumeration")); + ma->setOffset( daeOffsetOf( domCg_param_type::domEnum , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_param_type::domEnum)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_param_type::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool1::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool2::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool3::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool4::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool1x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool1x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool1x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool1x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool2x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool2x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool2x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool2x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool3x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool3x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool3x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool3x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool4x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool4x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool4x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domBool4x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat1x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat1x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat1x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat1x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat2x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat2x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat2x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat2x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat3x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat3x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat3x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat3x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat4x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat4x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat4x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFloat4x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt1::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt2::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt3::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt4::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt1x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt1x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt1x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt1x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt2x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt2x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt2x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt2x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt3x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt3x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt3x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt3x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt4x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt4x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt4x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domInt4x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf1::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf2::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf3::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf4::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf1x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf1x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf1x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf1x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf2x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf2x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf2x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf2x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf3x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf3x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf3x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf3x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf4x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf4x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf4x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domHalf4x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed1x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed1x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed1x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed1x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed2x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed2x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed2x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed2x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed3x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed3x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed3x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed3x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed4x1::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed4x2::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed4x3::_Meta = NULL; +daeMetaElement * domCg_param_type::domFixed4x4::_Meta = NULL; +daeMetaElement * domCg_param_type::domString::_Meta = NULL; +daeMetaElement * domCg_param_type::domEnum::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler1D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler1D.cpp new file mode 100644 index 000000000..8683d3161 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler1D.cpp @@ -0,0 +1,55 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_sampler1D::create(daeInt bytes) +{ + domCg_sampler1DRef ref = new(bytes) domCg_sampler1D; + return ref; +} + + +daeMetaElement * +domCg_sampler1D::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_sampler1D" ); + _Meta->setStaticPointerAddress(&domCg_sampler1D::_Meta); + _Meta->registerConstructor(domCg_sampler1D::create); + + // Add elements: source, wrap_s, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domCg_sampler1D,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domCg_sampler1D,elemWrap_s)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domCg_sampler1D,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domCg_sampler1D,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domCg_sampler1D,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domCg_sampler1D,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domCg_sampler1D,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domCg_sampler1D,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domCg_sampler1D)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_sampler1D::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler2D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler2D.cpp new file mode 100644 index 000000000..a0be5333f --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler2D.cpp @@ -0,0 +1,56 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_sampler2D::create(daeInt bytes) +{ + domCg_sampler2DRef ref = new(bytes) domCg_sampler2D; + return ref; +} + + +daeMetaElement * +domCg_sampler2D::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_sampler2D" ); + _Meta->setStaticPointerAddress(&domCg_sampler2D::_Meta); + _Meta->registerConstructor(domCg_sampler2D::create); + + // Add elements: source, wrap_s, wrap_t, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domCg_sampler2D,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domCg_sampler2D,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domCg_sampler2D,elemWrap_t)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domCg_sampler2D,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domCg_sampler2D,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domCg_sampler2D,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domCg_sampler2D,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domCg_sampler2D,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domCg_sampler2D,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domCg_sampler2D)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_sampler2D::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler3D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler3D.cpp new file mode 100644 index 000000000..d0070ba25 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler3D.cpp @@ -0,0 +1,57 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_sampler3D::create(daeInt bytes) +{ + domCg_sampler3DRef ref = new(bytes) domCg_sampler3D; + return ref; +} + + +daeMetaElement * +domCg_sampler3D::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_sampler3D" ); + _Meta->setStaticPointerAddress(&domCg_sampler3D::_Meta); + _Meta->registerConstructor(domCg_sampler3D::create); + + // Add elements: source, wrap_s, wrap_t, wrap_p, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domCg_sampler3D,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domCg_sampler3D,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domCg_sampler3D,elemWrap_t)); + _Meta->appendElement(domWrap_p::registerElement(),daeOffsetOf(domCg_sampler3D,elemWrap_p)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domCg_sampler3D,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domCg_sampler3D,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domCg_sampler3D,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domCg_sampler3D,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domCg_sampler3D,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domCg_sampler3D,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domCg_sampler3D)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_sampler3D::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerCUBE.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerCUBE.cpp new file mode 100644 index 000000000..04f20eff4 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerCUBE.cpp @@ -0,0 +1,57 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_samplerCUBE::create(daeInt bytes) +{ + domCg_samplerCUBERef ref = new(bytes) domCg_samplerCUBE; + return ref; +} + + +daeMetaElement * +domCg_samplerCUBE::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_samplerCUBE" ); + _Meta->setStaticPointerAddress(&domCg_samplerCUBE::_Meta); + _Meta->registerConstructor(domCg_samplerCUBE::create); + + // Add elements: source, wrap_s, wrap_t, wrap_p, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemWrap_t)); + _Meta->appendElement(domWrap_p::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemWrap_p)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domCg_samplerCUBE,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domCg_samplerCUBE)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_samplerCUBE::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerDEPTH.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerDEPTH.cpp new file mode 100644 index 000000000..2096f0a65 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerDEPTH.cpp @@ -0,0 +1,52 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_samplerDEPTH::create(daeInt bytes) +{ + domCg_samplerDEPTHRef ref = new(bytes) domCg_samplerDEPTH; + return ref; +} + + +daeMetaElement * +domCg_samplerDEPTH::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_samplerDEPTH" ); + _Meta->setStaticPointerAddress(&domCg_samplerDEPTH::_Meta); + _Meta->registerConstructor(domCg_samplerDEPTH::create); + + // Add elements: source, wrap_s, wrap_t, minfilter, magfilter + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domCg_samplerDEPTH,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domCg_samplerDEPTH,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domCg_samplerDEPTH,elemWrap_t)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domCg_samplerDEPTH,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domCg_samplerDEPTH,elemMagfilter)); + + + _Meta->setElementSize(sizeof(domCg_samplerDEPTH)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_samplerDEPTH::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerRECT.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerRECT.cpp new file mode 100644 index 000000000..5ab40d986 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerRECT.cpp @@ -0,0 +1,56 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_samplerRECT::create(daeInt bytes) +{ + domCg_samplerRECTRef ref = new(bytes) domCg_samplerRECT; + return ref; +} + + +daeMetaElement * +domCg_samplerRECT::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_samplerRECT" ); + _Meta->setStaticPointerAddress(&domCg_samplerRECT::_Meta); + _Meta->registerConstructor(domCg_samplerRECT::create); + + // Add elements: source, wrap_s, wrap_t, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domCg_samplerRECT,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domCg_samplerRECT,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domCg_samplerRECT,elemWrap_t)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domCg_samplerRECT,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domCg_samplerRECT,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domCg_samplerRECT,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domCg_samplerRECT,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domCg_samplerRECT,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domCg_samplerRECT,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domCg_samplerRECT)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_samplerRECT::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setarray_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setarray_type.cpp new file mode 100644 index 000000000..025178e7d --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setarray_type.cpp @@ -0,0 +1,179 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_setarray_type::create(daeInt bytes) +{ + domCg_setarray_typeRef ref = new(bytes) domCg_setarray_type; + return ref; +} + + +daeMetaElement * +domCg_setarray_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_setarray_type" ); + _Meta->setStaticPointerAddress(&domCg_setarray_type::_Meta); + _Meta->registerConstructor(domCg_setarray_type::create); + + // Add elements: cg_param_type, array, usertype + _Meta->appendArrayElement(domCg_param_type::registerElement(),daeOffsetOf(domCg_setarray_type,elemCg_param_type_array)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[0], "cg_surface_type"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[0], "cg_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[0], "cg_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[0], "cg_sampler3D"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[0], "cg_samplerRECT"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[0], "cg_samplerCUBE"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[0], "cg_samplerDEPTH"); + _Meta->appendPossibleChild( "string", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[0]); + _Meta->appendArrayElement(domCg_setarray_type::registerElement(),daeOffsetOf(domCg_setarray_type,elemArray_array),"array"); + _Meta->appendArrayElement(domCg_setuser_type::registerElement(),daeOffsetOf(domCg_setarray_type,elemUsertype_array),"usertype"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCg_setarray_type,_contents)); + + + // Add attribute: length + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "length" ); + ma->setType( daeAtomicType::get("xsPositiveInteger")); + ma->setOffset( daeOffsetOf( domCg_setarray_type , attrLength )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_setarray_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_setarray_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam.cpp new file mode 100644 index 000000000..e0f50183b --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam.cpp @@ -0,0 +1,191 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_setparam::create(daeInt bytes) +{ + domCg_setparamRef ref = new(bytes) domCg_setparam; + return ref; +} + + +daeMetaElement * +domCg_setparam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_setparam" ); + _Meta->setStaticPointerAddress(&domCg_setparam::_Meta); + _Meta->registerConstructor(domCg_setparam::create); + + // Add elements: cg_param_type, usertype, array, connect_param + _Meta->appendElement(domCg_param_type::registerElement(),daeOffsetOf(domCg_setparam,elemCg_param_type)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[0], "cg_surface_type"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[0], "cg_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[0], "cg_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[0], "cg_sampler3D"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[0], "cg_samplerRECT"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[0], "cg_samplerCUBE"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[0], "cg_samplerDEPTH"); + _Meta->appendPossibleChild( "string", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[0]); + _Meta->appendElement(domCg_setuser_type::registerElement(),daeOffsetOf(domCg_setparam,elemUsertype),"usertype"); + _Meta->appendElement(domCg_setarray_type::registerElement(),daeOffsetOf(domCg_setparam,elemArray),"array"); + _Meta->appendElement(domCg_connect_param::registerElement(),daeOffsetOf(domCg_setparam,elemConnect_param),"connect_param"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCg_setparam,_contents)); + + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("Cg_identifier")); + ma->setOffset( daeOffsetOf( domCg_setparam , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: program + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "program" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCg_setparam , attrProgram )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_setparam)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_setparam::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam_simple.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam_simple.cpp new file mode 100644 index 000000000..58165707e --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam_simple.cpp @@ -0,0 +1,175 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_setparam_simple::create(daeInt bytes) +{ + domCg_setparam_simpleRef ref = new(bytes) domCg_setparam_simple; + return ref; +} + + +daeMetaElement * +domCg_setparam_simple::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_setparam_simple" ); + _Meta->setStaticPointerAddress(&domCg_setparam_simple::_Meta); + _Meta->registerConstructor(domCg_setparam_simple::create); + + // Add elements: annotate, cg_param_type + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domCg_setparam_simple,elemAnnotate_array),"annotate"); + _Meta->appendElement(domCg_param_type::registerElement(),daeOffsetOf(domCg_setparam_simple,elemCg_param_type)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool1x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool1x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool1x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool1x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool2x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool2x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool2x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool2x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool3x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool3x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool3x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool3x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool4x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool4x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool4x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool4x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int1x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int1x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int1x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int1x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int2x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int2x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int2x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int2x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int3x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int3x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int3x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int3x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int4x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int4x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int4x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int4x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half1x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half1x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half1x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half1x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half2x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half2x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half2x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half2x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half3x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half3x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half3x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half3x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half4x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half4x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half4x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "half4x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed1x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed1x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed1x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed1x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed2x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed2x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed2x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed2x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed3x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed3x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed3x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed3x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed4x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed4x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed4x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "fixed4x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[1], "cg_surface_type"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[1], "cg_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[1], "cg_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[1], "cg_sampler3D"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[1], "cg_samplerRECT"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[1], "cg_samplerCUBE"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[1], "cg_samplerDEPTH"); + _Meta->appendPossibleChild( "string", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[1]); + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("Cg_identifier")); + ma->setOffset( daeOffsetOf( domCg_setparam_simple , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_setparam_simple)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_setparam_simple::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setuser_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setuser_type.cpp new file mode 100644 index 000000000..c6e8fddf2 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setuser_type.cpp @@ -0,0 +1,180 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_setuser_type::create(daeInt bytes) +{ + domCg_setuser_typeRef ref = new(bytes) domCg_setuser_type; + return ref; +} + + +daeMetaElement * +domCg_setuser_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_setuser_type" ); + _Meta->setStaticPointerAddress(&domCg_setuser_type::_Meta); + _Meta->registerConstructor(domCg_setuser_type::create); + + // Add elements: cg_param_type, array, usertype, connect_param + _Meta->appendArrayElement(domCg_param_type::registerElement(),daeOffsetOf(domCg_setuser_type,elemCg_param_type_array)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[0], "cg_surface_type"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[0], "cg_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[0], "cg_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[0], "cg_sampler3D"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[0], "cg_samplerRECT"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[0], "cg_samplerCUBE"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[0], "cg_samplerDEPTH"); + _Meta->appendPossibleChild( "string", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[0]); + _Meta->appendArrayElement(domCg_setarray_type::registerElement(),daeOffsetOf(domCg_setuser_type,elemArray_array),"array"); + _Meta->appendArrayElement(domCg_setuser_type::registerElement(),daeOffsetOf(domCg_setuser_type,elemUsertype_array),"usertype"); + _Meta->appendArrayElement(domCg_connect_param::registerElement(),daeOffsetOf(domCg_setuser_type,elemConnect_param_array),"connect_param"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCg_setuser_type,_contents)); + + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("Cg_identifier")); + ma->setOffset( daeOffsetOf( domCg_setuser_type , attrName )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_setuser_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_setuser_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_surface_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_surface_type.cpp new file mode 100644 index 000000000..e93f5164f --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCg_surface_type.cpp @@ -0,0 +1,150 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCg_surface_type::create(daeInt bytes) +{ + domCg_surface_typeRef ref = new(bytes) domCg_surface_type; + return ref; +} + + +daeMetaElement * +domCg_surface_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cg_surface_type" ); + _Meta->setStaticPointerAddress(&domCg_surface_type::_Meta); + _Meta->registerConstructor(domCg_surface_type::create); + + // Add elements: init_from, format, size, viewport_ratio, mip_levels, mipmap_generate, generator + _Meta->appendArrayElement(domInit_from::registerElement(),daeOffsetOf(domCg_surface_type,elemInit_from_array)); + _Meta->appendElement(domFormat::registerElement(),daeOffsetOf(domCg_surface_type,elemFormat)); + _Meta->appendElement(domSize::registerElement(),daeOffsetOf(domCg_surface_type,elemSize)); + _Meta->appendElement(domViewport_ratio::registerElement(),daeOffsetOf(domCg_surface_type,elemViewport_ratio)); + _Meta->appendElement(domMip_levels::registerElement(),daeOffsetOf(domCg_surface_type,elemMip_levels)); + _Meta->appendElement(domMipmap_generate::registerElement(),daeOffsetOf(domCg_surface_type,elemMipmap_generate)); + _Meta->appendElement(domGenerator::registerElement(),daeOffsetOf(domCg_surface_type,elemGenerator)); + + // Add attribute: type + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "type" ); + ma->setType( daeAtomicType::get("Fx_surface_type_enum")); + ma->setOffset( daeOffsetOf( domCg_surface_type , attrType )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_surface_type)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_surface_type::domGenerator::create(daeInt bytes) +{ + domCg_surface_type::domGeneratorRef ref = new(bytes) domCg_surface_type::domGenerator; + return ref; +} + + +daeMetaElement * +domCg_surface_type::domGenerator::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "generator" ); + _Meta->setStaticPointerAddress(&domCg_surface_type::domGenerator::_Meta); + _Meta->registerConstructor(domCg_surface_type::domGenerator::create); + + // Add elements: annotate, code, include, name, setparam + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domCg_surface_type::domGenerator,elemAnnotate_array),"annotate"); + _Meta->appendArrayElement(domFx_code_profile::registerElement(),daeOffsetOf(domCg_surface_type::domGenerator,elemCode_array),"code"); + _Meta->appendArrayElement(domFx_include_common::registerElement(),daeOffsetOf(domCg_surface_type::domGenerator,elemInclude_array),"include"); + _Meta->appendElement(domCg_surface_type::domGenerator::domName::registerElement(),daeOffsetOf(domCg_surface_type::domGenerator,elemName)); + _Meta->appendArrayElement(domCg_setparam_simple::registerElement(),daeOffsetOf(domCg_surface_type::domGenerator,elemSetparam_array),"setparam"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCg_surface_type::domGenerator,_contents)); + + + + _Meta->setElementSize(sizeof(domCg_surface_type::domGenerator)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCg_surface_type::domGenerator::domName::create(daeInt bytes) +{ + domCg_surface_type::domGenerator::domNameRef ref = new(bytes) domCg_surface_type::domGenerator::domName; + return ref; +} + + +daeMetaElement * +domCg_surface_type::domGenerator::domName::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "name" ); + _Meta->setStaticPointerAddress(&domCg_surface_type::domGenerator::domName::_Meta); + _Meta->registerConstructor(domCg_surface_type::domGenerator::domName::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCg_surface_type::domGenerator::domName , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCg_surface_type::domGenerator::domName , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCg_surface_type::domGenerator::domName)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCg_surface_type::_Meta = NULL; +daeMetaElement * domCg_surface_type::domGenerator::_Meta = NULL; +daeMetaElement * domCg_surface_type::domGenerator::domName::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domChannel.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domChannel.cpp new file mode 100644 index 000000000..b14e6cd34 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domChannel.cpp @@ -0,0 +1,71 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domChannel::create(daeInt bytes) +{ + domChannelRef ref = new(bytes) domChannel; + ref->attrSource.setContainer( (domChannel*)ref ); + return ref; +} + + +daeMetaElement * +domChannel::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "channel" ); + _Meta->setStaticPointerAddress(&domChannel::_Meta); + _Meta->registerConstructor(domChannel::create); + + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("URIFragmentType")); + ma->setOffset( daeOffsetOf( domChannel , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: target + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "target" ); + ma->setType( daeAtomicType::get("xsToken")); + ma->setOffset( daeOffsetOf( domChannel , attrTarget )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domChannel)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domChannel::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_color_or_texture_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_color_or_texture_type.cpp new file mode 100644 index 000000000..7bfe4bee0 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_color_or_texture_type.cpp @@ -0,0 +1,192 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCommon_color_or_texture_type::create(daeInt bytes) +{ + domCommon_color_or_texture_typeRef ref = new(bytes) domCommon_color_or_texture_type; + return ref; +} + + +daeMetaElement * +domCommon_color_or_texture_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "common_color_or_texture_type" ); + _Meta->setStaticPointerAddress(&domCommon_color_or_texture_type::_Meta); + _Meta->registerConstructor(domCommon_color_or_texture_type::create); + + // Add elements: color, param, texture + _Meta->appendElement(domCommon_color_or_texture_type::domColor::registerElement(),daeOffsetOf(domCommon_color_or_texture_type,elemColor)); + _Meta->appendElement(domCommon_color_or_texture_type::domParam::registerElement(),daeOffsetOf(domCommon_color_or_texture_type,elemParam)); + _Meta->appendElement(domCommon_color_or_texture_type::domTexture::registerElement(),daeOffsetOf(domCommon_color_or_texture_type,elemTexture)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCommon_color_or_texture_type,_contents)); + + + + _Meta->setElementSize(sizeof(domCommon_color_or_texture_type)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_color_or_texture_type::domColor::create(daeInt bytes) +{ + domCommon_color_or_texture_type::domColorRef ref = new(bytes) domCommon_color_or_texture_type::domColor; + return ref; +} + + +daeMetaElement * +domCommon_color_or_texture_type::domColor::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "color" ); + _Meta->setStaticPointerAddress(&domCommon_color_or_texture_type::domColor::_Meta); + _Meta->registerConstructor(domCommon_color_or_texture_type::domColor::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_color_common")); + ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domColor , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domColor , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_color_or_texture_type::domColor)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_color_or_texture_type::domParam::create(daeInt bytes) +{ + domCommon_color_or_texture_type::domParamRef ref = new(bytes) domCommon_color_or_texture_type::domParam; + return ref; +} + + +daeMetaElement * +domCommon_color_or_texture_type::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domCommon_color_or_texture_type::domParam::_Meta); + _Meta->registerConstructor(domCommon_color_or_texture_type::domParam::create); + + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domParam , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_color_or_texture_type::domParam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_color_or_texture_type::domTexture::create(daeInt bytes) +{ + domCommon_color_or_texture_type::domTextureRef ref = new(bytes) domCommon_color_or_texture_type::domTexture; + return ref; +} + + +daeMetaElement * +domCommon_color_or_texture_type::domTexture::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture" ); + _Meta->setStaticPointerAddress(&domCommon_color_or_texture_type::domTexture::_Meta); + _Meta->registerConstructor(domCommon_color_or_texture_type::domTexture::create); + + // Add elements: extra + _Meta->appendElement(domExtra::registerElement(),daeOffsetOf(domCommon_color_or_texture_type::domTexture,elemExtra)); + + // Add attribute: texture + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "texture" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domTexture , attrTexture )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: texcoord + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "texcoord" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domTexture , attrTexcoord )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_color_or_texture_type::domTexture)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCommon_color_or_texture_type::_Meta = NULL; +daeMetaElement * domCommon_color_or_texture_type::domColor::_Meta = NULL; +daeMetaElement * domCommon_color_or_texture_type::domParam::_Meta = NULL; +daeMetaElement * domCommon_color_or_texture_type::domTexture::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_float_or_param_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_float_or_param_type.cpp new file mode 100644 index 000000000..50e888cc1 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_float_or_param_type.cpp @@ -0,0 +1,138 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCommon_float_or_param_type::create(daeInt bytes) +{ + domCommon_float_or_param_typeRef ref = new(bytes) domCommon_float_or_param_type; + return ref; +} + + +daeMetaElement * +domCommon_float_or_param_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "common_float_or_param_type" ); + _Meta->setStaticPointerAddress(&domCommon_float_or_param_type::_Meta); + _Meta->registerConstructor(domCommon_float_or_param_type::create); + + // Add elements: float, param + _Meta->appendElement(domCommon_float_or_param_type::domFloat::registerElement(),daeOffsetOf(domCommon_float_or_param_type,elemFloat)); + _Meta->appendElement(domCommon_float_or_param_type::domParam::registerElement(),daeOffsetOf(domCommon_float_or_param_type,elemParam)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCommon_float_or_param_type,_contents)); + + + + _Meta->setElementSize(sizeof(domCommon_float_or_param_type)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_float_or_param_type::domFloat::create(daeInt bytes) +{ + domCommon_float_or_param_type::domFloatRef ref = new(bytes) domCommon_float_or_param_type::domFloat; + return ref; +} + + +daeMetaElement * +domCommon_float_or_param_type::domFloat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float" ); + _Meta->setStaticPointerAddress(&domCommon_float_or_param_type::domFloat::_Meta); + _Meta->registerConstructor(domCommon_float_or_param_type::domFloat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domCommon_float_or_param_type::domFloat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCommon_float_or_param_type::domFloat , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_float_or_param_type::domFloat)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_float_or_param_type::domParam::create(daeInt bytes) +{ + domCommon_float_or_param_type::domParamRef ref = new(bytes) domCommon_float_or_param_type::domParam; + return ref; +} + + +daeMetaElement * +domCommon_float_or_param_type::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domCommon_float_or_param_type::domParam::_Meta); + _Meta->registerConstructor(domCommon_float_or_param_type::domParam::create); + + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCommon_float_or_param_type::domParam , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_float_or_param_type::domParam)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCommon_float_or_param_type::_Meta = NULL; +daeMetaElement * domCommon_float_or_param_type::domFloat::_Meta = NULL; +daeMetaElement * domCommon_float_or_param_type::domParam::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_newparam_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_newparam_type.cpp new file mode 100644 index 000000000..c21165044 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_newparam_type.cpp @@ -0,0 +1,249 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCommon_newparam_type::create(daeInt bytes) +{ + domCommon_newparam_typeRef ref = new(bytes) domCommon_newparam_type; + return ref; +} + + +daeMetaElement * +domCommon_newparam_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "common_newparam_type" ); + _Meta->setStaticPointerAddress(&domCommon_newparam_type::_Meta); + _Meta->registerConstructor(domCommon_newparam_type::create); + + // Add elements: semantic, float, float2, float3, float4, surface, sampler2D + _Meta->appendElement(domCommon_newparam_type::domSemantic::registerElement(),daeOffsetOf(domCommon_newparam_type,elemSemantic)); + _Meta->appendElement(domCommon_newparam_type::domFloat::registerElement(),daeOffsetOf(domCommon_newparam_type,elemFloat)); + _Meta->appendElement(domCommon_newparam_type::domFloat2::registerElement(),daeOffsetOf(domCommon_newparam_type,elemFloat2)); + _Meta->appendElement(domCommon_newparam_type::domFloat3::registerElement(),daeOffsetOf(domCommon_newparam_type,elemFloat3)); + _Meta->appendElement(domCommon_newparam_type::domFloat4::registerElement(),daeOffsetOf(domCommon_newparam_type,elemFloat4)); + _Meta->appendElement(domFx_surface_common::registerElement(),daeOffsetOf(domCommon_newparam_type,elemSurface),"surface"); + _Meta->appendElement(domFx_sampler2D_common::registerElement(),daeOffsetOf(domCommon_newparam_type,elemSampler2D),"sampler2D"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domCommon_newparam_type,_contents)); + + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCommon_newparam_type , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_newparam_type)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_newparam_type::domSemantic::create(daeInt bytes) +{ + domCommon_newparam_type::domSemanticRef ref = new(bytes) domCommon_newparam_type::domSemantic; + return ref; +} + + +daeMetaElement * +domCommon_newparam_type::domSemantic::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "semantic" ); + _Meta->setStaticPointerAddress(&domCommon_newparam_type::domSemantic::_Meta); + _Meta->registerConstructor(domCommon_newparam_type::domSemantic::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domCommon_newparam_type::domSemantic , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_newparam_type::domSemantic)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_newparam_type::domFloat::create(daeInt bytes) +{ + domCommon_newparam_type::domFloatRef ref = new(bytes) domCommon_newparam_type::domFloat; + return ref; +} + + +daeMetaElement * +domCommon_newparam_type::domFloat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float" ); + _Meta->setStaticPointerAddress(&domCommon_newparam_type::domFloat::_Meta); + _Meta->registerConstructor(domCommon_newparam_type::domFloat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domCommon_newparam_type::domFloat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_newparam_type::domFloat)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_newparam_type::domFloat2::create(daeInt bytes) +{ + domCommon_newparam_type::domFloat2Ref ref = new(bytes) domCommon_newparam_type::domFloat2; + return ref; +} + + +daeMetaElement * +domCommon_newparam_type::domFloat2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2" ); + _Meta->setStaticPointerAddress(&domCommon_newparam_type::domFloat2::_Meta); + _Meta->registerConstructor(domCommon_newparam_type::domFloat2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domCommon_newparam_type::domFloat2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_newparam_type::domFloat2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_newparam_type::domFloat3::create(daeInt bytes) +{ + domCommon_newparam_type::domFloat3Ref ref = new(bytes) domCommon_newparam_type::domFloat3; + return ref; +} + + +daeMetaElement * +domCommon_newparam_type::domFloat3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3" ); + _Meta->setStaticPointerAddress(&domCommon_newparam_type::domFloat3::_Meta); + _Meta->registerConstructor(domCommon_newparam_type::domFloat3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domCommon_newparam_type::domFloat3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_newparam_type::domFloat3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCommon_newparam_type::domFloat4::create(daeInt bytes) +{ + domCommon_newparam_type::domFloat4Ref ref = new(bytes) domCommon_newparam_type::domFloat4; + return ref; +} + + +daeMetaElement * +domCommon_newparam_type::domFloat4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4" ); + _Meta->setStaticPointerAddress(&domCommon_newparam_type::domFloat4::_Meta); + _Meta->registerConstructor(domCommon_newparam_type::domFloat4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domCommon_newparam_type::domFloat4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCommon_newparam_type::domFloat4)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCommon_newparam_type::_Meta = NULL; +daeMetaElement * domCommon_newparam_type::domSemantic::_Meta = NULL; +daeMetaElement * domCommon_newparam_type::domFloat::_Meta = NULL; +daeMetaElement * domCommon_newparam_type::domFloat2::_Meta = NULL; +daeMetaElement * domCommon_newparam_type::domFloat3::_Meta = NULL; +daeMetaElement * domCommon_newparam_type::domFloat4::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domConstants.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domConstants.cpp new file mode 100644 index 000000000..41c95e1c2 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domConstants.cpp @@ -0,0 +1,557 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include + +daeString COLLADA_VERSION = "1.4.0"; +daeString COLLADA_NAMESPACE = "http://www.collada.org/2005/11/COLLADASchema"; + +daeString COMMON_PROFILE_INPUT_BINORMAL = "BINORMAL"; +daeString COMMON_PROFILE_INPUT_COLOR = "COLOR"; +daeString COMMON_PROFILE_INPUT_IMAGE = "IMAGE"; +daeString COMMON_PROFILE_INPUT_IN_TANGENT = "IN_TANGENT"; +daeString COMMON_PROFILE_INPUT_INPUT = "INPUT"; +daeString COMMON_PROFILE_INPUT_INTERPOLATION = "INTERPOLATION"; +daeString COMMON_PROFILE_INPUT_INV_BIND_MATRIX = "INV_BIND_MATRIX"; +daeString COMMON_PROFILE_INPUT_JOINT = "JOINT"; +daeString COMMON_PROFILE_INPUT_NORMAL = "NORMAL"; +daeString COMMON_PROFILE_INPUT_OUTPUT = "OUTPUT"; +daeString COMMON_PROFILE_INPUT_OUT_TANGENT = "OUT_TANGENT"; +daeString COMMON_PROFILE_INPUT_POSITION = "POSITION"; +daeString COMMON_PROFILE_INPUT_TANGENT = "TANGENT"; +daeString COMMON_PROFILE_INPUT_TEXCOORD = "TEXCOORD"; +daeString COMMON_PROFILE_INPUT_TEXTURE = "TEXTURE"; +daeString COMMON_PROFILE_INPUT_UV = "UV"; +daeString COMMON_PROFILE_INPUT_VERTEX = "VERTEX"; +daeString COMMON_PROFILE_INPUT_WEIGHT = "WEIGHT"; + +daeString COMMON_PROFILE_PARAM_A = "A"; +daeString COMMON_PROFILE_PARAM_ANGLE = "ANGLE"; +daeString COMMON_PROFILE_PARAM_B = "B"; +daeString COMMON_PROFILE_PARAM_DOUBLE_SIDED = "DOUBLE_SIDED"; +daeString COMMON_PROFILE_PARAM_G = "G"; +daeString COMMON_PROFILE_PARAM_P = "P"; +daeString COMMON_PROFILE_PARAM_Q = "Q"; +daeString COMMON_PROFILE_PARAM_R = "R"; +daeString COMMON_PROFILE_PARAM_S = "S"; +daeString COMMON_PROFILE_PARAM_T = "T"; +daeString COMMON_PROFILE_PARAM_TIME = "TIME"; +daeString COMMON_PROFILE_PARAM_U = "U"; +daeString COMMON_PROFILE_PARAM_V = "V"; +daeString COMMON_PROFILE_PARAM_W = "W"; +daeString COMMON_PROFILE_PARAM_X = "X"; +daeString COMMON_PROFILE_PARAM_Y = "Y"; +daeString COMMON_PROFILE_PARAM_Z = "Z"; + +daeString COLLADA_ELEMENT_INPUTGLOBAL = "InputGlobal"; +daeString COLLADA_ELEMENT_INPUTLOCAL = "InputLocal"; +daeString COLLADA_ELEMENT_INPUTLOCALOFFSET = "InputLocalOffset"; +daeString COLLADA_ELEMENT_INSTANCEWITHEXTRA = "InstanceWithExtra"; +daeString COLLADA_ELEMENT_TARGETABLEFLOAT = "TargetableFloat"; +daeString COLLADA_ELEMENT_TARGETABLEFLOAT3 = "TargetableFloat3"; +daeString COLLADA_ELEMENT_FX_SURFACE_COMMON = "fx_surface_common"; +daeString COLLADA_ELEMENT_INIT_FROM = "init_from"; +daeString COLLADA_ELEMENT_FORMAT = "format"; +daeString COLLADA_ELEMENT_SIZE = "size"; +daeString COLLADA_ELEMENT_VIEWPORT_RATIO = "viewport_ratio"; +daeString COLLADA_ELEMENT_MIP_LEVELS = "mip_levels"; +daeString COLLADA_ELEMENT_MIPMAP_GENERATE = "mipmap_generate"; +daeString COLLADA_ELEMENT_FX_SAMPLER1D_COMMON = "fx_sampler1D_common"; +daeString COLLADA_ELEMENT_SOURCE = "source"; +daeString COLLADA_ELEMENT_WRAP_S = "wrap_s"; +daeString COLLADA_ELEMENT_MINFILTER = "minfilter"; +daeString COLLADA_ELEMENT_MAGFILTER = "magfilter"; +daeString COLLADA_ELEMENT_MIPFILTER = "mipfilter"; +daeString COLLADA_ELEMENT_BORDER_COLOR = "border_color"; +daeString COLLADA_ELEMENT_MIPMAP_MAXLEVEL = "mipmap_maxlevel"; +daeString COLLADA_ELEMENT_MIPMAP_BIAS = "mipmap_bias"; +daeString COLLADA_ELEMENT_FX_SAMPLER2D_COMMON = "fx_sampler2D_common"; +daeString COLLADA_ELEMENT_WRAP_T = "wrap_t"; +daeString COLLADA_ELEMENT_FX_SAMPLER3D_COMMON = "fx_sampler3D_common"; +daeString COLLADA_ELEMENT_WRAP_P = "wrap_p"; +daeString COLLADA_ELEMENT_FX_SAMPLERCUBE_COMMON = "fx_samplerCUBE_common"; +daeString COLLADA_ELEMENT_FX_SAMPLERRECT_COMMON = "fx_samplerRECT_common"; +daeString COLLADA_ELEMENT_FX_SAMPLERDEPTH_COMMON = "fx_samplerDEPTH_common"; +daeString COLLADA_ELEMENT_FX_COLORTARGET_COMMON = "fx_colortarget_common"; +daeString COLLADA_ELEMENT_FX_DEPTHTARGET_COMMON = "fx_depthtarget_common"; +daeString COLLADA_ELEMENT_FX_STENCILTARGET_COMMON = "fx_stenciltarget_common"; +daeString COLLADA_ELEMENT_FX_CLEARCOLOR_COMMON = "fx_clearcolor_common"; +daeString COLLADA_ELEMENT_FX_CLEARDEPTH_COMMON = "fx_cleardepth_common"; +daeString COLLADA_ELEMENT_FX_CLEARSTENCIL_COMMON = "fx_clearstencil_common"; +daeString COLLADA_ELEMENT_FX_ANNOTATE_COMMON = "fx_annotate_common"; +daeString COLLADA_ELEMENT_FX_INCLUDE_COMMON = "fx_include_common"; +daeString COLLADA_ELEMENT_FX_NEWPARAM_COMMON = "fx_newparam_common"; +daeString COLLADA_ELEMENT_SEMANTIC = "semantic"; +daeString COLLADA_ELEMENT_MODIFIER = "modifier"; +daeString COLLADA_ELEMENT_FX_SETPARAM_COMMON = "fx_setparam_common"; +daeString COLLADA_ELEMENT_FX_CODE_PROFILE = "fx_code_profile"; +daeString COLLADA_ELEMENT_GL_SAMPLER1D = "gl_sampler1D"; +daeString COLLADA_ELEMENT_GL_SAMPLER2D = "gl_sampler2D"; +daeString COLLADA_ELEMENT_GL_SAMPLER3D = "gl_sampler3D"; +daeString COLLADA_ELEMENT_GL_SAMPLERCUBE = "gl_samplerCUBE"; +daeString COLLADA_ELEMENT_GL_SAMPLERRECT = "gl_samplerRECT"; +daeString COLLADA_ELEMENT_GL_SAMPLERDEPTH = "gl_samplerDEPTH"; +daeString COLLADA_ELEMENT_GLSL_NEWARRAY_TYPE = "glsl_newarray_type"; +daeString COLLADA_ELEMENT_GLSL_SETARRAY_TYPE = "glsl_setarray_type"; +daeString COLLADA_ELEMENT_GLSL_SURFACE_TYPE = "glsl_surface_type"; +daeString COLLADA_ELEMENT_GENERATOR = "generator"; +daeString COLLADA_ELEMENT_NAME = "name"; +daeString COLLADA_ELEMENT_GLSL_NEWPARAM = "glsl_newparam"; +daeString COLLADA_ELEMENT_GLSL_SETPARAM_SIMPLE = "glsl_setparam_simple"; +daeString COLLADA_ELEMENT_GLSL_SETPARAM = "glsl_setparam"; +daeString COLLADA_ELEMENT_COMMON_FLOAT_OR_PARAM_TYPE = "common_float_or_param_type"; +daeString COLLADA_ELEMENT_FLOAT = "float"; +daeString COLLADA_ELEMENT_PARAM = "param"; +daeString COLLADA_ELEMENT_COMMON_COLOR_OR_TEXTURE_TYPE = "common_color_or_texture_type"; +daeString COLLADA_ELEMENT_COLOR = "color"; +daeString COLLADA_ELEMENT_TEXTURE = "texture"; +daeString COLLADA_ELEMENT_COMMON_NEWPARAM_TYPE = "common_newparam_type"; +daeString COLLADA_ELEMENT_FLOAT2 = "float2"; +daeString COLLADA_ELEMENT_FLOAT3 = "float3"; +daeString COLLADA_ELEMENT_FLOAT4 = "float4"; +daeString COLLADA_ELEMENT_CG_SAMPLER1D = "cg_sampler1D"; +daeString COLLADA_ELEMENT_CG_SAMPLER2D = "cg_sampler2D"; +daeString COLLADA_ELEMENT_CG_SAMPLER3D = "cg_sampler3D"; +daeString COLLADA_ELEMENT_CG_SAMPLERCUBE = "cg_samplerCUBE"; +daeString COLLADA_ELEMENT_CG_SAMPLERRECT = "cg_samplerRECT"; +daeString COLLADA_ELEMENT_CG_SAMPLERDEPTH = "cg_samplerDEPTH"; +daeString COLLADA_ELEMENT_CG_CONNECT_PARAM = "cg_connect_param"; +daeString COLLADA_ELEMENT_CG_NEWARRAY_TYPE = "cg_newarray_type"; +daeString COLLADA_ELEMENT_CG_SETARRAY_TYPE = "cg_setarray_type"; +daeString COLLADA_ELEMENT_CG_SETUSER_TYPE = "cg_setuser_type"; +daeString COLLADA_ELEMENT_CG_SURFACE_TYPE = "cg_surface_type"; +daeString COLLADA_ELEMENT_CG_NEWPARAM = "cg_newparam"; +daeString COLLADA_ELEMENT_CG_SETPARAM_SIMPLE = "cg_setparam_simple"; +daeString COLLADA_ELEMENT_CG_SETPARAM = "cg_setparam"; +daeString COLLADA_ELEMENT_GLES_TEXTURE_CONSTANT_TYPE = "gles_texture_constant_type"; +daeString COLLADA_ELEMENT_GLES_TEXENV_COMMAND_TYPE = "gles_texenv_command_type"; +daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_ARGUMENTRGB_TYPE = "gles_texcombiner_argumentRGB_type"; +daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_ARGUMENTALPHA_TYPE = "gles_texcombiner_argumentAlpha_type"; +daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_COMMANDRGB_TYPE = "gles_texcombiner_commandRGB_type"; +daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_COMMANDALPHA_TYPE = "gles_texcombiner_commandAlpha_type"; +daeString COLLADA_ELEMENT_GLES_TEXCOMBINER_COMMAND_TYPE = "gles_texcombiner_command_type"; +daeString COLLADA_ELEMENT_GLES_TEXTURE_PIPELINE = "gles_texture_pipeline"; +daeString COLLADA_ELEMENT_GLES_TEXTURE_UNIT = "gles_texture_unit"; +daeString COLLADA_ELEMENT_SURFACE = "surface"; +daeString COLLADA_ELEMENT_SAMPLER_STATE = "sampler_state"; +daeString COLLADA_ELEMENT_TEXCOORD = "texcoord"; +daeString COLLADA_ELEMENT_GLES_SAMPLER_STATE = "gles_sampler_state"; +daeString COLLADA_ELEMENT_GLES_NEWPARAM = "gles_newparam"; +daeString COLLADA_ELEMENT_FX_ANNOTATE_TYPE_COMMON = "fx_annotate_type_common"; +daeString COLLADA_ELEMENT_BOOL = "bool"; +daeString COLLADA_ELEMENT_BOOL2 = "bool2"; +daeString COLLADA_ELEMENT_BOOL3 = "bool3"; +daeString COLLADA_ELEMENT_BOOL4 = "bool4"; +daeString COLLADA_ELEMENT_INT = "int"; +daeString COLLADA_ELEMENT_INT2 = "int2"; +daeString COLLADA_ELEMENT_INT3 = "int3"; +daeString COLLADA_ELEMENT_INT4 = "int4"; +daeString COLLADA_ELEMENT_FLOAT2X2 = "float2x2"; +daeString COLLADA_ELEMENT_FLOAT3X3 = "float3x3"; +daeString COLLADA_ELEMENT_FLOAT4X4 = "float4x4"; +daeString COLLADA_ELEMENT_STRING = "string"; +daeString COLLADA_ELEMENT_FX_BASIC_TYPE_COMMON = "fx_basic_type_common"; +daeString COLLADA_ELEMENT_FLOAT1X1 = "float1x1"; +daeString COLLADA_ELEMENT_FLOAT1X2 = "float1x2"; +daeString COLLADA_ELEMENT_FLOAT1X3 = "float1x3"; +daeString COLLADA_ELEMENT_FLOAT1X4 = "float1x4"; +daeString COLLADA_ELEMENT_FLOAT2X1 = "float2x1"; +daeString COLLADA_ELEMENT_FLOAT2X3 = "float2x3"; +daeString COLLADA_ELEMENT_FLOAT2X4 = "float2x4"; +daeString COLLADA_ELEMENT_FLOAT3X1 = "float3x1"; +daeString COLLADA_ELEMENT_FLOAT3X2 = "float3x2"; +daeString COLLADA_ELEMENT_FLOAT3X4 = "float3x4"; +daeString COLLADA_ELEMENT_FLOAT4X1 = "float4x1"; +daeString COLLADA_ELEMENT_FLOAT4X2 = "float4x2"; +daeString COLLADA_ELEMENT_FLOAT4X3 = "float4x3"; +daeString COLLADA_ELEMENT_ENUM = "enum"; +daeString COLLADA_ELEMENT_GL_PIPELINE_SETTINGS = "gl_pipeline_settings"; +daeString COLLADA_ELEMENT_ALPHA_FUNC = "alpha_func"; +daeString COLLADA_ELEMENT_FUNC = "func"; +daeString COLLADA_ELEMENT_VALUE = "value"; +daeString COLLADA_ELEMENT_BLEND_FUNC = "blend_func"; +daeString COLLADA_ELEMENT_SRC = "src"; +daeString COLLADA_ELEMENT_DEST = "dest"; +daeString COLLADA_ELEMENT_BLEND_FUNC_SEPARATE = "blend_func_separate"; +daeString COLLADA_ELEMENT_SRC_RGB = "src_rgb"; +daeString COLLADA_ELEMENT_DEST_RGB = "dest_rgb"; +daeString COLLADA_ELEMENT_SRC_ALPHA = "src_alpha"; +daeString COLLADA_ELEMENT_DEST_ALPHA = "dest_alpha"; +daeString COLLADA_ELEMENT_BLEND_EQUATION = "blend_equation"; +daeString COLLADA_ELEMENT_BLEND_EQUATION_SEPARATE = "blend_equation_separate"; +daeString COLLADA_ELEMENT_RGB = "rgb"; +daeString COLLADA_ELEMENT_ALPHA = "alpha"; +daeString COLLADA_ELEMENT_COLOR_MATERIAL = "color_material"; +daeString COLLADA_ELEMENT_FACE = "face"; +daeString COLLADA_ELEMENT_MODE = "mode"; +daeString COLLADA_ELEMENT_CULL_FACE = "cull_face"; +daeString COLLADA_ELEMENT_DEPTH_FUNC = "depth_func"; +daeString COLLADA_ELEMENT_FOG_MODE = "fog_mode"; +daeString COLLADA_ELEMENT_FOG_COORD_SRC = "fog_coord_src"; +daeString COLLADA_ELEMENT_FRONT_FACE = "front_face"; +daeString COLLADA_ELEMENT_LIGHT_MODEL_COLOR_CONTROL = "light_model_color_control"; +daeString COLLADA_ELEMENT_LOGIC_OP = "logic_op"; +daeString COLLADA_ELEMENT_POLYGON_MODE = "polygon_mode"; +daeString COLLADA_ELEMENT_SHADE_MODEL = "shade_model"; +daeString COLLADA_ELEMENT_STENCIL_FUNC = "stencil_func"; +daeString COLLADA_ELEMENT_REF = "ref"; +daeString COLLADA_ELEMENT_MASK = "mask"; +daeString COLLADA_ELEMENT_STENCIL_OP = "stencil_op"; +daeString COLLADA_ELEMENT_FAIL = "fail"; +daeString COLLADA_ELEMENT_ZFAIL = "zfail"; +daeString COLLADA_ELEMENT_ZPASS = "zpass"; +daeString COLLADA_ELEMENT_STENCIL_FUNC_SEPARATE = "stencil_func_separate"; +daeString COLLADA_ELEMENT_FRONT = "front"; +daeString COLLADA_ELEMENT_BACK = "back"; +daeString COLLADA_ELEMENT_STENCIL_OP_SEPARATE = "stencil_op_separate"; +daeString COLLADA_ELEMENT_STENCIL_MASK_SEPARATE = "stencil_mask_separate"; +daeString COLLADA_ELEMENT_LIGHT_ENABLE = "light_enable"; +daeString COLLADA_ELEMENT_LIGHT_AMBIENT = "light_ambient"; +daeString COLLADA_ELEMENT_LIGHT_DIFFUSE = "light_diffuse"; +daeString COLLADA_ELEMENT_LIGHT_SPECULAR = "light_specular"; +daeString COLLADA_ELEMENT_LIGHT_POSITION = "light_position"; +daeString COLLADA_ELEMENT_LIGHT_CONSTANT_ATTENUATION = "light_constant_attenuation"; +daeString COLLADA_ELEMENT_LIGHT_LINEAR_ATTENUATION = "light_linear_attenuation"; +daeString COLLADA_ELEMENT_LIGHT_QUADRATIC_ATTENUATION = "light_quadratic_attenuation"; +daeString COLLADA_ELEMENT_LIGHT_SPOT_CUTOFF = "light_spot_cutoff"; +daeString COLLADA_ELEMENT_LIGHT_SPOT_DIRECTION = "light_spot_direction"; +daeString COLLADA_ELEMENT_LIGHT_SPOT_EXPONENT = "light_spot_exponent"; +daeString COLLADA_ELEMENT_TEXTURE1D = "texture1D"; +daeString COLLADA_ELEMENT_TEXTURE2D = "texture2D"; +daeString COLLADA_ELEMENT_TEXTURE3D = "texture3D"; +daeString COLLADA_ELEMENT_TEXTURECUBE = "textureCUBE"; +daeString COLLADA_ELEMENT_TEXTURERECT = "textureRECT"; +daeString COLLADA_ELEMENT_TEXTUREDEPTH = "textureDEPTH"; +daeString COLLADA_ELEMENT_TEXTURE1D_ENABLE = "texture1D_enable"; +daeString COLLADA_ELEMENT_TEXTURE2D_ENABLE = "texture2D_enable"; +daeString COLLADA_ELEMENT_TEXTURE3D_ENABLE = "texture3D_enable"; +daeString COLLADA_ELEMENT_TEXTURECUBE_ENABLE = "textureCUBE_enable"; +daeString COLLADA_ELEMENT_TEXTURERECT_ENABLE = "textureRECT_enable"; +daeString COLLADA_ELEMENT_TEXTUREDEPTH_ENABLE = "textureDEPTH_enable"; +daeString COLLADA_ELEMENT_TEXTURE_ENV_COLOR = "texture_env_color"; +daeString COLLADA_ELEMENT_TEXTURE_ENV_MODE = "texture_env_mode"; +daeString COLLADA_ELEMENT_CLIP_PLANE = "clip_plane"; +daeString COLLADA_ELEMENT_CLIP_PLANE_ENABLE = "clip_plane_enable"; +daeString COLLADA_ELEMENT_BLEND_COLOR = "blend_color"; +daeString COLLADA_ELEMENT_CLEAR_COLOR = "clear_color"; +daeString COLLADA_ELEMENT_CLEAR_STENCIL = "clear_stencil"; +daeString COLLADA_ELEMENT_CLEAR_DEPTH = "clear_depth"; +daeString COLLADA_ELEMENT_COLOR_MASK = "color_mask"; +daeString COLLADA_ELEMENT_DEPTH_BOUNDS = "depth_bounds"; +daeString COLLADA_ELEMENT_DEPTH_MASK = "depth_mask"; +daeString COLLADA_ELEMENT_DEPTH_RANGE = "depth_range"; +daeString COLLADA_ELEMENT_FOG_DENSITY = "fog_density"; +daeString COLLADA_ELEMENT_FOG_START = "fog_start"; +daeString COLLADA_ELEMENT_FOG_END = "fog_end"; +daeString COLLADA_ELEMENT_FOG_COLOR = "fog_color"; +daeString COLLADA_ELEMENT_LIGHT_MODEL_AMBIENT = "light_model_ambient"; +daeString COLLADA_ELEMENT_LIGHTING_ENABLE = "lighting_enable"; +daeString COLLADA_ELEMENT_LINE_STIPPLE = "line_stipple"; +daeString COLLADA_ELEMENT_LINE_WIDTH = "line_width"; +daeString COLLADA_ELEMENT_MATERIAL_AMBIENT = "material_ambient"; +daeString COLLADA_ELEMENT_MATERIAL_DIFFUSE = "material_diffuse"; +daeString COLLADA_ELEMENT_MATERIAL_EMISSION = "material_emission"; +daeString COLLADA_ELEMENT_MATERIAL_SHININESS = "material_shininess"; +daeString COLLADA_ELEMENT_MATERIAL_SPECULAR = "material_specular"; +daeString COLLADA_ELEMENT_MODEL_VIEW_MATRIX = "model_view_matrix"; +daeString COLLADA_ELEMENT_POINT_DISTANCE_ATTENUATION = "point_distance_attenuation"; +daeString COLLADA_ELEMENT_POINT_FADE_THRESHOLD_SIZE = "point_fade_threshold_size"; +daeString COLLADA_ELEMENT_POINT_SIZE = "point_size"; +daeString COLLADA_ELEMENT_POINT_SIZE_MIN = "point_size_min"; +daeString COLLADA_ELEMENT_POINT_SIZE_MAX = "point_size_max"; +daeString COLLADA_ELEMENT_POLYGON_OFFSET = "polygon_offset"; +daeString COLLADA_ELEMENT_PROJECTION_MATRIX = "projection_matrix"; +daeString COLLADA_ELEMENT_SCISSOR = "scissor"; +daeString COLLADA_ELEMENT_STENCIL_MASK = "stencil_mask"; +daeString COLLADA_ELEMENT_ALPHA_TEST_ENABLE = "alpha_test_enable"; +daeString COLLADA_ELEMENT_AUTO_NORMAL_ENABLE = "auto_normal_enable"; +daeString COLLADA_ELEMENT_BLEND_ENABLE = "blend_enable"; +daeString COLLADA_ELEMENT_COLOR_LOGIC_OP_ENABLE = "color_logic_op_enable"; +daeString COLLADA_ELEMENT_CULL_FACE_ENABLE = "cull_face_enable"; +daeString COLLADA_ELEMENT_DEPTH_BOUNDS_ENABLE = "depth_bounds_enable"; +daeString COLLADA_ELEMENT_DEPTH_CLAMP_ENABLE = "depth_clamp_enable"; +daeString COLLADA_ELEMENT_DEPTH_TEST_ENABLE = "depth_test_enable"; +daeString COLLADA_ELEMENT_DITHER_ENABLE = "dither_enable"; +daeString COLLADA_ELEMENT_FOG_ENABLE = "fog_enable"; +daeString COLLADA_ELEMENT_LIGHT_MODEL_LOCAL_VIEWER_ENABLE = "light_model_local_viewer_enable"; +daeString COLLADA_ELEMENT_LIGHT_MODEL_TWO_SIDE_ENABLE = "light_model_two_side_enable"; +daeString COLLADA_ELEMENT_LINE_SMOOTH_ENABLE = "line_smooth_enable"; +daeString COLLADA_ELEMENT_LINE_STIPPLE_ENABLE = "line_stipple_enable"; +daeString COLLADA_ELEMENT_LOGIC_OP_ENABLE = "logic_op_enable"; +daeString COLLADA_ELEMENT_MULTISAMPLE_ENABLE = "multisample_enable"; +daeString COLLADA_ELEMENT_NORMALIZE_ENABLE = "normalize_enable"; +daeString COLLADA_ELEMENT_POINT_SMOOTH_ENABLE = "point_smooth_enable"; +daeString COLLADA_ELEMENT_POLYGON_OFFSET_FILL_ENABLE = "polygon_offset_fill_enable"; +daeString COLLADA_ELEMENT_POLYGON_OFFSET_LINE_ENABLE = "polygon_offset_line_enable"; +daeString COLLADA_ELEMENT_POLYGON_OFFSET_POINT_ENABLE = "polygon_offset_point_enable"; +daeString COLLADA_ELEMENT_POLYGON_SMOOTH_ENABLE = "polygon_smooth_enable"; +daeString COLLADA_ELEMENT_POLYGON_STIPPLE_ENABLE = "polygon_stipple_enable"; +daeString COLLADA_ELEMENT_RESCALE_NORMAL_ENABLE = "rescale_normal_enable"; +daeString COLLADA_ELEMENT_SAMPLE_ALPHA_TO_COVERAGE_ENABLE = "sample_alpha_to_coverage_enable"; +daeString COLLADA_ELEMENT_SAMPLE_ALPHA_TO_ONE_ENABLE = "sample_alpha_to_one_enable"; +daeString COLLADA_ELEMENT_SAMPLE_COVERAGE_ENABLE = "sample_coverage_enable"; +daeString COLLADA_ELEMENT_SCISSOR_TEST_ENABLE = "scissor_test_enable"; +daeString COLLADA_ELEMENT_STENCIL_TEST_ENABLE = "stencil_test_enable"; +daeString COLLADA_ELEMENT_GLSL_PARAM_TYPE = "glsl_param_type"; +daeString COLLADA_ELEMENT_CG_PARAM_TYPE = "cg_param_type"; +daeString COLLADA_ELEMENT_BOOL1 = "bool1"; +daeString COLLADA_ELEMENT_BOOL1X1 = "bool1x1"; +daeString COLLADA_ELEMENT_BOOL1X2 = "bool1x2"; +daeString COLLADA_ELEMENT_BOOL1X3 = "bool1x3"; +daeString COLLADA_ELEMENT_BOOL1X4 = "bool1x4"; +daeString COLLADA_ELEMENT_BOOL2X1 = "bool2x1"; +daeString COLLADA_ELEMENT_BOOL2X2 = "bool2x2"; +daeString COLLADA_ELEMENT_BOOL2X3 = "bool2x3"; +daeString COLLADA_ELEMENT_BOOL2X4 = "bool2x4"; +daeString COLLADA_ELEMENT_BOOL3X1 = "bool3x1"; +daeString COLLADA_ELEMENT_BOOL3X2 = "bool3x2"; +daeString COLLADA_ELEMENT_BOOL3X3 = "bool3x3"; +daeString COLLADA_ELEMENT_BOOL3X4 = "bool3x4"; +daeString COLLADA_ELEMENT_BOOL4X1 = "bool4x1"; +daeString COLLADA_ELEMENT_BOOL4X2 = "bool4x2"; +daeString COLLADA_ELEMENT_BOOL4X3 = "bool4x3"; +daeString COLLADA_ELEMENT_BOOL4X4 = "bool4x4"; +daeString COLLADA_ELEMENT_FLOAT1 = "float1"; +daeString COLLADA_ELEMENT_INT1 = "int1"; +daeString COLLADA_ELEMENT_INT1X1 = "int1x1"; +daeString COLLADA_ELEMENT_INT1X2 = "int1x2"; +daeString COLLADA_ELEMENT_INT1X3 = "int1x3"; +daeString COLLADA_ELEMENT_INT1X4 = "int1x4"; +daeString COLLADA_ELEMENT_INT2X1 = "int2x1"; +daeString COLLADA_ELEMENT_INT2X2 = "int2x2"; +daeString COLLADA_ELEMENT_INT2X3 = "int2x3"; +daeString COLLADA_ELEMENT_INT2X4 = "int2x4"; +daeString COLLADA_ELEMENT_INT3X1 = "int3x1"; +daeString COLLADA_ELEMENT_INT3X2 = "int3x2"; +daeString COLLADA_ELEMENT_INT3X3 = "int3x3"; +daeString COLLADA_ELEMENT_INT3X4 = "int3x4"; +daeString COLLADA_ELEMENT_INT4X1 = "int4x1"; +daeString COLLADA_ELEMENT_INT4X2 = "int4x2"; +daeString COLLADA_ELEMENT_INT4X3 = "int4x3"; +daeString COLLADA_ELEMENT_INT4X4 = "int4x4"; +daeString COLLADA_ELEMENT_HALF = "half"; +daeString COLLADA_ELEMENT_HALF1 = "half1"; +daeString COLLADA_ELEMENT_HALF2 = "half2"; +daeString COLLADA_ELEMENT_HALF3 = "half3"; +daeString COLLADA_ELEMENT_HALF4 = "half4"; +daeString COLLADA_ELEMENT_HALF1X1 = "half1x1"; +daeString COLLADA_ELEMENT_HALF1X2 = "half1x2"; +daeString COLLADA_ELEMENT_HALF1X3 = "half1x3"; +daeString COLLADA_ELEMENT_HALF1X4 = "half1x4"; +daeString COLLADA_ELEMENT_HALF2X1 = "half2x1"; +daeString COLLADA_ELEMENT_HALF2X2 = "half2x2"; +daeString COLLADA_ELEMENT_HALF2X3 = "half2x3"; +daeString COLLADA_ELEMENT_HALF2X4 = "half2x4"; +daeString COLLADA_ELEMENT_HALF3X1 = "half3x1"; +daeString COLLADA_ELEMENT_HALF3X2 = "half3x2"; +daeString COLLADA_ELEMENT_HALF3X3 = "half3x3"; +daeString COLLADA_ELEMENT_HALF3X4 = "half3x4"; +daeString COLLADA_ELEMENT_HALF4X1 = "half4x1"; +daeString COLLADA_ELEMENT_HALF4X2 = "half4x2"; +daeString COLLADA_ELEMENT_HALF4X3 = "half4x3"; +daeString COLLADA_ELEMENT_HALF4X4 = "half4x4"; +daeString COLLADA_ELEMENT_FIXED = "fixed"; +daeString COLLADA_ELEMENT_FIXED1 = "fixed1"; +daeString COLLADA_ELEMENT_FIXED2 = "fixed2"; +daeString COLLADA_ELEMENT_FIXED3 = "fixed3"; +daeString COLLADA_ELEMENT_FIXED4 = "fixed4"; +daeString COLLADA_ELEMENT_FIXED1X1 = "fixed1x1"; +daeString COLLADA_ELEMENT_FIXED1X2 = "fixed1x2"; +daeString COLLADA_ELEMENT_FIXED1X3 = "fixed1x3"; +daeString COLLADA_ELEMENT_FIXED1X4 = "fixed1x4"; +daeString COLLADA_ELEMENT_FIXED2X1 = "fixed2x1"; +daeString COLLADA_ELEMENT_FIXED2X2 = "fixed2x2"; +daeString COLLADA_ELEMENT_FIXED2X3 = "fixed2x3"; +daeString COLLADA_ELEMENT_FIXED2X4 = "fixed2x4"; +daeString COLLADA_ELEMENT_FIXED3X1 = "fixed3x1"; +daeString COLLADA_ELEMENT_FIXED3X2 = "fixed3x2"; +daeString COLLADA_ELEMENT_FIXED3X3 = "fixed3x3"; +daeString COLLADA_ELEMENT_FIXED3X4 = "fixed3x4"; +daeString COLLADA_ELEMENT_FIXED4X1 = "fixed4x1"; +daeString COLLADA_ELEMENT_FIXED4X2 = "fixed4x2"; +daeString COLLADA_ELEMENT_FIXED4X3 = "fixed4x3"; +daeString COLLADA_ELEMENT_FIXED4X4 = "fixed4x4"; +daeString COLLADA_ELEMENT_GLES_PIPELINE_SETTINGS = "gles_pipeline_settings"; +daeString COLLADA_ELEMENT_TEXTURE_PIPELINE = "texture_pipeline"; +daeString COLLADA_ELEMENT_LIGHT_LINEAR_ATTENUTATION = "light_linear_attenutation"; +daeString COLLADA_ELEMENT_COLOR_MATERIAL_ENABLE = "color_material_enable"; +daeString COLLADA_ELEMENT_TEXTURE_PIPELINE_ENABLE = "texture_pipeline_enable"; +daeString COLLADA_ELEMENT_GLES_BASIC_TYPE_COMMON = "gles_basic_type_common"; +daeString COLLADA_ELEMENT_COLLADA = "COLLADA"; +daeString COLLADA_ELEMENT_SCENE = "scene"; +daeString COLLADA_ELEMENT_IDREF_ARRAY = "IDREF_array"; +daeString COLLADA_ELEMENT_NAME_ARRAY = "Name_array"; +daeString COLLADA_ELEMENT_BOOL_ARRAY = "bool_array"; +daeString COLLADA_ELEMENT_FLOAT_ARRAY = "float_array"; +daeString COLLADA_ELEMENT_INT_ARRAY = "int_array"; +daeString COLLADA_ELEMENT_ACCESSOR = "accessor"; +daeString COLLADA_ELEMENT_TECHNIQUE_COMMON = "technique_common"; +daeString COLLADA_ELEMENT_GEOMETRY = "geometry"; +daeString COLLADA_ELEMENT_MESH = "mesh"; +daeString COLLADA_ELEMENT_SPLINE = "spline"; +daeString COLLADA_ELEMENT_CONTROL_VERTICES = "control_vertices"; +daeString COLLADA_ELEMENT_P = "p"; +daeString COLLADA_ELEMENT_LINES = "lines"; +daeString COLLADA_ELEMENT_LINESTRIPS = "linestrips"; +daeString COLLADA_ELEMENT_POLYGONS = "polygons"; +daeString COLLADA_ELEMENT_PH = "ph"; +daeString COLLADA_ELEMENT_H = "h"; +daeString COLLADA_ELEMENT_POLYLIST = "polylist"; +daeString COLLADA_ELEMENT_VCOUNT = "vcount"; +daeString COLLADA_ELEMENT_TRIANGLES = "triangles"; +daeString COLLADA_ELEMENT_TRIFANS = "trifans"; +daeString COLLADA_ELEMENT_TRISTRIPS = "tristrips"; +daeString COLLADA_ELEMENT_VERTICES = "vertices"; +daeString COLLADA_ELEMENT_LOOKAT = "lookat"; +daeString COLLADA_ELEMENT_MATRIX = "matrix"; +daeString COLLADA_ELEMENT_ROTATE = "rotate"; +daeString COLLADA_ELEMENT_SCALE = "scale"; +daeString COLLADA_ELEMENT_SKEW = "skew"; +daeString COLLADA_ELEMENT_TRANSLATE = "translate"; +daeString COLLADA_ELEMENT_IMAGE = "image"; +daeString COLLADA_ELEMENT_DATA = "data"; +daeString COLLADA_ELEMENT_LIGHT = "light"; +daeString COLLADA_ELEMENT_AMBIENT = "ambient"; +daeString COLLADA_ELEMENT_DIRECTIONAL = "directional"; +daeString COLLADA_ELEMENT_POINT = "point"; +daeString COLLADA_ELEMENT_SPOT = "spot"; +daeString COLLADA_ELEMENT_MATERIAL = "material"; +daeString COLLADA_ELEMENT_CAMERA = "camera"; +daeString COLLADA_ELEMENT_OPTICS = "optics"; +daeString COLLADA_ELEMENT_ORTHOGRAPHIC = "orthographic"; +daeString COLLADA_ELEMENT_PERSPECTIVE = "perspective"; +daeString COLLADA_ELEMENT_IMAGER = "imager"; +daeString COLLADA_ELEMENT_ANIMATION = "animation"; +daeString COLLADA_ELEMENT_ANIMATION_CLIP = "animation_clip"; +daeString COLLADA_ELEMENT_CHANNEL = "channel"; +daeString COLLADA_ELEMENT_SAMPLER = "sampler"; +daeString COLLADA_ELEMENT_CONTROLLER = "controller"; +daeString COLLADA_ELEMENT_SKIN = "skin"; +daeString COLLADA_ELEMENT_BIND_SHAPE_MATRIX = "bind_shape_matrix"; +daeString COLLADA_ELEMENT_JOINTS = "joints"; +daeString COLLADA_ELEMENT_VERTEX_WEIGHTS = "vertex_weights"; +daeString COLLADA_ELEMENT_V = "v"; +daeString COLLADA_ELEMENT_MORPH = "morph"; +daeString COLLADA_ELEMENT_TARGETS = "targets"; +daeString COLLADA_ELEMENT_ASSET = "asset"; +daeString COLLADA_ELEMENT_CONTRIBUTOR = "contributor"; +daeString COLLADA_ELEMENT_AUTHOR = "author"; +daeString COLLADA_ELEMENT_AUTHORING_TOOL = "authoring_tool"; +daeString COLLADA_ELEMENT_COMMENTS = "comments"; +daeString COLLADA_ELEMENT_COPYRIGHT = "copyright"; +daeString COLLADA_ELEMENT_SOURCE_DATA = "source_data"; +daeString COLLADA_ELEMENT_CREATED = "created"; +daeString COLLADA_ELEMENT_KEYWORDS = "keywords"; +daeString COLLADA_ELEMENT_MODIFIED = "modified"; +daeString COLLADA_ELEMENT_REVISION = "revision"; +daeString COLLADA_ELEMENT_SUBJECT = "subject"; +daeString COLLADA_ELEMENT_TITLE = "title"; +daeString COLLADA_ELEMENT_UNIT = "unit"; +daeString COLLADA_ELEMENT_UP_AXIS = "up_axis"; +daeString COLLADA_ELEMENT_EXTRA = "extra"; +daeString COLLADA_ELEMENT_TECHNIQUE = "technique"; +daeString COLLADA_ELEMENT_NODE = "node"; +daeString COLLADA_ELEMENT_VISUAL_SCENE = "visual_scene"; +daeString COLLADA_ELEMENT_EVALUATE_SCENE = "evaluate_scene"; +daeString COLLADA_ELEMENT_RENDER = "render"; +daeString COLLADA_ELEMENT_LAYER = "layer"; +daeString COLLADA_ELEMENT_BIND_MATERIAL = "bind_material"; +daeString COLLADA_ELEMENT_INSTANCE_CAMERA = "instance_camera"; +daeString COLLADA_ELEMENT_INSTANCE_CONTROLLER = "instance_controller"; +daeString COLLADA_ELEMENT_SKELETON = "skeleton"; +daeString COLLADA_ELEMENT_INSTANCE_EFFECT = "instance_effect"; +daeString COLLADA_ELEMENT_TECHNIQUE_HINT = "technique_hint"; +daeString COLLADA_ELEMENT_SETPARAM = "setparam"; +daeString COLLADA_ELEMENT_INSTANCE_FORCE_FIELD = "instance_force_field"; +daeString COLLADA_ELEMENT_INSTANCE_GEOMETRY = "instance_geometry"; +daeString COLLADA_ELEMENT_INSTANCE_LIGHT = "instance_light"; +daeString COLLADA_ELEMENT_INSTANCE_MATERIAL = "instance_material"; +daeString COLLADA_ELEMENT_BIND = "bind"; +daeString COLLADA_ELEMENT_INSTANCE_NODE = "instance_node"; +daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_MATERIAL = "instance_physics_material"; +daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_MODEL = "instance_physics_model"; +daeString COLLADA_ELEMENT_INSTANCE_RIGID_BODY = "instance_rigid_body"; +daeString COLLADA_ELEMENT_ANGULAR_VELOCITY = "angular_velocity"; +daeString COLLADA_ELEMENT_VELOCITY = "velocity"; +daeString COLLADA_ELEMENT_DYNAMIC = "dynamic"; +daeString COLLADA_ELEMENT_MASS_FRAME = "mass_frame"; +daeString COLLADA_ELEMENT_SHAPE = "shape"; +daeString COLLADA_ELEMENT_HOLLOW = "hollow"; +daeString COLLADA_ELEMENT_INSTANCE_RIGID_CONSTRAINT = "instance_rigid_constraint"; +daeString COLLADA_ELEMENT_LIBRARY_ANIMATIONS = "library_animations"; +daeString COLLADA_ELEMENT_LIBRARY_ANIMATION_CLIPS = "library_animation_clips"; +daeString COLLADA_ELEMENT_LIBRARY_CAMERAS = "library_cameras"; +daeString COLLADA_ELEMENT_LIBRARY_CONTROLLERS = "library_controllers"; +daeString COLLADA_ELEMENT_LIBRARY_GEOMETRIES = "library_geometries"; +daeString COLLADA_ELEMENT_LIBRARY_EFFECTS = "library_effects"; +daeString COLLADA_ELEMENT_LIBRARY_FORCE_FIELDS = "library_force_fields"; +daeString COLLADA_ELEMENT_LIBRARY_IMAGES = "library_images"; +daeString COLLADA_ELEMENT_LIBRARY_LIGHTS = "library_lights"; +daeString COLLADA_ELEMENT_LIBRARY_MATERIALS = "library_materials"; +daeString COLLADA_ELEMENT_LIBRARY_NODES = "library_nodes"; +daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_MATERIALS = "library_physics_materials"; +daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_MODELS = "library_physics_models"; +daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_SCENES = "library_physics_scenes"; +daeString COLLADA_ELEMENT_LIBRARY_VISUAL_SCENES = "library_visual_scenes"; +daeString COLLADA_ELEMENT_FX_PROFILE_ABSTRACT = "fx_profile_abstract"; +daeString COLLADA_ELEMENT_EFFECT = "effect"; +daeString COLLADA_ELEMENT_GL_HOOK_ABSTRACT = "gl_hook_abstract"; +daeString COLLADA_ELEMENT_PROFILE_GLSL = "profile_GLSL"; +daeString COLLADA_ELEMENT_PASS = "pass"; +daeString COLLADA_ELEMENT_DRAW = "draw"; +daeString COLLADA_ELEMENT_SHADER = "shader"; +daeString COLLADA_ELEMENT_COMPILER_TARGET = "compiler_target"; +daeString COLLADA_ELEMENT_COMPILER_OPTIONS = "compiler_options"; +daeString COLLADA_ELEMENT_PROFILE_COMMON = "profile_COMMON"; +daeString COLLADA_ELEMENT_CONSTANT = "constant"; +daeString COLLADA_ELEMENT_LAMBERT = "lambert"; +daeString COLLADA_ELEMENT_PHONG = "phong"; +daeString COLLADA_ELEMENT_BLINN = "blinn"; +daeString COLLADA_ELEMENT_PROFILE_CG = "profile_CG"; +daeString COLLADA_ELEMENT_PROFILE_GLES = "profile_GLES"; +daeString COLLADA_ELEMENT_COLOR_TARGET = "color_target"; +daeString COLLADA_ELEMENT_DEPTH_TARGET = "depth_target"; +daeString COLLADA_ELEMENT_STENCIL_TARGET = "stencil_target"; +daeString COLLADA_ELEMENT_COLOR_CLEAR = "color_clear"; +daeString COLLADA_ELEMENT_DEPTH_CLEAR = "depth_clear"; +daeString COLLADA_ELEMENT_STENCIL_CLEAR = "stencil_clear"; +daeString COLLADA_ELEMENT_BOX = "box"; +daeString COLLADA_ELEMENT_HALF_EXTENTS = "half_extents"; +daeString COLLADA_ELEMENT_PLANE = "plane"; +daeString COLLADA_ELEMENT_EQUATION = "equation"; +daeString COLLADA_ELEMENT_SPHERE = "sphere"; +daeString COLLADA_ELEMENT_RADIUS = "radius"; +daeString COLLADA_ELEMENT_ELLIPSOID = "ellipsoid"; +daeString COLLADA_ELEMENT_CYLINDER = "cylinder"; +daeString COLLADA_ELEMENT_HEIGHT = "height"; +daeString COLLADA_ELEMENT_TAPERED_CYLINDER = "tapered_cylinder"; +daeString COLLADA_ELEMENT_RADIUS1 = "radius1"; +daeString COLLADA_ELEMENT_RADIUS2 = "radius2"; +daeString COLLADA_ELEMENT_CAPSULE = "capsule"; +daeString COLLADA_ELEMENT_TAPERED_CAPSULE = "tapered_capsule"; +daeString COLLADA_ELEMENT_CONVEX_MESH = "convex_mesh"; +daeString COLLADA_ELEMENT_FORCE_FIELD = "force_field"; +daeString COLLADA_ELEMENT_PHYSICS_MATERIAL = "physics_material"; +daeString COLLADA_ELEMENT_PHYSICS_SCENE = "physics_scene"; +daeString COLLADA_ELEMENT_RIGID_BODY = "rigid_body"; +daeString COLLADA_ELEMENT_RIGID_CONSTRAINT = "rigid_constraint"; +daeString COLLADA_ELEMENT_REF_ATTACHMENT = "ref_attachment"; +daeString COLLADA_ELEMENT_ATTACHMENT = "attachment"; +daeString COLLADA_ELEMENT_ENABLED = "enabled"; +daeString COLLADA_ELEMENT_INTERPENETRATE = "interpenetrate"; +daeString COLLADA_ELEMENT_LIMITS = "limits"; +daeString COLLADA_ELEMENT_SWING_CONE_AND_TWIST = "swing_cone_and_twist"; +daeString COLLADA_ELEMENT_LINEAR = "linear"; +daeString COLLADA_ELEMENT_SPRING = "spring"; +daeString COLLADA_ELEMENT_ANGULAR = "angular"; +daeString COLLADA_ELEMENT_PHYSICS_MODEL = "physics_model"; diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domController.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domController.cpp new file mode 100644 index 000000000..ea7100193 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domController.cpp @@ -0,0 +1,76 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domController::create(daeInt bytes) +{ + domControllerRef ref = new(bytes) domController; + return ref; +} + + +daeMetaElement * +domController::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "controller" ); + _Meta->setStaticPointerAddress(&domController::_Meta); + _Meta->registerConstructor(domController::create); + + // Add elements: asset, skin, morph, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domController,elemAsset)); + _Meta->appendElement(domSkin::registerElement(),daeOffsetOf(domController,elemSkin)); + _Meta->appendElement(domMorph::registerElement(),daeOffsetOf(domController,elemMorph)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domController,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domController,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domController , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domController , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domController)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domController::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domConvex_mesh.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domConvex_mesh.cpp new file mode 100644 index 000000000..7e93d3439 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domConvex_mesh.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domConvex_mesh::create(daeInt bytes) +{ + domConvex_meshRef ref = new(bytes) domConvex_mesh; + ref->attrConvex_hull_of.setContainer( (domConvex_mesh*)ref ); + return ref; +} + + +daeMetaElement * +domConvex_mesh::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "convex_mesh" ); + _Meta->setStaticPointerAddress(&domConvex_mesh::_Meta); + _Meta->registerConstructor(domConvex_mesh::create); + + // Add elements: source, vertices, lines, linestrips, polygons, polylist, triangles, trifans, tristrips, extra + _Meta->appendArrayElement(domSource::registerElement(),daeOffsetOf(domConvex_mesh,elemSource_array)); + _Meta->appendElement(domVertices::registerElement(),daeOffsetOf(domConvex_mesh,elemVertices)); + _Meta->appendArrayElement(domLines::registerElement(),daeOffsetOf(domConvex_mesh,elemLines_array)); + _Meta->appendArrayElement(domLinestrips::registerElement(),daeOffsetOf(domConvex_mesh,elemLinestrips_array)); + _Meta->appendArrayElement(domPolygons::registerElement(),daeOffsetOf(domConvex_mesh,elemPolygons_array)); + _Meta->appendArrayElement(domPolylist::registerElement(),daeOffsetOf(domConvex_mesh,elemPolylist_array)); + _Meta->appendArrayElement(domTriangles::registerElement(),daeOffsetOf(domConvex_mesh,elemTriangles_array)); + _Meta->appendArrayElement(domTrifans::registerElement(),daeOffsetOf(domConvex_mesh,elemTrifans_array)); + _Meta->appendArrayElement(domTristrips::registerElement(),daeOffsetOf(domConvex_mesh,elemTristrips_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domConvex_mesh,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domConvex_mesh,_contents)); + + + // Add attribute: convex_hull_of + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "convex_hull_of" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domConvex_mesh , attrConvex_hull_of )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domConvex_mesh)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domConvex_mesh::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCylinder.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCylinder.cpp new file mode 100644 index 000000000..2a7872f36 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domCylinder.cpp @@ -0,0 +1,122 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domCylinder::create(daeInt bytes) +{ + domCylinderRef ref = new(bytes) domCylinder; + return ref; +} + + +daeMetaElement * +domCylinder::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cylinder" ); + _Meta->setStaticPointerAddress(&domCylinder::_Meta); + _Meta->registerConstructor(domCylinder::create); + + // Add elements: height, radius, extra + _Meta->appendElement(domCylinder::domHeight::registerElement(),daeOffsetOf(domCylinder,elemHeight)); + _Meta->appendElement(domCylinder::domRadius::registerElement(),daeOffsetOf(domCylinder,elemRadius)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domCylinder,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domCylinder)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCylinder::domHeight::create(daeInt bytes) +{ + domCylinder::domHeightRef ref = new(bytes) domCylinder::domHeight; + return ref; +} + + +daeMetaElement * +domCylinder::domHeight::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "height" ); + _Meta->setStaticPointerAddress(&domCylinder::domHeight::_Meta); + _Meta->registerConstructor(domCylinder::domHeight::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domCylinder::domHeight , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCylinder::domHeight)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domCylinder::domRadius::create(daeInt bytes) +{ + domCylinder::domRadiusRef ref = new(bytes) domCylinder::domRadius; + return ref; +} + + +daeMetaElement * +domCylinder::domRadius::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "radius" ); + _Meta->setStaticPointerAddress(&domCylinder::domRadius::_Meta); + _Meta->registerConstructor(domCylinder::domRadius::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domCylinder::domRadius , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domCylinder::domRadius)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domCylinder::_Meta = NULL; +daeMetaElement * domCylinder::domHeight::_Meta = NULL; +daeMetaElement * domCylinder::domRadius::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domEffect.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domEffect.cpp new file mode 100644 index 000000000..41c62a414 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domEffect.cpp @@ -0,0 +1,87 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domEffect::create(daeInt bytes) +{ + domEffectRef ref = new(bytes) domEffect; + return ref; +} + +#include +#include +#include +#include + +daeMetaElement * +domEffect::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "effect" ); + _Meta->setStaticPointerAddress(&domEffect::_Meta); + _Meta->registerConstructor(domEffect::create); + + // Add elements: asset, annotate, image, newparam, fx_profile_abstract, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domEffect,elemAsset)); + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domEffect,elemAnnotate_array),"annotate"); + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domEffect,elemImage_array)); + _Meta->appendArrayElement(domFx_newparam_common::registerElement(),daeOffsetOf(domEffect,elemNewparam_array),"newparam"); + _Meta->appendArrayElement(domFx_profile_abstract::registerElement(),daeOffsetOf(domEffect,elemFx_profile_abstract_array)); + _Meta->appendArrayElement(domProfile_GLSL::registerElement(),daeOffsetOf(domEffect,elemFx_profile_abstract_array)); + _Meta->appendArrayElement(domProfile_COMMON::registerElement(),daeOffsetOf(domEffect,elemFx_profile_abstract_array)); + _Meta->appendArrayElement(domProfile_CG::registerElement(),daeOffsetOf(domEffect,elemFx_profile_abstract_array)); + _Meta->appendArrayElement(domProfile_GLES::registerElement(),daeOffsetOf(domEffect,elemFx_profile_abstract_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domEffect,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domEffect,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domEffect , attrId )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domEffect , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domEffect)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domEffect::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domEllipsoid.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domEllipsoid.cpp new file mode 100644 index 000000000..3691095dc --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domEllipsoid.cpp @@ -0,0 +1,84 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domEllipsoid::create(daeInt bytes) +{ + domEllipsoidRef ref = new(bytes) domEllipsoid; + return ref; +} + + +daeMetaElement * +domEllipsoid::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "ellipsoid" ); + _Meta->setStaticPointerAddress(&domEllipsoid::_Meta); + _Meta->registerConstructor(domEllipsoid::create); + + // Add elements: size + _Meta->appendElement(domEllipsoid::domSize::registerElement(),daeOffsetOf(domEllipsoid,elemSize)); + + + _Meta->setElementSize(sizeof(domEllipsoid)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domEllipsoid::domSize::create(daeInt bytes) +{ + domEllipsoid::domSizeRef ref = new(bytes) domEllipsoid::domSize; + return ref; +} + + +daeMetaElement * +domEllipsoid::domSize::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "size" ); + _Meta->setStaticPointerAddress(&domEllipsoid::domSize::_Meta); + _Meta->registerConstructor(domEllipsoid::domSize::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domEllipsoid::domSize , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domEllipsoid::domSize)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domEllipsoid::_Meta = NULL; +daeMetaElement * domEllipsoid::domSize::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domExtra.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domExtra.cpp new file mode 100644 index 000000000..498401343 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domExtra.cpp @@ -0,0 +1,82 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domExtra::create(daeInt bytes) +{ + domExtraRef ref = new(bytes) domExtra; + return ref; +} + + +daeMetaElement * +domExtra::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "extra" ); + _Meta->setStaticPointerAddress(&domExtra::_Meta); + _Meta->registerConstructor(domExtra::create); + + // Add elements: asset, technique + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domExtra,elemAsset)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domExtra,elemTechnique_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domExtra , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domExtra , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: type + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "type" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domExtra , attrType )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domExtra)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domExtra::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFloat_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFloat_array.cpp new file mode 100644 index 000000000..b8f5e4086 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFloat_array.cpp @@ -0,0 +1,113 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFloat_array::create(daeInt bytes) +{ + domFloat_arrayRef ref = new(bytes) domFloat_array; + return ref; +} + + +daeMetaElement * +domFloat_array::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float_array" ); + _Meta->setStaticPointerAddress(&domFloat_array::_Meta); + _Meta->registerConstructor(domFloat_array::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfFloats")); + ma->setOffset( daeOffsetOf( domFloat_array , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domFloat_array , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFloat_array , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domFloat_array , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: digits + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "digits" ); + ma->setType( daeAtomicType::get("xsShort")); + ma->setOffset( daeOffsetOf( domFloat_array , attrDigits )); + ma->setContainer( _Meta ); + ma->setDefault( "6"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: magnitude + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "magnitude" ); + ma->setType( daeAtomicType::get("xsShort")); + ma->setOffset( daeOffsetOf( domFloat_array , attrMagnitude )); + ma->setContainer( _Meta ); + ma->setDefault( "38"); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFloat_array)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFloat_array::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domForce_field.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domForce_field.cpp new file mode 100644 index 000000000..4b82ed827 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domForce_field.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domForce_field::create(daeInt bytes) +{ + domForce_fieldRef ref = new(bytes) domForce_field; + return ref; +} + + +daeMetaElement * +domForce_field::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "force_field" ); + _Meta->setStaticPointerAddress(&domForce_field::_Meta); + _Meta->registerConstructor(domForce_field::create); + + // Add elements: asset, technique, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domForce_field,elemAsset)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domForce_field,elemTechnique_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domForce_field,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domForce_field , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domForce_field , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domForce_field)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domForce_field::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_common.cpp new file mode 100644 index 000000000..9c8dade4d --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_common.cpp @@ -0,0 +1,76 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_annotate_common::create(daeInt bytes) +{ + domFx_annotate_commonRef ref = new(bytes) domFx_annotate_common; + return ref; +} + + +daeMetaElement * +domFx_annotate_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_annotate_common" ); + _Meta->setStaticPointerAddress(&domFx_annotate_common::_Meta); + _Meta->registerConstructor(domFx_annotate_common::create); + + // Add elements: fx_annotate_type_common + _Meta->appendElement(domFx_annotate_type_common::registerElement(),daeOffsetOf(domFx_annotate_common,elemFx_annotate_type_common)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "string", _Meta->getMetaElements()[0]); + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_annotate_common , attrName )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_annotate_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_type_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_type_common.cpp new file mode 100644 index 000000000..b2c354449 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_type_common.cpp @@ -0,0 +1,643 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_annotate_type_common::create(daeInt bytes) +{ + domFx_annotate_type_commonRef ref = new(bytes) domFx_annotate_type_common; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_annotate_type_common" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::create); + + _Meta->setIsTransparent( true ); + // Add elements: bool, bool2, bool3, bool4, int, int2, int3, int4, float, float2, float3, float4, float2x2, float3x3, float4x4, string + _Meta->appendElement(domFx_annotate_type_common::domBool::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemBool)); + _Meta->appendElement(domFx_annotate_type_common::domBool2::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemBool2)); + _Meta->appendElement(domFx_annotate_type_common::domBool3::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemBool3)); + _Meta->appendElement(domFx_annotate_type_common::domBool4::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemBool4)); + _Meta->appendElement(domFx_annotate_type_common::domInt::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemInt)); + _Meta->appendElement(domFx_annotate_type_common::domInt2::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemInt2)); + _Meta->appendElement(domFx_annotate_type_common::domInt3::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemInt3)); + _Meta->appendElement(domFx_annotate_type_common::domInt4::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemInt4)); + _Meta->appendElement(domFx_annotate_type_common::domFloat::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemFloat)); + _Meta->appendElement(domFx_annotate_type_common::domFloat2::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemFloat2)); + _Meta->appendElement(domFx_annotate_type_common::domFloat3::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemFloat3)); + _Meta->appendElement(domFx_annotate_type_common::domFloat4::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemFloat4)); + _Meta->appendElement(domFx_annotate_type_common::domFloat2x2::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemFloat2x2)); + _Meta->appendElement(domFx_annotate_type_common::domFloat3x3::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemFloat3x3)); + _Meta->appendElement(domFx_annotate_type_common::domFloat4x4::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemFloat4x4)); + _Meta->appendElement(domFx_annotate_type_common::domString::registerElement(),daeOffsetOf(domFx_annotate_type_common,elemString)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domFx_annotate_type_common,_contents)); + + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domBool::create(daeInt bytes) +{ + domFx_annotate_type_common::domBoolRef ref = new(bytes) domFx_annotate_type_common::domBool; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domBool::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domBool::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domBool::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domBool , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domBool)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domBool2::create(daeInt bytes) +{ + domFx_annotate_type_common::domBool2Ref ref = new(bytes) domFx_annotate_type_common::domBool2; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domBool2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool2" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domBool2::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domBool2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool2")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domBool2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domBool2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domBool3::create(daeInt bytes) +{ + domFx_annotate_type_common::domBool3Ref ref = new(bytes) domFx_annotate_type_common::domBool3; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domBool3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool3" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domBool3::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domBool3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool3")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domBool3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domBool3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domBool4::create(daeInt bytes) +{ + domFx_annotate_type_common::domBool4Ref ref = new(bytes) domFx_annotate_type_common::domBool4; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domBool4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool4" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domBool4::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domBool4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool4")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domBool4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domBool4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domInt::create(daeInt bytes) +{ + domFx_annotate_type_common::domIntRef ref = new(bytes) domFx_annotate_type_common::domInt; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domInt::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domInt::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domInt::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domInt , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domInt)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domInt2::create(daeInt bytes) +{ + domFx_annotate_type_common::domInt2Ref ref = new(bytes) domFx_annotate_type_common::domInt2; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domInt2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int2" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domInt2::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domInt2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int2")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domInt2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domInt2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domInt3::create(daeInt bytes) +{ + domFx_annotate_type_common::domInt3Ref ref = new(bytes) domFx_annotate_type_common::domInt3; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domInt3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int3" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domInt3::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domInt3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int3")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domInt3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domInt3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domInt4::create(daeInt bytes) +{ + domFx_annotate_type_common::domInt4Ref ref = new(bytes) domFx_annotate_type_common::domInt4; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domInt4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int4" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domInt4::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domInt4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int4")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domInt4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domInt4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domFloat::create(daeInt bytes) +{ + domFx_annotate_type_common::domFloatRef ref = new(bytes) domFx_annotate_type_common::domFloat; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domFloat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domFloat::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domFloat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domFloat2::create(daeInt bytes) +{ + domFx_annotate_type_common::domFloat2Ref ref = new(bytes) domFx_annotate_type_common::domFloat2; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domFloat2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domFloat2::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domFloat2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domFloat3::create(daeInt bytes) +{ + domFx_annotate_type_common::domFloat3Ref ref = new(bytes) domFx_annotate_type_common::domFloat3; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domFloat3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domFloat3::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domFloat3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domFloat4::create(daeInt bytes) +{ + domFx_annotate_type_common::domFloat4Ref ref = new(bytes) domFx_annotate_type_common::domFloat4; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domFloat4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domFloat4::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domFloat4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domFloat2x2::create(daeInt bytes) +{ + domFx_annotate_type_common::domFloat2x2Ref ref = new(bytes) domFx_annotate_type_common::domFloat2x2; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domFloat2x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x2" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domFloat2x2::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domFloat2x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2x2")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat2x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat2x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domFloat3x3::create(daeInt bytes) +{ + domFx_annotate_type_common::domFloat3x3Ref ref = new(bytes) domFx_annotate_type_common::domFloat3x3; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domFloat3x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x3" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domFloat3x3::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domFloat3x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3x3")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat3x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat3x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domFloat4x4::create(daeInt bytes) +{ + domFx_annotate_type_common::domFloat4x4Ref ref = new(bytes) domFx_annotate_type_common::domFloat4x4; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domFloat4x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x4" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domFloat4x4::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domFloat4x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4x4")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat4x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat4x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_annotate_type_common::domString::create(daeInt bytes) +{ + domFx_annotate_type_common::domStringRef ref = new(bytes) domFx_annotate_type_common::domString; + return ref; +} + + +daeMetaElement * +domFx_annotate_type_common::domString::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "string" ); + _Meta->setStaticPointerAddress(&domFx_annotate_type_common::domString::_Meta); + _Meta->registerConstructor(domFx_annotate_type_common::domString::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domString , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_annotate_type_common::domString)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_annotate_type_common::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domBool::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domBool2::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domBool3::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domBool4::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domInt::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domInt2::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domInt3::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domInt4::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domFloat::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domFloat2::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domFloat3::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domFloat4::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domFloat2x2::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domFloat3x3::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domFloat4x4::_Meta = NULL; +daeMetaElement * domFx_annotate_type_common::domString::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_basic_type_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_basic_type_common.cpp new file mode 100644 index 000000000..d1d633146 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_basic_type_common.cpp @@ -0,0 +1,1131 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_basic_type_common::create(daeInt bytes) +{ + domFx_basic_type_commonRef ref = new(bytes) domFx_basic_type_common; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_basic_type_common" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::create); + + _Meta->setIsTransparent( true ); + // Add elements: bool, bool2, bool3, bool4, int, int2, int3, int4, float, float2, float3, float4, float1x1, float1x2, float1x3, float1x4, float2x1, float2x2, float2x3, float2x4, float3x1, float3x2, float3x3, float3x4, float4x1, float4x2, float4x3, float4x4, surface, sampler1D, sampler2D, sampler3D, samplerCUBE, samplerRECT, samplerDEPTH, enum + _Meta->appendElement(domFx_basic_type_common::domBool::registerElement(),daeOffsetOf(domFx_basic_type_common,elemBool)); + _Meta->appendElement(domFx_basic_type_common::domBool2::registerElement(),daeOffsetOf(domFx_basic_type_common,elemBool2)); + _Meta->appendElement(domFx_basic_type_common::domBool3::registerElement(),daeOffsetOf(domFx_basic_type_common,elemBool3)); + _Meta->appendElement(domFx_basic_type_common::domBool4::registerElement(),daeOffsetOf(domFx_basic_type_common,elemBool4)); + _Meta->appendElement(domFx_basic_type_common::domInt::registerElement(),daeOffsetOf(domFx_basic_type_common,elemInt)); + _Meta->appendElement(domFx_basic_type_common::domInt2::registerElement(),daeOffsetOf(domFx_basic_type_common,elemInt2)); + _Meta->appendElement(domFx_basic_type_common::domInt3::registerElement(),daeOffsetOf(domFx_basic_type_common,elemInt3)); + _Meta->appendElement(domFx_basic_type_common::domInt4::registerElement(),daeOffsetOf(domFx_basic_type_common,elemInt4)); + _Meta->appendElement(domFx_basic_type_common::domFloat::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat)); + _Meta->appendElement(domFx_basic_type_common::domFloat2::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat2)); + _Meta->appendElement(domFx_basic_type_common::domFloat3::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat3)); + _Meta->appendElement(domFx_basic_type_common::domFloat4::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat4)); + _Meta->appendElement(domFx_basic_type_common::domFloat1x1::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat1x1)); + _Meta->appendElement(domFx_basic_type_common::domFloat1x2::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat1x2)); + _Meta->appendElement(domFx_basic_type_common::domFloat1x3::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat1x3)); + _Meta->appendElement(domFx_basic_type_common::domFloat1x4::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat1x4)); + _Meta->appendElement(domFx_basic_type_common::domFloat2x1::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat2x1)); + _Meta->appendElement(domFx_basic_type_common::domFloat2x2::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat2x2)); + _Meta->appendElement(domFx_basic_type_common::domFloat2x3::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat2x3)); + _Meta->appendElement(domFx_basic_type_common::domFloat2x4::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat2x4)); + _Meta->appendElement(domFx_basic_type_common::domFloat3x1::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat3x1)); + _Meta->appendElement(domFx_basic_type_common::domFloat3x2::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat3x2)); + _Meta->appendElement(domFx_basic_type_common::domFloat3x3::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat3x3)); + _Meta->appendElement(domFx_basic_type_common::domFloat3x4::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat3x4)); + _Meta->appendElement(domFx_basic_type_common::domFloat4x1::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat4x1)); + _Meta->appendElement(domFx_basic_type_common::domFloat4x2::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat4x2)); + _Meta->appendElement(domFx_basic_type_common::domFloat4x3::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat4x3)); + _Meta->appendElement(domFx_basic_type_common::domFloat4x4::registerElement(),daeOffsetOf(domFx_basic_type_common,elemFloat4x4)); + _Meta->appendElement(domFx_surface_common::registerElement(),daeOffsetOf(domFx_basic_type_common,elemSurface),"surface"); + _Meta->appendElement(domFx_sampler1D_common::registerElement(),daeOffsetOf(domFx_basic_type_common,elemSampler1D),"sampler1D"); + _Meta->appendElement(domFx_sampler2D_common::registerElement(),daeOffsetOf(domFx_basic_type_common,elemSampler2D),"sampler2D"); + _Meta->appendElement(domFx_sampler3D_common::registerElement(),daeOffsetOf(domFx_basic_type_common,elemSampler3D),"sampler3D"); + _Meta->appendElement(domFx_samplerCUBE_common::registerElement(),daeOffsetOf(domFx_basic_type_common,elemSamplerCUBE),"samplerCUBE"); + _Meta->appendElement(domFx_samplerRECT_common::registerElement(),daeOffsetOf(domFx_basic_type_common,elemSamplerRECT),"samplerRECT"); + _Meta->appendElement(domFx_samplerDEPTH_common::registerElement(),daeOffsetOf(domFx_basic_type_common,elemSamplerDEPTH),"samplerDEPTH"); + _Meta->appendElement(domFx_basic_type_common::domEnum::registerElement(),daeOffsetOf(domFx_basic_type_common,elemEnum)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domFx_basic_type_common,_contents)); + + + + _Meta->setElementSize(sizeof(domFx_basic_type_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domBool::create(daeInt bytes) +{ + domFx_basic_type_common::domBoolRef ref = new(bytes) domFx_basic_type_common::domBool; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domBool::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domBool::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domBool::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domBool , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domBool)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domBool2::create(daeInt bytes) +{ + domFx_basic_type_common::domBool2Ref ref = new(bytes) domFx_basic_type_common::domBool2; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domBool2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool2" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domBool2::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domBool2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool2")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domBool2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domBool2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domBool3::create(daeInt bytes) +{ + domFx_basic_type_common::domBool3Ref ref = new(bytes) domFx_basic_type_common::domBool3; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domBool3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool3" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domBool3::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domBool3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool3")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domBool3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domBool3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domBool4::create(daeInt bytes) +{ + domFx_basic_type_common::domBool4Ref ref = new(bytes) domFx_basic_type_common::domBool4; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domBool4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool4" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domBool4::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domBool4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool4")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domBool4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domBool4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domInt::create(daeInt bytes) +{ + domFx_basic_type_common::domIntRef ref = new(bytes) domFx_basic_type_common::domInt; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domInt::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domInt::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domInt::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domInt , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domInt)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domInt2::create(daeInt bytes) +{ + domFx_basic_type_common::domInt2Ref ref = new(bytes) domFx_basic_type_common::domInt2; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domInt2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int2" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domInt2::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domInt2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int2")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domInt2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domInt2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domInt3::create(daeInt bytes) +{ + domFx_basic_type_common::domInt3Ref ref = new(bytes) domFx_basic_type_common::domInt3; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domInt3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int3" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domInt3::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domInt3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int3")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domInt3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domInt3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domInt4::create(daeInt bytes) +{ + domFx_basic_type_common::domInt4Ref ref = new(bytes) domFx_basic_type_common::domInt4; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domInt4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int4" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domInt4::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domInt4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int4")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domInt4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domInt4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat::create(daeInt bytes) +{ + domFx_basic_type_common::domFloatRef ref = new(bytes) domFx_basic_type_common::domFloat; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat2::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat2Ref ref = new(bytes) domFx_basic_type_common::domFloat2; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat2::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat3::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat3Ref ref = new(bytes) domFx_basic_type_common::domFloat3; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat3::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat4::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat4Ref ref = new(bytes) domFx_basic_type_common::domFloat4; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat4::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat1x1::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat1x1Ref ref = new(bytes) domFx_basic_type_common::domFloat1x1; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat1x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x1" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat1x1::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat1x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat1x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat1x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat1x2::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat1x2Ref ref = new(bytes) domFx_basic_type_common::domFloat1x2; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat1x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x2" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat1x2::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat1x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat1x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat1x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat1x3::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat1x3Ref ref = new(bytes) domFx_basic_type_common::domFloat1x3; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat1x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x3" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat1x3::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat1x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat1x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat1x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat1x4::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat1x4Ref ref = new(bytes) domFx_basic_type_common::domFloat1x4; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat1x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x4" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat1x4::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat1x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat1x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat1x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat2x1::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat2x1Ref ref = new(bytes) domFx_basic_type_common::domFloat2x1; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat2x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x1" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat2x1::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat2x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat2x2::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat2x2Ref ref = new(bytes) domFx_basic_type_common::domFloat2x2; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat2x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x2" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat2x2::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat2x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2x2")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat2x3::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat2x3Ref ref = new(bytes) domFx_basic_type_common::domFloat2x3; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat2x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x3" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat2x3::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat2x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2x3")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat2x4::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat2x4Ref ref = new(bytes) domFx_basic_type_common::domFloat2x4; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat2x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x4" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat2x4::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat2x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2x4")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat3x1::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat3x1Ref ref = new(bytes) domFx_basic_type_common::domFloat3x1; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat3x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x1" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat3x1::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat3x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat3x2::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat3x2Ref ref = new(bytes) domFx_basic_type_common::domFloat3x2; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat3x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x2" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat3x2::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat3x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3x2")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat3x3::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat3x3Ref ref = new(bytes) domFx_basic_type_common::domFloat3x3; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat3x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x3" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat3x3::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat3x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3x3")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat3x4::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat3x4Ref ref = new(bytes) domFx_basic_type_common::domFloat3x4; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat3x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x4" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat3x4::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat3x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3x4")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat4x1::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat4x1Ref ref = new(bytes) domFx_basic_type_common::domFloat4x1; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat4x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x1" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat4x1::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat4x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat4x2::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat4x2Ref ref = new(bytes) domFx_basic_type_common::domFloat4x2; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat4x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x2" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat4x2::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat4x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4x2")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat4x3::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat4x3Ref ref = new(bytes) domFx_basic_type_common::domFloat4x3; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat4x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x3" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat4x3::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat4x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4x3")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domFloat4x4::create(daeInt bytes) +{ + domFx_basic_type_common::domFloat4x4Ref ref = new(bytes) domFx_basic_type_common::domFloat4x4; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domFloat4x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x4" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domFloat4x4::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domFloat4x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4x4")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_basic_type_common::domEnum::create(daeInt bytes) +{ + domFx_basic_type_common::domEnumRef ref = new(bytes) domFx_basic_type_common::domEnum; + return ref; +} + + +daeMetaElement * +domFx_basic_type_common::domEnum::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "enum" ); + _Meta->setStaticPointerAddress(&domFx_basic_type_common::domEnum::_Meta); + _Meta->registerConstructor(domFx_basic_type_common::domEnum::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domFx_basic_type_common::domEnum , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_basic_type_common::domEnum)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_basic_type_common::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domBool::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domBool2::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domBool3::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domBool4::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domInt::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domInt2::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domInt3::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domInt4::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat2::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat3::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat4::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat1x1::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat1x2::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat1x3::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat1x4::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat2x1::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat2x2::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat2x3::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat2x4::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat3x1::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat3x2::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat3x3::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat3x4::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat4x1::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat4x2::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat4x3::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domFloat4x4::_Meta = NULL; +daeMetaElement * domFx_basic_type_common::domEnum::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearcolor_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearcolor_common.cpp new file mode 100644 index 000000000..6759c851d --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearcolor_common.cpp @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_clearcolor_common::create(daeInt bytes) +{ + domFx_clearcolor_commonRef ref = new(bytes) domFx_clearcolor_common; + return ref; +} + + +daeMetaElement * +domFx_clearcolor_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_clearcolor_common" ); + _Meta->setStaticPointerAddress(&domFx_clearcolor_common::_Meta); + _Meta->registerConstructor(domFx_clearcolor_common::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_color_common")); + ma->setOffset( daeOffsetOf( domFx_clearcolor_common , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("xsNonNegativeInteger")); + ma->setOffset( daeOffsetOf( domFx_clearcolor_common , attrIndex )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_clearcolor_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_clearcolor_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_cleardepth_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_cleardepth_common.cpp new file mode 100644 index 000000000..d75b9d5b3 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_cleardepth_common.cpp @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_cleardepth_common::create(daeInt bytes) +{ + domFx_cleardepth_commonRef ref = new(bytes) domFx_cleardepth_common; + return ref; +} + + +daeMetaElement * +domFx_cleardepth_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_cleardepth_common" ); + _Meta->setStaticPointerAddress(&domFx_cleardepth_common::_Meta); + _Meta->registerConstructor(domFx_cleardepth_common::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domFx_cleardepth_common , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("xsNonNegativeInteger")); + ma->setOffset( daeOffsetOf( domFx_cleardepth_common , attrIndex )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_cleardepth_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_cleardepth_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearstencil_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearstencil_common.cpp new file mode 100644 index 000000000..a8e6ae1a0 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearstencil_common.cpp @@ -0,0 +1,68 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_clearstencil_common::create(daeInt bytes) +{ + domFx_clearstencil_commonRef ref = new(bytes) domFx_clearstencil_common; + return ref; +} + + +daeMetaElement * +domFx_clearstencil_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_clearstencil_common" ); + _Meta->setStaticPointerAddress(&domFx_clearstencil_common::_Meta); + _Meta->registerConstructor(domFx_clearstencil_common::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsByte")); + ma->setOffset( daeOffsetOf( domFx_clearstencil_common , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("xsNonNegativeInteger")); + ma->setOffset( daeOffsetOf( domFx_clearstencil_common , attrIndex )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_clearstencil_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_clearstencil_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_code_profile.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_code_profile.cpp new file mode 100644 index 000000000..3957311c2 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_code_profile.cpp @@ -0,0 +1,67 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_code_profile::create(daeInt bytes) +{ + domFx_code_profileRef ref = new(bytes) domFx_code_profile; + return ref; +} + + +daeMetaElement * +domFx_code_profile::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_code_profile" ); + _Meta->setStaticPointerAddress(&domFx_code_profile::_Meta); + _Meta->registerConstructor(domFx_code_profile::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domFx_code_profile , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_code_profile , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_code_profile)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_code_profile::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_colortarget_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_colortarget_common.cpp new file mode 100644 index 000000000..3c9895621 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_colortarget_common.cpp @@ -0,0 +1,81 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_colortarget_common::create(daeInt bytes) +{ + domFx_colortarget_commonRef ref = new(bytes) domFx_colortarget_common; + return ref; +} + + +daeMetaElement * +domFx_colortarget_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_colortarget_common" ); + _Meta->setStaticPointerAddress(&domFx_colortarget_common::_Meta); + _Meta->registerConstructor(domFx_colortarget_common::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_colortarget_common , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("xsNonNegativeInteger")); + ma->setOffset( daeOffsetOf( domFx_colortarget_common , attrIndex )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: slice + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "slice" ); + ma->setType( daeAtomicType::get("xsNonNegativeInteger")); + ma->setOffset( daeOffsetOf( domFx_colortarget_common , attrSlice )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_colortarget_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_colortarget_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_depthtarget_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_depthtarget_common.cpp new file mode 100644 index 000000000..11682b043 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_depthtarget_common.cpp @@ -0,0 +1,81 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_depthtarget_common::create(daeInt bytes) +{ + domFx_depthtarget_commonRef ref = new(bytes) domFx_depthtarget_common; + return ref; +} + + +daeMetaElement * +domFx_depthtarget_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_depthtarget_common" ); + _Meta->setStaticPointerAddress(&domFx_depthtarget_common::_Meta); + _Meta->registerConstructor(domFx_depthtarget_common::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_depthtarget_common , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("xsNonNegativeInteger")); + ma->setOffset( daeOffsetOf( domFx_depthtarget_common , attrIndex )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: slice + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "slice" ); + ma->setType( daeAtomicType::get("xsNonNegativeInteger")); + ma->setOffset( daeOffsetOf( domFx_depthtarget_common , attrSlice )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_depthtarget_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_depthtarget_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_include_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_include_common.cpp new file mode 100644 index 000000000..aec941ddc --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_include_common.cpp @@ -0,0 +1,71 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_include_common::create(daeInt bytes) +{ + domFx_include_commonRef ref = new(bytes) domFx_include_common; + ref->attrUrl.setContainer( (domFx_include_common*)ref ); + return ref; +} + + +daeMetaElement * +domFx_include_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_include_common" ); + _Meta->setStaticPointerAddress(&domFx_include_common::_Meta); + _Meta->registerConstructor(domFx_include_common::create); + + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_include_common , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domFx_include_common , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_include_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_include_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_newparam_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_newparam_common.cpp new file mode 100644 index 000000000..b5a4152ba --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_newparam_common.cpp @@ -0,0 +1,171 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_newparam_common::create(daeInt bytes) +{ + domFx_newparam_commonRef ref = new(bytes) domFx_newparam_common; + return ref; +} + + +daeMetaElement * +domFx_newparam_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_newparam_common" ); + _Meta->setStaticPointerAddress(&domFx_newparam_common::_Meta); + _Meta->registerConstructor(domFx_newparam_common::create); + + // Add elements: annotate, semantic, modifier, fx_basic_type_common + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domFx_newparam_common,elemAnnotate_array),"annotate"); + _Meta->appendElement(domFx_newparam_common::domSemantic::registerElement(),daeOffsetOf(domFx_newparam_common,elemSemantic)); + _Meta->appendElement(domFx_newparam_common::domModifier::registerElement(),daeOffsetOf(domFx_newparam_common,elemModifier)); + _Meta->appendElement(domFx_basic_type_common::registerElement(),daeOffsetOf(domFx_newparam_common,elemFx_basic_type_common)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[3], "fx_surface_common"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[3], "fx_sampler1D_common"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[3], "fx_sampler2D_common"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[3], "fx_sampler3D_common"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[3], "fx_samplerCUBE_common"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[3], "fx_samplerRECT_common"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[3], "fx_samplerDEPTH_common"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[3]); + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_newparam_common , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_newparam_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_newparam_common::domSemantic::create(daeInt bytes) +{ + domFx_newparam_common::domSemanticRef ref = new(bytes) domFx_newparam_common::domSemantic; + return ref; +} + + +daeMetaElement * +domFx_newparam_common::domSemantic::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "semantic" ); + _Meta->setStaticPointerAddress(&domFx_newparam_common::domSemantic::_Meta); + _Meta->registerConstructor(domFx_newparam_common::domSemantic::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_newparam_common::domSemantic , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_newparam_common::domSemantic)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_newparam_common::domModifier::create(daeInt bytes) +{ + domFx_newparam_common::domModifierRef ref = new(bytes) domFx_newparam_common::domModifier; + return ref; +} + + +daeMetaElement * +domFx_newparam_common::domModifier::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "modifier" ); + _Meta->setStaticPointerAddress(&domFx_newparam_common::domModifier::_Meta); + _Meta->registerConstructor(domFx_newparam_common::domModifier::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_modifier_enum_common")); + ma->setOffset( daeOffsetOf( domFx_newparam_common::domModifier , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_newparam_common::domModifier)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_newparam_common::_Meta = NULL; +daeMetaElement * domFx_newparam_common::domSemantic::_Meta = NULL; +daeMetaElement * domFx_newparam_common::domModifier::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_profile_abstract.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_profile_abstract.cpp new file mode 100644 index 000000000..44b613aba --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_profile_abstract.cpp @@ -0,0 +1,47 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_profile_abstract::create(daeInt bytes) +{ + domFx_profile_abstractRef ref = new(bytes) domFx_profile_abstract; + return ref; +} + + +daeMetaElement * +domFx_profile_abstract::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_profile_abstract" ); + _Meta->setStaticPointerAddress(&domFx_profile_abstract::_Meta); + _Meta->registerConstructor(domFx_profile_abstract::create); + + _Meta->setIsAbstract( true ); + + + _Meta->setElementSize(sizeof(domFx_profile_abstract)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_profile_abstract::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler1D_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler1D_common.cpp new file mode 100644 index 000000000..e17faffdc --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler1D_common.cpp @@ -0,0 +1,343 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_sampler1D_common::create(daeInt bytes) +{ + domFx_sampler1D_commonRef ref = new(bytes) domFx_sampler1D_common; + return ref; +} + + +daeMetaElement * +domFx_sampler1D_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_sampler1D_common" ); + _Meta->setStaticPointerAddress(&domFx_sampler1D_common::_Meta); + _Meta->registerConstructor(domFx_sampler1D_common::create); + + // Add elements: source, wrap_s, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domFx_sampler1D_common::domSource::registerElement(),daeOffsetOf(domFx_sampler1D_common,elemSource)); + _Meta->appendElement(domFx_sampler1D_common::domWrap_s::registerElement(),daeOffsetOf(domFx_sampler1D_common,elemWrap_s)); + _Meta->appendElement(domFx_sampler1D_common::domMinfilter::registerElement(),daeOffsetOf(domFx_sampler1D_common,elemMinfilter)); + _Meta->appendElement(domFx_sampler1D_common::domMagfilter::registerElement(),daeOffsetOf(domFx_sampler1D_common,elemMagfilter)); + _Meta->appendElement(domFx_sampler1D_common::domMipfilter::registerElement(),daeOffsetOf(domFx_sampler1D_common,elemMipfilter)); + _Meta->appendElement(domFx_sampler1D_common::domBorder_color::registerElement(),daeOffsetOf(domFx_sampler1D_common,elemBorder_color)); + _Meta->appendElement(domFx_sampler1D_common::domMipmap_maxlevel::registerElement(),daeOffsetOf(domFx_sampler1D_common,elemMipmap_maxlevel)); + _Meta->appendElement(domFx_sampler1D_common::domMipmap_bias::registerElement(),daeOffsetOf(domFx_sampler1D_common,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domFx_sampler1D_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler1D_common::domSource::create(daeInt bytes) +{ + domFx_sampler1D_common::domSourceRef ref = new(bytes) domFx_sampler1D_common::domSource; + return ref; +} + + +daeMetaElement * +domFx_sampler1D_common::domSource::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "source" ); + _Meta->setStaticPointerAddress(&domFx_sampler1D_common::domSource::_Meta); + _Meta->registerConstructor(domFx_sampler1D_common::domSource::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domSource , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler1D_common::domSource)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler1D_common::domWrap_s::create(daeInt bytes) +{ + domFx_sampler1D_common::domWrap_sRef ref = new(bytes) domFx_sampler1D_common::domWrap_s; + return ref; +} + + +daeMetaElement * +domFx_sampler1D_common::domWrap_s::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_s" ); + _Meta->setStaticPointerAddress(&domFx_sampler1D_common::domWrap_s::_Meta); + _Meta->registerConstructor(domFx_sampler1D_common::domWrap_s::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domWrap_s , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler1D_common::domWrap_s)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler1D_common::domMinfilter::create(daeInt bytes) +{ + domFx_sampler1D_common::domMinfilterRef ref = new(bytes) domFx_sampler1D_common::domMinfilter; + return ref; +} + + +daeMetaElement * +domFx_sampler1D_common::domMinfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "minfilter" ); + _Meta->setStaticPointerAddress(&domFx_sampler1D_common::domMinfilter::_Meta); + _Meta->registerConstructor(domFx_sampler1D_common::domMinfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMinfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMinfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler1D_common::domMagfilter::create(daeInt bytes) +{ + domFx_sampler1D_common::domMagfilterRef ref = new(bytes) domFx_sampler1D_common::domMagfilter; + return ref; +} + + +daeMetaElement * +domFx_sampler1D_common::domMagfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "magfilter" ); + _Meta->setStaticPointerAddress(&domFx_sampler1D_common::domMagfilter::_Meta); + _Meta->registerConstructor(domFx_sampler1D_common::domMagfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMagfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMagfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler1D_common::domMipfilter::create(daeInt bytes) +{ + domFx_sampler1D_common::domMipfilterRef ref = new(bytes) domFx_sampler1D_common::domMipfilter; + return ref; +} + + +daeMetaElement * +domFx_sampler1D_common::domMipfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipfilter" ); + _Meta->setStaticPointerAddress(&domFx_sampler1D_common::domMipfilter::_Meta); + _Meta->registerConstructor(domFx_sampler1D_common::domMipfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMipfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMipfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler1D_common::domBorder_color::create(daeInt bytes) +{ + domFx_sampler1D_common::domBorder_colorRef ref = new(bytes) domFx_sampler1D_common::domBorder_color; + return ref; +} + + +daeMetaElement * +domFx_sampler1D_common::domBorder_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "border_color" ); + _Meta->setStaticPointerAddress(&domFx_sampler1D_common::domBorder_color::_Meta); + _Meta->registerConstructor(domFx_sampler1D_common::domBorder_color::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_color_common")); + ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domBorder_color , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler1D_common::domBorder_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler1D_common::domMipmap_maxlevel::create(daeInt bytes) +{ + domFx_sampler1D_common::domMipmap_maxlevelRef ref = new(bytes) domFx_sampler1D_common::domMipmap_maxlevel; + return ref; +} + + +daeMetaElement * +domFx_sampler1D_common::domMipmap_maxlevel::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_maxlevel" ); + _Meta->setStaticPointerAddress(&domFx_sampler1D_common::domMipmap_maxlevel::_Meta); + _Meta->registerConstructor(domFx_sampler1D_common::domMipmap_maxlevel::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMipmap_maxlevel , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMipmap_maxlevel)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler1D_common::domMipmap_bias::create(daeInt bytes) +{ + domFx_sampler1D_common::domMipmap_biasRef ref = new(bytes) domFx_sampler1D_common::domMipmap_bias; + return ref; +} + + +daeMetaElement * +domFx_sampler1D_common::domMipmap_bias::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_bias" ); + _Meta->setStaticPointerAddress(&domFx_sampler1D_common::domMipmap_bias::_Meta); + _Meta->registerConstructor(domFx_sampler1D_common::domMipmap_bias::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsFloat")); + ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMipmap_bias , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMipmap_bias)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_sampler1D_common::_Meta = NULL; +daeMetaElement * domFx_sampler1D_common::domSource::_Meta = NULL; +daeMetaElement * domFx_sampler1D_common::domWrap_s::_Meta = NULL; +daeMetaElement * domFx_sampler1D_common::domMinfilter::_Meta = NULL; +daeMetaElement * domFx_sampler1D_common::domMagfilter::_Meta = NULL; +daeMetaElement * domFx_sampler1D_common::domMipfilter::_Meta = NULL; +daeMetaElement * domFx_sampler1D_common::domBorder_color::_Meta = NULL; +daeMetaElement * domFx_sampler1D_common::domMipmap_maxlevel::_Meta = NULL; +daeMetaElement * domFx_sampler1D_common::domMipmap_bias::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler2D_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler2D_common.cpp new file mode 100644 index 000000000..5b7321b0e --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler2D_common.cpp @@ -0,0 +1,380 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_sampler2D_common::create(daeInt bytes) +{ + domFx_sampler2D_commonRef ref = new(bytes) domFx_sampler2D_common; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_sampler2D_common" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::create); + + // Add elements: source, wrap_s, wrap_t, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domFx_sampler2D_common::domSource::registerElement(),daeOffsetOf(domFx_sampler2D_common,elemSource)); + _Meta->appendElement(domFx_sampler2D_common::domWrap_s::registerElement(),daeOffsetOf(domFx_sampler2D_common,elemWrap_s)); + _Meta->appendElement(domFx_sampler2D_common::domWrap_t::registerElement(),daeOffsetOf(domFx_sampler2D_common,elemWrap_t)); + _Meta->appendElement(domFx_sampler2D_common::domMinfilter::registerElement(),daeOffsetOf(domFx_sampler2D_common,elemMinfilter)); + _Meta->appendElement(domFx_sampler2D_common::domMagfilter::registerElement(),daeOffsetOf(domFx_sampler2D_common,elemMagfilter)); + _Meta->appendElement(domFx_sampler2D_common::domMipfilter::registerElement(),daeOffsetOf(domFx_sampler2D_common,elemMipfilter)); + _Meta->appendElement(domFx_sampler2D_common::domBorder_color::registerElement(),daeOffsetOf(domFx_sampler2D_common,elemBorder_color)); + _Meta->appendElement(domFx_sampler2D_common::domMipmap_maxlevel::registerElement(),daeOffsetOf(domFx_sampler2D_common,elemMipmap_maxlevel)); + _Meta->appendElement(domFx_sampler2D_common::domMipmap_bias::registerElement(),daeOffsetOf(domFx_sampler2D_common,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler2D_common::domSource::create(daeInt bytes) +{ + domFx_sampler2D_common::domSourceRef ref = new(bytes) domFx_sampler2D_common::domSource; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::domSource::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "source" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::domSource::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::domSource::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domSource , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common::domSource)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler2D_common::domWrap_s::create(daeInt bytes) +{ + domFx_sampler2D_common::domWrap_sRef ref = new(bytes) domFx_sampler2D_common::domWrap_s; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::domWrap_s::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_s" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::domWrap_s::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::domWrap_s::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domWrap_s , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common::domWrap_s)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler2D_common::domWrap_t::create(daeInt bytes) +{ + domFx_sampler2D_common::domWrap_tRef ref = new(bytes) domFx_sampler2D_common::domWrap_t; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::domWrap_t::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_t" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::domWrap_t::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::domWrap_t::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domWrap_t , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common::domWrap_t)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler2D_common::domMinfilter::create(daeInt bytes) +{ + domFx_sampler2D_common::domMinfilterRef ref = new(bytes) domFx_sampler2D_common::domMinfilter; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::domMinfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "minfilter" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::domMinfilter::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::domMinfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMinfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMinfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler2D_common::domMagfilter::create(daeInt bytes) +{ + domFx_sampler2D_common::domMagfilterRef ref = new(bytes) domFx_sampler2D_common::domMagfilter; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::domMagfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "magfilter" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::domMagfilter::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::domMagfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMagfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMagfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler2D_common::domMipfilter::create(daeInt bytes) +{ + domFx_sampler2D_common::domMipfilterRef ref = new(bytes) domFx_sampler2D_common::domMipfilter; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::domMipfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipfilter" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::domMipfilter::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::domMipfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMipfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMipfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler2D_common::domBorder_color::create(daeInt bytes) +{ + domFx_sampler2D_common::domBorder_colorRef ref = new(bytes) domFx_sampler2D_common::domBorder_color; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::domBorder_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "border_color" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::domBorder_color::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::domBorder_color::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_color_common")); + ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domBorder_color , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common::domBorder_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler2D_common::domMipmap_maxlevel::create(daeInt bytes) +{ + domFx_sampler2D_common::domMipmap_maxlevelRef ref = new(bytes) domFx_sampler2D_common::domMipmap_maxlevel; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::domMipmap_maxlevel::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_maxlevel" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::domMipmap_maxlevel::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::domMipmap_maxlevel::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMipmap_maxlevel , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMipmap_maxlevel)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler2D_common::domMipmap_bias::create(daeInt bytes) +{ + domFx_sampler2D_common::domMipmap_biasRef ref = new(bytes) domFx_sampler2D_common::domMipmap_bias; + return ref; +} + + +daeMetaElement * +domFx_sampler2D_common::domMipmap_bias::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_bias" ); + _Meta->setStaticPointerAddress(&domFx_sampler2D_common::domMipmap_bias::_Meta); + _Meta->registerConstructor(domFx_sampler2D_common::domMipmap_bias::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsFloat")); + ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMipmap_bias , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMipmap_bias)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_sampler2D_common::_Meta = NULL; +daeMetaElement * domFx_sampler2D_common::domSource::_Meta = NULL; +daeMetaElement * domFx_sampler2D_common::domWrap_s::_Meta = NULL; +daeMetaElement * domFx_sampler2D_common::domWrap_t::_Meta = NULL; +daeMetaElement * domFx_sampler2D_common::domMinfilter::_Meta = NULL; +daeMetaElement * domFx_sampler2D_common::domMagfilter::_Meta = NULL; +daeMetaElement * domFx_sampler2D_common::domMipfilter::_Meta = NULL; +daeMetaElement * domFx_sampler2D_common::domBorder_color::_Meta = NULL; +daeMetaElement * domFx_sampler2D_common::domMipmap_maxlevel::_Meta = NULL; +daeMetaElement * domFx_sampler2D_common::domMipmap_bias::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler3D_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler3D_common.cpp new file mode 100644 index 000000000..bf1dfbf7a --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler3D_common.cpp @@ -0,0 +1,417 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_sampler3D_common::create(daeInt bytes) +{ + domFx_sampler3D_commonRef ref = new(bytes) domFx_sampler3D_common; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_sampler3D_common" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::create); + + // Add elements: source, wrap_s, wrap_t, wrap_p, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domFx_sampler3D_common::domSource::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemSource)); + _Meta->appendElement(domFx_sampler3D_common::domWrap_s::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemWrap_s)); + _Meta->appendElement(domFx_sampler3D_common::domWrap_t::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemWrap_t)); + _Meta->appendElement(domFx_sampler3D_common::domWrap_p::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemWrap_p)); + _Meta->appendElement(domFx_sampler3D_common::domMinfilter::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemMinfilter)); + _Meta->appendElement(domFx_sampler3D_common::domMagfilter::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemMagfilter)); + _Meta->appendElement(domFx_sampler3D_common::domMipfilter::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemMipfilter)); + _Meta->appendElement(domFx_sampler3D_common::domBorder_color::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemBorder_color)); + _Meta->appendElement(domFx_sampler3D_common::domMipmap_maxlevel::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemMipmap_maxlevel)); + _Meta->appendElement(domFx_sampler3D_common::domMipmap_bias::registerElement(),daeOffsetOf(domFx_sampler3D_common,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domSource::create(daeInt bytes) +{ + domFx_sampler3D_common::domSourceRef ref = new(bytes) domFx_sampler3D_common::domSource; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domSource::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "source" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domSource::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domSource::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domSource , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domSource)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domWrap_s::create(daeInt bytes) +{ + domFx_sampler3D_common::domWrap_sRef ref = new(bytes) domFx_sampler3D_common::domWrap_s; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domWrap_s::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_s" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domWrap_s::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domWrap_s::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domWrap_s , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domWrap_s)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domWrap_t::create(daeInt bytes) +{ + domFx_sampler3D_common::domWrap_tRef ref = new(bytes) domFx_sampler3D_common::domWrap_t; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domWrap_t::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_t" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domWrap_t::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domWrap_t::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domWrap_t , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domWrap_t)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domWrap_p::create(daeInt bytes) +{ + domFx_sampler3D_common::domWrap_pRef ref = new(bytes) domFx_sampler3D_common::domWrap_p; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domWrap_p::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_p" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domWrap_p::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domWrap_p::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domWrap_p , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domWrap_p)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domMinfilter::create(daeInt bytes) +{ + domFx_sampler3D_common::domMinfilterRef ref = new(bytes) domFx_sampler3D_common::domMinfilter; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domMinfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "minfilter" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domMinfilter::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domMinfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMinfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMinfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domMagfilter::create(daeInt bytes) +{ + domFx_sampler3D_common::domMagfilterRef ref = new(bytes) domFx_sampler3D_common::domMagfilter; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domMagfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "magfilter" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domMagfilter::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domMagfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMagfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMagfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domMipfilter::create(daeInt bytes) +{ + domFx_sampler3D_common::domMipfilterRef ref = new(bytes) domFx_sampler3D_common::domMipfilter; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domMipfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipfilter" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domMipfilter::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domMipfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMipfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMipfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domBorder_color::create(daeInt bytes) +{ + domFx_sampler3D_common::domBorder_colorRef ref = new(bytes) domFx_sampler3D_common::domBorder_color; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domBorder_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "border_color" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domBorder_color::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domBorder_color::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_color_common")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domBorder_color , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domBorder_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domMipmap_maxlevel::create(daeInt bytes) +{ + domFx_sampler3D_common::domMipmap_maxlevelRef ref = new(bytes) domFx_sampler3D_common::domMipmap_maxlevel; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domMipmap_maxlevel::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_maxlevel" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domMipmap_maxlevel::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domMipmap_maxlevel::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMipmap_maxlevel , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMipmap_maxlevel)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_sampler3D_common::domMipmap_bias::create(daeInt bytes) +{ + domFx_sampler3D_common::domMipmap_biasRef ref = new(bytes) domFx_sampler3D_common::domMipmap_bias; + return ref; +} + + +daeMetaElement * +domFx_sampler3D_common::domMipmap_bias::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_bias" ); + _Meta->setStaticPointerAddress(&domFx_sampler3D_common::domMipmap_bias::_Meta); + _Meta->registerConstructor(domFx_sampler3D_common::domMipmap_bias::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsFloat")); + ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMipmap_bias , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMipmap_bias)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_sampler3D_common::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domSource::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domWrap_s::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domWrap_t::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domWrap_p::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domMinfilter::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domMagfilter::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domMipfilter::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domBorder_color::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domMipmap_maxlevel::_Meta = NULL; +daeMetaElement * domFx_sampler3D_common::domMipmap_bias::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerCUBE_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerCUBE_common.cpp new file mode 100644 index 000000000..eab729897 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerCUBE_common.cpp @@ -0,0 +1,417 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_samplerCUBE_common::create(daeInt bytes) +{ + domFx_samplerCUBE_commonRef ref = new(bytes) domFx_samplerCUBE_common; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_samplerCUBE_common" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::create); + + // Add elements: source, wrap_s, wrap_t, wrap_p, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domFx_samplerCUBE_common::domSource::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemSource)); + _Meta->appendElement(domFx_samplerCUBE_common::domWrap_s::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemWrap_s)); + _Meta->appendElement(domFx_samplerCUBE_common::domWrap_t::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemWrap_t)); + _Meta->appendElement(domFx_samplerCUBE_common::domWrap_p::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemWrap_p)); + _Meta->appendElement(domFx_samplerCUBE_common::domMinfilter::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemMinfilter)); + _Meta->appendElement(domFx_samplerCUBE_common::domMagfilter::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemMagfilter)); + _Meta->appendElement(domFx_samplerCUBE_common::domMipfilter::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemMipfilter)); + _Meta->appendElement(domFx_samplerCUBE_common::domBorder_color::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemBorder_color)); + _Meta->appendElement(domFx_samplerCUBE_common::domMipmap_maxlevel::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemMipmap_maxlevel)); + _Meta->appendElement(domFx_samplerCUBE_common::domMipmap_bias::registerElement(),daeOffsetOf(domFx_samplerCUBE_common,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domSource::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domSourceRef ref = new(bytes) domFx_samplerCUBE_common::domSource; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domSource::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "source" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domSource::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domSource::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domSource , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domSource)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domWrap_s::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domWrap_sRef ref = new(bytes) domFx_samplerCUBE_common::domWrap_s; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domWrap_s::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_s" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domWrap_s::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domWrap_s::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domWrap_s , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domWrap_s)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domWrap_t::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domWrap_tRef ref = new(bytes) domFx_samplerCUBE_common::domWrap_t; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domWrap_t::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_t" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domWrap_t::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domWrap_t::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domWrap_t , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domWrap_t)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domWrap_p::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domWrap_pRef ref = new(bytes) domFx_samplerCUBE_common::domWrap_p; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domWrap_p::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_p" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domWrap_p::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domWrap_p::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domWrap_p , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domWrap_p)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domMinfilter::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domMinfilterRef ref = new(bytes) domFx_samplerCUBE_common::domMinfilter; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domMinfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "minfilter" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domMinfilter::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domMinfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMinfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMinfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domMagfilter::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domMagfilterRef ref = new(bytes) domFx_samplerCUBE_common::domMagfilter; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domMagfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "magfilter" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domMagfilter::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domMagfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMagfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMagfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domMipfilter::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domMipfilterRef ref = new(bytes) domFx_samplerCUBE_common::domMipfilter; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domMipfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipfilter" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domMipfilter::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domMipfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMipfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMipfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domBorder_color::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domBorder_colorRef ref = new(bytes) domFx_samplerCUBE_common::domBorder_color; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domBorder_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "border_color" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domBorder_color::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domBorder_color::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_color_common")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domBorder_color , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domBorder_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domMipmap_maxlevel::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domMipmap_maxlevelRef ref = new(bytes) domFx_samplerCUBE_common::domMipmap_maxlevel; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domMipmap_maxlevel::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_maxlevel" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domMipmap_maxlevel::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domMipmap_maxlevel::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMipmap_maxlevel , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMipmap_maxlevel)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerCUBE_common::domMipmap_bias::create(daeInt bytes) +{ + domFx_samplerCUBE_common::domMipmap_biasRef ref = new(bytes) domFx_samplerCUBE_common::domMipmap_bias; + return ref; +} + + +daeMetaElement * +domFx_samplerCUBE_common::domMipmap_bias::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_bias" ); + _Meta->setStaticPointerAddress(&domFx_samplerCUBE_common::domMipmap_bias::_Meta); + _Meta->registerConstructor(domFx_samplerCUBE_common::domMipmap_bias::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsFloat")); + ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMipmap_bias , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMipmap_bias)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_samplerCUBE_common::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domSource::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domWrap_s::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domWrap_t::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domWrap_p::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domMinfilter::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domMagfilter::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domMipfilter::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domBorder_color::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domMipmap_maxlevel::_Meta = NULL; +daeMetaElement * domFx_samplerCUBE_common::domMipmap_bias::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerDEPTH_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerDEPTH_common.cpp new file mode 100644 index 000000000..b5903d648 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerDEPTH_common.cpp @@ -0,0 +1,232 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_samplerDEPTH_common::create(daeInt bytes) +{ + domFx_samplerDEPTH_commonRef ref = new(bytes) domFx_samplerDEPTH_common; + return ref; +} + + +daeMetaElement * +domFx_samplerDEPTH_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_samplerDEPTH_common" ); + _Meta->setStaticPointerAddress(&domFx_samplerDEPTH_common::_Meta); + _Meta->registerConstructor(domFx_samplerDEPTH_common::create); + + // Add elements: source, wrap_s, wrap_t, minfilter, magfilter + _Meta->appendElement(domFx_samplerDEPTH_common::domSource::registerElement(),daeOffsetOf(domFx_samplerDEPTH_common,elemSource)); + _Meta->appendElement(domFx_samplerDEPTH_common::domWrap_s::registerElement(),daeOffsetOf(domFx_samplerDEPTH_common,elemWrap_s)); + _Meta->appendElement(domFx_samplerDEPTH_common::domWrap_t::registerElement(),daeOffsetOf(domFx_samplerDEPTH_common,elemWrap_t)); + _Meta->appendElement(domFx_samplerDEPTH_common::domMinfilter::registerElement(),daeOffsetOf(domFx_samplerDEPTH_common,elemMinfilter)); + _Meta->appendElement(domFx_samplerDEPTH_common::domMagfilter::registerElement(),daeOffsetOf(domFx_samplerDEPTH_common,elemMagfilter)); + + + _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerDEPTH_common::domSource::create(daeInt bytes) +{ + domFx_samplerDEPTH_common::domSourceRef ref = new(bytes) domFx_samplerDEPTH_common::domSource; + return ref; +} + + +daeMetaElement * +domFx_samplerDEPTH_common::domSource::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "source" ); + _Meta->setStaticPointerAddress(&domFx_samplerDEPTH_common::domSource::_Meta); + _Meta->registerConstructor(domFx_samplerDEPTH_common::domSource::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domSource , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domSource)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerDEPTH_common::domWrap_s::create(daeInt bytes) +{ + domFx_samplerDEPTH_common::domWrap_sRef ref = new(bytes) domFx_samplerDEPTH_common::domWrap_s; + return ref; +} + + +daeMetaElement * +domFx_samplerDEPTH_common::domWrap_s::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_s" ); + _Meta->setStaticPointerAddress(&domFx_samplerDEPTH_common::domWrap_s::_Meta); + _Meta->registerConstructor(domFx_samplerDEPTH_common::domWrap_s::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domWrap_s , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domWrap_s)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerDEPTH_common::domWrap_t::create(daeInt bytes) +{ + domFx_samplerDEPTH_common::domWrap_tRef ref = new(bytes) domFx_samplerDEPTH_common::domWrap_t; + return ref; +} + + +daeMetaElement * +domFx_samplerDEPTH_common::domWrap_t::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_t" ); + _Meta->setStaticPointerAddress(&domFx_samplerDEPTH_common::domWrap_t::_Meta); + _Meta->registerConstructor(domFx_samplerDEPTH_common::domWrap_t::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domWrap_t , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domWrap_t)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerDEPTH_common::domMinfilter::create(daeInt bytes) +{ + domFx_samplerDEPTH_common::domMinfilterRef ref = new(bytes) domFx_samplerDEPTH_common::domMinfilter; + return ref; +} + + +daeMetaElement * +domFx_samplerDEPTH_common::domMinfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "minfilter" ); + _Meta->setStaticPointerAddress(&domFx_samplerDEPTH_common::domMinfilter::_Meta); + _Meta->registerConstructor(domFx_samplerDEPTH_common::domMinfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domMinfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domMinfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerDEPTH_common::domMagfilter::create(daeInt bytes) +{ + domFx_samplerDEPTH_common::domMagfilterRef ref = new(bytes) domFx_samplerDEPTH_common::domMagfilter; + return ref; +} + + +daeMetaElement * +domFx_samplerDEPTH_common::domMagfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "magfilter" ); + _Meta->setStaticPointerAddress(&domFx_samplerDEPTH_common::domMagfilter::_Meta); + _Meta->registerConstructor(domFx_samplerDEPTH_common::domMagfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domMagfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domMagfilter)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_samplerDEPTH_common::_Meta = NULL; +daeMetaElement * domFx_samplerDEPTH_common::domSource::_Meta = NULL; +daeMetaElement * domFx_samplerDEPTH_common::domWrap_s::_Meta = NULL; +daeMetaElement * domFx_samplerDEPTH_common::domWrap_t::_Meta = NULL; +daeMetaElement * domFx_samplerDEPTH_common::domMinfilter::_Meta = NULL; +daeMetaElement * domFx_samplerDEPTH_common::domMagfilter::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerRECT_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerRECT_common.cpp new file mode 100644 index 000000000..2b0120419 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerRECT_common.cpp @@ -0,0 +1,380 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_samplerRECT_common::create(daeInt bytes) +{ + domFx_samplerRECT_commonRef ref = new(bytes) domFx_samplerRECT_common; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_samplerRECT_common" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::create); + + // Add elements: source, wrap_s, wrap_t, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domFx_samplerRECT_common::domSource::registerElement(),daeOffsetOf(domFx_samplerRECT_common,elemSource)); + _Meta->appendElement(domFx_samplerRECT_common::domWrap_s::registerElement(),daeOffsetOf(domFx_samplerRECT_common,elemWrap_s)); + _Meta->appendElement(domFx_samplerRECT_common::domWrap_t::registerElement(),daeOffsetOf(domFx_samplerRECT_common,elemWrap_t)); + _Meta->appendElement(domFx_samplerRECT_common::domMinfilter::registerElement(),daeOffsetOf(domFx_samplerRECT_common,elemMinfilter)); + _Meta->appendElement(domFx_samplerRECT_common::domMagfilter::registerElement(),daeOffsetOf(domFx_samplerRECT_common,elemMagfilter)); + _Meta->appendElement(domFx_samplerRECT_common::domMipfilter::registerElement(),daeOffsetOf(domFx_samplerRECT_common,elemMipfilter)); + _Meta->appendElement(domFx_samplerRECT_common::domBorder_color::registerElement(),daeOffsetOf(domFx_samplerRECT_common,elemBorder_color)); + _Meta->appendElement(domFx_samplerRECT_common::domMipmap_maxlevel::registerElement(),daeOffsetOf(domFx_samplerRECT_common,elemMipmap_maxlevel)); + _Meta->appendElement(domFx_samplerRECT_common::domMipmap_bias::registerElement(),daeOffsetOf(domFx_samplerRECT_common,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerRECT_common::domSource::create(daeInt bytes) +{ + domFx_samplerRECT_common::domSourceRef ref = new(bytes) domFx_samplerRECT_common::domSource; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::domSource::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "source" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::domSource::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::domSource::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domSource , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domSource)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerRECT_common::domWrap_s::create(daeInt bytes) +{ + domFx_samplerRECT_common::domWrap_sRef ref = new(bytes) domFx_samplerRECT_common::domWrap_s; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::domWrap_s::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_s" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::domWrap_s::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::domWrap_s::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domWrap_s , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domWrap_s)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerRECT_common::domWrap_t::create(daeInt bytes) +{ + domFx_samplerRECT_common::domWrap_tRef ref = new(bytes) domFx_samplerRECT_common::domWrap_t; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::domWrap_t::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_t" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::domWrap_t::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::domWrap_t::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); + ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domWrap_t , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domWrap_t)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerRECT_common::domMinfilter::create(daeInt bytes) +{ + domFx_samplerRECT_common::domMinfilterRef ref = new(bytes) domFx_samplerRECT_common::domMinfilter; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::domMinfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "minfilter" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::domMinfilter::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::domMinfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMinfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMinfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerRECT_common::domMagfilter::create(daeInt bytes) +{ + domFx_samplerRECT_common::domMagfilterRef ref = new(bytes) domFx_samplerRECT_common::domMagfilter; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::domMagfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "magfilter" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::domMagfilter::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::domMagfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMagfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMagfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerRECT_common::domMipfilter::create(daeInt bytes) +{ + domFx_samplerRECT_common::domMipfilterRef ref = new(bytes) domFx_samplerRECT_common::domMipfilter; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::domMipfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipfilter" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::domMipfilter::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::domMipfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMipfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMipfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerRECT_common::domBorder_color::create(daeInt bytes) +{ + domFx_samplerRECT_common::domBorder_colorRef ref = new(bytes) domFx_samplerRECT_common::domBorder_color; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::domBorder_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "border_color" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::domBorder_color::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::domBorder_color::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_color_common")); + ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domBorder_color , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domBorder_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerRECT_common::domMipmap_maxlevel::create(daeInt bytes) +{ + domFx_samplerRECT_common::domMipmap_maxlevelRef ref = new(bytes) domFx_samplerRECT_common::domMipmap_maxlevel; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::domMipmap_maxlevel::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_maxlevel" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::domMipmap_maxlevel::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::domMipmap_maxlevel::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMipmap_maxlevel , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMipmap_maxlevel)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_samplerRECT_common::domMipmap_bias::create(daeInt bytes) +{ + domFx_samplerRECT_common::domMipmap_biasRef ref = new(bytes) domFx_samplerRECT_common::domMipmap_bias; + return ref; +} + + +daeMetaElement * +domFx_samplerRECT_common::domMipmap_bias::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_bias" ); + _Meta->setStaticPointerAddress(&domFx_samplerRECT_common::domMipmap_bias::_Meta); + _Meta->registerConstructor(domFx_samplerRECT_common::domMipmap_bias::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsFloat")); + ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMipmap_bias , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMipmap_bias)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_samplerRECT_common::_Meta = NULL; +daeMetaElement * domFx_samplerRECT_common::domSource::_Meta = NULL; +daeMetaElement * domFx_samplerRECT_common::domWrap_s::_Meta = NULL; +daeMetaElement * domFx_samplerRECT_common::domWrap_t::_Meta = NULL; +daeMetaElement * domFx_samplerRECT_common::domMinfilter::_Meta = NULL; +daeMetaElement * domFx_samplerRECT_common::domMagfilter::_Meta = NULL; +daeMetaElement * domFx_samplerRECT_common::domMipfilter::_Meta = NULL; +daeMetaElement * domFx_samplerRECT_common::domBorder_color::_Meta = NULL; +daeMetaElement * domFx_samplerRECT_common::domMipmap_maxlevel::_Meta = NULL; +daeMetaElement * domFx_samplerRECT_common::domMipmap_bias::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_setparam_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_setparam_common.cpp new file mode 100644 index 000000000..6e7a14dc9 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_setparam_common.cpp @@ -0,0 +1,97 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_setparam_common::create(daeInt bytes) +{ + domFx_setparam_commonRef ref = new(bytes) domFx_setparam_common; + return ref; +} + + +daeMetaElement * +domFx_setparam_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_setparam_common" ); + _Meta->setStaticPointerAddress(&domFx_setparam_common::_Meta); + _Meta->registerConstructor(domFx_setparam_common::create); + + // Add elements: annotate, fx_basic_type_common + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domFx_setparam_common,elemAnnotate_array),"annotate"); + _Meta->appendElement(domFx_basic_type_common::registerElement(),daeOffsetOf(domFx_setparam_common,elemFx_basic_type_common)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[1], "fx_surface_common"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[1], "fx_sampler1D_common"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[1], "fx_sampler2D_common"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[1], "fx_sampler3D_common"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[1], "fx_samplerCUBE_common"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[1], "fx_samplerRECT_common"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[1], "fx_samplerDEPTH_common"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[1]); + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_setparam_common , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_setparam_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_setparam_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_stenciltarget_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_stenciltarget_common.cpp new file mode 100644 index 000000000..07273be58 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_stenciltarget_common.cpp @@ -0,0 +1,81 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_stenciltarget_common::create(daeInt bytes) +{ + domFx_stenciltarget_commonRef ref = new(bytes) domFx_stenciltarget_common; + return ref; +} + + +daeMetaElement * +domFx_stenciltarget_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_stenciltarget_common" ); + _Meta->setStaticPointerAddress(&domFx_stenciltarget_common::_Meta); + _Meta->registerConstructor(domFx_stenciltarget_common::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domFx_stenciltarget_common , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("xsNonNegativeInteger")); + ma->setOffset( daeOffsetOf( domFx_stenciltarget_common , attrIndex )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: slice + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "slice" ); + ma->setType( daeAtomicType::get("xsNonNegativeInteger")); + ma->setOffset( daeOffsetOf( domFx_stenciltarget_common , attrSlice )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_stenciltarget_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_stenciltarget_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_common.cpp new file mode 100644 index 000000000..39194b4cb --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_common.cpp @@ -0,0 +1,320 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domFx_surface_common::create(daeInt bytes) +{ + domFx_surface_commonRef ref = new(bytes) domFx_surface_common; + return ref; +} + + +daeMetaElement * +domFx_surface_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fx_surface_common" ); + _Meta->setStaticPointerAddress(&domFx_surface_common::_Meta); + _Meta->registerConstructor(domFx_surface_common::create); + + // Add elements: init_from, format, size, viewport_ratio, mip_levels, mipmap_generate + _Meta->appendArrayElement(domFx_surface_common::domInit_from::registerElement(),daeOffsetOf(domFx_surface_common,elemInit_from_array)); + _Meta->appendElement(domFx_surface_common::domFormat::registerElement(),daeOffsetOf(domFx_surface_common,elemFormat)); + _Meta->appendElement(domFx_surface_common::domSize::registerElement(),daeOffsetOf(domFx_surface_common,elemSize)); + _Meta->appendElement(domFx_surface_common::domViewport_ratio::registerElement(),daeOffsetOf(domFx_surface_common,elemViewport_ratio)); + _Meta->appendElement(domFx_surface_common::domMip_levels::registerElement(),daeOffsetOf(domFx_surface_common,elemMip_levels)); + _Meta->appendElement(domFx_surface_common::domMipmap_generate::registerElement(),daeOffsetOf(domFx_surface_common,elemMipmap_generate)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domFx_surface_common,_contents)); + + + // Add attribute: type + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "type" ); + ma->setType( daeAtomicType::get("Fx_surface_type_enum")); + ma->setOffset( daeOffsetOf( domFx_surface_common , attrType )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_surface_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_surface_common::domInit_from::create(daeInt bytes) +{ + domFx_surface_common::domInit_fromRef ref = new(bytes) domFx_surface_common::domInit_from; + return ref; +} + + +daeMetaElement * +domFx_surface_common::domInit_from::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "init_from" ); + _Meta->setStaticPointerAddress(&domFx_surface_common::domInit_from::_Meta); + _Meta->registerConstructor(domFx_surface_common::domInit_from::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsIDREFS")); + ma->setOffset( daeOffsetOf( domFx_surface_common::domInit_from , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: mip + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "mip" ); + ma->setType( daeAtomicType::get("xsUnsignedInt")); + ma->setOffset( daeOffsetOf( domFx_surface_common::domInit_from , attrMip )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: slice + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "slice" ); + ma->setType( daeAtomicType::get("xsUnsignedInt")); + ma->setOffset( daeOffsetOf( domFx_surface_common::domInit_from , attrSlice )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: face + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "face" ); + ma->setType( daeAtomicType::get("Fx_surface_face_enum")); + ma->setOffset( daeOffsetOf( domFx_surface_common::domInit_from , attrFace )); + ma->setContainer( _Meta ); + ma->setDefault( "POSITIVE_X"); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_surface_common::domInit_from)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_surface_common::domFormat::create(daeInt bytes) +{ + domFx_surface_common::domFormatRef ref = new(bytes) domFx_surface_common::domFormat; + return ref; +} + + +daeMetaElement * +domFx_surface_common::domFormat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "format" ); + _Meta->setStaticPointerAddress(&domFx_surface_common::domFormat::_Meta); + _Meta->registerConstructor(domFx_surface_common::domFormat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domFx_surface_common::domFormat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_surface_common::domFormat)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_surface_common::domSize::create(daeInt bytes) +{ + domFx_surface_common::domSizeRef ref = new(bytes) domFx_surface_common::domSize; + return ref; +} + + +daeMetaElement * +domFx_surface_common::domSize::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "size" ); + _Meta->setStaticPointerAddress(&domFx_surface_common::domSize::_Meta); + _Meta->registerConstructor(domFx_surface_common::domSize::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int3")); + ma->setOffset( daeOffsetOf( domFx_surface_common::domSize , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_surface_common::domSize)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_surface_common::domViewport_ratio::create(daeInt bytes) +{ + domFx_surface_common::domViewport_ratioRef ref = new(bytes) domFx_surface_common::domViewport_ratio; + return ref; +} + + +daeMetaElement * +domFx_surface_common::domViewport_ratio::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "viewport_ratio" ); + _Meta->setStaticPointerAddress(&domFx_surface_common::domViewport_ratio::_Meta); + _Meta->registerConstructor(domFx_surface_common::domViewport_ratio::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domFx_surface_common::domViewport_ratio , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_surface_common::domViewport_ratio)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_surface_common::domMip_levels::create(daeInt bytes) +{ + domFx_surface_common::domMip_levelsRef ref = new(bytes) domFx_surface_common::domMip_levels; + return ref; +} + + +daeMetaElement * +domFx_surface_common::domMip_levels::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mip_levels" ); + _Meta->setStaticPointerAddress(&domFx_surface_common::domMip_levels::_Meta); + _Meta->registerConstructor(domFx_surface_common::domMip_levels::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsUnsignedInt")); + ma->setOffset( daeOffsetOf( domFx_surface_common::domMip_levels , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_surface_common::domMip_levels)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domFx_surface_common::domMipmap_generate::create(daeInt bytes) +{ + domFx_surface_common::domMipmap_generateRef ref = new(bytes) domFx_surface_common::domMipmap_generate; + return ref; +} + + +daeMetaElement * +domFx_surface_common::domMipmap_generate::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_generate" ); + _Meta->setStaticPointerAddress(&domFx_surface_common::domMipmap_generate::_Meta); + _Meta->registerConstructor(domFx_surface_common::domMipmap_generate::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsBoolean")); + ma->setOffset( daeOffsetOf( domFx_surface_common::domMipmap_generate , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domFx_surface_common::domMipmap_generate)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domFx_surface_common::_Meta = NULL; +daeMetaElement * domFx_surface_common::domInit_from::_Meta = NULL; +daeMetaElement * domFx_surface_common::domFormat::_Meta = NULL; +daeMetaElement * domFx_surface_common::domSize::_Meta = NULL; +daeMetaElement * domFx_surface_common::domViewport_ratio::_Meta = NULL; +daeMetaElement * domFx_surface_common::domMip_levels::_Meta = NULL; +daeMetaElement * domFx_surface_common::domMipmap_generate::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGeometry.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGeometry.cpp new file mode 100644 index 000000000..0b19e22c2 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGeometry.cpp @@ -0,0 +1,77 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGeometry::create(daeInt bytes) +{ + domGeometryRef ref = new(bytes) domGeometry; + return ref; +} + + +daeMetaElement * +domGeometry::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "geometry" ); + _Meta->setStaticPointerAddress(&domGeometry::_Meta); + _Meta->registerConstructor(domGeometry::create); + + // Add elements: asset, convex_mesh, mesh, spline, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domGeometry,elemAsset)); + _Meta->appendElement(domConvex_mesh::registerElement(),daeOffsetOf(domGeometry,elemConvex_mesh)); + _Meta->appendElement(domMesh::registerElement(),daeOffsetOf(domGeometry,elemMesh)); + _Meta->appendElement(domSpline::registerElement(),daeOffsetOf(domGeometry,elemSpline)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domGeometry,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGeometry,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domGeometry , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGeometry , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGeometry)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGeometry::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_hook_abstract.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_hook_abstract.cpp new file mode 100644 index 000000000..f953a88af --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGl_hook_abstract.cpp @@ -0,0 +1,47 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGl_hook_abstract::create(daeInt bytes) +{ + domGl_hook_abstractRef ref = new(bytes) domGl_hook_abstract; + return ref; +} + + +daeMetaElement * +domGl_hook_abstract::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gl_hook_abstract" ); + _Meta->setStaticPointerAddress(&domGl_hook_abstract::_Meta); + _Meta->registerConstructor(domGl_hook_abstract::create); + + _Meta->setIsAbstract( true ); + + + _Meta->setElementSize(sizeof(domGl_hook_abstract)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGl_hook_abstract::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_pipeline_settings.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_pipeline_settings.cpp new file mode 100644 index 000000000..34dbaa72a --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGl_pipeline_settings.cpp @@ -0,0 +1,7461 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGl_pipeline_settings::create(daeInt bytes) +{ + domGl_pipeline_settingsRef ref = new(bytes) domGl_pipeline_settings; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gl_pipeline_settings" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::create); + + _Meta->setIsTransparent( true ); + // Add elements: alpha_func, blend_func, blend_func_separate, blend_equation, blend_equation_separate, color_material, cull_face, depth_func, fog_mode, fog_coord_src, front_face, light_model_color_control, logic_op, polygon_mode, shade_model, stencil_func, stencil_op, stencil_func_separate, stencil_op_separate, stencil_mask_separate, light_enable, light_ambient, light_diffuse, light_specular, light_position, light_constant_attenuation, light_linear_attenuation, light_quadratic_attenuation, light_spot_cutoff, light_spot_direction, light_spot_exponent, texture1D, texture2D, texture3D, textureCUBE, textureRECT, textureDEPTH, texture1D_enable, texture2D_enable, texture3D_enable, textureCUBE_enable, textureRECT_enable, textureDEPTH_enable, texture_env_color, texture_env_mode, clip_plane, clip_plane_enable, blend_color, clear_color, clear_stencil, clear_depth, color_mask, depth_bounds, depth_mask, depth_range, fog_density, fog_start, fog_end, fog_color, light_model_ambient, lighting_enable, line_stipple, line_width, material_ambient, material_diffuse, material_emission, material_shininess, material_specular, model_view_matrix, point_distance_attenuation, point_fade_threshold_size, point_size, point_size_min, point_size_max, polygon_offset, projection_matrix, scissor, stencil_mask, alpha_test_enable, auto_normal_enable, blend_enable, color_logic_op_enable, cull_face_enable, depth_bounds_enable, depth_clamp_enable, depth_test_enable, dither_enable, fog_enable, light_model_local_viewer_enable, light_model_two_side_enable, line_smooth_enable, line_stipple_enable, logic_op_enable, multisample_enable, normalize_enable, point_smooth_enable, polygon_offset_fill_enable, polygon_offset_line_enable, polygon_offset_point_enable, polygon_smooth_enable, polygon_stipple_enable, rescale_normal_enable, sample_alpha_to_coverage_enable, sample_alpha_to_one_enable, sample_coverage_enable, scissor_test_enable, stencil_test_enable, gl_hook_abstract + _Meta->appendElement(domGl_pipeline_settings::domAlpha_func::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemAlpha_func)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_func::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemBlend_func)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_func_separate::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemBlend_func_separate)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_equation::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemBlend_equation)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_equation_separate::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemBlend_equation_separate)); + _Meta->appendElement(domGl_pipeline_settings::domColor_material::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemColor_material)); + _Meta->appendElement(domGl_pipeline_settings::domCull_face::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemCull_face)); + _Meta->appendElement(domGl_pipeline_settings::domDepth_func::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemDepth_func)); + _Meta->appendElement(domGl_pipeline_settings::domFog_mode::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemFog_mode)); + _Meta->appendElement(domGl_pipeline_settings::domFog_coord_src::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemFog_coord_src)); + _Meta->appendElement(domGl_pipeline_settings::domFront_face::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemFront_face)); + _Meta->appendElement(domGl_pipeline_settings::domLight_model_color_control::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_model_color_control)); + _Meta->appendElement(domGl_pipeline_settings::domLogic_op::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLogic_op)); + _Meta->appendElement(domGl_pipeline_settings::domPolygon_mode::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPolygon_mode)); + _Meta->appendElement(domGl_pipeline_settings::domShade_model::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemShade_model)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_func::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemStencil_func)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_op::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemStencil_op)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_func_separate::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemStencil_func_separate)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_op_separate::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemStencil_op_separate)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_mask_separate::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemStencil_mask_separate)); + _Meta->appendElement(domGl_pipeline_settings::domLight_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_enable)); + _Meta->appendElement(domGl_pipeline_settings::domLight_ambient::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_ambient)); + _Meta->appendElement(domGl_pipeline_settings::domLight_diffuse::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_diffuse)); + _Meta->appendElement(domGl_pipeline_settings::domLight_specular::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_specular)); + _Meta->appendElement(domGl_pipeline_settings::domLight_position::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_position)); + _Meta->appendElement(domGl_pipeline_settings::domLight_constant_attenuation::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_constant_attenuation)); + _Meta->appendElement(domGl_pipeline_settings::domLight_linear_attenuation::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_linear_attenuation)); + _Meta->appendElement(domGl_pipeline_settings::domLight_quadratic_attenuation::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_quadratic_attenuation)); + _Meta->appendElement(domGl_pipeline_settings::domLight_spot_cutoff::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_spot_cutoff)); + _Meta->appendElement(domGl_pipeline_settings::domLight_spot_direction::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_spot_direction)); + _Meta->appendElement(domGl_pipeline_settings::domLight_spot_exponent::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_spot_exponent)); + _Meta->appendElement(domGl_pipeline_settings::domTexture1D::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTexture1D)); + _Meta->appendElement(domGl_pipeline_settings::domTexture2D::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTexture2D)); + _Meta->appendElement(domGl_pipeline_settings::domTexture3D::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTexture3D)); + _Meta->appendElement(domGl_pipeline_settings::domTextureCUBE::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTextureCUBE)); + _Meta->appendElement(domGl_pipeline_settings::domTextureRECT::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTextureRECT)); + _Meta->appendElement(domGl_pipeline_settings::domTextureDEPTH::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTextureDEPTH)); + _Meta->appendElement(domGl_pipeline_settings::domTexture1D_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTexture1D_enable)); + _Meta->appendElement(domGl_pipeline_settings::domTexture2D_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTexture2D_enable)); + _Meta->appendElement(domGl_pipeline_settings::domTexture3D_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTexture3D_enable)); + _Meta->appendElement(domGl_pipeline_settings::domTextureCUBE_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTextureCUBE_enable)); + _Meta->appendElement(domGl_pipeline_settings::domTextureRECT_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTextureRECT_enable)); + _Meta->appendElement(domGl_pipeline_settings::domTextureDEPTH_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTextureDEPTH_enable)); + _Meta->appendElement(domGl_pipeline_settings::domTexture_env_color::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTexture_env_color)); + _Meta->appendElement(domGl_pipeline_settings::domTexture_env_mode::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemTexture_env_mode)); + _Meta->appendElement(domGl_pipeline_settings::domClip_plane::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemClip_plane)); + _Meta->appendElement(domGl_pipeline_settings::domClip_plane_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemClip_plane_enable)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_color::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemBlend_color)); + _Meta->appendElement(domGl_pipeline_settings::domClear_color::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemClear_color)); + _Meta->appendElement(domGl_pipeline_settings::domClear_stencil::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemClear_stencil)); + _Meta->appendElement(domGl_pipeline_settings::domClear_depth::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemClear_depth)); + _Meta->appendElement(domGl_pipeline_settings::domColor_mask::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemColor_mask)); + _Meta->appendElement(domGl_pipeline_settings::domDepth_bounds::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemDepth_bounds)); + _Meta->appendElement(domGl_pipeline_settings::domDepth_mask::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemDepth_mask)); + _Meta->appendElement(domGl_pipeline_settings::domDepth_range::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemDepth_range)); + _Meta->appendElement(domGl_pipeline_settings::domFog_density::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemFog_density)); + _Meta->appendElement(domGl_pipeline_settings::domFog_start::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemFog_start)); + _Meta->appendElement(domGl_pipeline_settings::domFog_end::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemFog_end)); + _Meta->appendElement(domGl_pipeline_settings::domFog_color::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemFog_color)); + _Meta->appendElement(domGl_pipeline_settings::domLight_model_ambient::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_model_ambient)); + _Meta->appendElement(domGl_pipeline_settings::domLighting_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLighting_enable)); + _Meta->appendElement(domGl_pipeline_settings::domLine_stipple::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLine_stipple)); + _Meta->appendElement(domGl_pipeline_settings::domLine_width::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLine_width)); + _Meta->appendElement(domGl_pipeline_settings::domMaterial_ambient::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemMaterial_ambient)); + _Meta->appendElement(domGl_pipeline_settings::domMaterial_diffuse::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemMaterial_diffuse)); + _Meta->appendElement(domGl_pipeline_settings::domMaterial_emission::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemMaterial_emission)); + _Meta->appendElement(domGl_pipeline_settings::domMaterial_shininess::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemMaterial_shininess)); + _Meta->appendElement(domGl_pipeline_settings::domMaterial_specular::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemMaterial_specular)); + _Meta->appendElement(domGl_pipeline_settings::domModel_view_matrix::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemModel_view_matrix)); + _Meta->appendElement(domGl_pipeline_settings::domPoint_distance_attenuation::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPoint_distance_attenuation)); + _Meta->appendElement(domGl_pipeline_settings::domPoint_fade_threshold_size::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPoint_fade_threshold_size)); + _Meta->appendElement(domGl_pipeline_settings::domPoint_size::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPoint_size)); + _Meta->appendElement(domGl_pipeline_settings::domPoint_size_min::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPoint_size_min)); + _Meta->appendElement(domGl_pipeline_settings::domPoint_size_max::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPoint_size_max)); + _Meta->appendElement(domGl_pipeline_settings::domPolygon_offset::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPolygon_offset)); + _Meta->appendElement(domGl_pipeline_settings::domProjection_matrix::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemProjection_matrix)); + _Meta->appendElement(domGl_pipeline_settings::domScissor::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemScissor)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_mask::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemStencil_mask)); + _Meta->appendElement(domGl_pipeline_settings::domAlpha_test_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemAlpha_test_enable)); + _Meta->appendElement(domGl_pipeline_settings::domAuto_normal_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemAuto_normal_enable)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemBlend_enable)); + _Meta->appendElement(domGl_pipeline_settings::domColor_logic_op_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemColor_logic_op_enable)); + _Meta->appendElement(domGl_pipeline_settings::domCull_face_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemCull_face_enable)); + _Meta->appendElement(domGl_pipeline_settings::domDepth_bounds_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemDepth_bounds_enable)); + _Meta->appendElement(domGl_pipeline_settings::domDepth_clamp_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemDepth_clamp_enable)); + _Meta->appendElement(domGl_pipeline_settings::domDepth_test_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemDepth_test_enable)); + _Meta->appendElement(domGl_pipeline_settings::domDither_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemDither_enable)); + _Meta->appendElement(domGl_pipeline_settings::domFog_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemFog_enable)); + _Meta->appendElement(domGl_pipeline_settings::domLight_model_local_viewer_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_model_local_viewer_enable)); + _Meta->appendElement(domGl_pipeline_settings::domLight_model_two_side_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLight_model_two_side_enable)); + _Meta->appendElement(domGl_pipeline_settings::domLine_smooth_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLine_smooth_enable)); + _Meta->appendElement(domGl_pipeline_settings::domLine_stipple_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLine_stipple_enable)); + _Meta->appendElement(domGl_pipeline_settings::domLogic_op_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemLogic_op_enable)); + _Meta->appendElement(domGl_pipeline_settings::domMultisample_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemMultisample_enable)); + _Meta->appendElement(domGl_pipeline_settings::domNormalize_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemNormalize_enable)); + _Meta->appendElement(domGl_pipeline_settings::domPoint_smooth_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPoint_smooth_enable)); + _Meta->appendElement(domGl_pipeline_settings::domPolygon_offset_fill_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPolygon_offset_fill_enable)); + _Meta->appendElement(domGl_pipeline_settings::domPolygon_offset_line_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPolygon_offset_line_enable)); + _Meta->appendElement(domGl_pipeline_settings::domPolygon_offset_point_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPolygon_offset_point_enable)); + _Meta->appendElement(domGl_pipeline_settings::domPolygon_smooth_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPolygon_smooth_enable)); + _Meta->appendElement(domGl_pipeline_settings::domPolygon_stipple_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemPolygon_stipple_enable)); + _Meta->appendElement(domGl_pipeline_settings::domRescale_normal_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemRescale_normal_enable)); + _Meta->appendElement(domGl_pipeline_settings::domSample_alpha_to_coverage_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemSample_alpha_to_coverage_enable)); + _Meta->appendElement(domGl_pipeline_settings::domSample_alpha_to_one_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemSample_alpha_to_one_enable)); + _Meta->appendElement(domGl_pipeline_settings::domSample_coverage_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemSample_coverage_enable)); + _Meta->appendElement(domGl_pipeline_settings::domScissor_test_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemScissor_test_enable)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_test_enable::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemStencil_test_enable)); + _Meta->appendElement(domGl_hook_abstract::registerElement(),daeOffsetOf(domGl_pipeline_settings,elemGl_hook_abstract)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGl_pipeline_settings,_contents)); + + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domAlpha_func::create(daeInt bytes) +{ + domGl_pipeline_settings::domAlpha_funcRef ref = new(bytes) domGl_pipeline_settings::domAlpha_func; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domAlpha_func::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "alpha_func" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domAlpha_func::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domAlpha_func::create); + + // Add elements: func, value + _Meta->appendElement(domGl_pipeline_settings::domAlpha_func::domFunc::registerElement(),daeOffsetOf(domGl_pipeline_settings::domAlpha_func,elemFunc)); + _Meta->appendElement(domGl_pipeline_settings::domAlpha_func::domValue::registerElement(),daeOffsetOf(domGl_pipeline_settings::domAlpha_func,elemValue)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAlpha_func)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domAlpha_func::domFunc::create(daeInt bytes) +{ + domGl_pipeline_settings::domAlpha_func::domFuncRef ref = new(bytes) domGl_pipeline_settings::domAlpha_func::domFunc; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domAlpha_func::domFunc::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "func" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domAlpha_func::domFunc::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domAlpha_func::domFunc::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_func_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_func::domFunc , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ALWAYS"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_func::domFunc , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAlpha_func::domFunc)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domAlpha_func::domValue::create(daeInt bytes) +{ + domGl_pipeline_settings::domAlpha_func::domValueRef ref = new(bytes) domGl_pipeline_settings::domAlpha_func::domValue; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domAlpha_func::domValue::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "value" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domAlpha_func::domValue::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domAlpha_func::domValue::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_alpha_value_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_func::domValue , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0.0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_func::domValue , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAlpha_func::domValue)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_func::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_funcRef ref = new(bytes) domGl_pipeline_settings::domBlend_func; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_func::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "blend_func" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_func::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_func::create); + + // Add elements: src, dest + _Meta->appendElement(domGl_pipeline_settings::domBlend_func::domSrc::registerElement(),daeOffsetOf(domGl_pipeline_settings::domBlend_func,elemSrc)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_func::domDest::registerElement(),daeOffsetOf(domGl_pipeline_settings::domBlend_func,elemDest)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_func::domSrc::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_func::domSrcRef ref = new(bytes) domGl_pipeline_settings::domBlend_func::domSrc; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_func::domSrc::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "src" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_func::domSrc::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_func::domSrc::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func::domSrc , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ONE"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func::domSrc , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func::domSrc)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_func::domDest::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_func::domDestRef ref = new(bytes) domGl_pipeline_settings::domBlend_func::domDest; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_func::domDest::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "dest" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_func::domDest::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_func::domDest::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func::domDest , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ZERO"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func::domDest , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func::domDest)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_func_separate::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_func_separateRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_func_separate::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "blend_func_separate" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_func_separate::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_func_separate::create); + + // Add elements: src_rgb, dest_rgb, src_alpha, dest_alpha + _Meta->appendElement(domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::registerElement(),daeOffsetOf(domGl_pipeline_settings::domBlend_func_separate,elemSrc_rgb)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::registerElement(),daeOffsetOf(domGl_pipeline_settings::domBlend_func_separate,elemDest_rgb)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::registerElement(),daeOffsetOf(domGl_pipeline_settings::domBlend_func_separate,elemSrc_alpha)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::registerElement(),daeOffsetOf(domGl_pipeline_settings::domBlend_func_separate,elemDest_alpha)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_func_separate::domSrc_rgbRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "src_rgb" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ONE"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_func_separate::domDest_rgbRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate::domDest_rgb; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "dest_rgb" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domDest_rgb , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ZERO"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domDest_rgb , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate::domDest_rgb)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_func_separate::domSrc_alphaRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "src_alpha" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ONE"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_func_separate::domDest_alphaRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate::domDest_alpha; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "dest_alpha" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domDest_alpha , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ZERO"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domDest_alpha , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate::domDest_alpha)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_equation::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_equationRef ref = new(bytes) domGl_pipeline_settings::domBlend_equation; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_equation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "blend_equation" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_equation::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_equation::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_equation_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "FUNC_ADD"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_equation)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_equation_separate::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_equation_separateRef ref = new(bytes) domGl_pipeline_settings::domBlend_equation_separate; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_equation_separate::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "blend_equation_separate" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_equation_separate::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_equation_separate::create); + + // Add elements: rgb, alpha + _Meta->appendElement(domGl_pipeline_settings::domBlend_equation_separate::domRgb::registerElement(),daeOffsetOf(domGl_pipeline_settings::domBlend_equation_separate,elemRgb)); + _Meta->appendElement(domGl_pipeline_settings::domBlend_equation_separate::domAlpha::registerElement(),daeOffsetOf(domGl_pipeline_settings::domBlend_equation_separate,elemAlpha)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_equation_separate)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_equation_separate::domRgb::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_equation_separate::domRgbRef ref = new(bytes) domGl_pipeline_settings::domBlend_equation_separate::domRgb; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_equation_separate::domRgb::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "rgb" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_equation_separate::domRgb::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_equation_separate::domRgb::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_equation_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation_separate::domRgb , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "FUNC_ADD"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation_separate::domRgb , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_equation_separate::domRgb)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_equation_separate::domAlpha::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_equation_separate::domAlphaRef ref = new(bytes) domGl_pipeline_settings::domBlend_equation_separate::domAlpha; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_equation_separate::domAlpha::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "alpha" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_equation_separate::domAlpha::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_equation_separate::domAlpha::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_equation_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation_separate::domAlpha , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "FUNC_ADD"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation_separate::domAlpha , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_equation_separate::domAlpha)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domColor_material::create(daeInt bytes) +{ + domGl_pipeline_settings::domColor_materialRef ref = new(bytes) domGl_pipeline_settings::domColor_material; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domColor_material::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "color_material" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domColor_material::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domColor_material::create); + + // Add elements: face, mode + _Meta->appendElement(domGl_pipeline_settings::domColor_material::domFace::registerElement(),daeOffsetOf(domGl_pipeline_settings::domColor_material,elemFace)); + _Meta->appendElement(domGl_pipeline_settings::domColor_material::domMode::registerElement(),daeOffsetOf(domGl_pipeline_settings::domColor_material,elemMode)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_material)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domColor_material::domFace::create(daeInt bytes) +{ + domGl_pipeline_settings::domColor_material::domFaceRef ref = new(bytes) domGl_pipeline_settings::domColor_material::domFace; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domColor_material::domFace::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "face" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domColor_material::domFace::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domColor_material::domFace::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_face_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material::domFace , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "FRONT_AND_BACK"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material::domFace , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_material::domFace)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domColor_material::domMode::create(daeInt bytes) +{ + domGl_pipeline_settings::domColor_material::domModeRef ref = new(bytes) domGl_pipeline_settings::domColor_material::domMode; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domColor_material::domMode::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mode" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domColor_material::domMode::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domColor_material::domMode::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_material_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material::domMode , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "AMBIENT_AND_DIFFUSE"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material::domMode , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_material::domMode)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domCull_face::create(daeInt bytes) +{ + domGl_pipeline_settings::domCull_faceRef ref = new(bytes) domGl_pipeline_settings::domCull_face; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domCull_face::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cull_face" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domCull_face::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domCull_face::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_face_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domCull_face , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "BACK"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domCull_face , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domCull_face)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domDepth_func::create(daeInt bytes) +{ + domGl_pipeline_settings::domDepth_funcRef ref = new(bytes) domGl_pipeline_settings::domDepth_func; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domDepth_func::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_func" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domDepth_func::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domDepth_func::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_func_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_func , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ALWAYS"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_func , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_func)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domFog_mode::create(daeInt bytes) +{ + domGl_pipeline_settings::domFog_modeRef ref = new(bytes) domGl_pipeline_settings::domFog_mode; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domFog_mode::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_mode" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domFog_mode::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domFog_mode::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_fog_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_mode , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "EXP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_mode , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_mode)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domFog_coord_src::create(daeInt bytes) +{ + domGl_pipeline_settings::domFog_coord_srcRef ref = new(bytes) domGl_pipeline_settings::domFog_coord_src; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domFog_coord_src::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_coord_src" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domFog_coord_src::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domFog_coord_src::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_fog_coord_src_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_coord_src , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "FOG_COORDINATE"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_coord_src , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_coord_src)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domFront_face::create(daeInt bytes) +{ + domGl_pipeline_settings::domFront_faceRef ref = new(bytes) domGl_pipeline_settings::domFront_face; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domFront_face::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "front_face" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domFront_face::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domFront_face::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_front_face_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFront_face , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "CCW"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFront_face , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFront_face)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_model_color_control::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_model_color_controlRef ref = new(bytes) domGl_pipeline_settings::domLight_model_color_control; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_model_color_control::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_model_color_control" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_model_color_control::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_model_color_control::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_light_model_color_control_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_color_control , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "SINGLE_COLOR"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_color_control , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_model_color_control)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLogic_op::create(daeInt bytes) +{ + domGl_pipeline_settings::domLogic_opRef ref = new(bytes) domGl_pipeline_settings::domLogic_op; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLogic_op::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "logic_op" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLogic_op::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLogic_op::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_logic_op_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLogic_op , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "COPY"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLogic_op , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLogic_op)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPolygon_mode::create(daeInt bytes) +{ + domGl_pipeline_settings::domPolygon_modeRef ref = new(bytes) domGl_pipeline_settings::domPolygon_mode; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPolygon_mode::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygon_mode" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPolygon_mode::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPolygon_mode::create); + + // Add elements: face, mode + _Meta->appendElement(domGl_pipeline_settings::domPolygon_mode::domFace::registerElement(),daeOffsetOf(domGl_pipeline_settings::domPolygon_mode,elemFace)); + _Meta->appendElement(domGl_pipeline_settings::domPolygon_mode::domMode::registerElement(),daeOffsetOf(domGl_pipeline_settings::domPolygon_mode,elemMode)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_mode)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPolygon_mode::domFace::create(daeInt bytes) +{ + domGl_pipeline_settings::domPolygon_mode::domFaceRef ref = new(bytes) domGl_pipeline_settings::domPolygon_mode::domFace; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPolygon_mode::domFace::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "face" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPolygon_mode::domFace::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPolygon_mode::domFace::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_face_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_mode::domFace , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "FRONT_AND_BACK"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_mode::domFace , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_mode::domFace)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPolygon_mode::domMode::create(daeInt bytes) +{ + domGl_pipeline_settings::domPolygon_mode::domModeRef ref = new(bytes) domGl_pipeline_settings::domPolygon_mode::domMode; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPolygon_mode::domMode::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mode" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPolygon_mode::domMode::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPolygon_mode::domMode::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_polygon_mode_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_mode::domMode , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "FILL"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_mode::domMode , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_mode::domMode)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domShade_model::create(daeInt bytes) +{ + domGl_pipeline_settings::domShade_modelRef ref = new(bytes) domGl_pipeline_settings::domShade_model; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domShade_model::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "shade_model" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domShade_model::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domShade_model::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_shade_model_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domShade_model , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "SMOOTH"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domShade_model , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domShade_model)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_func::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_funcRef ref = new(bytes) domGl_pipeline_settings::domStencil_func; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_func::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_func" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_func::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_func::create); + + // Add elements: func, ref, mask + _Meta->appendElement(domGl_pipeline_settings::domStencil_func::domFunc::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_func,elemFunc)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_func::domRef::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_func,elemRef)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_func::domMask::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_func,elemMask)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_func::domFunc::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_func::domFuncRef ref = new(bytes) domGl_pipeline_settings::domStencil_func::domFunc; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_func::domFunc::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "func" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_func::domFunc::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_func::domFunc::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_func_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domFunc , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ALWAYS"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domFunc , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func::domFunc)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_func::domRef::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_func::domRefRef ref = new(bytes) domGl_pipeline_settings::domStencil_func::domRef; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_func::domRef::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "ref" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_func::domRef::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_func::domRef::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domRef , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domRef , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func::domRef)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_func::domMask::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_func::domMaskRef ref = new(bytes) domGl_pipeline_settings::domStencil_func::domMask; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_func::domMask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mask" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_func::domMask::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_func::domMask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domMask , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "255"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domMask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func::domMask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_op::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_opRef ref = new(bytes) domGl_pipeline_settings::domStencil_op; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_op::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_op" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_op::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_op::create); + + // Add elements: fail, zfail, zpass + _Meta->appendElement(domGl_pipeline_settings::domStencil_op::domFail::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_op,elemFail)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_op::domZfail::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_op,elemZfail)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_op::domZpass::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_op,elemZpass)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_op::domFail::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_op::domFailRef ref = new(bytes) domGl_pipeline_settings::domStencil_op::domFail; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_op::domFail::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fail" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_op::domFail::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_op::domFail::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_stencil_op_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domFail , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "KEEP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domFail , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op::domFail)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_op::domZfail::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_op::domZfailRef ref = new(bytes) domGl_pipeline_settings::domStencil_op::domZfail; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_op::domZfail::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "zfail" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_op::domZfail::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_op::domZfail::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_stencil_op_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domZfail , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "KEEP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domZfail , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op::domZfail)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_op::domZpass::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_op::domZpassRef ref = new(bytes) domGl_pipeline_settings::domStencil_op::domZpass; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_op::domZpass::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "zpass" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_op::domZpass::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_op::domZpass::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_stencil_op_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domZpass , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "KEEP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domZpass , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op::domZpass)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_func_separate::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_func_separateRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_func_separate::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_func_separate" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_func_separate::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_func_separate::create); + + // Add elements: front, back, ref, mask + _Meta->appendElement(domGl_pipeline_settings::domStencil_func_separate::domFront::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_func_separate,elemFront)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_func_separate::domBack::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_func_separate,elemBack)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_func_separate::domRef::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_func_separate,elemRef)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_func_separate::domMask::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_func_separate,elemMask)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_func_separate::domFront::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_func_separate::domFrontRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate::domFront; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_func_separate::domFront::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "front" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_func_separate::domFront::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_func_separate::domFront::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_func_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domFront , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ALWAYS"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domFront , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate::domFront)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_func_separate::domBack::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_func_separate::domBackRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate::domBack; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_func_separate::domBack::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "back" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_func_separate::domBack::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_func_separate::domBack::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_func_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domBack , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ALWAYS"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domBack , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate::domBack)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_func_separate::domRef::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_func_separate::domRefRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate::domRef; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_func_separate::domRef::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "ref" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_func_separate::domRef::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_func_separate::domRef::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domRef , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domRef , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate::domRef)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_func_separate::domMask::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_func_separate::domMaskRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate::domMask; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_func_separate::domMask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mask" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_func_separate::domMask::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_func_separate::domMask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domMask , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "255"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domMask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate::domMask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_op_separate::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_op_separateRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_op_separate::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_op_separate" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_op_separate::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_op_separate::create); + + // Add elements: face, fail, zfail, zpass + _Meta->appendElement(domGl_pipeline_settings::domStencil_op_separate::domFace::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_op_separate,elemFace)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_op_separate::domFail::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_op_separate,elemFail)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_op_separate::domZfail::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_op_separate,elemZfail)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_op_separate::domZpass::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_op_separate,elemZpass)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_op_separate::domFace::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_op_separate::domFaceRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate::domFace; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_op_separate::domFace::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "face" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_op_separate::domFace::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_op_separate::domFace::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_face_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domFace , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "FRONT_AND_BACK"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domFace , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate::domFace)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_op_separate::domFail::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_op_separate::domFailRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate::domFail; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_op_separate::domFail::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fail" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_op_separate::domFail::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_op_separate::domFail::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_stencil_op_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domFail , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "KEEP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domFail , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate::domFail)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_op_separate::domZfail::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_op_separate::domZfailRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate::domZfail; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_op_separate::domZfail::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "zfail" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_op_separate::domZfail::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_op_separate::domZfail::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_stencil_op_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domZfail , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "KEEP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domZfail , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate::domZfail)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_op_separate::domZpass::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_op_separate::domZpassRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate::domZpass; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_op_separate::domZpass::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "zpass" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_op_separate::domZpass::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_op_separate::domZpass::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_stencil_op_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domZpass , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "KEEP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domZpass , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate::domZpass)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_mask_separate::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_mask_separateRef ref = new(bytes) domGl_pipeline_settings::domStencil_mask_separate; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_mask_separate::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_mask_separate" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_mask_separate::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_mask_separate::create); + + // Add elements: face, mask + _Meta->appendElement(domGl_pipeline_settings::domStencil_mask_separate::domFace::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_mask_separate,elemFace)); + _Meta->appendElement(domGl_pipeline_settings::domStencil_mask_separate::domMask::registerElement(),daeOffsetOf(domGl_pipeline_settings::domStencil_mask_separate,elemMask)); + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_mask_separate)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_mask_separate::domFace::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_mask_separate::domFaceRef ref = new(bytes) domGl_pipeline_settings::domStencil_mask_separate::domFace; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_mask_separate::domFace::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "face" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_mask_separate::domFace::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_mask_separate::domFace::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_face_type")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask_separate::domFace , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "FRONT_AND_BACK"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask_separate::domFace , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_mask_separate::domFace)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_mask_separate::domMask::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_mask_separate::domMaskRef ref = new(bytes) domGl_pipeline_settings::domStencil_mask_separate::domMask; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_mask_separate::domMask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mask" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_mask_separate::domMask::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_mask_separate::domMask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask_separate::domMask , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "255"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask_separate::domMask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_mask_separate::domMask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_enableRef ref = new(bytes) domGl_pipeline_settings::domLight_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_enable , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_ambient::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_ambientRef ref = new(bytes) domGl_pipeline_settings::domLight_ambient; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_ambient::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_ambient" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_ambient::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_ambient::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_ambient , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_ambient , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_ambient , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_ambient)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_diffuse::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_diffuseRef ref = new(bytes) domGl_pipeline_settings::domLight_diffuse; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_diffuse::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_diffuse" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_diffuse::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_diffuse::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_diffuse , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_diffuse , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_diffuse , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_diffuse)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_specular::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_specularRef ref = new(bytes) domGl_pipeline_settings::domLight_specular; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_specular::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_specular" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_specular::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_specular::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_specular , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_specular , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_specular , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_specular)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_position::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_positionRef ref = new(bytes) domGl_pipeline_settings::domLight_position; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_position::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_position" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_position::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_position::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_position , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 1 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_position , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_position , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_position)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_constant_attenuation::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_constant_attenuationRef ref = new(bytes) domGl_pipeline_settings::domLight_constant_attenuation; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_constant_attenuation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_constant_attenuation" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_constant_attenuation::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_constant_attenuation::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_constant_attenuation , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_constant_attenuation , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_constant_attenuation , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_constant_attenuation)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_linear_attenuation::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_linear_attenuationRef ref = new(bytes) domGl_pipeline_settings::domLight_linear_attenuation; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_linear_attenuation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_linear_attenuation" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_linear_attenuation::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_linear_attenuation::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_linear_attenuation , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_linear_attenuation , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_linear_attenuation , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_linear_attenuation)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_quadratic_attenuation::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_quadratic_attenuationRef ref = new(bytes) domGl_pipeline_settings::domLight_quadratic_attenuation; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_quadratic_attenuation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_quadratic_attenuation" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_quadratic_attenuation::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_quadratic_attenuation::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_quadratic_attenuation , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_quadratic_attenuation , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_quadratic_attenuation , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_quadratic_attenuation)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_spot_cutoff::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_spot_cutoffRef ref = new(bytes) domGl_pipeline_settings::domLight_spot_cutoff; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_spot_cutoff::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_spot_cutoff" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_spot_cutoff::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_spot_cutoff::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_cutoff , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "180"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_cutoff , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_cutoff , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_spot_cutoff)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_spot_direction::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_spot_directionRef ref = new(bytes) domGl_pipeline_settings::domLight_spot_direction; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_spot_direction::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_spot_direction" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_spot_direction::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_spot_direction::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_direction , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 -1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_direction , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_direction , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_spot_direction)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_spot_exponent::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_spot_exponentRef ref = new(bytes) domGl_pipeline_settings::domLight_spot_exponent; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_spot_exponent::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_spot_exponent" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_spot_exponent::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_spot_exponent::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_exponent , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_exponent , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_exponent , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_spot_exponent)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture1D::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture1DRef ref = new(bytes) domGl_pipeline_settings::domTexture1D; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture1D::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture1D" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture1D::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture1D::create); + + // Add elements: value, param + _Meta->appendElement(domGl_sampler1D::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTexture1D,elemValue),"value"); + _Meta->appendElement(domGl_pipeline_settings::domTexture1D::domParam::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTexture1D,elemParam)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTexture1D,_contents)); + + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture1D)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture1D::domParam::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture1D::domParamRef ref = new(bytes) domGl_pipeline_settings::domTexture1D::domParam; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture1D::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture1D::domParam::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture1D::domParam::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D::domParam , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture1D::domParam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture2D::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture2DRef ref = new(bytes) domGl_pipeline_settings::domTexture2D; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture2D::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture2D" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture2D::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture2D::create); + + // Add elements: value, param + _Meta->appendElement(domGl_sampler2D::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTexture2D,elemValue),"value"); + _Meta->appendElement(domGl_pipeline_settings::domTexture2D::domParam::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTexture2D,elemParam)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTexture2D,_contents)); + + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture2D)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture2D::domParam::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture2D::domParamRef ref = new(bytes) domGl_pipeline_settings::domTexture2D::domParam; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture2D::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture2D::domParam::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture2D::domParam::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D::domParam , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture2D::domParam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture3D::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture3DRef ref = new(bytes) domGl_pipeline_settings::domTexture3D; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture3D::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture3D" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture3D::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture3D::create); + + // Add elements: value, param + _Meta->appendElement(domGl_sampler3D::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTexture3D,elemValue),"value"); + _Meta->appendElement(domGl_pipeline_settings::domTexture3D::domParam::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTexture3D,elemParam)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTexture3D,_contents)); + + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture3D)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture3D::domParam::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture3D::domParamRef ref = new(bytes) domGl_pipeline_settings::domTexture3D::domParam; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture3D::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture3D::domParam::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture3D::domParam::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D::domParam , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture3D::domParam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTextureCUBE::create(daeInt bytes) +{ + domGl_pipeline_settings::domTextureCUBERef ref = new(bytes) domGl_pipeline_settings::domTextureCUBE; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTextureCUBE::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "textureCUBE" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTextureCUBE::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTextureCUBE::create); + + // Add elements: value, param + _Meta->appendElement(domGl_samplerCUBE::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTextureCUBE,elemValue),"value"); + _Meta->appendElement(domGl_pipeline_settings::domTextureCUBE::domParam::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTextureCUBE,elemParam)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTextureCUBE,_contents)); + + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureCUBE)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTextureCUBE::domParam::create(daeInt bytes) +{ + domGl_pipeline_settings::domTextureCUBE::domParamRef ref = new(bytes) domGl_pipeline_settings::domTextureCUBE::domParam; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTextureCUBE::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTextureCUBE::domParam::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTextureCUBE::domParam::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE::domParam , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureCUBE::domParam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTextureRECT::create(daeInt bytes) +{ + domGl_pipeline_settings::domTextureRECTRef ref = new(bytes) domGl_pipeline_settings::domTextureRECT; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTextureRECT::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "textureRECT" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTextureRECT::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTextureRECT::create); + + // Add elements: value, param + _Meta->appendElement(domGl_samplerRECT::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTextureRECT,elemValue),"value"); + _Meta->appendElement(domGl_pipeline_settings::domTextureRECT::domParam::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTextureRECT,elemParam)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTextureRECT,_contents)); + + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureRECT)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTextureRECT::domParam::create(daeInt bytes) +{ + domGl_pipeline_settings::domTextureRECT::domParamRef ref = new(bytes) domGl_pipeline_settings::domTextureRECT::domParam; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTextureRECT::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTextureRECT::domParam::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTextureRECT::domParam::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT::domParam , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureRECT::domParam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTextureDEPTH::create(daeInt bytes) +{ + domGl_pipeline_settings::domTextureDEPTHRef ref = new(bytes) domGl_pipeline_settings::domTextureDEPTH; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTextureDEPTH::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "textureDEPTH" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTextureDEPTH::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTextureDEPTH::create); + + // Add elements: value, param + _Meta->appendElement(domGl_samplerDEPTH::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTextureDEPTH,elemValue),"value"); + _Meta->appendElement(domGl_pipeline_settings::domTextureDEPTH::domParam::registerElement(),daeOffsetOf(domGl_pipeline_settings::domTextureDEPTH,elemParam)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTextureDEPTH,_contents)); + + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureDEPTH)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTextureDEPTH::domParam::create(daeInt bytes) +{ + domGl_pipeline_settings::domTextureDEPTH::domParamRef ref = new(bytes) domGl_pipeline_settings::domTextureDEPTH::domParam; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTextureDEPTH::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTextureDEPTH::domParam::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTextureDEPTH::domParam::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH::domParam , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureDEPTH::domParam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture1D_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture1D_enableRef ref = new(bytes) domGl_pipeline_settings::domTexture1D_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture1D_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture1D_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture1D_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture1D_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D_enable , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture1D_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture2D_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture2D_enableRef ref = new(bytes) domGl_pipeline_settings::domTexture2D_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture2D_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture2D_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture2D_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture2D_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D_enable , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture2D_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture3D_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture3D_enableRef ref = new(bytes) domGl_pipeline_settings::domTexture3D_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture3D_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture3D_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture3D_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture3D_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D_enable , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture3D_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTextureCUBE_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domTextureCUBE_enableRef ref = new(bytes) domGl_pipeline_settings::domTextureCUBE_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTextureCUBE_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "textureCUBE_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTextureCUBE_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTextureCUBE_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE_enable , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureCUBE_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTextureRECT_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domTextureRECT_enableRef ref = new(bytes) domGl_pipeline_settings::domTextureRECT_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTextureRECT_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "textureRECT_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTextureRECT_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTextureRECT_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT_enable , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureRECT_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTextureDEPTH_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domTextureDEPTH_enableRef ref = new(bytes) domGl_pipeline_settings::domTextureDEPTH_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTextureDEPTH_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "textureDEPTH_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTextureDEPTH_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTextureDEPTH_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH_enable , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureDEPTH_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture_env_color::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture_env_colorRef ref = new(bytes) domGl_pipeline_settings::domTexture_env_color; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture_env_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture_env_color" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture_env_color::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture_env_color::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_color , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_color , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_color , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture_env_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domTexture_env_mode::create(daeInt bytes) +{ + domGl_pipeline_settings::domTexture_env_modeRef ref = new(bytes) domGl_pipeline_settings::domTexture_env_mode; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domTexture_env_mode::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture_env_mode" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domTexture_env_mode::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domTexture_env_mode::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("String")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_mode , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_mode , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_mode , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture_env_mode)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domClip_plane::create(daeInt bytes) +{ + domGl_pipeline_settings::domClip_planeRef ref = new(bytes) domGl_pipeline_settings::domClip_plane; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domClip_plane::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clip_plane" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domClip_plane::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domClip_plane::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_CLIP_PLANES_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClip_plane)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domClip_plane_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domClip_plane_enableRef ref = new(bytes) domGl_pipeline_settings::domClip_plane_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domClip_plane_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clip_plane_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domClip_plane_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domClip_plane_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GL_MAX_CLIP_PLANES_index")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane_enable , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClip_plane_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_color::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_colorRef ref = new(bytes) domGl_pipeline_settings::domBlend_color; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "blend_color" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_color::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_color::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_color , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_color , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domClear_color::create(daeInt bytes) +{ + domGl_pipeline_settings::domClear_colorRef ref = new(bytes) domGl_pipeline_settings::domClear_color; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domClear_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clear_color" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domClear_color::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domClear_color::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_color , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_color , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClear_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domClear_stencil::create(daeInt bytes) +{ + domGl_pipeline_settings::domClear_stencilRef ref = new(bytes) domGl_pipeline_settings::domClear_stencil; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domClear_stencil::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clear_stencil" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domClear_stencil::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domClear_stencil::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Int")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_stencil , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_stencil , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClear_stencil)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domClear_depth::create(daeInt bytes) +{ + domGl_pipeline_settings::domClear_depthRef ref = new(bytes) domGl_pipeline_settings::domClear_depth; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domClear_depth::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clear_depth" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domClear_depth::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domClear_depth::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_depth , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_depth , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClear_depth)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domColor_mask::create(daeInt bytes) +{ + domGl_pipeline_settings::domColor_maskRef ref = new(bytes) domGl_pipeline_settings::domColor_mask; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domColor_mask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "color_mask" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domColor_mask::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domColor_mask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_mask , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "true true true true"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_mask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_mask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domDepth_bounds::create(daeInt bytes) +{ + domGl_pipeline_settings::domDepth_boundsRef ref = new(bytes) domGl_pipeline_settings::domDepth_bounds; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domDepth_bounds::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_bounds" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domDepth_bounds::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domDepth_bounds::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_bounds , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_bounds , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_bounds)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domDepth_mask::create(daeInt bytes) +{ + domGl_pipeline_settings::domDepth_maskRef ref = new(bytes) domGl_pipeline_settings::domDepth_mask; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domDepth_mask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_mask" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domDepth_mask::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domDepth_mask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_mask , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "true"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_mask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_mask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domDepth_range::create(daeInt bytes) +{ + domGl_pipeline_settings::domDepth_rangeRef ref = new(bytes) domGl_pipeline_settings::domDepth_range; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domDepth_range::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_range" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domDepth_range::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domDepth_range::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_range , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_range , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_range)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domFog_density::create(daeInt bytes) +{ + domGl_pipeline_settings::domFog_densityRef ref = new(bytes) domGl_pipeline_settings::domFog_density; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domFog_density::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_density" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domFog_density::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domFog_density::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_density , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_density , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_density)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domFog_start::create(daeInt bytes) +{ + domGl_pipeline_settings::domFog_startRef ref = new(bytes) domGl_pipeline_settings::domFog_start; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domFog_start::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_start" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domFog_start::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domFog_start::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_start , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_start , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_start)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domFog_end::create(daeInt bytes) +{ + domGl_pipeline_settings::domFog_endRef ref = new(bytes) domGl_pipeline_settings::domFog_end; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domFog_end::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_end" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domFog_end::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domFog_end::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_end , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_end , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_end)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domFog_color::create(daeInt bytes) +{ + domGl_pipeline_settings::domFog_colorRef ref = new(bytes) domGl_pipeline_settings::domFog_color; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domFog_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_color" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domFog_color::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domFog_color::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_color , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_color , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_model_ambient::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_model_ambientRef ref = new(bytes) domGl_pipeline_settings::domLight_model_ambient; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_model_ambient::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_model_ambient" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_model_ambient::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_model_ambient::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_ambient , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0.2 0.2 0.2 1.0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_ambient , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_model_ambient)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLighting_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domLighting_enableRef ref = new(bytes) domGl_pipeline_settings::domLighting_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLighting_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "lighting_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLighting_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLighting_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLighting_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLighting_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLighting_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLine_stipple::create(daeInt bytes) +{ + domGl_pipeline_settings::domLine_stippleRef ref = new(bytes) domGl_pipeline_settings::domLine_stipple; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLine_stipple::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "line_stipple" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLine_stipple::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLine_stipple::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Int2")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_stipple , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1 65536"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_stipple , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLine_stipple)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLine_width::create(daeInt bytes) +{ + domGl_pipeline_settings::domLine_widthRef ref = new(bytes) domGl_pipeline_settings::domLine_width; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLine_width::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "line_width" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLine_width::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLine_width::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_width , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_width , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLine_width)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domMaterial_ambient::create(daeInt bytes) +{ + domGl_pipeline_settings::domMaterial_ambientRef ref = new(bytes) domGl_pipeline_settings::domMaterial_ambient; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domMaterial_ambient::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_ambient" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domMaterial_ambient::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domMaterial_ambient::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_ambient , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0.2 0.2 0.2 1.0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_ambient , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_ambient)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domMaterial_diffuse::create(daeInt bytes) +{ + domGl_pipeline_settings::domMaterial_diffuseRef ref = new(bytes) domGl_pipeline_settings::domMaterial_diffuse; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domMaterial_diffuse::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_diffuse" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domMaterial_diffuse::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domMaterial_diffuse::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_diffuse , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0.8 0.8 0.8 1.0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_diffuse , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_diffuse)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domMaterial_emission::create(daeInt bytes) +{ + domGl_pipeline_settings::domMaterial_emissionRef ref = new(bytes) domGl_pipeline_settings::domMaterial_emission; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domMaterial_emission::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_emission" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domMaterial_emission::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domMaterial_emission::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_emission , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_emission , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_emission)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domMaterial_shininess::create(daeInt bytes) +{ + domGl_pipeline_settings::domMaterial_shininessRef ref = new(bytes) domGl_pipeline_settings::domMaterial_shininess; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domMaterial_shininess::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_shininess" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domMaterial_shininess::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domMaterial_shininess::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_shininess , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_shininess , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_shininess)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domMaterial_specular::create(daeInt bytes) +{ + domGl_pipeline_settings::domMaterial_specularRef ref = new(bytes) domGl_pipeline_settings::domMaterial_specular; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domMaterial_specular::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_specular" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domMaterial_specular::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domMaterial_specular::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_specular , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_specular , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_specular)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domModel_view_matrix::create(daeInt bytes) +{ + domGl_pipeline_settings::domModel_view_matrixRef ref = new(bytes) domGl_pipeline_settings::domModel_view_matrix; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domModel_view_matrix::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "model_view_matrix" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domModel_view_matrix::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domModel_view_matrix::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4x4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domModel_view_matrix , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domModel_view_matrix , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domModel_view_matrix)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPoint_distance_attenuation::create(daeInt bytes) +{ + domGl_pipeline_settings::domPoint_distance_attenuationRef ref = new(bytes) domGl_pipeline_settings::domPoint_distance_attenuation; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPoint_distance_attenuation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_distance_attenuation" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPoint_distance_attenuation::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPoint_distance_attenuation::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_distance_attenuation , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_distance_attenuation , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_distance_attenuation)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPoint_fade_threshold_size::create(daeInt bytes) +{ + domGl_pipeline_settings::domPoint_fade_threshold_sizeRef ref = new(bytes) domGl_pipeline_settings::domPoint_fade_threshold_size; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPoint_fade_threshold_size::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_fade_threshold_size" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPoint_fade_threshold_size::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPoint_fade_threshold_size::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_fade_threshold_size , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_fade_threshold_size , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_fade_threshold_size)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPoint_size::create(daeInt bytes) +{ + domGl_pipeline_settings::domPoint_sizeRef ref = new(bytes) domGl_pipeline_settings::domPoint_size; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPoint_size::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_size" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPoint_size::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPoint_size::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_size)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPoint_size_min::create(daeInt bytes) +{ + domGl_pipeline_settings::domPoint_size_minRef ref = new(bytes) domGl_pipeline_settings::domPoint_size_min; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPoint_size_min::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_size_min" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPoint_size_min::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPoint_size_min::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size_min , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size_min , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_size_min)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPoint_size_max::create(daeInt bytes) +{ + domGl_pipeline_settings::domPoint_size_maxRef ref = new(bytes) domGl_pipeline_settings::domPoint_size_max; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPoint_size_max::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_size_max" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPoint_size_max::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPoint_size_max::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size_max , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size_max , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_size_max)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPolygon_offset::create(daeInt bytes) +{ + domGl_pipeline_settings::domPolygon_offsetRef ref = new(bytes) domGl_pipeline_settings::domPolygon_offset; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPolygon_offset::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygon_offset" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPolygon_offset::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPolygon_offset::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_offset)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domProjection_matrix::create(daeInt bytes) +{ + domGl_pipeline_settings::domProjection_matrixRef ref = new(bytes) domGl_pipeline_settings::domProjection_matrix; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domProjection_matrix::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "projection_matrix" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domProjection_matrix::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domProjection_matrix::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4x4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domProjection_matrix , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domProjection_matrix , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domProjection_matrix)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domScissor::create(daeInt bytes) +{ + domGl_pipeline_settings::domScissorRef ref = new(bytes) domGl_pipeline_settings::domScissor; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domScissor::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "scissor" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domScissor::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domScissor::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Int4")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domScissor , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domScissor , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domScissor)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_mask::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_maskRef ref = new(bytes) domGl_pipeline_settings::domStencil_mask; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_mask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_mask" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_mask::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_mask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Int")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "4294967295"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_mask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domAlpha_test_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domAlpha_test_enableRef ref = new(bytes) domGl_pipeline_settings::domAlpha_test_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domAlpha_test_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "alpha_test_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domAlpha_test_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domAlpha_test_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_test_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_test_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAlpha_test_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domAuto_normal_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domAuto_normal_enableRef ref = new(bytes) domGl_pipeline_settings::domAuto_normal_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domAuto_normal_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "auto_normal_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domAuto_normal_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domAuto_normal_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAuto_normal_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAuto_normal_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAuto_normal_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domBlend_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domBlend_enableRef ref = new(bytes) domGl_pipeline_settings::domBlend_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domBlend_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "blend_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domBlend_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domBlend_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domColor_logic_op_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domColor_logic_op_enableRef ref = new(bytes) domGl_pipeline_settings::domColor_logic_op_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domColor_logic_op_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "color_logic_op_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domColor_logic_op_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domColor_logic_op_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_logic_op_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_logic_op_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_logic_op_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domCull_face_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domCull_face_enableRef ref = new(bytes) domGl_pipeline_settings::domCull_face_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domCull_face_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cull_face_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domCull_face_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domCull_face_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domCull_face_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domCull_face_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domCull_face_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domDepth_bounds_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domDepth_bounds_enableRef ref = new(bytes) domGl_pipeline_settings::domDepth_bounds_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domDepth_bounds_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_bounds_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domDepth_bounds_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domDepth_bounds_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_bounds_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_bounds_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_bounds_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domDepth_clamp_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domDepth_clamp_enableRef ref = new(bytes) domGl_pipeline_settings::domDepth_clamp_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domDepth_clamp_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_clamp_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domDepth_clamp_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domDepth_clamp_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_clamp_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_clamp_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_clamp_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domDepth_test_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domDepth_test_enableRef ref = new(bytes) domGl_pipeline_settings::domDepth_test_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domDepth_test_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_test_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domDepth_test_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domDepth_test_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_test_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_test_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_test_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domDither_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domDither_enableRef ref = new(bytes) domGl_pipeline_settings::domDither_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domDither_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "dither_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domDither_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domDither_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDither_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "true"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDither_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDither_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domFog_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domFog_enableRef ref = new(bytes) domGl_pipeline_settings::domFog_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domFog_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domFog_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domFog_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_model_local_viewer_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_model_local_viewer_enableRef ref = new(bytes) domGl_pipeline_settings::domLight_model_local_viewer_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_model_local_viewer_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_model_local_viewer_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_model_local_viewer_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_model_local_viewer_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_local_viewer_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_local_viewer_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_model_local_viewer_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLight_model_two_side_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domLight_model_two_side_enableRef ref = new(bytes) domGl_pipeline_settings::domLight_model_two_side_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLight_model_two_side_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_model_two_side_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLight_model_two_side_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLight_model_two_side_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_two_side_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_two_side_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_model_two_side_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLine_smooth_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domLine_smooth_enableRef ref = new(bytes) domGl_pipeline_settings::domLine_smooth_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLine_smooth_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "line_smooth_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLine_smooth_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLine_smooth_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_smooth_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_smooth_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLine_smooth_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLine_stipple_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domLine_stipple_enableRef ref = new(bytes) domGl_pipeline_settings::domLine_stipple_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLine_stipple_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "line_stipple_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLine_stipple_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLine_stipple_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_stipple_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_stipple_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLine_stipple_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domLogic_op_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domLogic_op_enableRef ref = new(bytes) domGl_pipeline_settings::domLogic_op_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domLogic_op_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "logic_op_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domLogic_op_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domLogic_op_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLogic_op_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLogic_op_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLogic_op_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domMultisample_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domMultisample_enableRef ref = new(bytes) domGl_pipeline_settings::domMultisample_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domMultisample_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "multisample_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domMultisample_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domMultisample_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMultisample_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMultisample_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMultisample_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domNormalize_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domNormalize_enableRef ref = new(bytes) domGl_pipeline_settings::domNormalize_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domNormalize_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "normalize_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domNormalize_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domNormalize_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domNormalize_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domNormalize_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domNormalize_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPoint_smooth_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domPoint_smooth_enableRef ref = new(bytes) domGl_pipeline_settings::domPoint_smooth_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPoint_smooth_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_smooth_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPoint_smooth_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPoint_smooth_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_smooth_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_smooth_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_smooth_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPolygon_offset_fill_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domPolygon_offset_fill_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_offset_fill_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPolygon_offset_fill_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygon_offset_fill_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPolygon_offset_fill_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPolygon_offset_fill_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_fill_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_fill_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_offset_fill_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPolygon_offset_line_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domPolygon_offset_line_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_offset_line_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPolygon_offset_line_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygon_offset_line_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPolygon_offset_line_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPolygon_offset_line_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_line_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_line_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_offset_line_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPolygon_offset_point_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domPolygon_offset_point_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_offset_point_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPolygon_offset_point_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygon_offset_point_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPolygon_offset_point_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPolygon_offset_point_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_point_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_point_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_offset_point_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPolygon_smooth_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domPolygon_smooth_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_smooth_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPolygon_smooth_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygon_smooth_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPolygon_smooth_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPolygon_smooth_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_smooth_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_smooth_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_smooth_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domPolygon_stipple_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domPolygon_stipple_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_stipple_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domPolygon_stipple_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygon_stipple_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domPolygon_stipple_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domPolygon_stipple_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_stipple_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_stipple_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_stipple_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domRescale_normal_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domRescale_normal_enableRef ref = new(bytes) domGl_pipeline_settings::domRescale_normal_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domRescale_normal_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "rescale_normal_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domRescale_normal_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domRescale_normal_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domRescale_normal_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domRescale_normal_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domRescale_normal_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domSample_alpha_to_coverage_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domSample_alpha_to_coverage_enableRef ref = new(bytes) domGl_pipeline_settings::domSample_alpha_to_coverage_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domSample_alpha_to_coverage_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "sample_alpha_to_coverage_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domSample_alpha_to_coverage_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domSample_alpha_to_coverage_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_alpha_to_coverage_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_alpha_to_coverage_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domSample_alpha_to_coverage_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domSample_alpha_to_one_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domSample_alpha_to_one_enableRef ref = new(bytes) domGl_pipeline_settings::domSample_alpha_to_one_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domSample_alpha_to_one_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "sample_alpha_to_one_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domSample_alpha_to_one_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domSample_alpha_to_one_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_alpha_to_one_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_alpha_to_one_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domSample_alpha_to_one_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domSample_coverage_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domSample_coverage_enableRef ref = new(bytes) domGl_pipeline_settings::domSample_coverage_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domSample_coverage_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "sample_coverage_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domSample_coverage_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domSample_coverage_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_coverage_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_coverage_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domSample_coverage_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domScissor_test_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domScissor_test_enableRef ref = new(bytes) domGl_pipeline_settings::domScissor_test_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domScissor_test_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "scissor_test_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domScissor_test_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domScissor_test_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domScissor_test_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domScissor_test_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domScissor_test_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGl_pipeline_settings::domStencil_test_enable::create(daeInt bytes) +{ + domGl_pipeline_settings::domStencil_test_enableRef ref = new(bytes) domGl_pipeline_settings::domStencil_test_enable; + return ref; +} + + +daeMetaElement * +domGl_pipeline_settings::domStencil_test_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_test_enable" ); + _Meta->setStaticPointerAddress(&domGl_pipeline_settings::domStencil_test_enable::_Meta); + _Meta->registerConstructor(domGl_pipeline_settings::domStencil_test_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_test_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_test_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_test_enable)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGl_pipeline_settings::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domAlpha_func::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domAlpha_func::domFunc::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domAlpha_func::domValue::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_func::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_func::domSrc::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_func::domDest::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_equation::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_equation_separate::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_equation_separate::domRgb::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_equation_separate::domAlpha::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domColor_material::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domColor_material::domFace::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domColor_material::domMode::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domCull_face::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domDepth_func::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domFog_mode::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domFog_coord_src::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domFront_face::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_model_color_control::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLogic_op::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPolygon_mode::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPolygon_mode::domFace::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPolygon_mode::domMode::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domShade_model::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_func::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_func::domFunc::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_func::domRef::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_func::domMask::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_op::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_op::domFail::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_op::domZfail::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_op::domZpass::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::domFront::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::domBack::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::domRef::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::domMask::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::domFace::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::domFail::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::domZfail::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::domZpass::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_mask_separate::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_mask_separate::domFace::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_mask_separate::domMask::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_ambient::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_diffuse::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_specular::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_position::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_constant_attenuation::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_linear_attenuation::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_quadratic_attenuation::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_spot_cutoff::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_spot_direction::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_spot_exponent::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture1D::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture1D::domParam::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture2D::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture2D::domParam::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture3D::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture3D::domParam::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTextureCUBE::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTextureCUBE::domParam::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTextureRECT::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTextureRECT::domParam::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTextureDEPTH::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTextureDEPTH::domParam::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture1D_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture2D_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture3D_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTextureCUBE_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTextureRECT_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTextureDEPTH_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture_env_color::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domTexture_env_mode::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domClip_plane::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domClip_plane_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_color::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domClear_color::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domClear_stencil::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domClear_depth::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domColor_mask::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domDepth_bounds::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domDepth_mask::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domDepth_range::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domFog_density::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domFog_start::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domFog_end::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domFog_color::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_model_ambient::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLighting_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLine_stipple::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLine_width::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domMaterial_ambient::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domMaterial_diffuse::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domMaterial_emission::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domMaterial_shininess::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domMaterial_specular::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domModel_view_matrix::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPoint_distance_attenuation::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPoint_fade_threshold_size::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPoint_size::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPoint_size_min::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPoint_size_max::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPolygon_offset::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domProjection_matrix::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domScissor::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_mask::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domAlpha_test_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domAuto_normal_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domBlend_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domColor_logic_op_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domCull_face_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domDepth_bounds_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domDepth_clamp_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domDepth_test_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domDither_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domFog_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_model_local_viewer_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLight_model_two_side_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLine_smooth_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLine_stipple_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domLogic_op_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domMultisample_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domNormalize_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPoint_smooth_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPolygon_offset_fill_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPolygon_offset_line_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPolygon_offset_point_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPolygon_smooth_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domPolygon_stipple_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domRescale_normal_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domSample_alpha_to_coverage_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domSample_alpha_to_one_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domSample_coverage_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domScissor_test_enable::_Meta = NULL; +daeMetaElement * domGl_pipeline_settings::domStencil_test_enable::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler1D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler1D.cpp new file mode 100644 index 000000000..49bc44c23 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler1D.cpp @@ -0,0 +1,55 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGl_sampler1D::create(daeInt bytes) +{ + domGl_sampler1DRef ref = new(bytes) domGl_sampler1D; + return ref; +} + + +daeMetaElement * +domGl_sampler1D::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gl_sampler1D" ); + _Meta->setStaticPointerAddress(&domGl_sampler1D::_Meta); + _Meta->registerConstructor(domGl_sampler1D::create); + + // Add elements: source, wrap_s, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domGl_sampler1D,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domGl_sampler1D,elemWrap_s)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domGl_sampler1D,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domGl_sampler1D,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domGl_sampler1D,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domGl_sampler1D,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domGl_sampler1D,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domGl_sampler1D,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domGl_sampler1D)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGl_sampler1D::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler2D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler2D.cpp new file mode 100644 index 000000000..b7bd6ad39 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler2D.cpp @@ -0,0 +1,56 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGl_sampler2D::create(daeInt bytes) +{ + domGl_sampler2DRef ref = new(bytes) domGl_sampler2D; + return ref; +} + + +daeMetaElement * +domGl_sampler2D::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gl_sampler2D" ); + _Meta->setStaticPointerAddress(&domGl_sampler2D::_Meta); + _Meta->registerConstructor(domGl_sampler2D::create); + + // Add elements: source, wrap_s, wrap_t, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domGl_sampler2D,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domGl_sampler2D,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domGl_sampler2D,elemWrap_t)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domGl_sampler2D,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domGl_sampler2D,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domGl_sampler2D,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domGl_sampler2D,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domGl_sampler2D,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domGl_sampler2D,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domGl_sampler2D)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGl_sampler2D::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler3D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler3D.cpp new file mode 100644 index 000000000..b940bf056 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler3D.cpp @@ -0,0 +1,57 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGl_sampler3D::create(daeInt bytes) +{ + domGl_sampler3DRef ref = new(bytes) domGl_sampler3D; + return ref; +} + + +daeMetaElement * +domGl_sampler3D::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gl_sampler3D" ); + _Meta->setStaticPointerAddress(&domGl_sampler3D::_Meta); + _Meta->registerConstructor(domGl_sampler3D::create); + + // Add elements: source, wrap_s, wrap_t, wrap_p, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domGl_sampler3D,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domGl_sampler3D,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domGl_sampler3D,elemWrap_t)); + _Meta->appendElement(domWrap_p::registerElement(),daeOffsetOf(domGl_sampler3D,elemWrap_p)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domGl_sampler3D,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domGl_sampler3D,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domGl_sampler3D,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domGl_sampler3D,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domGl_sampler3D,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domGl_sampler3D,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domGl_sampler3D)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGl_sampler3D::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerCUBE.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerCUBE.cpp new file mode 100644 index 000000000..4985f8484 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerCUBE.cpp @@ -0,0 +1,57 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGl_samplerCUBE::create(daeInt bytes) +{ + domGl_samplerCUBERef ref = new(bytes) domGl_samplerCUBE; + return ref; +} + + +daeMetaElement * +domGl_samplerCUBE::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gl_samplerCUBE" ); + _Meta->setStaticPointerAddress(&domGl_samplerCUBE::_Meta); + _Meta->registerConstructor(domGl_samplerCUBE::create); + + // Add elements: source, wrap_s, wrap_t, wrap_p, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemWrap_t)); + _Meta->appendElement(domWrap_p::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemWrap_p)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domGl_samplerCUBE,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domGl_samplerCUBE)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGl_samplerCUBE::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerDEPTH.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerDEPTH.cpp new file mode 100644 index 000000000..68b935973 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerDEPTH.cpp @@ -0,0 +1,52 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGl_samplerDEPTH::create(daeInt bytes) +{ + domGl_samplerDEPTHRef ref = new(bytes) domGl_samplerDEPTH; + return ref; +} + + +daeMetaElement * +domGl_samplerDEPTH::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gl_samplerDEPTH" ); + _Meta->setStaticPointerAddress(&domGl_samplerDEPTH::_Meta); + _Meta->registerConstructor(domGl_samplerDEPTH::create); + + // Add elements: source, wrap_s, wrap_t, minfilter, magfilter + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domGl_samplerDEPTH,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domGl_samplerDEPTH,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domGl_samplerDEPTH,elemWrap_t)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domGl_samplerDEPTH,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domGl_samplerDEPTH,elemMagfilter)); + + + _Meta->setElementSize(sizeof(domGl_samplerDEPTH)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGl_samplerDEPTH::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerRECT.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerRECT.cpp new file mode 100644 index 000000000..adc3b928d --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerRECT.cpp @@ -0,0 +1,56 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGl_samplerRECT::create(daeInt bytes) +{ + domGl_samplerRECTRef ref = new(bytes) domGl_samplerRECT; + return ref; +} + + +daeMetaElement * +domGl_samplerRECT::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gl_samplerRECT" ); + _Meta->setStaticPointerAddress(&domGl_samplerRECT::_Meta); + _Meta->registerConstructor(domGl_samplerRECT::create); + + // Add elements: source, wrap_s, wrap_t, minfilter, magfilter, mipfilter, border_color, mipmap_maxlevel, mipmap_bias + _Meta->appendElement(domSource::registerElement(),daeOffsetOf(domGl_samplerRECT,elemSource)); + _Meta->appendElement(domWrap_s::registerElement(),daeOffsetOf(domGl_samplerRECT,elemWrap_s)); + _Meta->appendElement(domWrap_t::registerElement(),daeOffsetOf(domGl_samplerRECT,elemWrap_t)); + _Meta->appendElement(domMinfilter::registerElement(),daeOffsetOf(domGl_samplerRECT,elemMinfilter)); + _Meta->appendElement(domMagfilter::registerElement(),daeOffsetOf(domGl_samplerRECT,elemMagfilter)); + _Meta->appendElement(domMipfilter::registerElement(),daeOffsetOf(domGl_samplerRECT,elemMipfilter)); + _Meta->appendElement(domBorder_color::registerElement(),daeOffsetOf(domGl_samplerRECT,elemBorder_color)); + _Meta->appendElement(domMipmap_maxlevel::registerElement(),daeOffsetOf(domGl_samplerRECT,elemMipmap_maxlevel)); + _Meta->appendElement(domMipmap_bias::registerElement(),daeOffsetOf(domGl_samplerRECT,elemMipmap_bias)); + + + _Meta->setElementSize(sizeof(domGl_samplerRECT)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGl_samplerRECT::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_basic_type_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_basic_type_common.cpp new file mode 100644 index 000000000..9ceff6487 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_basic_type_common.cpp @@ -0,0 +1,1128 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_basic_type_common::create(daeInt bytes) +{ + domGles_basic_type_commonRef ref = new(bytes) domGles_basic_type_common; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_basic_type_common" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::create); + + _Meta->setIsTransparent( true ); + // Add elements: bool, bool2, bool3, bool4, int, int2, int3, int4, float, float2, float3, float4, float1x1, float1x2, float1x3, float1x4, float2x1, float2x2, float2x3, float2x4, float3x1, float3x2, float3x3, float3x4, float4x1, float4x2, float4x3, float4x4, surface, texture_pipeline, sampler_state, texture_unit, enum + _Meta->appendElement(domGles_basic_type_common::domBool::registerElement(),daeOffsetOf(domGles_basic_type_common,elemBool)); + _Meta->appendElement(domGles_basic_type_common::domBool2::registerElement(),daeOffsetOf(domGles_basic_type_common,elemBool2)); + _Meta->appendElement(domGles_basic_type_common::domBool3::registerElement(),daeOffsetOf(domGles_basic_type_common,elemBool3)); + _Meta->appendElement(domGles_basic_type_common::domBool4::registerElement(),daeOffsetOf(domGles_basic_type_common,elemBool4)); + _Meta->appendElement(domGles_basic_type_common::domInt::registerElement(),daeOffsetOf(domGles_basic_type_common,elemInt)); + _Meta->appendElement(domGles_basic_type_common::domInt2::registerElement(),daeOffsetOf(domGles_basic_type_common,elemInt2)); + _Meta->appendElement(domGles_basic_type_common::domInt3::registerElement(),daeOffsetOf(domGles_basic_type_common,elemInt3)); + _Meta->appendElement(domGles_basic_type_common::domInt4::registerElement(),daeOffsetOf(domGles_basic_type_common,elemInt4)); + _Meta->appendElement(domGles_basic_type_common::domFloat::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat)); + _Meta->appendElement(domGles_basic_type_common::domFloat2::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat2)); + _Meta->appendElement(domGles_basic_type_common::domFloat3::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat3)); + _Meta->appendElement(domGles_basic_type_common::domFloat4::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat4)); + _Meta->appendElement(domGles_basic_type_common::domFloat1x1::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat1x1)); + _Meta->appendElement(domGles_basic_type_common::domFloat1x2::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat1x2)); + _Meta->appendElement(domGles_basic_type_common::domFloat1x3::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat1x3)); + _Meta->appendElement(domGles_basic_type_common::domFloat1x4::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat1x4)); + _Meta->appendElement(domGles_basic_type_common::domFloat2x1::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat2x1)); + _Meta->appendElement(domGles_basic_type_common::domFloat2x2::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat2x2)); + _Meta->appendElement(domGles_basic_type_common::domFloat2x3::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat2x3)); + _Meta->appendElement(domGles_basic_type_common::domFloat2x4::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat2x4)); + _Meta->appendElement(domGles_basic_type_common::domFloat3x1::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat3x1)); + _Meta->appendElement(domGles_basic_type_common::domFloat3x2::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat3x2)); + _Meta->appendElement(domGles_basic_type_common::domFloat3x3::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat3x3)); + _Meta->appendElement(domGles_basic_type_common::domFloat3x4::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat3x4)); + _Meta->appendElement(domGles_basic_type_common::domFloat4x1::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat4x1)); + _Meta->appendElement(domGles_basic_type_common::domFloat4x2::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat4x2)); + _Meta->appendElement(domGles_basic_type_common::domFloat4x3::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat4x3)); + _Meta->appendElement(domGles_basic_type_common::domFloat4x4::registerElement(),daeOffsetOf(domGles_basic_type_common,elemFloat4x4)); + _Meta->appendElement(domFx_surface_common::registerElement(),daeOffsetOf(domGles_basic_type_common,elemSurface),"surface"); + _Meta->appendElement(domGles_texture_pipeline::registerElement(),daeOffsetOf(domGles_basic_type_common,elemTexture_pipeline),"texture_pipeline"); + _Meta->appendElement(domGles_sampler_state::registerElement(),daeOffsetOf(domGles_basic_type_common,elemSampler_state),"sampler_state"); + _Meta->appendElement(domGles_texture_unit::registerElement(),daeOffsetOf(domGles_basic_type_common,elemTexture_unit),"texture_unit"); + _Meta->appendElement(domGles_basic_type_common::domEnum::registerElement(),daeOffsetOf(domGles_basic_type_common,elemEnum)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGles_basic_type_common,_contents)); + + + + _Meta->setElementSize(sizeof(domGles_basic_type_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domBool::create(daeInt bytes) +{ + domGles_basic_type_common::domBoolRef ref = new(bytes) domGles_basic_type_common::domBool; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domBool::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domBool::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domBool::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domBool , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domBool)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domBool2::create(daeInt bytes) +{ + domGles_basic_type_common::domBool2Ref ref = new(bytes) domGles_basic_type_common::domBool2; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domBool2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool2" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domBool2::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domBool2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool2")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domBool2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domBool2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domBool3::create(daeInt bytes) +{ + domGles_basic_type_common::domBool3Ref ref = new(bytes) domGles_basic_type_common::domBool3; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domBool3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool3" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domBool3::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domBool3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool3")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domBool3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domBool3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domBool4::create(daeInt bytes) +{ + domGles_basic_type_common::domBool4Ref ref = new(bytes) domGles_basic_type_common::domBool4; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domBool4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool4" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domBool4::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domBool4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool4")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domBool4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domBool4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domInt::create(daeInt bytes) +{ + domGles_basic_type_common::domIntRef ref = new(bytes) domGles_basic_type_common::domInt; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domInt::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domInt::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domInt::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domInt , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domInt)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domInt2::create(daeInt bytes) +{ + domGles_basic_type_common::domInt2Ref ref = new(bytes) domGles_basic_type_common::domInt2; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domInt2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int2" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domInt2::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domInt2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int2")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domInt2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domInt2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domInt3::create(daeInt bytes) +{ + domGles_basic_type_common::domInt3Ref ref = new(bytes) domGles_basic_type_common::domInt3; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domInt3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int3" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domInt3::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domInt3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int3")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domInt3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domInt3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domInt4::create(daeInt bytes) +{ + domGles_basic_type_common::domInt4Ref ref = new(bytes) domGles_basic_type_common::domInt4; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domInt4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int4" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domInt4::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domInt4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Int4")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domInt4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domInt4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat::create(daeInt bytes) +{ + domGles_basic_type_common::domFloatRef ref = new(bytes) domGles_basic_type_common::domFloat; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat2::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat2Ref ref = new(bytes) domGles_basic_type_common::domFloat2; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat2::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat3::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat3Ref ref = new(bytes) domGles_basic_type_common::domFloat3; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat3::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat4::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat4Ref ref = new(bytes) domGles_basic_type_common::domFloat4; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat4::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat1x1::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat1x1Ref ref = new(bytes) domGles_basic_type_common::domFloat1x1; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat1x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x1" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat1x1::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat1x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat1x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat1x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat1x2::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat1x2Ref ref = new(bytes) domGles_basic_type_common::domFloat1x2; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat1x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x2" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat1x2::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat1x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat1x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat1x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat1x3::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat1x3Ref ref = new(bytes) domGles_basic_type_common::domFloat1x3; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat1x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x3" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat1x3::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat1x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat1x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat1x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat1x4::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat1x4Ref ref = new(bytes) domGles_basic_type_common::domFloat1x4; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat1x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float1x4" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat1x4::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat1x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat1x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat1x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat2x1::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat2x1Ref ref = new(bytes) domGles_basic_type_common::domFloat2x1; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat2x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x1" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat2x1::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat2x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat2x2::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat2x2Ref ref = new(bytes) domGles_basic_type_common::domFloat2x2; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat2x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x2" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat2x2::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat2x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2x2")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat2x3::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat2x3Ref ref = new(bytes) domGles_basic_type_common::domFloat2x3; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat2x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x3" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat2x3::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat2x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2x3")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat2x4::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat2x4Ref ref = new(bytes) domGles_basic_type_common::domFloat2x4; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat2x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x4" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat2x4::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat2x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2x4")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat3x1::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat3x1Ref ref = new(bytes) domGles_basic_type_common::domFloat3x1; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat3x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x1" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat3x1::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat3x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat3x2::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat3x2Ref ref = new(bytes) domGles_basic_type_common::domFloat3x2; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat3x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x2" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat3x2::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat3x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3x2")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat3x3::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat3x3Ref ref = new(bytes) domGles_basic_type_common::domFloat3x3; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat3x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x3" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat3x3::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat3x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3x3")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat3x4::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat3x4Ref ref = new(bytes) domGles_basic_type_common::domFloat3x4; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat3x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x4" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat3x4::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat3x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3x4")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat4x1::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat4x1Ref ref = new(bytes) domGles_basic_type_common::domFloat4x1; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat4x1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x1" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat4x1::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat4x1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4x1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4x1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat4x2::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat4x2Ref ref = new(bytes) domGles_basic_type_common::domFloat4x2; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat4x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x2" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat4x2::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat4x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4x2")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat4x3::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat4x3Ref ref = new(bytes) domGles_basic_type_common::domFloat4x3; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat4x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x3" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat4x3::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat4x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4x3")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domFloat4x4::create(daeInt bytes) +{ + domGles_basic_type_common::domFloat4x4Ref ref = new(bytes) domGles_basic_type_common::domFloat4x4; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domFloat4x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x4" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domFloat4x4::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domFloat4x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4x4")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_basic_type_common::domEnum::create(daeInt bytes) +{ + domGles_basic_type_common::domEnumRef ref = new(bytes) domGles_basic_type_common::domEnum; + return ref; +} + + +daeMetaElement * +domGles_basic_type_common::domEnum::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "enum" ); + _Meta->setStaticPointerAddress(&domGles_basic_type_common::domEnum::_Meta); + _Meta->registerConstructor(domGles_basic_type_common::domEnum::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Gles_enumeration")); + ma->setOffset( daeOffsetOf( domGles_basic_type_common::domEnum , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_basic_type_common::domEnum)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_basic_type_common::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domBool::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domBool2::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domBool3::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domBool4::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domInt::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domInt2::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domInt3::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domInt4::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat2::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat3::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat4::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat1x1::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat1x2::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat1x3::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat1x4::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat2x1::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat2x2::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat2x3::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat2x4::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat3x1::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat3x2::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat3x3::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat3x4::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat4x1::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat4x2::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat4x3::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domFloat4x4::_Meta = NULL; +daeMetaElement * domGles_basic_type_common::domEnum::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_newparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_newparam.cpp new file mode 100644 index 000000000..93bc06187 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_newparam.cpp @@ -0,0 +1,168 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_newparam::create(daeInt bytes) +{ + domGles_newparamRef ref = new(bytes) domGles_newparam; + return ref; +} + + +daeMetaElement * +domGles_newparam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_newparam" ); + _Meta->setStaticPointerAddress(&domGles_newparam::_Meta); + _Meta->registerConstructor(domGles_newparam::create); + + // Add elements: annotate, semantic, modifier, gles_basic_type_common + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domGles_newparam,elemAnnotate_array),"annotate"); + _Meta->appendElement(domGles_newparam::domSemantic::registerElement(),daeOffsetOf(domGles_newparam,elemSemantic)); + _Meta->appendElement(domGles_newparam::domModifier::registerElement(),daeOffsetOf(domGles_newparam,elemModifier)); + _Meta->appendElement(domGles_basic_type_common::registerElement(),daeOffsetOf(domGles_newparam,elemGles_basic_type_common)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[3], "fx_surface_common"); + _Meta->appendPossibleChild( "texture_pipeline", _Meta->getMetaElements()[3], "gles_texture_pipeline"); + _Meta->appendPossibleChild( "sampler_state", _Meta->getMetaElements()[3], "gles_sampler_state"); + _Meta->appendPossibleChild( "texture_unit", _Meta->getMetaElements()[3], "gles_texture_unit"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[3]); + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_newparam , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_newparam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_newparam::domSemantic::create(daeInt bytes) +{ + domGles_newparam::domSemanticRef ref = new(bytes) domGles_newparam::domSemantic; + return ref; +} + + +daeMetaElement * +domGles_newparam::domSemantic::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "semantic" ); + _Meta->setStaticPointerAddress(&domGles_newparam::domSemantic::_Meta); + _Meta->registerConstructor(domGles_newparam::domSemantic::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_newparam::domSemantic , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_newparam::domSemantic)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_newparam::domModifier::create(daeInt bytes) +{ + domGles_newparam::domModifierRef ref = new(bytes) domGles_newparam::domModifier; + return ref; +} + + +daeMetaElement * +domGles_newparam::domModifier::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "modifier" ); + _Meta->setStaticPointerAddress(&domGles_newparam::domModifier::_Meta); + _Meta->registerConstructor(domGles_newparam::domModifier::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_modifier_enum_common")); + ma->setOffset( daeOffsetOf( domGles_newparam::domModifier , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_newparam::domModifier)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_newparam::_Meta = NULL; +daeMetaElement * domGles_newparam::domSemantic::_Meta = NULL; +daeMetaElement * domGles_newparam::domModifier::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_pipeline_settings.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_pipeline_settings.cpp new file mode 100644 index 000000000..d1830d95a --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_pipeline_settings.cpp @@ -0,0 +1,4492 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_pipeline_settings::create(daeInt bytes) +{ + domGles_pipeline_settingsRef ref = new(bytes) domGles_pipeline_settings; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_pipeline_settings" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::create); + + _Meta->setIsTransparent( true ); + // Add elements: alpha_func, blend_func, clear_color, clear_stencil, clear_depth, clip_plane, color_mask, cull_face, depth_func, depth_mask, depth_range, fog_color, fog_density, fog_mode, fog_start, fog_end, front_face, texture_pipeline, logic_op, light_ambient, light_diffuse, light_specular, light_position, light_constant_attenuation, light_linear_attenutation, light_quadratic_attenuation, light_spot_cutoff, light_spot_direction, light_spot_exponent, light_model_ambient, line_width, material_ambient, material_diffuse, material_emission, material_shininess, material_specular, model_view_matrix, point_distance_attenuation, point_fade_threshold_size, point_size, point_size_min, point_size_max, polygon_offset, projection_matrix, scissor, shade_model, stencil_func, stencil_mask, stencil_op, alpha_test_enable, blend_enable, clip_plane_enable, color_logic_op_enable, color_material_enable, cull_face_enable, depth_test_enable, dither_enable, fog_enable, texture_pipeline_enable, light_enable, lighting_enable, light_model_two_side_enable, line_smooth_enable, multisample_enable, normalize_enable, point_smooth_enable, polygon_offset_fill_enable, rescale_normal_enable, sample_alpha_to_coverage_enable, sample_alpha_to_one_enable, sample_coverage_enable, scissor_test_enable, stencil_test_enable + _Meta->appendElement(domGles_pipeline_settings::domAlpha_func::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemAlpha_func)); + _Meta->appendElement(domGles_pipeline_settings::domBlend_func::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemBlend_func)); + _Meta->appendElement(domGles_pipeline_settings::domClear_color::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemClear_color)); + _Meta->appendElement(domGles_pipeline_settings::domClear_stencil::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemClear_stencil)); + _Meta->appendElement(domGles_pipeline_settings::domClear_depth::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemClear_depth)); + _Meta->appendElement(domGles_pipeline_settings::domClip_plane::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemClip_plane)); + _Meta->appendElement(domGles_pipeline_settings::domColor_mask::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemColor_mask)); + _Meta->appendElement(domGles_pipeline_settings::domCull_face::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemCull_face)); + _Meta->appendElement(domGles_pipeline_settings::domDepth_func::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemDepth_func)); + _Meta->appendElement(domGles_pipeline_settings::domDepth_mask::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemDepth_mask)); + _Meta->appendElement(domGles_pipeline_settings::domDepth_range::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemDepth_range)); + _Meta->appendElement(domGles_pipeline_settings::domFog_color::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemFog_color)); + _Meta->appendElement(domGles_pipeline_settings::domFog_density::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemFog_density)); + _Meta->appendElement(domGles_pipeline_settings::domFog_mode::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemFog_mode)); + _Meta->appendElement(domGles_pipeline_settings::domFog_start::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemFog_start)); + _Meta->appendElement(domGles_pipeline_settings::domFog_end::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemFog_end)); + _Meta->appendElement(domGles_pipeline_settings::domFront_face::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemFront_face)); + _Meta->appendElement(domGles_pipeline_settings::domTexture_pipeline::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemTexture_pipeline)); + _Meta->appendElement(domGles_pipeline_settings::domLogic_op::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLogic_op)); + _Meta->appendElement(domGles_pipeline_settings::domLight_ambient::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_ambient)); + _Meta->appendElement(domGles_pipeline_settings::domLight_diffuse::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_diffuse)); + _Meta->appendElement(domGles_pipeline_settings::domLight_specular::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_specular)); + _Meta->appendElement(domGles_pipeline_settings::domLight_position::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_position)); + _Meta->appendElement(domGles_pipeline_settings::domLight_constant_attenuation::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_constant_attenuation)); + _Meta->appendElement(domGles_pipeline_settings::domLight_linear_attenutation::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_linear_attenutation)); + _Meta->appendElement(domGles_pipeline_settings::domLight_quadratic_attenuation::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_quadratic_attenuation)); + _Meta->appendElement(domGles_pipeline_settings::domLight_spot_cutoff::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_spot_cutoff)); + _Meta->appendElement(domGles_pipeline_settings::domLight_spot_direction::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_spot_direction)); + _Meta->appendElement(domGles_pipeline_settings::domLight_spot_exponent::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_spot_exponent)); + _Meta->appendElement(domGles_pipeline_settings::domLight_model_ambient::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_model_ambient)); + _Meta->appendElement(domGles_pipeline_settings::domLine_width::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLine_width)); + _Meta->appendElement(domGles_pipeline_settings::domMaterial_ambient::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemMaterial_ambient)); + _Meta->appendElement(domGles_pipeline_settings::domMaterial_diffuse::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemMaterial_diffuse)); + _Meta->appendElement(domGles_pipeline_settings::domMaterial_emission::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemMaterial_emission)); + _Meta->appendElement(domGles_pipeline_settings::domMaterial_shininess::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemMaterial_shininess)); + _Meta->appendElement(domGles_pipeline_settings::domMaterial_specular::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemMaterial_specular)); + _Meta->appendElement(domGles_pipeline_settings::domModel_view_matrix::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemModel_view_matrix)); + _Meta->appendElement(domGles_pipeline_settings::domPoint_distance_attenuation::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemPoint_distance_attenuation)); + _Meta->appendElement(domGles_pipeline_settings::domPoint_fade_threshold_size::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemPoint_fade_threshold_size)); + _Meta->appendElement(domGles_pipeline_settings::domPoint_size::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemPoint_size)); + _Meta->appendElement(domGles_pipeline_settings::domPoint_size_min::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemPoint_size_min)); + _Meta->appendElement(domGles_pipeline_settings::domPoint_size_max::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemPoint_size_max)); + _Meta->appendElement(domGles_pipeline_settings::domPolygon_offset::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemPolygon_offset)); + _Meta->appendElement(domGles_pipeline_settings::domProjection_matrix::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemProjection_matrix)); + _Meta->appendElement(domGles_pipeline_settings::domScissor::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemScissor)); + _Meta->appendElement(domGles_pipeline_settings::domShade_model::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemShade_model)); + _Meta->appendElement(domGles_pipeline_settings::domStencil_func::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemStencil_func)); + _Meta->appendElement(domGles_pipeline_settings::domStencil_mask::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemStencil_mask)); + _Meta->appendElement(domGles_pipeline_settings::domStencil_op::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemStencil_op)); + _Meta->appendElement(domGles_pipeline_settings::domAlpha_test_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemAlpha_test_enable)); + _Meta->appendElement(domGles_pipeline_settings::domBlend_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemBlend_enable)); + _Meta->appendElement(domGles_pipeline_settings::domClip_plane_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemClip_plane_enable)); + _Meta->appendElement(domGles_pipeline_settings::domColor_logic_op_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemColor_logic_op_enable)); + _Meta->appendElement(domGles_pipeline_settings::domColor_material_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemColor_material_enable)); + _Meta->appendElement(domGles_pipeline_settings::domCull_face_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemCull_face_enable)); + _Meta->appendElement(domGles_pipeline_settings::domDepth_test_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemDepth_test_enable)); + _Meta->appendElement(domGles_pipeline_settings::domDither_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemDither_enable)); + _Meta->appendElement(domGles_pipeline_settings::domFog_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemFog_enable)); + _Meta->appendElement(domGles_pipeline_settings::domTexture_pipeline_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemTexture_pipeline_enable)); + _Meta->appendElement(domGles_pipeline_settings::domLight_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_enable)); + _Meta->appendElement(domGles_pipeline_settings::domLighting_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLighting_enable)); + _Meta->appendElement(domGles_pipeline_settings::domLight_model_two_side_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLight_model_two_side_enable)); + _Meta->appendElement(domGles_pipeline_settings::domLine_smooth_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemLine_smooth_enable)); + _Meta->appendElement(domGles_pipeline_settings::domMultisample_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemMultisample_enable)); + _Meta->appendElement(domGles_pipeline_settings::domNormalize_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemNormalize_enable)); + _Meta->appendElement(domGles_pipeline_settings::domPoint_smooth_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemPoint_smooth_enable)); + _Meta->appendElement(domGles_pipeline_settings::domPolygon_offset_fill_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemPolygon_offset_fill_enable)); + _Meta->appendElement(domGles_pipeline_settings::domRescale_normal_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemRescale_normal_enable)); + _Meta->appendElement(domGles_pipeline_settings::domSample_alpha_to_coverage_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemSample_alpha_to_coverage_enable)); + _Meta->appendElement(domGles_pipeline_settings::domSample_alpha_to_one_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemSample_alpha_to_one_enable)); + _Meta->appendElement(domGles_pipeline_settings::domSample_coverage_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemSample_coverage_enable)); + _Meta->appendElement(domGles_pipeline_settings::domScissor_test_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemScissor_test_enable)); + _Meta->appendElement(domGles_pipeline_settings::domStencil_test_enable::registerElement(),daeOffsetOf(domGles_pipeline_settings,elemStencil_test_enable)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGles_pipeline_settings,_contents)); + + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domAlpha_func::create(daeInt bytes) +{ + domGles_pipeline_settings::domAlpha_funcRef ref = new(bytes) domGles_pipeline_settings::domAlpha_func; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domAlpha_func::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "alpha_func" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domAlpha_func::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domAlpha_func::create); + + // Add elements: func, value + _Meta->appendElement(domGles_pipeline_settings::domAlpha_func::domFunc::registerElement(),daeOffsetOf(domGles_pipeline_settings::domAlpha_func,elemFunc)); + _Meta->appendElement(domGles_pipeline_settings::domAlpha_func::domValue::registerElement(),daeOffsetOf(domGles_pipeline_settings::domAlpha_func,elemValue)); + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domAlpha_func)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domAlpha_func::domFunc::create(daeInt bytes) +{ + domGles_pipeline_settings::domAlpha_func::domFuncRef ref = new(bytes) domGles_pipeline_settings::domAlpha_func::domFunc; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domAlpha_func::domFunc::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "func" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domAlpha_func::domFunc::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domAlpha_func::domFunc::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_func_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_func::domFunc , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ALWAYS"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_func::domFunc , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domAlpha_func::domFunc)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domAlpha_func::domValue::create(daeInt bytes) +{ + domGles_pipeline_settings::domAlpha_func::domValueRef ref = new(bytes) domGles_pipeline_settings::domAlpha_func::domValue; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domAlpha_func::domValue::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "value" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domAlpha_func::domValue::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domAlpha_func::domValue::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_alpha_value_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_func::domValue , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0.0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_func::domValue , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domAlpha_func::domValue)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domBlend_func::create(daeInt bytes) +{ + domGles_pipeline_settings::domBlend_funcRef ref = new(bytes) domGles_pipeline_settings::domBlend_func; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domBlend_func::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "blend_func" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domBlend_func::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domBlend_func::create); + + // Add elements: src, dest + _Meta->appendElement(domGles_pipeline_settings::domBlend_func::domSrc::registerElement(),daeOffsetOf(domGles_pipeline_settings::domBlend_func,elemSrc)); + _Meta->appendElement(domGles_pipeline_settings::domBlend_func::domDest::registerElement(),daeOffsetOf(domGles_pipeline_settings::domBlend_func,elemDest)); + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domBlend_func)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domBlend_func::domSrc::create(daeInt bytes) +{ + domGles_pipeline_settings::domBlend_func::domSrcRef ref = new(bytes) domGles_pipeline_settings::domBlend_func::domSrc; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domBlend_func::domSrc::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "src" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domBlend_func::domSrc::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domBlend_func::domSrc::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_func::domSrc , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ONE"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_func::domSrc , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domBlend_func::domSrc)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domBlend_func::domDest::create(daeInt bytes) +{ + domGles_pipeline_settings::domBlend_func::domDestRef ref = new(bytes) domGles_pipeline_settings::domBlend_func::domDest; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domBlend_func::domDest::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "dest" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domBlend_func::domDest::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domBlend_func::domDest::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_blend_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_func::domDest , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ZERO"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_func::domDest , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domBlend_func::domDest)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domClear_color::create(daeInt bytes) +{ + domGles_pipeline_settings::domClear_colorRef ref = new(bytes) domGles_pipeline_settings::domClear_color; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domClear_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clear_color" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domClear_color::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domClear_color::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_color , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_color , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClear_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domClear_stencil::create(daeInt bytes) +{ + domGles_pipeline_settings::domClear_stencilRef ref = new(bytes) domGles_pipeline_settings::domClear_stencil; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domClear_stencil::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clear_stencil" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domClear_stencil::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domClear_stencil::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Int")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_stencil , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_stencil , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClear_stencil)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domClear_depth::create(daeInt bytes) +{ + domGles_pipeline_settings::domClear_depthRef ref = new(bytes) domGles_pipeline_settings::domClear_depth; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domClear_depth::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clear_depth" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domClear_depth::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domClear_depth::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_depth , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_depth , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClear_depth)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domClip_plane::create(daeInt bytes) +{ + domGles_pipeline_settings::domClip_planeRef ref = new(bytes) domGles_pipeline_settings::domClip_plane; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domClip_plane::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clip_plane" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domClip_plane::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domClip_plane::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_CLIP_PLANES_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClip_plane)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domColor_mask::create(daeInt bytes) +{ + domGles_pipeline_settings::domColor_maskRef ref = new(bytes) domGles_pipeline_settings::domColor_mask; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domColor_mask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "color_mask" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domColor_mask::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domColor_mask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_mask , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_mask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domColor_mask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domCull_face::create(daeInt bytes) +{ + domGles_pipeline_settings::domCull_faceRef ref = new(bytes) domGles_pipeline_settings::domCull_face; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domCull_face::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cull_face" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domCull_face::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domCull_face::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_face_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domCull_face , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "BACK"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domCull_face , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domCull_face)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domDepth_func::create(daeInt bytes) +{ + domGles_pipeline_settings::domDepth_funcRef ref = new(bytes) domGles_pipeline_settings::domDepth_func; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domDepth_func::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_func" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domDepth_func::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domDepth_func::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_func_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_func , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ALWAYS"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_func , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDepth_func)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domDepth_mask::create(daeInt bytes) +{ + domGles_pipeline_settings::domDepth_maskRef ref = new(bytes) domGles_pipeline_settings::domDepth_mask; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domDepth_mask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_mask" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domDepth_mask::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domDepth_mask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_mask , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_mask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDepth_mask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domDepth_range::create(daeInt bytes) +{ + domGles_pipeline_settings::domDepth_rangeRef ref = new(bytes) domGles_pipeline_settings::domDepth_range; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domDepth_range::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_range" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domDepth_range::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domDepth_range::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_range , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_range , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDepth_range)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domFog_color::create(daeInt bytes) +{ + domGles_pipeline_settings::domFog_colorRef ref = new(bytes) domGles_pipeline_settings::domFog_color; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domFog_color::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_color" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domFog_color::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domFog_color::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_color , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_color , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_color)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domFog_density::create(daeInt bytes) +{ + domGles_pipeline_settings::domFog_densityRef ref = new(bytes) domGles_pipeline_settings::domFog_density; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domFog_density::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_density" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domFog_density::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domFog_density::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_density , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_density , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_density)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domFog_mode::create(daeInt bytes) +{ + domGles_pipeline_settings::domFog_modeRef ref = new(bytes) domGles_pipeline_settings::domFog_mode; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domFog_mode::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_mode" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domFog_mode::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domFog_mode::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_fog_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_mode , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "EXP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_mode , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_mode)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domFog_start::create(daeInt bytes) +{ + domGles_pipeline_settings::domFog_startRef ref = new(bytes) domGles_pipeline_settings::domFog_start; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domFog_start::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_start" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domFog_start::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domFog_start::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_start , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_start , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_start)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domFog_end::create(daeInt bytes) +{ + domGles_pipeline_settings::domFog_endRef ref = new(bytes) domGles_pipeline_settings::domFog_end; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domFog_end::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_end" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domFog_end::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domFog_end::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_end , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_end , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_end)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domFront_face::create(daeInt bytes) +{ + domGles_pipeline_settings::domFront_faceRef ref = new(bytes) domGles_pipeline_settings::domFront_face; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domFront_face::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "front_face" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domFront_face::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domFront_face::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_front_face_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFront_face , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "CCW"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFront_face , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFront_face)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domTexture_pipeline::create(daeInt bytes) +{ + domGles_pipeline_settings::domTexture_pipelineRef ref = new(bytes) domGles_pipeline_settings::domTexture_pipeline; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domTexture_pipeline::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture_pipeline" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domTexture_pipeline::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domTexture_pipeline::create); + + // Add elements: value + _Meta->appendElement(domGles_texture_pipeline::registerElement(),daeOffsetOf(domGles_pipeline_settings::domTexture_pipeline,elemValue),"value"); + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domTexture_pipeline , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domTexture_pipeline)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLogic_op::create(daeInt bytes) +{ + domGles_pipeline_settings::domLogic_opRef ref = new(bytes) domGles_pipeline_settings::domLogic_op; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLogic_op::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "logic_op" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLogic_op::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLogic_op::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_logic_op_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLogic_op , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "COPY"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLogic_op , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLogic_op)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_ambient::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_ambientRef ref = new(bytes) domGles_pipeline_settings::domLight_ambient; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_ambient::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_ambient" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_ambient::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_ambient::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_ambient , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_ambient , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_ambient , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_ambient)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_diffuse::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_diffuseRef ref = new(bytes) domGles_pipeline_settings::domLight_diffuse; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_diffuse::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_diffuse" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_diffuse::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_diffuse::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_diffuse , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_diffuse , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_diffuse , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_diffuse)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_specular::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_specularRef ref = new(bytes) domGles_pipeline_settings::domLight_specular; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_specular::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_specular" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_specular::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_specular::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_specular , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_specular , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_specular , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_specular)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_position::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_positionRef ref = new(bytes) domGles_pipeline_settings::domLight_position; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_position::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_position" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_position::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_position::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_position , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 1 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_position , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_position , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_position)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_constant_attenuation::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_constant_attenuationRef ref = new(bytes) domGles_pipeline_settings::domLight_constant_attenuation; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_constant_attenuation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_constant_attenuation" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_constant_attenuation::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_constant_attenuation::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_constant_attenuation , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_constant_attenuation , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_constant_attenuation , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_constant_attenuation)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_linear_attenutation::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_linear_attenutationRef ref = new(bytes) domGles_pipeline_settings::domLight_linear_attenutation; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_linear_attenutation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_linear_attenutation" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_linear_attenutation::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_linear_attenutation::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_linear_attenutation , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_linear_attenutation , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_linear_attenutation , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_linear_attenutation)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_quadratic_attenuation::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_quadratic_attenuationRef ref = new(bytes) domGles_pipeline_settings::domLight_quadratic_attenuation; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_quadratic_attenuation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_quadratic_attenuation" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_quadratic_attenuation::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_quadratic_attenuation::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_quadratic_attenuation , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_quadratic_attenuation , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_quadratic_attenuation , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_quadratic_attenuation)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_spot_cutoff::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_spot_cutoffRef ref = new(bytes) domGles_pipeline_settings::domLight_spot_cutoff; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_spot_cutoff::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_spot_cutoff" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_spot_cutoff::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_spot_cutoff::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_cutoff , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "180"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_cutoff , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_cutoff , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_spot_cutoff)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_spot_direction::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_spot_directionRef ref = new(bytes) domGles_pipeline_settings::domLight_spot_direction; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_spot_direction::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_spot_direction" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_spot_direction::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_spot_direction::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_direction , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 -1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_direction , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_direction , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_spot_direction)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_spot_exponent::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_spot_exponentRef ref = new(bytes) domGles_pipeline_settings::domLight_spot_exponent; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_spot_exponent::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_spot_exponent" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_spot_exponent::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_spot_exponent::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_exponent , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_exponent , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_exponent , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_spot_exponent)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_model_ambient::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_model_ambientRef ref = new(bytes) domGles_pipeline_settings::domLight_model_ambient; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_model_ambient::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_model_ambient" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_model_ambient::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_model_ambient::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_model_ambient , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0.2 0.2 0.2 1.0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_model_ambient , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_model_ambient)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLine_width::create(daeInt bytes) +{ + domGles_pipeline_settings::domLine_widthRef ref = new(bytes) domGles_pipeline_settings::domLine_width; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLine_width::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "line_width" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLine_width::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLine_width::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLine_width , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLine_width , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLine_width)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domMaterial_ambient::create(daeInt bytes) +{ + domGles_pipeline_settings::domMaterial_ambientRef ref = new(bytes) domGles_pipeline_settings::domMaterial_ambient; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domMaterial_ambient::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_ambient" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domMaterial_ambient::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domMaterial_ambient::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_ambient , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0.2 0.2 0.2 1.0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_ambient , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_ambient)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domMaterial_diffuse::create(daeInt bytes) +{ + domGles_pipeline_settings::domMaterial_diffuseRef ref = new(bytes) domGles_pipeline_settings::domMaterial_diffuse; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domMaterial_diffuse::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_diffuse" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domMaterial_diffuse::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domMaterial_diffuse::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_diffuse , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0.8 0.8 0.8 1.0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_diffuse , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_diffuse)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domMaterial_emission::create(daeInt bytes) +{ + domGles_pipeline_settings::domMaterial_emissionRef ref = new(bytes) domGles_pipeline_settings::domMaterial_emission; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domMaterial_emission::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_emission" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domMaterial_emission::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domMaterial_emission::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_emission , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_emission , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_emission)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domMaterial_shininess::create(daeInt bytes) +{ + domGles_pipeline_settings::domMaterial_shininessRef ref = new(bytes) domGles_pipeline_settings::domMaterial_shininess; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domMaterial_shininess::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_shininess" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domMaterial_shininess::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domMaterial_shininess::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_shininess , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_shininess , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_shininess)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domMaterial_specular::create(daeInt bytes) +{ + domGles_pipeline_settings::domMaterial_specularRef ref = new(bytes) domGles_pipeline_settings::domMaterial_specular; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domMaterial_specular::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material_specular" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domMaterial_specular::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domMaterial_specular::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_specular , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_specular , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_specular)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domModel_view_matrix::create(daeInt bytes) +{ + domGles_pipeline_settings::domModel_view_matrixRef ref = new(bytes) domGles_pipeline_settings::domModel_view_matrix; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domModel_view_matrix::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "model_view_matrix" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domModel_view_matrix::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domModel_view_matrix::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4x4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domModel_view_matrix , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domModel_view_matrix , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domModel_view_matrix)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domPoint_distance_attenuation::create(daeInt bytes) +{ + domGles_pipeline_settings::domPoint_distance_attenuationRef ref = new(bytes) domGles_pipeline_settings::domPoint_distance_attenuation; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domPoint_distance_attenuation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_distance_attenuation" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domPoint_distance_attenuation::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domPoint_distance_attenuation::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_distance_attenuation , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1 0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_distance_attenuation , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_distance_attenuation)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domPoint_fade_threshold_size::create(daeInt bytes) +{ + domGles_pipeline_settings::domPoint_fade_threshold_sizeRef ref = new(bytes) domGles_pipeline_settings::domPoint_fade_threshold_size; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domPoint_fade_threshold_size::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_fade_threshold_size" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domPoint_fade_threshold_size::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domPoint_fade_threshold_size::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_fade_threshold_size , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_fade_threshold_size , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_fade_threshold_size)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domPoint_size::create(daeInt bytes) +{ + domGles_pipeline_settings::domPoint_sizeRef ref = new(bytes) domGles_pipeline_settings::domPoint_size; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domPoint_size::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_size" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domPoint_size::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domPoint_size::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_size)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domPoint_size_min::create(daeInt bytes) +{ + domGles_pipeline_settings::domPoint_size_minRef ref = new(bytes) domGles_pipeline_settings::domPoint_size_min; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domPoint_size_min::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_size_min" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domPoint_size_min::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domPoint_size_min::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size_min , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size_min , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_size_min)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domPoint_size_max::create(daeInt bytes) +{ + domGles_pipeline_settings::domPoint_size_maxRef ref = new(bytes) domGles_pipeline_settings::domPoint_size_max; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domPoint_size_max::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_size_max" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domPoint_size_max::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domPoint_size_max::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size_max , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size_max , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_size_max)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domPolygon_offset::create(daeInt bytes) +{ + domGles_pipeline_settings::domPolygon_offsetRef ref = new(bytes) domGles_pipeline_settings::domPolygon_offset; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domPolygon_offset::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygon_offset" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domPolygon_offset::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domPolygon_offset::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPolygon_offset , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0 0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPolygon_offset , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPolygon_offset)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domProjection_matrix::create(daeInt bytes) +{ + domGles_pipeline_settings::domProjection_matrixRef ref = new(bytes) domGles_pipeline_settings::domProjection_matrix; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domProjection_matrix::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "projection_matrix" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domProjection_matrix::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domProjection_matrix::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4x4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domProjection_matrix , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domProjection_matrix , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domProjection_matrix)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domScissor::create(daeInt bytes) +{ + domGles_pipeline_settings::domScissorRef ref = new(bytes) domGles_pipeline_settings::domScissor; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domScissor::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "scissor" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domScissor::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domScissor::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Int4")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domScissor , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domScissor , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domScissor)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domShade_model::create(daeInt bytes) +{ + domGles_pipeline_settings::domShade_modelRef ref = new(bytes) domGles_pipeline_settings::domShade_model; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domShade_model::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "shade_model" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domShade_model::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domShade_model::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_shade_model_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domShade_model , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "SMOOTH"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domShade_model , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domShade_model)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_func::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_funcRef ref = new(bytes) domGles_pipeline_settings::domStencil_func; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_func::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_func" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_func::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_func::create); + + // Add elements: func, ref, mask + _Meta->appendElement(domGles_pipeline_settings::domStencil_func::domFunc::registerElement(),daeOffsetOf(domGles_pipeline_settings::domStencil_func,elemFunc)); + _Meta->appendElement(domGles_pipeline_settings::domStencil_func::domRef::registerElement(),daeOffsetOf(domGles_pipeline_settings::domStencil_func,elemRef)); + _Meta->appendElement(domGles_pipeline_settings::domStencil_func::domMask::registerElement(),daeOffsetOf(domGles_pipeline_settings::domStencil_func,elemMask)); + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_func)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_func::domFunc::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_func::domFuncRef ref = new(bytes) domGles_pipeline_settings::domStencil_func::domFunc; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_func::domFunc::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "func" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_func::domFunc::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_func::domFunc::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gl_func_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domFunc , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "ALWAYS"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domFunc , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_func::domFunc)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_func::domRef::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_func::domRefRef ref = new(bytes) domGles_pipeline_settings::domStencil_func::domRef; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_func::domRef::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "ref" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_func::domRef::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_func::domRef::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domRef , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "0"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domRef , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_func::domRef)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_func::domMask::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_func::domMaskRef ref = new(bytes) domGles_pipeline_settings::domStencil_func::domMask; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_func::domMask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mask" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_func::domMask::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_func::domMask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domMask , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "255"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domMask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_func::domMask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_mask::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_maskRef ref = new(bytes) domGles_pipeline_settings::domStencil_mask; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_mask::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_mask" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_mask::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_mask::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Int")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_mask , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "4294967295"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_mask , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_mask)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_op::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_opRef ref = new(bytes) domGles_pipeline_settings::domStencil_op; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_op::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_op" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_op::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_op::create); + + // Add elements: fail, zfail, zpass + _Meta->appendElement(domGles_pipeline_settings::domStencil_op::domFail::registerElement(),daeOffsetOf(domGles_pipeline_settings::domStencil_op,elemFail)); + _Meta->appendElement(domGles_pipeline_settings::domStencil_op::domZfail::registerElement(),daeOffsetOf(domGles_pipeline_settings::domStencil_op,elemZfail)); + _Meta->appendElement(domGles_pipeline_settings::domStencil_op::domZpass::registerElement(),daeOffsetOf(domGles_pipeline_settings::domStencil_op,elemZpass)); + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_op)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_op::domFail::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_op::domFailRef ref = new(bytes) domGles_pipeline_settings::domStencil_op::domFail; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_op::domFail::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fail" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_op::domFail::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_op::domFail::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gles_stencil_op_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domFail , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "KEEP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domFail , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_op::domFail)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_op::domZfail::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_op::domZfailRef ref = new(bytes) domGles_pipeline_settings::domStencil_op::domZfail; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_op::domZfail::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "zfail" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_op::domZfail::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_op::domZfail::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gles_stencil_op_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domZfail , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "KEEP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domZfail , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_op::domZfail)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_op::domZpass::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_op::domZpassRef ref = new(bytes) domGles_pipeline_settings::domStencil_op::domZpass; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_op::domZpass::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "zpass" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_op::domZpass::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_op::domZpass::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Gles_stencil_op_type")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domZpass , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "KEEP"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domZpass , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_op::domZpass)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domAlpha_test_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domAlpha_test_enableRef ref = new(bytes) domGles_pipeline_settings::domAlpha_test_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domAlpha_test_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "alpha_test_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domAlpha_test_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domAlpha_test_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_test_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_test_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domAlpha_test_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domBlend_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domBlend_enableRef ref = new(bytes) domGles_pipeline_settings::domBlend_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domBlend_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "blend_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domBlend_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domBlend_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domBlend_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domClip_plane_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domClip_plane_enableRef ref = new(bytes) domGles_pipeline_settings::domClip_plane_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domClip_plane_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "clip_plane_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domClip_plane_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domClip_plane_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_CLIP_PLANES_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane_enable , attrIndex )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClip_plane_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domColor_logic_op_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domColor_logic_op_enableRef ref = new(bytes) domGles_pipeline_settings::domColor_logic_op_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domColor_logic_op_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "color_logic_op_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domColor_logic_op_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domColor_logic_op_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_logic_op_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_logic_op_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domColor_logic_op_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domColor_material_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domColor_material_enableRef ref = new(bytes) domGles_pipeline_settings::domColor_material_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domColor_material_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "color_material_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domColor_material_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domColor_material_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_material_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "true"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_material_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domColor_material_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domCull_face_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domCull_face_enableRef ref = new(bytes) domGles_pipeline_settings::domCull_face_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domCull_face_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "cull_face_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domCull_face_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domCull_face_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domCull_face_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domCull_face_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domCull_face_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domDepth_test_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domDepth_test_enableRef ref = new(bytes) domGles_pipeline_settings::domDepth_test_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domDepth_test_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_test_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domDepth_test_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domDepth_test_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_test_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_test_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDepth_test_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domDither_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domDither_enableRef ref = new(bytes) domGles_pipeline_settings::domDither_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domDither_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "dither_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domDither_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domDither_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDither_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDither_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDither_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domFog_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domFog_enableRef ref = new(bytes) domGles_pipeline_settings::domFog_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domFog_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "fog_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domFog_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domFog_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domTexture_pipeline_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domTexture_pipeline_enableRef ref = new(bytes) domGles_pipeline_settings::domTexture_pipeline_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domTexture_pipeline_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texture_pipeline_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domTexture_pipeline_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domTexture_pipeline_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domTexture_pipeline_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domTexture_pipeline_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domTexture_pipeline_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_enableRef ref = new(bytes) domGles_pipeline_settings::domLight_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: index + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "index" ); + ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_enable , attrIndex )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLighting_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domLighting_enableRef ref = new(bytes) domGles_pipeline_settings::domLighting_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLighting_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "lighting_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLighting_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLighting_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLighting_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLighting_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLighting_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLight_model_two_side_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domLight_model_two_side_enableRef ref = new(bytes) domGles_pipeline_settings::domLight_model_two_side_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLight_model_two_side_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light_model_two_side_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLight_model_two_side_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLight_model_two_side_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_model_two_side_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_model_two_side_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_model_two_side_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domLine_smooth_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domLine_smooth_enableRef ref = new(bytes) domGles_pipeline_settings::domLine_smooth_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domLine_smooth_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "line_smooth_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domLine_smooth_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domLine_smooth_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLine_smooth_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLine_smooth_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLine_smooth_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domMultisample_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domMultisample_enableRef ref = new(bytes) domGles_pipeline_settings::domMultisample_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domMultisample_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "multisample_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domMultisample_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domMultisample_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMultisample_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMultisample_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMultisample_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domNormalize_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domNormalize_enableRef ref = new(bytes) domGles_pipeline_settings::domNormalize_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domNormalize_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "normalize_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domNormalize_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domNormalize_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domNormalize_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domNormalize_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domNormalize_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domPoint_smooth_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domPoint_smooth_enableRef ref = new(bytes) domGles_pipeline_settings::domPoint_smooth_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domPoint_smooth_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point_smooth_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domPoint_smooth_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domPoint_smooth_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_smooth_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_smooth_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_smooth_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domPolygon_offset_fill_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domPolygon_offset_fill_enableRef ref = new(bytes) domGles_pipeline_settings::domPolygon_offset_fill_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domPolygon_offset_fill_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygon_offset_fill_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domPolygon_offset_fill_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domPolygon_offset_fill_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPolygon_offset_fill_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPolygon_offset_fill_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPolygon_offset_fill_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domRescale_normal_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domRescale_normal_enableRef ref = new(bytes) domGles_pipeline_settings::domRescale_normal_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domRescale_normal_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "rescale_normal_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domRescale_normal_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domRescale_normal_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domRescale_normal_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domRescale_normal_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domRescale_normal_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domSample_alpha_to_coverage_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domSample_alpha_to_coverage_enableRef ref = new(bytes) domGles_pipeline_settings::domSample_alpha_to_coverage_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domSample_alpha_to_coverage_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "sample_alpha_to_coverage_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domSample_alpha_to_coverage_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domSample_alpha_to_coverage_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_alpha_to_coverage_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_alpha_to_coverage_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domSample_alpha_to_coverage_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domSample_alpha_to_one_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domSample_alpha_to_one_enableRef ref = new(bytes) domGles_pipeline_settings::domSample_alpha_to_one_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domSample_alpha_to_one_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "sample_alpha_to_one_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domSample_alpha_to_one_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domSample_alpha_to_one_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_alpha_to_one_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_alpha_to_one_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domSample_alpha_to_one_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domSample_coverage_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domSample_coverage_enableRef ref = new(bytes) domGles_pipeline_settings::domSample_coverage_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domSample_coverage_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "sample_coverage_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domSample_coverage_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domSample_coverage_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_coverage_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_coverage_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domSample_coverage_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domScissor_test_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domScissor_test_enableRef ref = new(bytes) domGles_pipeline_settings::domScissor_test_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domScissor_test_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "scissor_test_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domScissor_test_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domScissor_test_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domScissor_test_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domScissor_test_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domScissor_test_enable)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_pipeline_settings::domStencil_test_enable::create(daeInt bytes) +{ + domGles_pipeline_settings::domStencil_test_enableRef ref = new(bytes) domGles_pipeline_settings::domStencil_test_enable; + return ref; +} + + +daeMetaElement * +domGles_pipeline_settings::domStencil_test_enable::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_test_enable" ); + _Meta->setStaticPointerAddress(&domGles_pipeline_settings::domStencil_test_enable::_Meta); + _Meta->registerConstructor(domGles_pipeline_settings::domStencil_test_enable::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_test_enable , attrValue )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_test_enable , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_test_enable)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_pipeline_settings::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domAlpha_func::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domAlpha_func::domFunc::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domAlpha_func::domValue::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domBlend_func::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domBlend_func::domSrc::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domBlend_func::domDest::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domClear_color::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domClear_stencil::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domClear_depth::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domClip_plane::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domColor_mask::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domCull_face::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domDepth_func::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domDepth_mask::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domDepth_range::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domFog_color::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domFog_density::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domFog_mode::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domFog_start::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domFog_end::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domFront_face::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domTexture_pipeline::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLogic_op::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_ambient::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_diffuse::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_specular::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_position::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_constant_attenuation::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_linear_attenutation::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_quadratic_attenuation::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_spot_cutoff::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_spot_direction::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_spot_exponent::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_model_ambient::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLine_width::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domMaterial_ambient::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domMaterial_diffuse::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domMaterial_emission::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domMaterial_shininess::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domMaterial_specular::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domModel_view_matrix::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domPoint_distance_attenuation::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domPoint_fade_threshold_size::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domPoint_size::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domPoint_size_min::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domPoint_size_max::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domPolygon_offset::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domProjection_matrix::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domScissor::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domShade_model::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_func::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_func::domFunc::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_func::domRef::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_func::domMask::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_mask::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_op::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_op::domFail::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_op::domZfail::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_op::domZpass::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domAlpha_test_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domBlend_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domClip_plane_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domColor_logic_op_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domColor_material_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domCull_face_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domDepth_test_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domDither_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domFog_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domTexture_pipeline_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLighting_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLight_model_two_side_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domLine_smooth_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domMultisample_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domNormalize_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domPoint_smooth_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domPolygon_offset_fill_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domRescale_normal_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domSample_alpha_to_coverage_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domSample_alpha_to_one_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domSample_coverage_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domScissor_test_enable::_Meta = NULL; +daeMetaElement * domGles_pipeline_settings::domStencil_test_enable::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_sampler_state.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_sampler_state.cpp new file mode 100644 index 000000000..2c90b29d5 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_sampler_state.cpp @@ -0,0 +1,318 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_sampler_state::create(daeInt bytes) +{ + domGles_sampler_stateRef ref = new(bytes) domGles_sampler_state; + return ref; +} + + +daeMetaElement * +domGles_sampler_state::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_sampler_state" ); + _Meta->setStaticPointerAddress(&domGles_sampler_state::_Meta); + _Meta->registerConstructor(domGles_sampler_state::create); + + // Add elements: wrap_s, wrap_t, minfilter, magfilter, mipfilter, mipmap_maxlevel, mipmap_bias, extra + _Meta->appendElement(domGles_sampler_state::domWrap_s::registerElement(),daeOffsetOf(domGles_sampler_state,elemWrap_s)); + _Meta->appendElement(domGles_sampler_state::domWrap_t::registerElement(),daeOffsetOf(domGles_sampler_state,elemWrap_t)); + _Meta->appendElement(domGles_sampler_state::domMinfilter::registerElement(),daeOffsetOf(domGles_sampler_state,elemMinfilter)); + _Meta->appendElement(domGles_sampler_state::domMagfilter::registerElement(),daeOffsetOf(domGles_sampler_state,elemMagfilter)); + _Meta->appendElement(domGles_sampler_state::domMipfilter::registerElement(),daeOffsetOf(domGles_sampler_state,elemMipfilter)); + _Meta->appendElement(domGles_sampler_state::domMipmap_maxlevel::registerElement(),daeOffsetOf(domGles_sampler_state,elemMipmap_maxlevel)); + _Meta->appendElement(domGles_sampler_state::domMipmap_bias::registerElement(),daeOffsetOf(domGles_sampler_state,elemMipmap_bias)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domGles_sampler_state,elemExtra_array)); + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_sampler_state , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_sampler_state)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_sampler_state::domWrap_s::create(daeInt bytes) +{ + domGles_sampler_state::domWrap_sRef ref = new(bytes) domGles_sampler_state::domWrap_s; + return ref; +} + + +daeMetaElement * +domGles_sampler_state::domWrap_s::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_s" ); + _Meta->setStaticPointerAddress(&domGles_sampler_state::domWrap_s::_Meta); + _Meta->registerConstructor(domGles_sampler_state::domWrap_s::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Gles_sampler_wrap")); + ma->setOffset( daeOffsetOf( domGles_sampler_state::domWrap_s , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_sampler_state::domWrap_s)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_sampler_state::domWrap_t::create(daeInt bytes) +{ + domGles_sampler_state::domWrap_tRef ref = new(bytes) domGles_sampler_state::domWrap_t; + return ref; +} + + +daeMetaElement * +domGles_sampler_state::domWrap_t::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "wrap_t" ); + _Meta->setStaticPointerAddress(&domGles_sampler_state::domWrap_t::_Meta); + _Meta->registerConstructor(domGles_sampler_state::domWrap_t::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Gles_sampler_wrap")); + ma->setOffset( daeOffsetOf( domGles_sampler_state::domWrap_t , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_sampler_state::domWrap_t)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_sampler_state::domMinfilter::create(daeInt bytes) +{ + domGles_sampler_state::domMinfilterRef ref = new(bytes) domGles_sampler_state::domMinfilter; + return ref; +} + + +daeMetaElement * +domGles_sampler_state::domMinfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "minfilter" ); + _Meta->setStaticPointerAddress(&domGles_sampler_state::domMinfilter::_Meta); + _Meta->registerConstructor(domGles_sampler_state::domMinfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domGles_sampler_state::domMinfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_sampler_state::domMinfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_sampler_state::domMagfilter::create(daeInt bytes) +{ + domGles_sampler_state::domMagfilterRef ref = new(bytes) domGles_sampler_state::domMagfilter; + return ref; +} + + +daeMetaElement * +domGles_sampler_state::domMagfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "magfilter" ); + _Meta->setStaticPointerAddress(&domGles_sampler_state::domMagfilter::_Meta); + _Meta->registerConstructor(domGles_sampler_state::domMagfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domGles_sampler_state::domMagfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_sampler_state::domMagfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_sampler_state::domMipfilter::create(daeInt bytes) +{ + domGles_sampler_state::domMipfilterRef ref = new(bytes) domGles_sampler_state::domMipfilter; + return ref; +} + + +daeMetaElement * +domGles_sampler_state::domMipfilter::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipfilter" ); + _Meta->setStaticPointerAddress(&domGles_sampler_state::domMipfilter::_Meta); + _Meta->registerConstructor(domGles_sampler_state::domMipfilter::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); + ma->setOffset( daeOffsetOf( domGles_sampler_state::domMipfilter , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_sampler_state::domMipfilter)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_sampler_state::domMipmap_maxlevel::create(daeInt bytes) +{ + domGles_sampler_state::domMipmap_maxlevelRef ref = new(bytes) domGles_sampler_state::domMipmap_maxlevel; + return ref; +} + + +daeMetaElement * +domGles_sampler_state::domMipmap_maxlevel::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_maxlevel" ); + _Meta->setStaticPointerAddress(&domGles_sampler_state::domMipmap_maxlevel::_Meta); + _Meta->registerConstructor(domGles_sampler_state::domMipmap_maxlevel::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsUnsignedByte")); + ma->setOffset( daeOffsetOf( domGles_sampler_state::domMipmap_maxlevel , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_sampler_state::domMipmap_maxlevel)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_sampler_state::domMipmap_bias::create(daeInt bytes) +{ + domGles_sampler_state::domMipmap_biasRef ref = new(bytes) domGles_sampler_state::domMipmap_bias; + return ref; +} + + +daeMetaElement * +domGles_sampler_state::domMipmap_bias::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mipmap_bias" ); + _Meta->setStaticPointerAddress(&domGles_sampler_state::domMipmap_bias::_Meta); + _Meta->registerConstructor(domGles_sampler_state::domMipmap_bias::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsFloat")); + ma->setOffset( daeOffsetOf( domGles_sampler_state::domMipmap_bias , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_sampler_state::domMipmap_bias)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_sampler_state::_Meta = NULL; +daeMetaElement * domGles_sampler_state::domWrap_s::_Meta = NULL; +daeMetaElement * domGles_sampler_state::domWrap_t::_Meta = NULL; +daeMetaElement * domGles_sampler_state::domMinfilter::_Meta = NULL; +daeMetaElement * domGles_sampler_state::domMagfilter::_Meta = NULL; +daeMetaElement * domGles_sampler_state::domMipfilter::_Meta = NULL; +daeMetaElement * domGles_sampler_state::domMipmap_maxlevel::_Meta = NULL; +daeMetaElement * domGles_sampler_state::domMipmap_bias::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentAlpha_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentAlpha_type.cpp new file mode 100644 index 000000000..7372268de --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentAlpha_type.cpp @@ -0,0 +1,81 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_texcombiner_argumentAlpha_type::create(daeInt bytes) +{ + domGles_texcombiner_argumentAlpha_typeRef ref = new(bytes) domGles_texcombiner_argumentAlpha_type; + return ref; +} + + +daeMetaElement * +domGles_texcombiner_argumentAlpha_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_texcombiner_argumentAlpha_type" ); + _Meta->setStaticPointerAddress(&domGles_texcombiner_argumentAlpha_type::_Meta); + _Meta->registerConstructor(domGles_texcombiner_argumentAlpha_type::create); + + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("Gles_texcombiner_source_enums")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentAlpha_type , attrSource )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: operand + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "operand" ); + ma->setType( daeAtomicType::get("Gles_texcombiner_operandAlpha_enums")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentAlpha_type , attrOperand )); + ma->setContainer( _Meta ); + ma->setDefault( "SRC_ALPHA"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: unit + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "unit" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentAlpha_type , attrUnit )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texcombiner_argumentAlpha_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_texcombiner_argumentAlpha_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentRGB_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentRGB_type.cpp new file mode 100644 index 000000000..2d45f3e09 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentRGB_type.cpp @@ -0,0 +1,81 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_texcombiner_argumentRGB_type::create(daeInt bytes) +{ + domGles_texcombiner_argumentRGB_typeRef ref = new(bytes) domGles_texcombiner_argumentRGB_type; + return ref; +} + + +daeMetaElement * +domGles_texcombiner_argumentRGB_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_texcombiner_argumentRGB_type" ); + _Meta->setStaticPointerAddress(&domGles_texcombiner_argumentRGB_type::_Meta); + _Meta->registerConstructor(domGles_texcombiner_argumentRGB_type::create); + + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("Gles_texcombiner_source_enums")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentRGB_type , attrSource )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: operand + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "operand" ); + ma->setType( daeAtomicType::get("Gles_texcombiner_operandRGB_enums")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentRGB_type , attrOperand )); + ma->setContainer( _Meta ); + ma->setDefault( "SRC_COLOR"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: unit + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "unit" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentRGB_type , attrUnit )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texcombiner_argumentRGB_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_texcombiner_argumentRGB_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp new file mode 100644 index 000000000..d24a7519b --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp @@ -0,0 +1,71 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_texcombiner_commandAlpha_type::create(daeInt bytes) +{ + domGles_texcombiner_commandAlpha_typeRef ref = new(bytes) domGles_texcombiner_commandAlpha_type; + return ref; +} + + +daeMetaElement * +domGles_texcombiner_commandAlpha_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_texcombiner_commandAlpha_type" ); + _Meta->setStaticPointerAddress(&domGles_texcombiner_commandAlpha_type::_Meta); + _Meta->registerConstructor(domGles_texcombiner_commandAlpha_type::create); + + // Add elements: argument + _Meta->appendArrayElement(domGles_texcombiner_argumentAlpha_type::registerElement(),daeOffsetOf(domGles_texcombiner_commandAlpha_type,elemArgument_array),"argument"); + + // Add attribute: operator + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "operator" ); + ma->setType( daeAtomicType::get("Gles_texcombiner_operatorAlpha_enums")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_commandAlpha_type , attrOperator )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: scale + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "scale" ); + ma->setType( daeAtomicType::get("xsFloat")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_commandAlpha_type , attrScale )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texcombiner_commandAlpha_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_texcombiner_commandAlpha_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandRGB_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandRGB_type.cpp new file mode 100644 index 000000000..743cc85ec --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandRGB_type.cpp @@ -0,0 +1,71 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_texcombiner_commandRGB_type::create(daeInt bytes) +{ + domGles_texcombiner_commandRGB_typeRef ref = new(bytes) domGles_texcombiner_commandRGB_type; + return ref; +} + + +daeMetaElement * +domGles_texcombiner_commandRGB_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_texcombiner_commandRGB_type" ); + _Meta->setStaticPointerAddress(&domGles_texcombiner_commandRGB_type::_Meta); + _Meta->registerConstructor(domGles_texcombiner_commandRGB_type::create); + + // Add elements: argument + _Meta->appendArrayElement(domGles_texcombiner_argumentRGB_type::registerElement(),daeOffsetOf(domGles_texcombiner_commandRGB_type,elemArgument_array),"argument"); + + // Add attribute: operator + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "operator" ); + ma->setType( daeAtomicType::get("Gles_texcombiner_operatorRGB_enums")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_commandRGB_type , attrOperator )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: scale + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "scale" ); + ma->setType( daeAtomicType::get("xsFloat")); + ma->setOffset( daeOffsetOf( domGles_texcombiner_commandRGB_type , attrScale )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texcombiner_commandRGB_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_texcombiner_commandRGB_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_command_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_command_type.cpp new file mode 100644 index 000000000..ac84a2488 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_command_type.cpp @@ -0,0 +1,50 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_texcombiner_command_type::create(daeInt bytes) +{ + domGles_texcombiner_command_typeRef ref = new(bytes) domGles_texcombiner_command_type; + return ref; +} + + +daeMetaElement * +domGles_texcombiner_command_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_texcombiner_command_type" ); + _Meta->setStaticPointerAddress(&domGles_texcombiner_command_type::_Meta); + _Meta->registerConstructor(domGles_texcombiner_command_type::create); + + // Add elements: constant, RGB, alpha + _Meta->appendElement(domGles_texture_constant_type::registerElement(),daeOffsetOf(domGles_texcombiner_command_type,elemConstant),"constant"); + _Meta->appendElement(domGles_texcombiner_commandRGB_type::registerElement(),daeOffsetOf(domGles_texcombiner_command_type,elemRGB),"RGB"); + _Meta->appendElement(domGles_texcombiner_commandAlpha_type::registerElement(),daeOffsetOf(domGles_texcombiner_command_type,elemAlpha),"alpha"); + + + _Meta->setElementSize(sizeof(domGles_texcombiner_command_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_texcombiner_command_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texenv_command_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texenv_command_type.cpp new file mode 100644 index 000000000..8a240c623 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texenv_command_type.cpp @@ -0,0 +1,70 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_texenv_command_type::create(daeInt bytes) +{ + domGles_texenv_command_typeRef ref = new(bytes) domGles_texenv_command_type; + return ref; +} + + +daeMetaElement * +domGles_texenv_command_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_texenv_command_type" ); + _Meta->setStaticPointerAddress(&domGles_texenv_command_type::_Meta); + _Meta->registerConstructor(domGles_texenv_command_type::create); + + // Add elements: constant + _Meta->appendElement(domGles_texture_constant_type::registerElement(),daeOffsetOf(domGles_texenv_command_type,elemConstant),"constant"); + + // Add attribute: operator + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "operator" ); + ma->setType( daeAtomicType::get("Gles_texenv_mode_enums")); + ma->setOffset( daeOffsetOf( domGles_texenv_command_type , attrOperator )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: unit + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "unit" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_texenv_command_type , attrUnit )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texenv_command_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_texenv_command_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_constant_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_constant_type.cpp new file mode 100644 index 000000000..82181418e --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_constant_type.cpp @@ -0,0 +1,70 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_texture_constant_type::create(daeInt bytes) +{ + domGles_texture_constant_typeRef ref = new(bytes) domGles_texture_constant_type; + return ref; +} + + +daeMetaElement * +domGles_texture_constant_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_texture_constant_type" ); + _Meta->setStaticPointerAddress(&domGles_texture_constant_type::_Meta); + _Meta->registerConstructor(domGles_texture_constant_type::create); + + + // Add attribute: value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domGles_texture_constant_type , attrValue )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: param + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "param" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_texture_constant_type , attrParam )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texture_constant_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_texture_constant_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_pipeline.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_pipeline.cpp new file mode 100644 index 000000000..98dbd36c1 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_pipeline.cpp @@ -0,0 +1,64 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_texture_pipeline::create(daeInt bytes) +{ + domGles_texture_pipelineRef ref = new(bytes) domGles_texture_pipeline; + return ref; +} + + +daeMetaElement * +domGles_texture_pipeline::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_texture_pipeline" ); + _Meta->setStaticPointerAddress(&domGles_texture_pipeline::_Meta); + _Meta->registerConstructor(domGles_texture_pipeline::create); + + // Add elements: texcombiner, texenv, extra + _Meta->appendArrayElement(domGles_texcombiner_command_type::registerElement(),daeOffsetOf(domGles_texture_pipeline,elemTexcombiner_array),"texcombiner"); + _Meta->appendArrayElement(domGles_texenv_command_type::registerElement(),daeOffsetOf(domGles_texture_pipeline,elemTexenv_array),"texenv"); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domGles_texture_pipeline,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGles_texture_pipeline,_contents)); + + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_texture_pipeline , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texture_pipeline)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_texture_pipeline::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_unit.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_unit.cpp new file mode 100644 index 000000000..197b3c5d7 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_unit.cpp @@ -0,0 +1,171 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGles_texture_unit::create(daeInt bytes) +{ + domGles_texture_unitRef ref = new(bytes) domGles_texture_unit; + return ref; +} + + +daeMetaElement * +domGles_texture_unit::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "gles_texture_unit" ); + _Meta->setStaticPointerAddress(&domGles_texture_unit::_Meta); + _Meta->registerConstructor(domGles_texture_unit::create); + + // Add elements: surface, sampler_state, texcoord + _Meta->appendElement(domGles_texture_unit::domSurface::registerElement(),daeOffsetOf(domGles_texture_unit,elemSurface)); + _Meta->appendElement(domGles_texture_unit::domSampler_state::registerElement(),daeOffsetOf(domGles_texture_unit,elemSampler_state)); + _Meta->appendElement(domGles_texture_unit::domTexcoord::registerElement(),daeOffsetOf(domGles_texture_unit,elemTexcoord)); + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_texture_unit , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texture_unit)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_texture_unit::domSurface::create(daeInt bytes) +{ + domGles_texture_unit::domSurfaceRef ref = new(bytes) domGles_texture_unit::domSurface; + return ref; +} + + +daeMetaElement * +domGles_texture_unit::domSurface::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "surface" ); + _Meta->setStaticPointerAddress(&domGles_texture_unit::domSurface::_Meta); + _Meta->registerConstructor(domGles_texture_unit::domSurface::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_texture_unit::domSurface , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texture_unit::domSurface)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_texture_unit::domSampler_state::create(daeInt bytes) +{ + domGles_texture_unit::domSampler_stateRef ref = new(bytes) domGles_texture_unit::domSampler_state; + return ref; +} + + +daeMetaElement * +domGles_texture_unit::domSampler_state::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "sampler_state" ); + _Meta->setStaticPointerAddress(&domGles_texture_unit::domSampler_state::_Meta); + _Meta->registerConstructor(domGles_texture_unit::domSampler_state::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_texture_unit::domSampler_state , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texture_unit::domSampler_state)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGles_texture_unit::domTexcoord::create(daeInt bytes) +{ + domGles_texture_unit::domTexcoordRef ref = new(bytes) domGles_texture_unit::domTexcoord; + return ref; +} + + +daeMetaElement * +domGles_texture_unit::domTexcoord::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "texcoord" ); + _Meta->setStaticPointerAddress(&domGles_texture_unit::domTexcoord::_Meta); + _Meta->registerConstructor(domGles_texture_unit::domTexcoord::create); + + + // Add attribute: semantic + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "semantic" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGles_texture_unit::domTexcoord , attrSemantic )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGles_texture_unit::domTexcoord)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGles_texture_unit::_Meta = NULL; +daeMetaElement * domGles_texture_unit::domSurface::_Meta = NULL; +daeMetaElement * domGles_texture_unit::domSampler_state::_Meta = NULL; +daeMetaElement * domGles_texture_unit::domTexcoord::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newarray_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newarray_type.cpp new file mode 100644 index 000000000..f4ed8d19b --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newarray_type.cpp @@ -0,0 +1,87 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGlsl_newarray_type::create(daeInt bytes) +{ + domGlsl_newarray_typeRef ref = new(bytes) domGlsl_newarray_type; + return ref; +} + + +daeMetaElement * +domGlsl_newarray_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "glsl_newarray_type" ); + _Meta->setStaticPointerAddress(&domGlsl_newarray_type::_Meta); + _Meta->registerConstructor(domGlsl_newarray_type::create); + + // Add elements: glsl_param_type, array + _Meta->appendArrayElement(domGlsl_param_type::registerElement(),daeOffsetOf(domGlsl_newarray_type,elemGlsl_param_type_array)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[0], "fx_surface_common"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[0], "gl_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[0], "gl_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[0], "gl_sampler3D"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[0], "gl_samplerCUBE"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[0], "gl_samplerRECT"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[0], "gl_samplerDEPTH"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[0]); + _Meta->appendArrayElement(domGlsl_newarray_type::registerElement(),daeOffsetOf(domGlsl_newarray_type,elemArray_array),"array"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGlsl_newarray_type,_contents)); + + + // Add attribute: length + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "length" ); + ma->setType( daeAtomicType::get("xsPositiveInteger")); + ma->setOffset( daeOffsetOf( domGlsl_newarray_type , attrLength )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_newarray_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGlsl_newarray_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newparam.cpp new file mode 100644 index 000000000..51a88d273 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newparam.cpp @@ -0,0 +1,162 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGlsl_newparam::create(daeInt bytes) +{ + domGlsl_newparamRef ref = new(bytes) domGlsl_newparam; + return ref; +} + + +daeMetaElement * +domGlsl_newparam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "glsl_newparam" ); + _Meta->setStaticPointerAddress(&domGlsl_newparam::_Meta); + _Meta->registerConstructor(domGlsl_newparam::create); + + // Add elements: annotate, semantic, modifier, glsl_param_type, array + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domGlsl_newparam,elemAnnotate_array),"annotate"); + _Meta->appendElement(domGlsl_newparam::domSemantic::registerElement(),daeOffsetOf(domGlsl_newparam,elemSemantic)); + _Meta->appendElement(domGlsl_newparam::domModifier::registerElement(),daeOffsetOf(domGlsl_newparam,elemModifier)); + _Meta->appendElement(domGlsl_param_type::registerElement(),daeOffsetOf(domGlsl_newparam,elemGlsl_param_type)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[3]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[3], "fx_surface_common"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[3], "gl_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[3], "gl_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[3], "gl_sampler3D"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[3], "gl_samplerCUBE"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[3], "gl_samplerRECT"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[3], "gl_samplerDEPTH"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[3]); + _Meta->appendElement(domGlsl_newarray_type::registerElement(),daeOffsetOf(domGlsl_newparam,elemArray),"array"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGlsl_newparam,_contents)); + + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("Glsl_identifier")); + ma->setOffset( daeOffsetOf( domGlsl_newparam , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_newparam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_newparam::domSemantic::create(daeInt bytes) +{ + domGlsl_newparam::domSemanticRef ref = new(bytes) domGlsl_newparam::domSemantic; + return ref; +} + + +daeMetaElement * +domGlsl_newparam::domSemantic::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "semantic" ); + _Meta->setStaticPointerAddress(&domGlsl_newparam::domSemantic::_Meta); + _Meta->registerConstructor(domGlsl_newparam::domSemantic::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGlsl_newparam::domSemantic , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_newparam::domSemantic)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_newparam::domModifier::create(daeInt bytes) +{ + domGlsl_newparam::domModifierRef ref = new(bytes) domGlsl_newparam::domModifier; + return ref; +} + + +daeMetaElement * +domGlsl_newparam::domModifier::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "modifier" ); + _Meta->setStaticPointerAddress(&domGlsl_newparam::domModifier::_Meta); + _Meta->registerConstructor(domGlsl_newparam::domModifier::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_modifier_enum_common")); + ma->setOffset( daeOffsetOf( domGlsl_newparam::domModifier , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_newparam::domModifier)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGlsl_newparam::_Meta = NULL; +daeMetaElement * domGlsl_newparam::domSemantic::_Meta = NULL; +daeMetaElement * domGlsl_newparam::domModifier::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_param_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_param_type.cpp new file mode 100644 index 000000000..8f41df326 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_param_type.cpp @@ -0,0 +1,650 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGlsl_param_type::create(daeInt bytes) +{ + domGlsl_param_typeRef ref = new(bytes) domGlsl_param_type; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "glsl_param_type" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::_Meta); + _Meta->registerConstructor(domGlsl_param_type::create); + + _Meta->setIsTransparent( true ); + // Add elements: bool, bool2, bool3, bool4, float, float2, float3, float4, float2x2, float3x3, float4x4, int, int2, int3, int4, surface, sampler1D, sampler2D, sampler3D, samplerCUBE, samplerRECT, samplerDEPTH, enum + _Meta->appendElement(domGlsl_param_type::domBool::registerElement(),daeOffsetOf(domGlsl_param_type,elemBool)); + _Meta->appendElement(domGlsl_param_type::domBool2::registerElement(),daeOffsetOf(domGlsl_param_type,elemBool2)); + _Meta->appendElement(domGlsl_param_type::domBool3::registerElement(),daeOffsetOf(domGlsl_param_type,elemBool3)); + _Meta->appendElement(domGlsl_param_type::domBool4::registerElement(),daeOffsetOf(domGlsl_param_type,elemBool4)); + _Meta->appendElement(domGlsl_param_type::domFloat::registerElement(),daeOffsetOf(domGlsl_param_type,elemFloat)); + _Meta->appendElement(domGlsl_param_type::domFloat2::registerElement(),daeOffsetOf(domGlsl_param_type,elemFloat2)); + _Meta->appendElement(domGlsl_param_type::domFloat3::registerElement(),daeOffsetOf(domGlsl_param_type,elemFloat3)); + _Meta->appendElement(domGlsl_param_type::domFloat4::registerElement(),daeOffsetOf(domGlsl_param_type,elemFloat4)); + _Meta->appendElement(domGlsl_param_type::domFloat2x2::registerElement(),daeOffsetOf(domGlsl_param_type,elemFloat2x2)); + _Meta->appendElement(domGlsl_param_type::domFloat3x3::registerElement(),daeOffsetOf(domGlsl_param_type,elemFloat3x3)); + _Meta->appendElement(domGlsl_param_type::domFloat4x4::registerElement(),daeOffsetOf(domGlsl_param_type,elemFloat4x4)); + _Meta->appendElement(domGlsl_param_type::domInt::registerElement(),daeOffsetOf(domGlsl_param_type,elemInt)); + _Meta->appendElement(domGlsl_param_type::domInt2::registerElement(),daeOffsetOf(domGlsl_param_type,elemInt2)); + _Meta->appendElement(domGlsl_param_type::domInt3::registerElement(),daeOffsetOf(domGlsl_param_type,elemInt3)); + _Meta->appendElement(domGlsl_param_type::domInt4::registerElement(),daeOffsetOf(domGlsl_param_type,elemInt4)); + _Meta->appendElement(domFx_surface_common::registerElement(),daeOffsetOf(domGlsl_param_type,elemSurface),"surface"); + _Meta->appendElement(domGl_sampler1D::registerElement(),daeOffsetOf(domGlsl_param_type,elemSampler1D),"sampler1D"); + _Meta->appendElement(domGl_sampler2D::registerElement(),daeOffsetOf(domGlsl_param_type,elemSampler2D),"sampler2D"); + _Meta->appendElement(domGl_sampler3D::registerElement(),daeOffsetOf(domGlsl_param_type,elemSampler3D),"sampler3D"); + _Meta->appendElement(domGl_samplerCUBE::registerElement(),daeOffsetOf(domGlsl_param_type,elemSamplerCUBE),"samplerCUBE"); + _Meta->appendElement(domGl_samplerRECT::registerElement(),daeOffsetOf(domGlsl_param_type,elemSamplerRECT),"samplerRECT"); + _Meta->appendElement(domGl_samplerDEPTH::registerElement(),daeOffsetOf(domGlsl_param_type,elemSamplerDEPTH),"samplerDEPTH"); + _Meta->appendElement(domGlsl_param_type::domEnum::registerElement(),daeOffsetOf(domGlsl_param_type,elemEnum)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGlsl_param_type,_contents)); + + + + _Meta->setElementSize(sizeof(domGlsl_param_type)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domBool::create(daeInt bytes) +{ + domGlsl_param_type::domBoolRef ref = new(bytes) domGlsl_param_type::domBool; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domBool::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domBool::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domBool::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_bool")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domBool , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domBool)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domBool2::create(daeInt bytes) +{ + domGlsl_param_type::domBool2Ref ref = new(bytes) domGlsl_param_type::domBool2; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domBool2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool2" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domBool2::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domBool2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_bool2")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domBool2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domBool2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domBool3::create(daeInt bytes) +{ + domGlsl_param_type::domBool3Ref ref = new(bytes) domGlsl_param_type::domBool3; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domBool3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool3" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domBool3::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domBool3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_bool3")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domBool3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domBool3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domBool4::create(daeInt bytes) +{ + domGlsl_param_type::domBool4Ref ref = new(bytes) domGlsl_param_type::domBool4; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domBool4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bool4" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domBool4::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domBool4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_bool4")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domBool4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domBool4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domFloat::create(daeInt bytes) +{ + domGlsl_param_type::domFloatRef ref = new(bytes) domGlsl_param_type::domFloat; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domFloat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domFloat::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domFloat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_float")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domFloat2::create(daeInt bytes) +{ + domGlsl_param_type::domFloat2Ref ref = new(bytes) domGlsl_param_type::domFloat2; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domFloat2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domFloat2::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domFloat2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_float2")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domFloat3::create(daeInt bytes) +{ + domGlsl_param_type::domFloat3Ref ref = new(bytes) domGlsl_param_type::domFloat3; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domFloat3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domFloat3::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domFloat3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_float3")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domFloat4::create(daeInt bytes) +{ + domGlsl_param_type::domFloat4Ref ref = new(bytes) domGlsl_param_type::domFloat4; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domFloat4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domFloat4::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domFloat4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_float4")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domFloat2x2::create(daeInt bytes) +{ + domGlsl_param_type::domFloat2x2Ref ref = new(bytes) domGlsl_param_type::domFloat2x2; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domFloat2x2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float2x2" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domFloat2x2::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domFloat2x2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_float2x2")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat2x2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat2x2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domFloat3x3::create(daeInt bytes) +{ + domGlsl_param_type::domFloat3x3Ref ref = new(bytes) domGlsl_param_type::domFloat3x3; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domFloat3x3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float3x3" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domFloat3x3::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domFloat3x3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_float3x3")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat3x3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat3x3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domFloat4x4::create(daeInt bytes) +{ + domGlsl_param_type::domFloat4x4Ref ref = new(bytes) domGlsl_param_type::domFloat4x4; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domFloat4x4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "float4x4" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domFloat4x4::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domFloat4x4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_float4x4")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat4x4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat4x4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domInt::create(daeInt bytes) +{ + domGlsl_param_type::domIntRef ref = new(bytes) domGlsl_param_type::domInt; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domInt::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domInt::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domInt::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_int")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domInt , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domInt)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domInt2::create(daeInt bytes) +{ + domGlsl_param_type::domInt2Ref ref = new(bytes) domGlsl_param_type::domInt2; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domInt2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int2" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domInt2::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domInt2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_int2")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domInt2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domInt2)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domInt3::create(daeInt bytes) +{ + domGlsl_param_type::domInt3Ref ref = new(bytes) domGlsl_param_type::domInt3; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domInt3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int3" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domInt3::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domInt3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_int3")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domInt3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domInt3)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domInt4::create(daeInt bytes) +{ + domGlsl_param_type::domInt4Ref ref = new(bytes) domGlsl_param_type::domInt4; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domInt4::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int4" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domInt4::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domInt4::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Glsl_int4")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domInt4 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domInt4)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_param_type::domEnum::create(daeInt bytes) +{ + domGlsl_param_type::domEnumRef ref = new(bytes) domGlsl_param_type::domEnum; + return ref; +} + + +daeMetaElement * +domGlsl_param_type::domEnum::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "enum" ); + _Meta->setStaticPointerAddress(&domGlsl_param_type::domEnum::_Meta); + _Meta->registerConstructor(domGlsl_param_type::domEnum::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Gl_enumeration")); + ma->setOffset( daeOffsetOf( domGlsl_param_type::domEnum , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_param_type::domEnum)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGlsl_param_type::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domBool::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domBool2::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domBool3::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domBool4::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domFloat::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domFloat2::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domFloat3::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domFloat4::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domFloat2x2::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domFloat3x3::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domFloat4x4::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domInt::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domInt2::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domInt3::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domInt4::_Meta = NULL; +daeMetaElement * domGlsl_param_type::domEnum::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setarray_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setarray_type.cpp new file mode 100644 index 000000000..871af9f80 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setarray_type.cpp @@ -0,0 +1,87 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGlsl_setarray_type::create(daeInt bytes) +{ + domGlsl_setarray_typeRef ref = new(bytes) domGlsl_setarray_type; + return ref; +} + + +daeMetaElement * +domGlsl_setarray_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "glsl_setarray_type" ); + _Meta->setStaticPointerAddress(&domGlsl_setarray_type::_Meta); + _Meta->registerConstructor(domGlsl_setarray_type::create); + + // Add elements: glsl_param_type, array + _Meta->appendArrayElement(domGlsl_param_type::registerElement(),daeOffsetOf(domGlsl_setarray_type,elemGlsl_param_type_array)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[0], "fx_surface_common"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[0], "gl_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[0], "gl_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[0], "gl_sampler3D"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[0], "gl_samplerCUBE"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[0], "gl_samplerRECT"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[0], "gl_samplerDEPTH"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[0]); + _Meta->appendArrayElement(domGlsl_setarray_type::registerElement(),daeOffsetOf(domGlsl_setarray_type,elemArray_array),"array"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGlsl_setarray_type,_contents)); + + + // Add attribute: length + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "length" ); + ma->setType( daeAtomicType::get("xsPositiveInteger")); + ma->setOffset( daeOffsetOf( domGlsl_setarray_type , attrLength )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_setarray_type)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGlsl_setarray_type::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam.cpp new file mode 100644 index 000000000..c4a2a847f --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam.cpp @@ -0,0 +1,99 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGlsl_setparam::create(daeInt bytes) +{ + domGlsl_setparamRef ref = new(bytes) domGlsl_setparam; + return ref; +} + + +daeMetaElement * +domGlsl_setparam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "glsl_setparam" ); + _Meta->setStaticPointerAddress(&domGlsl_setparam::_Meta); + _Meta->registerConstructor(domGlsl_setparam::create); + + // Add elements: annotate, glsl_param_type, array + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domGlsl_setparam,elemAnnotate_array),"annotate"); + _Meta->appendElement(domGlsl_param_type::registerElement(),daeOffsetOf(domGlsl_setparam,elemGlsl_param_type)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[1], "fx_surface_common"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[1], "gl_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[1], "gl_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[1], "gl_sampler3D"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[1], "gl_samplerCUBE"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[1], "gl_samplerRECT"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[1], "gl_samplerDEPTH"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[1]); + _Meta->appendElement(domGlsl_setarray_type::registerElement(),daeOffsetOf(domGlsl_setparam,elemArray),"array"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGlsl_setparam,_contents)); + + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("Glsl_identifier")); + ma->setOffset( daeOffsetOf( domGlsl_setparam , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: program + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "program" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGlsl_setparam , attrProgram )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_setparam)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGlsl_setparam::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam_simple.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam_simple.cpp new file mode 100644 index 000000000..20e124375 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam_simple.cpp @@ -0,0 +1,84 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGlsl_setparam_simple::create(daeInt bytes) +{ + domGlsl_setparam_simpleRef ref = new(bytes) domGlsl_setparam_simple; + return ref; +} + + +daeMetaElement * +domGlsl_setparam_simple::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "glsl_setparam_simple" ); + _Meta->setStaticPointerAddress(&domGlsl_setparam_simple::_Meta); + _Meta->registerConstructor(domGlsl_setparam_simple::create); + + // Add elements: annotate, glsl_param_type + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domGlsl_setparam_simple,elemAnnotate_array),"annotate"); + _Meta->appendElement(domGlsl_param_type::registerElement(),daeOffsetOf(domGlsl_setparam_simple,elemGlsl_param_type)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[1], "fx_surface_common"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[1], "gl_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[1], "gl_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[1], "gl_sampler3D"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[1], "gl_samplerCUBE"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[1], "gl_samplerRECT"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[1], "gl_samplerDEPTH"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[1]); + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("Glsl_identifier")); + ma->setOffset( daeOffsetOf( domGlsl_setparam_simple , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_setparam_simple)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGlsl_setparam_simple::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_surface_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_surface_type.cpp new file mode 100644 index 000000000..7fbefb814 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_surface_type.cpp @@ -0,0 +1,150 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domGlsl_surface_type::create(daeInt bytes) +{ + domGlsl_surface_typeRef ref = new(bytes) domGlsl_surface_type; + return ref; +} + + +daeMetaElement * +domGlsl_surface_type::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "glsl_surface_type" ); + _Meta->setStaticPointerAddress(&domGlsl_surface_type::_Meta); + _Meta->registerConstructor(domGlsl_surface_type::create); + + // Add elements: init_from, format, size, viewport_ratio, mip_levels, mipmap_generate, generator + _Meta->appendArrayElement(domInit_from::registerElement(),daeOffsetOf(domGlsl_surface_type,elemInit_from_array)); + _Meta->appendElement(domFormat::registerElement(),daeOffsetOf(domGlsl_surface_type,elemFormat)); + _Meta->appendElement(domSize::registerElement(),daeOffsetOf(domGlsl_surface_type,elemSize)); + _Meta->appendElement(domViewport_ratio::registerElement(),daeOffsetOf(domGlsl_surface_type,elemViewport_ratio)); + _Meta->appendElement(domMip_levels::registerElement(),daeOffsetOf(domGlsl_surface_type,elemMip_levels)); + _Meta->appendElement(domMipmap_generate::registerElement(),daeOffsetOf(domGlsl_surface_type,elemMipmap_generate)); + _Meta->appendElement(domGenerator::registerElement(),daeOffsetOf(domGlsl_surface_type,elemGenerator)); + + // Add attribute: type + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "type" ); + ma->setType( daeAtomicType::get("Fx_surface_type_enum")); + ma->setOffset( daeOffsetOf( domGlsl_surface_type , attrType )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_surface_type)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_surface_type::domGenerator::create(daeInt bytes) +{ + domGlsl_surface_type::domGeneratorRef ref = new(bytes) domGlsl_surface_type::domGenerator; + return ref; +} + + +daeMetaElement * +domGlsl_surface_type::domGenerator::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "generator" ); + _Meta->setStaticPointerAddress(&domGlsl_surface_type::domGenerator::_Meta); + _Meta->registerConstructor(domGlsl_surface_type::domGenerator::create); + + // Add elements: annotate, code, include, name, setparam + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domGlsl_surface_type::domGenerator,elemAnnotate_array),"annotate"); + _Meta->appendArrayElement(domFx_code_profile::registerElement(),daeOffsetOf(domGlsl_surface_type::domGenerator,elemCode_array),"code"); + _Meta->appendArrayElement(domFx_include_common::registerElement(),daeOffsetOf(domGlsl_surface_type::domGenerator,elemInclude_array),"include"); + _Meta->appendElement(domGlsl_surface_type::domGenerator::domName::registerElement(),daeOffsetOf(domGlsl_surface_type::domGenerator,elemName)); + _Meta->appendArrayElement(domGlsl_setparam_simple::registerElement(),daeOffsetOf(domGlsl_surface_type::domGenerator,elemSetparam_array),"setparam"); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domGlsl_surface_type::domGenerator,_contents)); + + + + _Meta->setElementSize(sizeof(domGlsl_surface_type::domGenerator)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domGlsl_surface_type::domGenerator::domName::create(daeInt bytes) +{ + domGlsl_surface_type::domGenerator::domNameRef ref = new(bytes) domGlsl_surface_type::domGenerator::domName; + return ref; +} + + +daeMetaElement * +domGlsl_surface_type::domGenerator::domName::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "name" ); + _Meta->setStaticPointerAddress(&domGlsl_surface_type::domGenerator::domName::_Meta); + _Meta->registerConstructor(domGlsl_surface_type::domGenerator::domName::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGlsl_surface_type::domGenerator::domName , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domGlsl_surface_type::domGenerator::domName , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domGlsl_surface_type::domGenerator::domName)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domGlsl_surface_type::_Meta = NULL; +daeMetaElement * domGlsl_surface_type::domGenerator::_Meta = NULL; +daeMetaElement * domGlsl_surface_type::domGenerator::domName::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domIDREF_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domIDREF_array.cpp new file mode 100644 index 000000000..72a2da4cb --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domIDREF_array.cpp @@ -0,0 +1,89 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domIDREF_array::create(daeInt bytes) +{ + domIDREF_arrayRef ref = new(bytes) domIDREF_array; + return ref; +} + + +daeMetaElement * +domIDREF_array::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "IDREF_array" ); + _Meta->setStaticPointerAddress(&domIDREF_array::_Meta); + _Meta->registerConstructor(domIDREF_array::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsIDREFS")); + ma->setOffset( daeOffsetOf( domIDREF_array , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domIDREF_array , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domIDREF_array , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domIDREF_array , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domIDREF_array)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domIDREF_array::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domImage.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domImage.cpp new file mode 100644 index 000000000..589abf2f8 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domImage.cpp @@ -0,0 +1,194 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domImage::create(daeInt bytes) +{ + domImageRef ref = new(bytes) domImage; + return ref; +} + + +daeMetaElement * +domImage::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "image" ); + _Meta->setStaticPointerAddress(&domImage::_Meta); + _Meta->registerConstructor(domImage::create); + + // Add elements: asset, data, init_from, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domImage,elemAsset)); + _Meta->appendElement(domImage::domData::registerElement(),daeOffsetOf(domImage,elemData)); + _Meta->appendElement(domImage::domInit_from::registerElement(),daeOffsetOf(domImage,elemInit_from)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domImage,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domImage,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domImage , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domImage , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: format + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "format" ); + ma->setType( daeAtomicType::get("xsToken")); + ma->setOffset( daeOffsetOf( domImage , attrFormat )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: height + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "height" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domImage , attrHeight )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: width + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "width" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domImage , attrWidth )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: depth + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "depth" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domImage , attrDepth )); + ma->setContainer( _Meta ); + ma->setDefault( "1"); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domImage)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domImage::domData::create(daeInt bytes) +{ + domImage::domDataRef ref = new(bytes) domImage::domData; + return ref; +} + + +daeMetaElement * +domImage::domData::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "data" ); + _Meta->setStaticPointerAddress(&domImage::domData::_Meta); + _Meta->registerConstructor(domImage::domData::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfHexBinary")); + ma->setOffset( daeOffsetOf( domImage::domData , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domImage::domData)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domImage::domInit_from::create(daeInt bytes) +{ + domImage::domInit_fromRef ref = new(bytes) domImage::domInit_from; + ref->_value.setContainer( (domImage::domInit_from*)ref ); + return ref; +} + + +daeMetaElement * +domImage::domInit_from::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "init_from" ); + _Meta->setStaticPointerAddress(&domImage::domInit_from::_Meta); + _Meta->registerConstructor(domImage::domInit_from::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domImage::domInit_from , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domImage::domInit_from)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domImage::_Meta = NULL; +daeMetaElement * domImage::domData::_Meta = NULL; +daeMetaElement * domImage::domInit_from::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInputGlobal.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInputGlobal.cpp new file mode 100644 index 000000000..898ec7581 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInputGlobal.cpp @@ -0,0 +1,71 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInputGlobal::create(daeInt bytes) +{ + domInputGlobalRef ref = new(bytes) domInputGlobal; + ref->attrSource.setContainer( (domInputGlobal*)ref ); + return ref; +} + + +daeMetaElement * +domInputGlobal::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "InputGlobal" ); + _Meta->setStaticPointerAddress(&domInputGlobal::_Meta); + _Meta->registerConstructor(domInputGlobal::create); + + + // Add attribute: semantic + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "semantic" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domInputGlobal , attrSemantic )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInputGlobal , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInputGlobal)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInputGlobal::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInputLocal.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInputLocal.cpp new file mode 100644 index 000000000..2aaa57d8f --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInputLocal.cpp @@ -0,0 +1,71 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInputLocal::create(daeInt bytes) +{ + domInputLocalRef ref = new(bytes) domInputLocal; + ref->attrSource.setContainer( (domInputLocal*)ref ); + return ref; +} + + +daeMetaElement * +domInputLocal::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "InputLocal" ); + _Meta->setStaticPointerAddress(&domInputLocal::_Meta); + _Meta->registerConstructor(domInputLocal::create); + + + // Add attribute: semantic + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "semantic" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domInputLocal , attrSemantic )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("URIFragmentType")); + ma->setOffset( daeOffsetOf( domInputLocal , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInputLocal)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInputLocal::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInputLocalOffset.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInputLocalOffset.cpp new file mode 100644 index 000000000..e9deb2db3 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInputLocalOffset.cpp @@ -0,0 +1,94 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInputLocalOffset::create(daeInt bytes) +{ + domInputLocalOffsetRef ref = new(bytes) domInputLocalOffset; + ref->attrSource.setContainer( (domInputLocalOffset*)ref ); + return ref; +} + + +daeMetaElement * +domInputLocalOffset::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "InputLocalOffset" ); + _Meta->setStaticPointerAddress(&domInputLocalOffset::_Meta); + _Meta->registerConstructor(domInputLocalOffset::create); + + + // Add attribute: offset + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "offset" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domInputLocalOffset , attrOffset )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: semantic + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "semantic" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domInputLocalOffset , attrSemantic )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("URIFragmentType")); + ma->setOffset( daeOffsetOf( domInputLocalOffset , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: set + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "set" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domInputLocalOffset , attrSet )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInputLocalOffset)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInputLocalOffset::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstanceWithExtra.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstanceWithExtra.cpp new file mode 100644 index 000000000..9afc7533f --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstanceWithExtra.cpp @@ -0,0 +1,61 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstanceWithExtra::create(daeInt bytes) +{ + domInstanceWithExtraRef ref = new(bytes) domInstanceWithExtra; + ref->attrUrl.setContainer( (domInstanceWithExtra*)ref ); + return ref; +} + + +daeMetaElement * +domInstanceWithExtra::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "InstanceWithExtra" ); + _Meta->setStaticPointerAddress(&domInstanceWithExtra::_Meta); + _Meta->registerConstructor(domInstanceWithExtra::create); + + // Add elements: extra + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstanceWithExtra,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstanceWithExtra , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstanceWithExtra)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstanceWithExtra::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_camera.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_camera.cpp new file mode 100644 index 000000000..6a76e6da1 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_camera.cpp @@ -0,0 +1,60 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_camera::create(daeInt bytes) +{ + domInstance_cameraRef ref = new(bytes) domInstance_camera; + return ref; +} + + +daeMetaElement * +domInstance_camera::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_camera" ); + _Meta->setStaticPointerAddress(&domInstance_camera::_Meta); + _Meta->registerConstructor(domInstance_camera::create); + + // Add elements: extra + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_camera,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_camera , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_camera)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_camera::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_controller.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_controller.cpp new file mode 100644 index 000000000..136e96c5c --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_controller.cpp @@ -0,0 +1,100 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_controller::create(daeInt bytes) +{ + domInstance_controllerRef ref = new(bytes) domInstance_controller; + ref->attrUrl.setContainer( (domInstance_controller*)ref ); + return ref; +} + + +daeMetaElement * +domInstance_controller::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_controller" ); + _Meta->setStaticPointerAddress(&domInstance_controller::_Meta); + _Meta->registerConstructor(domInstance_controller::create); + + // Add elements: skeleton, bind_material, extra + _Meta->appendArrayElement(domInstance_controller::domSkeleton::registerElement(),daeOffsetOf(domInstance_controller,elemSkeleton_array)); + _Meta->appendElement(domBind_material::registerElement(),daeOffsetOf(domInstance_controller,elemBind_material)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_controller,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_controller , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_controller)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_controller::domSkeleton::create(daeInt bytes) +{ + domInstance_controller::domSkeletonRef ref = new(bytes) domInstance_controller::domSkeleton; + ref->_value.setContainer( (domInstance_controller::domSkeleton*)ref ); + return ref; +} + + +daeMetaElement * +domInstance_controller::domSkeleton::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "skeleton" ); + _Meta->setStaticPointerAddress(&domInstance_controller::domSkeleton::_Meta); + _Meta->registerConstructor(domInstance_controller::domSkeleton::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_controller::domSkeleton , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_controller::domSkeleton)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_controller::_Meta = NULL; +daeMetaElement * domInstance_controller::domSkeleton::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_effect.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_effect.cpp new file mode 100644 index 000000000..b05419810 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_effect.cpp @@ -0,0 +1,191 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_effect::create(daeInt bytes) +{ + domInstance_effectRef ref = new(bytes) domInstance_effect; + ref->attrUrl.setContainer( (domInstance_effect*)ref ); + return ref; +} + + +daeMetaElement * +domInstance_effect::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_effect" ); + _Meta->setStaticPointerAddress(&domInstance_effect::_Meta); + _Meta->registerConstructor(domInstance_effect::create); + + // Add elements: technique_hint, setparam, extra + _Meta->appendArrayElement(domInstance_effect::domTechnique_hint::registerElement(),daeOffsetOf(domInstance_effect,elemTechnique_hint_array)); + _Meta->appendArrayElement(domInstance_effect::domSetparam::registerElement(),daeOffsetOf(domInstance_effect,elemSetparam_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_effect,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_effect , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_effect)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_effect::domTechnique_hint::create(daeInt bytes) +{ + domInstance_effect::domTechnique_hintRef ref = new(bytes) domInstance_effect::domTechnique_hint; + return ref; +} + + +daeMetaElement * +domInstance_effect::domTechnique_hint::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_hint" ); + _Meta->setStaticPointerAddress(&domInstance_effect::domTechnique_hint::_Meta); + _Meta->registerConstructor(domInstance_effect::domTechnique_hint::create); + + + // Add attribute: platform + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "platform" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_effect::domTechnique_hint , attrPlatform )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_effect::domTechnique_hint , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_effect::domTechnique_hint)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_effect::domSetparam::create(daeInt bytes) +{ + domInstance_effect::domSetparamRef ref = new(bytes) domInstance_effect::domSetparam; + return ref; +} + + +daeMetaElement * +domInstance_effect::domSetparam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "setparam" ); + _Meta->setStaticPointerAddress(&domInstance_effect::domSetparam::_Meta); + _Meta->registerConstructor(domInstance_effect::domSetparam::create); + + // Add elements: fx_basic_type_common + _Meta->appendElement(domFx_basic_type_common::registerElement(),daeOffsetOf(domInstance_effect::domSetparam,elemFx_basic_type_common)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[0], "fx_surface_common"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[0], "fx_sampler1D_common"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[0], "fx_sampler2D_common"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[0], "fx_sampler3D_common"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[0], "fx_samplerCUBE_common"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[0], "fx_samplerRECT_common"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[0], "fx_samplerDEPTH_common"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[0]); + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_effect::domSetparam , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_effect::domSetparam)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_effect::_Meta = NULL; +daeMetaElement * domInstance_effect::domTechnique_hint::_Meta = NULL; +daeMetaElement * domInstance_effect::domSetparam::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_force_field.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_force_field.cpp new file mode 100644 index 000000000..37b4b9b6e --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_force_field.cpp @@ -0,0 +1,60 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_force_field::create(daeInt bytes) +{ + domInstance_force_fieldRef ref = new(bytes) domInstance_force_field; + return ref; +} + + +daeMetaElement * +domInstance_force_field::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_force_field" ); + _Meta->setStaticPointerAddress(&domInstance_force_field::_Meta); + _Meta->registerConstructor(domInstance_force_field::create); + + // Add elements: extra + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_force_field,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_force_field , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_force_field)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_force_field::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_geometry.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_geometry.cpp new file mode 100644 index 000000000..053aad138 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_geometry.cpp @@ -0,0 +1,62 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_geometry::create(daeInt bytes) +{ + domInstance_geometryRef ref = new(bytes) domInstance_geometry; + ref->attrUrl.setContainer( (domInstance_geometry*)ref ); + return ref; +} + + +daeMetaElement * +domInstance_geometry::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_geometry" ); + _Meta->setStaticPointerAddress(&domInstance_geometry::_Meta); + _Meta->registerConstructor(domInstance_geometry::create); + + // Add elements: bind_material, extra + _Meta->appendElement(domBind_material::registerElement(),daeOffsetOf(domInstance_geometry,elemBind_material)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_geometry,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_geometry , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_geometry)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_geometry::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_light.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_light.cpp new file mode 100644 index 000000000..a2dd0f4ee --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_light.cpp @@ -0,0 +1,60 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_light::create(daeInt bytes) +{ + domInstance_lightRef ref = new(bytes) domInstance_light; + return ref; +} + + +daeMetaElement * +domInstance_light::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_light" ); + _Meta->setStaticPointerAddress(&domInstance_light::_Meta); + _Meta->registerConstructor(domInstance_light::create); + + // Add elements: extra + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_light,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_light , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_light)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_light::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_material.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_material.cpp new file mode 100644 index 000000000..19b5c160a --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_material.cpp @@ -0,0 +1,125 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_material::create(daeInt bytes) +{ + domInstance_materialRef ref = new(bytes) domInstance_material; + ref->attrTarget.setContainer( (domInstance_material*)ref ); + return ref; +} + + +daeMetaElement * +domInstance_material::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_material" ); + _Meta->setStaticPointerAddress(&domInstance_material::_Meta); + _Meta->registerConstructor(domInstance_material::create); + + // Add elements: bind, extra + _Meta->appendArrayElement(domInstance_material::domBind::registerElement(),daeOffsetOf(domInstance_material,elemBind_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_material,elemExtra_array)); + + // Add attribute: symbol + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "symbol" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_material , attrSymbol )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: target + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "target" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_material , attrTarget )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_material)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_material::domBind::create(daeInt bytes) +{ + domInstance_material::domBindRef ref = new(bytes) domInstance_material::domBind; + return ref; +} + + +daeMetaElement * +domInstance_material::domBind::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bind" ); + _Meta->setStaticPointerAddress(&domInstance_material::domBind::_Meta); + _Meta->registerConstructor(domInstance_material::domBind::create); + + + // Add attribute: semantic + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "semantic" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_material::domBind , attrSemantic )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: target + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "target" ); + ma->setType( daeAtomicType::get("xsToken")); + ma->setOffset( daeOffsetOf( domInstance_material::domBind , attrTarget )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_material::domBind)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_material::_Meta = NULL; +daeMetaElement * domInstance_material::domBind::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_node.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_node.cpp new file mode 100644 index 000000000..8f8db20fb --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_node.cpp @@ -0,0 +1,60 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_node::create(daeInt bytes) +{ + domInstance_nodeRef ref = new(bytes) domInstance_node; + return ref; +} + + +daeMetaElement * +domInstance_node::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_node" ); + _Meta->setStaticPointerAddress(&domInstance_node::_Meta); + _Meta->registerConstructor(domInstance_node::create); + + // Add elements: extra + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_node,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_node , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_node)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_node::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_material.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_material.cpp new file mode 100644 index 000000000..3c1bf3988 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_material.cpp @@ -0,0 +1,60 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_physics_material::create(daeInt bytes) +{ + domInstance_physics_materialRef ref = new(bytes) domInstance_physics_material; + return ref; +} + + +daeMetaElement * +domInstance_physics_material::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_physics_material" ); + _Meta->setStaticPointerAddress(&domInstance_physics_material::_Meta); + _Meta->registerConstructor(domInstance_physics_material::create); + + // Add elements: extra + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_physics_material,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_physics_material , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_physics_material)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_physics_material::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_model.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_model.cpp new file mode 100644 index 000000000..67acb8eb5 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_model.cpp @@ -0,0 +1,87 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_physics_model::create(daeInt bytes) +{ + domInstance_physics_modelRef ref = new(bytes) domInstance_physics_model; + ref->attrUrl.setContainer( (domInstance_physics_model*)ref ); + ref->attrParent.setContainer( (domInstance_physics_model*)ref ); + return ref; +} + + +daeMetaElement * +domInstance_physics_model::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_physics_model" ); + _Meta->setStaticPointerAddress(&domInstance_physics_model::_Meta); + _Meta->registerConstructor(domInstance_physics_model::create); + + // Add elements: instance_force_field, instance_rigid_body, instance_rigid_constraint, extra + _Meta->appendArrayElement(domInstance_force_field::registerElement(),daeOffsetOf(domInstance_physics_model,elemInstance_force_field_array)); + _Meta->appendArrayElement(domInstance_rigid_body::registerElement(),daeOffsetOf(domInstance_physics_model,elemInstance_rigid_body_array)); + _Meta->appendArrayElement(domInstance_rigid_constraint::registerElement(),daeOffsetOf(domInstance_physics_model,elemInstance_rigid_constraint_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_physics_model,elemExtra_array)); + + // Add attribute: url + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "url" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_physics_model , attrUrl )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_physics_model , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: parent + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "parent" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_physics_model , attrParent )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_physics_model)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_physics_model::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_body.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_body.cpp new file mode 100644 index 000000000..af190ebba --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_body.cpp @@ -0,0 +1,372 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_rigid_body::create(daeInt bytes) +{ + domInstance_rigid_bodyRef ref = new(bytes) domInstance_rigid_body; + ref->attrTarget.setContainer( (domInstance_rigid_body*)ref ); + return ref; +} + + +daeMetaElement * +domInstance_rigid_body::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_rigid_body" ); + _Meta->setStaticPointerAddress(&domInstance_rigid_body::_Meta); + _Meta->registerConstructor(domInstance_rigid_body::create); + + // Add elements: technique_common, technique, extra + _Meta->appendElement(domInstance_rigid_body::domTechnique_common::registerElement(),daeOffsetOf(domInstance_rigid_body,elemTechnique_common)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domInstance_rigid_body,elemTechnique_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_rigid_body,elemExtra_array)); + + // Add attribute: body + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "body" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_rigid_body , attrBody )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_rigid_body , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: target + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "target" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domInstance_rigid_body , attrTarget )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_rigid_body)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_rigid_body::domTechnique_common::create(daeInt bytes) +{ + domInstance_rigid_body::domTechnique_commonRef ref = new(bytes) domInstance_rigid_body::domTechnique_common; + return ref; +} + + +daeMetaElement * +domInstance_rigid_body::domTechnique_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_common" ); + _Meta->setStaticPointerAddress(&domInstance_rigid_body::domTechnique_common::_Meta); + _Meta->registerConstructor(domInstance_rigid_body::domTechnique_common::create); + + // Add elements: angular_velocity, velocity, dynamic, mass, mass_frame, inertia, instance_physics_material, physics_material, shape + _Meta->appendElement(domInstance_rigid_body::domTechnique_common::domAngular_velocity::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemAngular_velocity)); + _Meta->appendElement(domInstance_rigid_body::domTechnique_common::domVelocity::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemVelocity)); + _Meta->appendElement(domInstance_rigid_body::domTechnique_common::domDynamic::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemDynamic)); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemMass),"mass"); + _Meta->appendElement(domInstance_rigid_body::domTechnique_common::domMass_frame::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemMass_frame)); + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemInertia),"inertia"); + _Meta->appendElement(domInstance_physics_material::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemInstance_physics_material)); + _Meta->appendElement(domPhysics_material::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemPhysics_material)); + _Meta->appendArrayElement(domInstance_rigid_body::domTechnique_common::domShape::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemShape_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domInstance_rigid_body::domTechnique_common,_contents)); + + + + _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_rigid_body::domTechnique_common::domAngular_velocity::create(daeInt bytes) +{ + domInstance_rigid_body::domTechnique_common::domAngular_velocityRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domAngular_velocity; + return ref; +} + + +daeMetaElement * +domInstance_rigid_body::domTechnique_common::domAngular_velocity::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "angular_velocity" ); + _Meta->setStaticPointerAddress(&domInstance_rigid_body::domTechnique_common::domAngular_velocity::_Meta); + _Meta->registerConstructor(domInstance_rigid_body::domTechnique_common::domAngular_velocity::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domAngular_velocity , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domAngular_velocity)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_rigid_body::domTechnique_common::domVelocity::create(daeInt bytes) +{ + domInstance_rigid_body::domTechnique_common::domVelocityRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domVelocity; + return ref; +} + + +daeMetaElement * +domInstance_rigid_body::domTechnique_common::domVelocity::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "velocity" ); + _Meta->setStaticPointerAddress(&domInstance_rigid_body::domTechnique_common::domVelocity::_Meta); + _Meta->registerConstructor(domInstance_rigid_body::domTechnique_common::domVelocity::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domVelocity , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domVelocity)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_rigid_body::domTechnique_common::domDynamic::create(daeInt bytes) +{ + domInstance_rigid_body::domTechnique_common::domDynamicRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domDynamic; + return ref; +} + + +daeMetaElement * +domInstance_rigid_body::domTechnique_common::domDynamic::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "dynamic" ); + _Meta->setStaticPointerAddress(&domInstance_rigid_body::domTechnique_common::domDynamic::_Meta); + _Meta->registerConstructor(domInstance_rigid_body::domTechnique_common::domDynamic::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domDynamic , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domDynamic , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domDynamic)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_rigid_body::domTechnique_common::domMass_frame::create(daeInt bytes) +{ + domInstance_rigid_body::domTechnique_common::domMass_frameRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domMass_frame; + return ref; +} + + +daeMetaElement * +domInstance_rigid_body::domTechnique_common::domMass_frame::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mass_frame" ); + _Meta->setStaticPointerAddress(&domInstance_rigid_body::domTechnique_common::domMass_frame::_Meta); + _Meta->registerConstructor(domInstance_rigid_body::domTechnique_common::domMass_frame::create); + + // Add elements: translate, rotate + _Meta->appendArrayElement(domTranslate::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domMass_frame,elemTranslate_array)); + _Meta->appendArrayElement(domRotate::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domMass_frame,elemRotate_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domInstance_rigid_body::domTechnique_common::domMass_frame,_contents)); + + + + _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domMass_frame)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_rigid_body::domTechnique_common::domShape::create(daeInt bytes) +{ + domInstance_rigid_body::domTechnique_common::domShapeRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domShape; + return ref; +} + + +daeMetaElement * +domInstance_rigid_body::domTechnique_common::domShape::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "shape" ); + _Meta->setStaticPointerAddress(&domInstance_rigid_body::domTechnique_common::domShape::_Meta); + _Meta->registerConstructor(domInstance_rigid_body::domTechnique_common::domShape::create); + + // Add elements: hollow, mass, density, instance_physics_material, physics_material, instance_geometry, plane, box, sphere, cylinder, tapered_cylinder, capsule, tapered_capsule, translate, rotate, extra + _Meta->appendElement(domInstance_rigid_body::domTechnique_common::domShape::domHollow::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemHollow)); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemMass),"mass"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemDensity),"density"); + _Meta->appendElement(domInstance_physics_material::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemInstance_physics_material)); + _Meta->appendElement(domPhysics_material::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemPhysics_material)); + _Meta->appendElement(domInstance_geometry::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemInstance_geometry)); + _Meta->appendElement(domPlane::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemPlane)); + _Meta->appendElement(domBox::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemBox)); + _Meta->appendElement(domSphere::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemSphere)); + _Meta->appendElement(domCylinder::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemCylinder)); + _Meta->appendElement(domTapered_cylinder::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemTapered_cylinder)); + _Meta->appendElement(domCapsule::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemCapsule)); + _Meta->appendElement(domTapered_capsule::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemTapered_capsule)); + _Meta->appendArrayElement(domTranslate::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemTranslate_array)); + _Meta->appendArrayElement(domRotate::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemRotate_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,_contents)); + + + + _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domShape)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domInstance_rigid_body::domTechnique_common::domShape::domHollow::create(daeInt bytes) +{ + domInstance_rigid_body::domTechnique_common::domShape::domHollowRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domShape::domHollow; + return ref; +} + + +daeMetaElement * +domInstance_rigid_body::domTechnique_common::domShape::domHollow::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "hollow" ); + _Meta->setStaticPointerAddress(&domInstance_rigid_body::domTechnique_common::domShape::domHollow::_Meta); + _Meta->registerConstructor(domInstance_rigid_body::domTechnique_common::domShape::domHollow::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domShape::domHollow , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domShape::domHollow , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domShape::domHollow)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_rigid_body::_Meta = NULL; +daeMetaElement * domInstance_rigid_body::domTechnique_common::_Meta = NULL; +daeMetaElement * domInstance_rigid_body::domTechnique_common::domAngular_velocity::_Meta = NULL; +daeMetaElement * domInstance_rigid_body::domTechnique_common::domVelocity::_Meta = NULL; +daeMetaElement * domInstance_rigid_body::domTechnique_common::domDynamic::_Meta = NULL; +daeMetaElement * domInstance_rigid_body::domTechnique_common::domMass_frame::_Meta = NULL; +daeMetaElement * domInstance_rigid_body::domTechnique_common::domShape::_Meta = NULL; +daeMetaElement * domInstance_rigid_body::domTechnique_common::domShape::domHollow::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_constraint.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_constraint.cpp new file mode 100644 index 000000000..dbb11d614 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_constraint.cpp @@ -0,0 +1,60 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInstance_rigid_constraint::create(daeInt bytes) +{ + domInstance_rigid_constraintRef ref = new(bytes) domInstance_rigid_constraint; + return ref; +} + + +daeMetaElement * +domInstance_rigid_constraint::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "instance_rigid_constraint" ); + _Meta->setStaticPointerAddress(&domInstance_rigid_constraint::_Meta); + _Meta->registerConstructor(domInstance_rigid_constraint::create); + + // Add elements: extra + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domInstance_rigid_constraint,elemExtra_array)); + + // Add attribute: constraint + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "constraint" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInstance_rigid_constraint , attrConstraint )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInstance_rigid_constraint)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInstance_rigid_constraint::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInt_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInt_array.cpp new file mode 100644 index 000000000..0b41d30db --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domInt_array.cpp @@ -0,0 +1,113 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domInt_array::create(daeInt bytes) +{ + domInt_arrayRef ref = new(bytes) domInt_array; + return ref; +} + + +daeMetaElement * +domInt_array::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "int_array" ); + _Meta->setStaticPointerAddress(&domInt_array::_Meta); + _Meta->registerConstructor(domInt_array::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfInts")); + ma->setOffset( daeOffsetOf( domInt_array , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domInt_array , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domInt_array , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domInt_array , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: minInclusive + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "minInclusive" ); + ma->setType( daeAtomicType::get("xsInteger")); + ma->setOffset( daeOffsetOf( domInt_array , attrMinInclusive )); + ma->setContainer( _Meta ); + ma->setDefault( "-2147483648"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: maxInclusive + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "maxInclusive" ); + ma->setType( daeAtomicType::get("xsInteger")); + ma->setOffset( daeOffsetOf( domInt_array , attrMaxInclusive )); + ma->setContainer( _Meta ); + ma->setDefault( "2147483647"); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domInt_array)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domInt_array::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animation_clips.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animation_clips.cpp new file mode 100644 index 000000000..88973aeda --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animation_clips.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_animation_clips::create(daeInt bytes) +{ + domLibrary_animation_clipsRef ref = new(bytes) domLibrary_animation_clips; + return ref; +} + + +daeMetaElement * +domLibrary_animation_clips::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_animation_clips" ); + _Meta->setStaticPointerAddress(&domLibrary_animation_clips::_Meta); + _Meta->registerConstructor(domLibrary_animation_clips::create); + + // Add elements: asset, animation_clip, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_animation_clips,elemAsset)); + _Meta->appendArrayElement(domAnimation_clip::registerElement(),daeOffsetOf(domLibrary_animation_clips,elemAnimation_clip_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_animation_clips,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_animation_clips , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_animation_clips , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_animation_clips)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_animation_clips::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animations.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animations.cpp new file mode 100644 index 000000000..bb96cc1ea --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animations.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_animations::create(daeInt bytes) +{ + domLibrary_animationsRef ref = new(bytes) domLibrary_animations; + return ref; +} + + +daeMetaElement * +domLibrary_animations::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_animations" ); + _Meta->setStaticPointerAddress(&domLibrary_animations::_Meta); + _Meta->registerConstructor(domLibrary_animations::create); + + // Add elements: asset, animation, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_animations,elemAsset)); + _Meta->appendArrayElement(domAnimation::registerElement(),daeOffsetOf(domLibrary_animations,elemAnimation_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_animations,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_animations , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_animations , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_animations)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_animations::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_cameras.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_cameras.cpp new file mode 100644 index 000000000..93ee173ed --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_cameras.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_cameras::create(daeInt bytes) +{ + domLibrary_camerasRef ref = new(bytes) domLibrary_cameras; + return ref; +} + + +daeMetaElement * +domLibrary_cameras::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_cameras" ); + _Meta->setStaticPointerAddress(&domLibrary_cameras::_Meta); + _Meta->registerConstructor(domLibrary_cameras::create); + + // Add elements: asset, camera, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_cameras,elemAsset)); + _Meta->appendArrayElement(domCamera::registerElement(),daeOffsetOf(domLibrary_cameras,elemCamera_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_cameras,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_cameras , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_cameras , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_cameras)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_cameras::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_controllers.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_controllers.cpp new file mode 100644 index 000000000..8970b60e8 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_controllers.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_controllers::create(daeInt bytes) +{ + domLibrary_controllersRef ref = new(bytes) domLibrary_controllers; + return ref; +} + + +daeMetaElement * +domLibrary_controllers::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_controllers" ); + _Meta->setStaticPointerAddress(&domLibrary_controllers::_Meta); + _Meta->registerConstructor(domLibrary_controllers::create); + + // Add elements: asset, controller, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_controllers,elemAsset)); + _Meta->appendArrayElement(domController::registerElement(),daeOffsetOf(domLibrary_controllers,elemController_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_controllers,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_controllers , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_controllers , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_controllers)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_controllers::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_effects.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_effects.cpp new file mode 100644 index 000000000..60ae1ce26 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_effects.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_effects::create(daeInt bytes) +{ + domLibrary_effectsRef ref = new(bytes) domLibrary_effects; + return ref; +} + + +daeMetaElement * +domLibrary_effects::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_effects" ); + _Meta->setStaticPointerAddress(&domLibrary_effects::_Meta); + _Meta->registerConstructor(domLibrary_effects::create); + + // Add elements: asset, effect, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_effects,elemAsset)); + _Meta->appendArrayElement(domEffect::registerElement(),daeOffsetOf(domLibrary_effects,elemEffect_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_effects,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_effects , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_effects , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_effects)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_effects::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_force_fields.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_force_fields.cpp new file mode 100644 index 000000000..645c309ce --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_force_fields.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_force_fields::create(daeInt bytes) +{ + domLibrary_force_fieldsRef ref = new(bytes) domLibrary_force_fields; + return ref; +} + + +daeMetaElement * +domLibrary_force_fields::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_force_fields" ); + _Meta->setStaticPointerAddress(&domLibrary_force_fields::_Meta); + _Meta->registerConstructor(domLibrary_force_fields::create); + + // Add elements: asset, force_field, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_force_fields,elemAsset)); + _Meta->appendArrayElement(domForce_field::registerElement(),daeOffsetOf(domLibrary_force_fields,elemForce_field_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_force_fields,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_force_fields , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_force_fields , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_force_fields)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_force_fields::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_geometries.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_geometries.cpp new file mode 100644 index 000000000..d510d5518 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_geometries.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_geometries::create(daeInt bytes) +{ + domLibrary_geometriesRef ref = new(bytes) domLibrary_geometries; + return ref; +} + + +daeMetaElement * +domLibrary_geometries::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_geometries" ); + _Meta->setStaticPointerAddress(&domLibrary_geometries::_Meta); + _Meta->registerConstructor(domLibrary_geometries::create); + + // Add elements: asset, geometry, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_geometries,elemAsset)); + _Meta->appendArrayElement(domGeometry::registerElement(),daeOffsetOf(domLibrary_geometries,elemGeometry_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_geometries,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_geometries , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_geometries , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_geometries)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_geometries::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_images.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_images.cpp new file mode 100644 index 000000000..cdbab2995 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_images.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_images::create(daeInt bytes) +{ + domLibrary_imagesRef ref = new(bytes) domLibrary_images; + return ref; +} + + +daeMetaElement * +domLibrary_images::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_images" ); + _Meta->setStaticPointerAddress(&domLibrary_images::_Meta); + _Meta->registerConstructor(domLibrary_images::create); + + // Add elements: asset, image, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_images,elemAsset)); + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domLibrary_images,elemImage_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_images,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_images , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_images , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_images)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_images::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_lights.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_lights.cpp new file mode 100644 index 000000000..f887aa8c6 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_lights.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_lights::create(daeInt bytes) +{ + domLibrary_lightsRef ref = new(bytes) domLibrary_lights; + return ref; +} + + +daeMetaElement * +domLibrary_lights::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_lights" ); + _Meta->setStaticPointerAddress(&domLibrary_lights::_Meta); + _Meta->registerConstructor(domLibrary_lights::create); + + // Add elements: asset, light, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_lights,elemAsset)); + _Meta->appendArrayElement(domLight::registerElement(),daeOffsetOf(domLibrary_lights,elemLight_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_lights,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_lights , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_lights , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_lights)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_lights::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_materials.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_materials.cpp new file mode 100644 index 000000000..62418006c --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_materials.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_materials::create(daeInt bytes) +{ + domLibrary_materialsRef ref = new(bytes) domLibrary_materials; + return ref; +} + + +daeMetaElement * +domLibrary_materials::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_materials" ); + _Meta->setStaticPointerAddress(&domLibrary_materials::_Meta); + _Meta->registerConstructor(domLibrary_materials::create); + + // Add elements: asset, material, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_materials,elemAsset)); + _Meta->appendArrayElement(domMaterial::registerElement(),daeOffsetOf(domLibrary_materials,elemMaterial_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_materials,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_materials , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_materials , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_materials)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_materials::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_nodes.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_nodes.cpp new file mode 100644 index 000000000..f2e0e5bb2 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_nodes.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_nodes::create(daeInt bytes) +{ + domLibrary_nodesRef ref = new(bytes) domLibrary_nodes; + return ref; +} + + +daeMetaElement * +domLibrary_nodes::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_nodes" ); + _Meta->setStaticPointerAddress(&domLibrary_nodes::_Meta); + _Meta->registerConstructor(domLibrary_nodes::create); + + // Add elements: asset, node, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_nodes,elemAsset)); + _Meta->appendArrayElement(domNode::registerElement(),daeOffsetOf(domLibrary_nodes,elemNode_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_nodes,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_nodes , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_nodes , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_nodes)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_nodes::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_materials.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_materials.cpp new file mode 100644 index 000000000..227d4e921 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_materials.cpp @@ -0,0 +1,50 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_physics_materials::create(daeInt bytes) +{ + domLibrary_physics_materialsRef ref = new(bytes) domLibrary_physics_materials; + return ref; +} + + +daeMetaElement * +domLibrary_physics_materials::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_physics_materials" ); + _Meta->setStaticPointerAddress(&domLibrary_physics_materials::_Meta); + _Meta->registerConstructor(domLibrary_physics_materials::create); + + // Add elements: asset, physics_material, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_physics_materials,elemAsset)); + _Meta->appendArrayElement(domPhysics_material::registerElement(),daeOffsetOf(domLibrary_physics_materials,elemPhysics_material_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_physics_materials,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domLibrary_physics_materials)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_physics_materials::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_models.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_models.cpp new file mode 100644 index 000000000..a71c86ddd --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_models.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_physics_models::create(daeInt bytes) +{ + domLibrary_physics_modelsRef ref = new(bytes) domLibrary_physics_models; + return ref; +} + + +daeMetaElement * +domLibrary_physics_models::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_physics_models" ); + _Meta->setStaticPointerAddress(&domLibrary_physics_models::_Meta); + _Meta->registerConstructor(domLibrary_physics_models::create); + + // Add elements: asset, physics_model, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_physics_models,elemAsset)); + _Meta->appendArrayElement(domPhysics_model::registerElement(),daeOffsetOf(domLibrary_physics_models,elemPhysics_model_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_physics_models,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_physics_models , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_physics_models , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_physics_models)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_physics_models::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_scenes.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_scenes.cpp new file mode 100644 index 000000000..eaff87767 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_scenes.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_physics_scenes::create(daeInt bytes) +{ + domLibrary_physics_scenesRef ref = new(bytes) domLibrary_physics_scenes; + return ref; +} + + +daeMetaElement * +domLibrary_physics_scenes::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_physics_scenes" ); + _Meta->setStaticPointerAddress(&domLibrary_physics_scenes::_Meta); + _Meta->registerConstructor(domLibrary_physics_scenes::create); + + // Add elements: asset, physics_scene, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_physics_scenes,elemAsset)); + _Meta->appendArrayElement(domPhysics_scene::registerElement(),daeOffsetOf(domLibrary_physics_scenes,elemPhysics_scene_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_physics_scenes,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_physics_scenes , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_physics_scenes , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_physics_scenes)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_physics_scenes::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_visual_scenes.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_visual_scenes.cpp new file mode 100644 index 000000000..db0d0cbd4 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_visual_scenes.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLibrary_visual_scenes::create(daeInt bytes) +{ + domLibrary_visual_scenesRef ref = new(bytes) domLibrary_visual_scenes; + return ref; +} + + +daeMetaElement * +domLibrary_visual_scenes::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "library_visual_scenes" ); + _Meta->setStaticPointerAddress(&domLibrary_visual_scenes::_Meta); + _Meta->registerConstructor(domLibrary_visual_scenes::create); + + // Add elements: asset, visual_scene, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLibrary_visual_scenes,elemAsset)); + _Meta->appendArrayElement(domVisual_scene::registerElement(),daeOffsetOf(domLibrary_visual_scenes,elemVisual_scene_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLibrary_visual_scenes,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLibrary_visual_scenes , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLibrary_visual_scenes , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLibrary_visual_scenes)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLibrary_visual_scenes::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLight.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLight.cpp new file mode 100644 index 000000000..3be80756c --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLight.cpp @@ -0,0 +1,232 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLight::create(daeInt bytes) +{ + domLightRef ref = new(bytes) domLight; + return ref; +} + + +daeMetaElement * +domLight::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "light" ); + _Meta->setStaticPointerAddress(&domLight::_Meta); + _Meta->registerConstructor(domLight::create); + + // Add elements: asset, technique_common, technique, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domLight,elemAsset)); + _Meta->appendElement(domLight::domTechnique_common::registerElement(),daeOffsetOf(domLight,elemTechnique_common)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domLight,elemTechnique_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLight,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domLight , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLight , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLight)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domLight::domTechnique_common::create(daeInt bytes) +{ + domLight::domTechnique_commonRef ref = new(bytes) domLight::domTechnique_common; + return ref; +} + + +daeMetaElement * +domLight::domTechnique_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_common" ); + _Meta->setStaticPointerAddress(&domLight::domTechnique_common::_Meta); + _Meta->registerConstructor(domLight::domTechnique_common::create); + + // Add elements: ambient, directional, point, spot + _Meta->appendElement(domLight::domTechnique_common::domAmbient::registerElement(),daeOffsetOf(domLight::domTechnique_common,elemAmbient)); + _Meta->appendElement(domLight::domTechnique_common::domDirectional::registerElement(),daeOffsetOf(domLight::domTechnique_common,elemDirectional)); + _Meta->appendElement(domLight::domTechnique_common::domPoint::registerElement(),daeOffsetOf(domLight::domTechnique_common,elemPoint)); + _Meta->appendElement(domLight::domTechnique_common::domSpot::registerElement(),daeOffsetOf(domLight::domTechnique_common,elemSpot)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domLight::domTechnique_common,_contents)); + + + + _Meta->setElementSize(sizeof(domLight::domTechnique_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domLight::domTechnique_common::domAmbient::create(daeInt bytes) +{ + domLight::domTechnique_common::domAmbientRef ref = new(bytes) domLight::domTechnique_common::domAmbient; + return ref; +} + + +daeMetaElement * +domLight::domTechnique_common::domAmbient::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "ambient" ); + _Meta->setStaticPointerAddress(&domLight::domTechnique_common::domAmbient::_Meta); + _Meta->registerConstructor(domLight::domTechnique_common::domAmbient::create); + + // Add elements: color + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domLight::domTechnique_common::domAmbient,elemColor),"color"); + + + _Meta->setElementSize(sizeof(domLight::domTechnique_common::domAmbient)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domLight::domTechnique_common::domDirectional::create(daeInt bytes) +{ + domLight::domTechnique_common::domDirectionalRef ref = new(bytes) domLight::domTechnique_common::domDirectional; + return ref; +} + + +daeMetaElement * +domLight::domTechnique_common::domDirectional::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "directional" ); + _Meta->setStaticPointerAddress(&domLight::domTechnique_common::domDirectional::_Meta); + _Meta->registerConstructor(domLight::domTechnique_common::domDirectional::create); + + // Add elements: color + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domLight::domTechnique_common::domDirectional,elemColor),"color"); + + + _Meta->setElementSize(sizeof(domLight::domTechnique_common::domDirectional)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domLight::domTechnique_common::domPoint::create(daeInt bytes) +{ + domLight::domTechnique_common::domPointRef ref = new(bytes) domLight::domTechnique_common::domPoint; + return ref; +} + + +daeMetaElement * +domLight::domTechnique_common::domPoint::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "point" ); + _Meta->setStaticPointerAddress(&domLight::domTechnique_common::domPoint::_Meta); + _Meta->registerConstructor(domLight::domTechnique_common::domPoint::create); + + // Add elements: color, constant_attenuation, linear_attenuation, quadratic_attenuation + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domLight::domTechnique_common::domPoint,elemColor),"color"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domLight::domTechnique_common::domPoint,elemConstant_attenuation),"constant_attenuation"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domLight::domTechnique_common::domPoint,elemLinear_attenuation),"linear_attenuation"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domLight::domTechnique_common::domPoint,elemQuadratic_attenuation),"quadratic_attenuation"); + + + _Meta->setElementSize(sizeof(domLight::domTechnique_common::domPoint)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domLight::domTechnique_common::domSpot::create(daeInt bytes) +{ + domLight::domTechnique_common::domSpotRef ref = new(bytes) domLight::domTechnique_common::domSpot; + return ref; +} + + +daeMetaElement * +domLight::domTechnique_common::domSpot::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "spot" ); + _Meta->setStaticPointerAddress(&domLight::domTechnique_common::domSpot::_Meta); + _Meta->registerConstructor(domLight::domTechnique_common::domSpot::create); + + // Add elements: color, constant_attenuation, linear_attenuation, quadratic_attenuation, falloff_angle, falloff_exponent + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domLight::domTechnique_common::domSpot,elemColor),"color"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domLight::domTechnique_common::domSpot,elemConstant_attenuation),"constant_attenuation"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domLight::domTechnique_common::domSpot,elemLinear_attenuation),"linear_attenuation"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domLight::domTechnique_common::domSpot,elemQuadratic_attenuation),"quadratic_attenuation"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domLight::domTechnique_common::domSpot,elemFalloff_angle),"falloff_angle"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domLight::domTechnique_common::domSpot,elemFalloff_exponent),"falloff_exponent"); + + + _Meta->setElementSize(sizeof(domLight::domTechnique_common::domSpot)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLight::_Meta = NULL; +daeMetaElement * domLight::domTechnique_common::_Meta = NULL; +daeMetaElement * domLight::domTechnique_common::domAmbient::_Meta = NULL; +daeMetaElement * domLight::domTechnique_common::domDirectional::_Meta = NULL; +daeMetaElement * domLight::domTechnique_common::domPoint::_Meta = NULL; +daeMetaElement * domLight::domTechnique_common::domSpot::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLines.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLines.cpp new file mode 100644 index 000000000..ba2af0344 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLines.cpp @@ -0,0 +1,84 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLines::create(daeInt bytes) +{ + domLinesRef ref = new(bytes) domLines; + return ref; +} + + +daeMetaElement * +domLines::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "lines" ); + _Meta->setStaticPointerAddress(&domLines::_Meta); + _Meta->registerConstructor(domLines::create); + + // Add elements: input, p, extra + _Meta->appendArrayElement(domInputLocalOffset::registerElement(),daeOffsetOf(domLines,elemInput_array),"input"); + _Meta->appendElement(domP::registerElement(),daeOffsetOf(domLines,elemP)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLines,elemExtra_array)); + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLines , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domLines , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: material + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "material" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLines , attrMaterial )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLines)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLines::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLinestrips.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLinestrips.cpp new file mode 100644 index 000000000..9b650e83c --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLinestrips.cpp @@ -0,0 +1,84 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLinestrips::create(daeInt bytes) +{ + domLinestripsRef ref = new(bytes) domLinestrips; + return ref; +} + + +daeMetaElement * +domLinestrips::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "linestrips" ); + _Meta->setStaticPointerAddress(&domLinestrips::_Meta); + _Meta->registerConstructor(domLinestrips::create); + + // Add elements: input, p, extra + _Meta->appendArrayElement(domInputLocalOffset::registerElement(),daeOffsetOf(domLinestrips,elemInput_array),"input"); + _Meta->appendArrayElement(domP::registerElement(),daeOffsetOf(domLinestrips,elemP_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domLinestrips,elemExtra_array)); + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLinestrips , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domLinestrips , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: material + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "material" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLinestrips , attrMaterial )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLinestrips)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLinestrips::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLookat.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLookat.cpp new file mode 100644 index 000000000..44173358e --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domLookat.cpp @@ -0,0 +1,66 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domLookat::create(daeInt bytes) +{ + domLookatRef ref = new(bytes) domLookat; + return ref; +} + + +daeMetaElement * +domLookat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "lookat" ); + _Meta->setStaticPointerAddress(&domLookat::_Meta); + _Meta->registerConstructor(domLookat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3x3")); + ma->setOffset( daeOffsetOf( domLookat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domLookat , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domLookat)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domLookat::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domMaterial.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domMaterial.cpp new file mode 100644 index 000000000..d4a65981f --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domMaterial.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domMaterial::create(daeInt bytes) +{ + domMaterialRef ref = new(bytes) domMaterial; + return ref; +} + + +daeMetaElement * +domMaterial::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "material" ); + _Meta->setStaticPointerAddress(&domMaterial::_Meta); + _Meta->registerConstructor(domMaterial::create); + + // Add elements: asset, instance_effect, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domMaterial,elemAsset)); + _Meta->appendElement(domInstance_effect::registerElement(),daeOffsetOf(domMaterial,elemInstance_effect)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domMaterial,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domMaterial , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domMaterial , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domMaterial)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domMaterial::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domMatrix.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domMatrix.cpp new file mode 100644 index 000000000..8eb2c840e --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domMatrix.cpp @@ -0,0 +1,66 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domMatrix::create(daeInt bytes) +{ + domMatrixRef ref = new(bytes) domMatrix; + return ref; +} + + +daeMetaElement * +domMatrix::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "matrix" ); + _Meta->setStaticPointerAddress(&domMatrix::_Meta); + _Meta->registerConstructor(domMatrix::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4x4")); + ma->setOffset( daeOffsetOf( domMatrix , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domMatrix , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domMatrix)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domMatrix::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domMesh.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domMesh.cpp new file mode 100644 index 000000000..891e6335a --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domMesh.cpp @@ -0,0 +1,60 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domMesh::create(daeInt bytes) +{ + domMeshRef ref = new(bytes) domMesh; + return ref; +} + + +daeMetaElement * +domMesh::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mesh" ); + _Meta->setStaticPointerAddress(&domMesh::_Meta); + _Meta->registerConstructor(domMesh::create); + + // Add elements: source, vertices, lines, linestrips, polygons, polylist, triangles, trifans, tristrips, extra + _Meta->appendArrayElement(domSource::registerElement(),daeOffsetOf(domMesh,elemSource_array)); + _Meta->appendElement(domVertices::registerElement(),daeOffsetOf(domMesh,elemVertices)); + _Meta->appendArrayElement(domLines::registerElement(),daeOffsetOf(domMesh,elemLines_array)); + _Meta->appendArrayElement(domLinestrips::registerElement(),daeOffsetOf(domMesh,elemLinestrips_array)); + _Meta->appendArrayElement(domPolygons::registerElement(),daeOffsetOf(domMesh,elemPolygons_array)); + _Meta->appendArrayElement(domPolylist::registerElement(),daeOffsetOf(domMesh,elemPolylist_array)); + _Meta->appendArrayElement(domTriangles::registerElement(),daeOffsetOf(domMesh,elemTriangles_array)); + _Meta->appendArrayElement(domTrifans::registerElement(),daeOffsetOf(domMesh,elemTrifans_array)); + _Meta->appendArrayElement(domTristrips::registerElement(),daeOffsetOf(domMesh,elemTristrips_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domMesh,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domMesh,_contents)); + + + + _Meta->setElementSize(sizeof(domMesh)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domMesh::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domMorph.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domMorph.cpp new file mode 100644 index 000000000..313216bc3 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domMorph.cpp @@ -0,0 +1,105 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domMorph::create(daeInt bytes) +{ + domMorphRef ref = new(bytes) domMorph; + ref->attrSource.setContainer( (domMorph*)ref ); + return ref; +} + + +daeMetaElement * +domMorph::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "morph" ); + _Meta->setStaticPointerAddress(&domMorph::_Meta); + _Meta->registerConstructor(domMorph::create); + + // Add elements: source, targets, extra + _Meta->appendArrayElement(domSource::registerElement(),daeOffsetOf(domMorph,elemSource_array)); + _Meta->appendElement(domMorph::domTargets::registerElement(),daeOffsetOf(domMorph,elemTargets)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domMorph,elemExtra_array)); + + // Add attribute: method + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "method" ); + ma->setType( daeAtomicType::get("MorphMethodType")); + ma->setOffset( daeOffsetOf( domMorph , attrMethod )); + ma->setContainer( _Meta ); + ma->setDefault( "NORMALIZED"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domMorph , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domMorph)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domMorph::domTargets::create(daeInt bytes) +{ + domMorph::domTargetsRef ref = new(bytes) domMorph::domTargets; + return ref; +} + + +daeMetaElement * +domMorph::domTargets::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "targets" ); + _Meta->setStaticPointerAddress(&domMorph::domTargets::_Meta); + _Meta->registerConstructor(domMorph::domTargets::create); + + // Add elements: input, extra + _Meta->appendArrayElement(domInputLocal::registerElement(),daeOffsetOf(domMorph::domTargets,elemInput_array),"input"); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domMorph::domTargets,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domMorph::domTargets)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domMorph::_Meta = NULL; +daeMetaElement * domMorph::domTargets::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domName_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domName_array.cpp new file mode 100644 index 000000000..63b38bcb9 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domName_array.cpp @@ -0,0 +1,89 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domName_array::create(daeInt bytes) +{ + domName_arrayRef ref = new(bytes) domName_array; + return ref; +} + + +daeMetaElement * +domName_array::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "Name_array" ); + _Meta->setStaticPointerAddress(&domName_array::_Meta); + _Meta->registerConstructor(domName_array::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfNames")); + ma->setOffset( daeOffsetOf( domName_array , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domName_array , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domName_array , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domName_array , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domName_array)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domName_array::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domNode.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domNode.cpp new file mode 100644 index 000000000..e63e24187 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domNode.cpp @@ -0,0 +1,120 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domNode::create(daeInt bytes) +{ + domNodeRef ref = new(bytes) domNode; + return ref; +} + + +daeMetaElement * +domNode::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "node" ); + _Meta->setStaticPointerAddress(&domNode::_Meta); + _Meta->registerConstructor(domNode::create); + + // Add elements: asset, lookat, matrix, rotate, scale, skew, translate, instance_camera, instance_controller, instance_geometry, instance_light, instance_node, node, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domNode,elemAsset)); + _Meta->appendArrayElement(domLookat::registerElement(),daeOffsetOf(domNode,elemLookat_array)); + _Meta->appendArrayElement(domMatrix::registerElement(),daeOffsetOf(domNode,elemMatrix_array)); + _Meta->appendArrayElement(domRotate::registerElement(),daeOffsetOf(domNode,elemRotate_array)); + _Meta->appendArrayElement(domScale::registerElement(),daeOffsetOf(domNode,elemScale_array)); + _Meta->appendArrayElement(domSkew::registerElement(),daeOffsetOf(domNode,elemSkew_array)); + _Meta->appendArrayElement(domTranslate::registerElement(),daeOffsetOf(domNode,elemTranslate_array)); + _Meta->appendArrayElement(domInstance_camera::registerElement(),daeOffsetOf(domNode,elemInstance_camera_array)); + _Meta->appendArrayElement(domInstance_controller::registerElement(),daeOffsetOf(domNode,elemInstance_controller_array)); + _Meta->appendArrayElement(domInstance_geometry::registerElement(),daeOffsetOf(domNode,elemInstance_geometry_array)); + _Meta->appendArrayElement(domInstance_light::registerElement(),daeOffsetOf(domNode,elemInstance_light_array)); + _Meta->appendArrayElement(domInstance_node::registerElement(),daeOffsetOf(domNode,elemInstance_node_array)); + _Meta->appendArrayElement(domNode::registerElement(),daeOffsetOf(domNode,elemNode_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domNode,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domNode,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domNode , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domNode , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domNode , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: type + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "type" ); + ma->setType( daeAtomicType::get("NodeType")); + ma->setOffset( daeOffsetOf( domNode , attrType )); + ma->setContainer( _Meta ); + ma->setDefault( "NODE"); + + _Meta->appendAttribute(ma); + } + + // Add attribute: layer + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "layer" ); + ma->setType( daeAtomicType::get("ListOfNames")); + ma->setOffset( daeOffsetOf( domNode , attrLayer )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domNode)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domNode::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domP.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domP.cpp new file mode 100644 index 000000000..f4f9733b0 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domP.cpp @@ -0,0 +1,55 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domP::create(daeInt bytes) +{ + domPRef ref = new(bytes) domP; + return ref; +} + + +daeMetaElement * +domP::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "p" ); + _Meta->setStaticPointerAddress(&domP::_Meta); + _Meta->registerConstructor(domP::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfUInts")); + ma->setOffset( daeOffsetOf( domP , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domP)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domP::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domParam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domParam.cpp new file mode 100644 index 000000000..cbaa91b33 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domParam.cpp @@ -0,0 +1,100 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domParam::create(daeInt bytes) +{ + domParamRef ref = new(bytes) domParam; + return ref; +} + + +daeMetaElement * +domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domParam::_Meta); + _Meta->registerConstructor(domParam::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domParam , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domParam , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domParam , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: semantic + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "semantic" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domParam , attrSemantic )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: type + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "type" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domParam , attrType )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domParam)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domParam::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_material.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_material.cpp new file mode 100644 index 000000000..362f47379 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_material.cpp @@ -0,0 +1,104 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domPhysics_material::create(daeInt bytes) +{ + domPhysics_materialRef ref = new(bytes) domPhysics_material; + return ref; +} + + +daeMetaElement * +domPhysics_material::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "physics_material" ); + _Meta->setStaticPointerAddress(&domPhysics_material::_Meta); + _Meta->registerConstructor(domPhysics_material::create); + + // Add elements: asset, technique_common, technique, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domPhysics_material,elemAsset)); + _Meta->appendElement(domPhysics_material::domTechnique_common::registerElement(),daeOffsetOf(domPhysics_material,elemTechnique_common)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domPhysics_material,elemTechnique_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domPhysics_material,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domPhysics_material , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domPhysics_material , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domPhysics_material)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domPhysics_material::domTechnique_common::create(daeInt bytes) +{ + domPhysics_material::domTechnique_commonRef ref = new(bytes) domPhysics_material::domTechnique_common; + return ref; +} + + +daeMetaElement * +domPhysics_material::domTechnique_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_common" ); + _Meta->setStaticPointerAddress(&domPhysics_material::domTechnique_common::_Meta); + _Meta->registerConstructor(domPhysics_material::domTechnique_common::create); + + // Add elements: dynamic_friction, restitution, static_friction + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domPhysics_material::domTechnique_common,elemDynamic_friction),"dynamic_friction"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domPhysics_material::domTechnique_common,elemRestitution),"restitution"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domPhysics_material::domTechnique_common,elemStatic_friction),"static_friction"); + + + _Meta->setElementSize(sizeof(domPhysics_material::domTechnique_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domPhysics_material::_Meta = NULL; +daeMetaElement * domPhysics_material::domTechnique_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_model.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_model.cpp new file mode 100644 index 000000000..a210e4eb2 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_model.cpp @@ -0,0 +1,74 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domPhysics_model::create(daeInt bytes) +{ + domPhysics_modelRef ref = new(bytes) domPhysics_model; + return ref; +} + + +daeMetaElement * +domPhysics_model::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "physics_model" ); + _Meta->setStaticPointerAddress(&domPhysics_model::_Meta); + _Meta->registerConstructor(domPhysics_model::create); + + // Add elements: asset, rigid_body, rigid_constraint, instance_physics_model, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domPhysics_model,elemAsset)); + _Meta->appendArrayElement(domRigid_body::registerElement(),daeOffsetOf(domPhysics_model,elemRigid_body_array)); + _Meta->appendArrayElement(domRigid_constraint::registerElement(),daeOffsetOf(domPhysics_model,elemRigid_constraint_array)); + _Meta->appendArrayElement(domInstance_physics_model::registerElement(),daeOffsetOf(domPhysics_model,elemInstance_physics_model_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domPhysics_model,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domPhysics_model , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domPhysics_model , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domPhysics_model)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domPhysics_model::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_scene.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_scene.cpp new file mode 100644 index 000000000..21f66785c --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_scene.cpp @@ -0,0 +1,105 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domPhysics_scene::create(daeInt bytes) +{ + domPhysics_sceneRef ref = new(bytes) domPhysics_scene; + return ref; +} + + +daeMetaElement * +domPhysics_scene::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "physics_scene" ); + _Meta->setStaticPointerAddress(&domPhysics_scene::_Meta); + _Meta->registerConstructor(domPhysics_scene::create); + + // Add elements: asset, instance_force_field, instance_physics_model, technique_common, technique, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domPhysics_scene,elemAsset)); + _Meta->appendArrayElement(domInstance_force_field::registerElement(),daeOffsetOf(domPhysics_scene,elemInstance_force_field_array)); + _Meta->appendArrayElement(domInstance_physics_model::registerElement(),daeOffsetOf(domPhysics_scene,elemInstance_physics_model_array)); + _Meta->appendElement(domPhysics_scene::domTechnique_common::registerElement(),daeOffsetOf(domPhysics_scene,elemTechnique_common)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domPhysics_scene,elemTechnique_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domPhysics_scene,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domPhysics_scene , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domPhysics_scene , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domPhysics_scene)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domPhysics_scene::domTechnique_common::create(daeInt bytes) +{ + domPhysics_scene::domTechnique_commonRef ref = new(bytes) domPhysics_scene::domTechnique_common; + return ref; +} + + +daeMetaElement * +domPhysics_scene::domTechnique_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_common" ); + _Meta->setStaticPointerAddress(&domPhysics_scene::domTechnique_common::_Meta); + _Meta->registerConstructor(domPhysics_scene::domTechnique_common::create); + + // Add elements: gravity, time_step + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domPhysics_scene::domTechnique_common,elemGravity),"gravity"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domPhysics_scene::domTechnique_common,elemTime_step),"time_step"); + + + _Meta->setElementSize(sizeof(domPhysics_scene::domTechnique_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domPhysics_scene::_Meta = NULL; +daeMetaElement * domPhysics_scene::domTechnique_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPlane.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPlane.cpp new file mode 100644 index 000000000..04220948a --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domPlane.cpp @@ -0,0 +1,85 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domPlane::create(daeInt bytes) +{ + domPlaneRef ref = new(bytes) domPlane; + return ref; +} + + +daeMetaElement * +domPlane::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "plane" ); + _Meta->setStaticPointerAddress(&domPlane::_Meta); + _Meta->registerConstructor(domPlane::create); + + // Add elements: equation, extra + _Meta->appendElement(domPlane::domEquation::registerElement(),daeOffsetOf(domPlane,elemEquation)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domPlane,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domPlane)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domPlane::domEquation::create(daeInt bytes) +{ + domPlane::domEquationRef ref = new(bytes) domPlane::domEquation; + return ref; +} + + +daeMetaElement * +domPlane::domEquation::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "equation" ); + _Meta->setStaticPointerAddress(&domPlane::domEquation::_Meta); + _Meta->registerConstructor(domPlane::domEquation::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domPlane::domEquation , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domPlane::domEquation)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domPlane::_Meta = NULL; +daeMetaElement * domPlane::domEquation::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPolygons.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPolygons.cpp new file mode 100644 index 000000000..f6f5d2c4f --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domPolygons.cpp @@ -0,0 +1,154 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domPolygons::create(daeInt bytes) +{ + domPolygonsRef ref = new(bytes) domPolygons; + return ref; +} + + +daeMetaElement * +domPolygons::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polygons" ); + _Meta->setStaticPointerAddress(&domPolygons::_Meta); + _Meta->registerConstructor(domPolygons::create); + + // Add elements: input, p, ph, extra + _Meta->appendArrayElement(domInputLocalOffset::registerElement(),daeOffsetOf(domPolygons,elemInput_array),"input"); + _Meta->appendArrayElement(domP::registerElement(),daeOffsetOf(domPolygons,elemP_array)); + _Meta->appendArrayElement(domPolygons::domPh::registerElement(),daeOffsetOf(domPolygons,elemPh_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domPolygons,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domPolygons,_contents)); + + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domPolygons , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domPolygons , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: material + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "material" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domPolygons , attrMaterial )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domPolygons)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domPolygons::domPh::create(daeInt bytes) +{ + domPolygons::domPhRef ref = new(bytes) domPolygons::domPh; + return ref; +} + + +daeMetaElement * +domPolygons::domPh::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "ph" ); + _Meta->setStaticPointerAddress(&domPolygons::domPh::_Meta); + _Meta->registerConstructor(domPolygons::domPh::create); + + // Add elements: p, h + _Meta->appendElement(domP::registerElement(),daeOffsetOf(domPolygons::domPh,elemP)); + _Meta->appendArrayElement(domPolygons::domPh::domH::registerElement(),daeOffsetOf(domPolygons::domPh,elemH_array)); + + + _Meta->setElementSize(sizeof(domPolygons::domPh)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domPolygons::domPh::domH::create(daeInt bytes) +{ + domPolygons::domPh::domHRef ref = new(bytes) domPolygons::domPh::domH; + return ref; +} + + +daeMetaElement * +domPolygons::domPh::domH::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "h" ); + _Meta->setStaticPointerAddress(&domPolygons::domPh::domH::_Meta); + _Meta->registerConstructor(domPolygons::domPh::domH::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfUInts")); + ma->setOffset( daeOffsetOf( domPolygons::domPh::domH , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domPolygons::domPh::domH)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domPolygons::_Meta = NULL; +daeMetaElement * domPolygons::domPh::_Meta = NULL; +daeMetaElement * domPolygons::domPh::domH::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPolylist.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPolylist.cpp new file mode 100644 index 000000000..e213b3f8c --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domPolylist.cpp @@ -0,0 +1,121 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domPolylist::create(daeInt bytes) +{ + domPolylistRef ref = new(bytes) domPolylist; + return ref; +} + + +daeMetaElement * +domPolylist::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "polylist" ); + _Meta->setStaticPointerAddress(&domPolylist::_Meta); + _Meta->registerConstructor(domPolylist::create); + + // Add elements: input, vcount, p, extra + _Meta->appendArrayElement(domInputLocalOffset::registerElement(),daeOffsetOf(domPolylist,elemInput_array),"input"); + _Meta->appendElement(domPolylist::domVcount::registerElement(),daeOffsetOf(domPolylist,elemVcount)); + _Meta->appendElement(domP::registerElement(),daeOffsetOf(domPolylist,elemP)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domPolylist,elemExtra_array)); + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domPolylist , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domPolylist , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: material + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "material" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domPolylist , attrMaterial )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domPolylist)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domPolylist::domVcount::create(daeInt bytes) +{ + domPolylist::domVcountRef ref = new(bytes) domPolylist::domVcount; + return ref; +} + + +daeMetaElement * +domPolylist::domVcount::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "vcount" ); + _Meta->setStaticPointerAddress(&domPolylist::domVcount::_Meta); + _Meta->registerConstructor(domPolylist::domVcount::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfUInts")); + ma->setOffset( daeOffsetOf( domPolylist::domVcount , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domPolylist::domVcount)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domPolylist::_Meta = NULL; +daeMetaElement * domPolylist::domVcount::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_CG.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_CG.cpp new file mode 100644 index 000000000..966485f27 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_CG.cpp @@ -0,0 +1,688 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domProfile_CG::create(daeInt bytes) +{ + domProfile_CGRef ref = new(bytes) domProfile_CG; + return ref; +} + + +daeMetaElement * +domProfile_CG::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "profile_CG" ); + _Meta->setStaticPointerAddress(&domProfile_CG::_Meta); + _Meta->registerConstructor(domProfile_CG::create); + + // Add elements: code, include, image, newparam, technique + _Meta->appendArrayElement(domFx_code_profile::registerElement(),daeOffsetOf(domProfile_CG,elemCode_array),"code"); + _Meta->appendArrayElement(domFx_include_common::registerElement(),daeOffsetOf(domProfile_CG,elemInclude_array),"include"); + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domProfile_CG,elemImage_array)); + _Meta->appendArrayElement(domCg_newparam::registerElement(),daeOffsetOf(domProfile_CG,elemNewparam_array),"newparam"); + _Meta->appendArrayElement(domProfile_CG::domTechnique::registerElement(),daeOffsetOf(domProfile_CG,elemTechnique_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_CG,_contents)); + + + // Add attribute: platform + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "platform" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_CG , attrPlatform )); + ma->setContainer( _Meta ); + ma->setDefault( "PC"); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_CG::domTechnique::create(daeInt bytes) +{ + domProfile_CG::domTechniqueRef ref = new(bytes) domProfile_CG::domTechnique; + return ref; +} + + +daeMetaElement * +domProfile_CG::domTechnique::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique" ); + _Meta->setStaticPointerAddress(&domProfile_CG::domTechnique::_Meta); + _Meta->registerConstructor(domProfile_CG::domTechnique::create); + + // Add elements: asset, annotate, code, include, image, newparam, setparam, pass + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domProfile_CG::domTechnique,elemAsset)); + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique,elemAnnotate_array),"annotate"); + _Meta->appendArrayElement(domFx_code_profile::registerElement(),daeOffsetOf(domProfile_CG::domTechnique,elemCode_array),"code"); + _Meta->appendArrayElement(domFx_include_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique,elemInclude_array),"include"); + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domProfile_CG::domTechnique,elemImage_array)); + _Meta->appendArrayElement(domCg_newparam::registerElement(),daeOffsetOf(domProfile_CG::domTechnique,elemNewparam_array),"newparam"); + _Meta->appendArrayElement(domCg_setparam::registerElement(),daeOffsetOf(domProfile_CG::domTechnique,elemSetparam_array),"setparam"); + _Meta->appendArrayElement(domProfile_CG::domTechnique::domPass::registerElement(),daeOffsetOf(domProfile_CG::domTechnique,elemPass_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_CG::domTechnique,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG::domTechnique)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_CG::domTechnique::domPass::create(daeInt bytes) +{ + domProfile_CG::domTechnique::domPassRef ref = new(bytes) domProfile_CG::domTechnique::domPass; + return ref; +} + + +daeMetaElement * +domProfile_CG::domTechnique::domPass::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "pass" ); + _Meta->setStaticPointerAddress(&domProfile_CG::domTechnique::domPass::_Meta); + _Meta->registerConstructor(domProfile_CG::domTechnique::domPass::create); + + // Add elements: annotate, color_target, depth_target, stencil_target, color_clear, depth_clear, stencil_clear, draw, gl_pipeline_settings, shader + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemAnnotate_array),"annotate"); + _Meta->appendArrayElement(domFx_colortarget_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemColor_target_array),"color_target"); + _Meta->appendArrayElement(domFx_depthtarget_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemDepth_target_array),"depth_target"); + _Meta->appendArrayElement(domFx_stenciltarget_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemStencil_target_array),"stencil_target"); + _Meta->appendArrayElement(domFx_clearcolor_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemColor_clear_array),"color_clear"); + _Meta->appendArrayElement(domFx_cleardepth_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemDepth_clear_array),"depth_clear"); + _Meta->appendArrayElement(domFx_clearstencil_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemStencil_clear_array),"stencil_clear"); + _Meta->appendElement(domProfile_CG::domTechnique::domPass::domDraw::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemDraw)); + _Meta->appendArrayElement(domGl_pipeline_settings::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemGl_pipeline_settings_array)); + _Meta->appendPossibleChild( "alpha_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_func_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_equation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_equation_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "color_material", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "cull_face", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_mode", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_coord_src", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "front_face", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_color_control", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "logic_op", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_mode", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "shade_model", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_op", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_func_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_op_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_mask_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_ambient", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_diffuse", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_specular", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_position", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_constant_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_linear_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_quadratic_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_spot_cutoff", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_spot_direction", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_spot_exponent", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture1D", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture2D", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture3D", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureCUBE", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureRECT", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureDEPTH", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture1D_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture2D_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture3D_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureCUBE_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureRECT_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureDEPTH_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture_env_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture_env_mode", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clip_plane", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clip_plane_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clear_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clear_stencil", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clear_depth", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "color_mask", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_bounds", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_mask", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_range", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_density", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_start", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_end", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_ambient", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "lighting_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_stipple", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_width", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_ambient", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_diffuse", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_emission", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_shininess", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_specular", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "model_view_matrix", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_distance_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_fade_threshold_size", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_size", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_size_min", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_size_max", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "projection_matrix", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "scissor", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_mask", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "alpha_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "auto_normal_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "color_logic_op_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "cull_face_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_bounds_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_clamp_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "dither_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_local_viewer_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_two_side_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_smooth_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_stipple_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "logic_op_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "multisample_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "normalize_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_smooth_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset_fill_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset_line_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset_point_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_smooth_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_stipple_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "rescale_normal_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "sample_alpha_to_coverage_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "sample_alpha_to_one_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "sample_coverage_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "scissor_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendArrayElement(domProfile_CG::domTechnique::domPass::domShader::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass,elemShader_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_CG::domTechnique::domPass,_contents)); + + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_CG::domTechnique::domPass::domDraw::create(daeInt bytes) +{ + domProfile_CG::domTechnique::domPass::domDrawRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domDraw; + return ref; +} + + +daeMetaElement * +domProfile_CG::domTechnique::domPass::domDraw::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "draw" ); + _Meta->setStaticPointerAddress(&domProfile_CG::domTechnique::domPass::domDraw::_Meta); + _Meta->registerConstructor(domProfile_CG::domTechnique::domPass::domDraw::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_draw_common")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domDraw , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domDraw)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_CG::domTechnique::domPass::domShader::create(daeInt bytes) +{ + domProfile_CG::domTechnique::domPass::domShaderRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader; + return ref; +} + + +daeMetaElement * +domProfile_CG::domTechnique::domPass::domShader::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "shader" ); + _Meta->setStaticPointerAddress(&domProfile_CG::domTechnique::domPass::domShader::_Meta); + _Meta->registerConstructor(domProfile_CG::domTechnique::domPass::domShader::create); + + // Add elements: annotate, compiler_target, compiler_options, name, bind + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemAnnotate_array),"annotate"); + _Meta->appendElement(domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemCompiler_target)); + _Meta->appendElement(domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemCompiler_options)); + _Meta->appendElement(domProfile_CG::domTechnique::domPass::domShader::domName::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemName)); + _Meta->appendArrayElement(domProfile_CG::domTechnique::domPass::domShader::domBind::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemBind_array)); + + // Add attribute: stage + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "stage" ); + ma->setType( daeAtomicType::get("Cg_pipeline_stage")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader , attrStage )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::create(daeInt bytes) +{ + domProfile_CG::domTechnique::domPass::domShader::domCompiler_targetRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domCompiler_target; + return ref; +} + + +daeMetaElement * +domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "compiler_target" ); + _Meta->setStaticPointerAddress(&domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::_Meta); + _Meta->registerConstructor(domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domCompiler_target , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domCompiler_target)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::create(daeInt bytes) +{ + domProfile_CG::domTechnique::domPass::domShader::domCompiler_optionsRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domCompiler_options; + return ref; +} + + +daeMetaElement * +domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "compiler_options" ); + _Meta->setStaticPointerAddress(&domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::_Meta); + _Meta->registerConstructor(domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domCompiler_options , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domCompiler_options)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_CG::domTechnique::domPass::domShader::domName::create(daeInt bytes) +{ + domProfile_CG::domTechnique::domPass::domShader::domNameRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domName; + return ref; +} + + +daeMetaElement * +domProfile_CG::domTechnique::domPass::domShader::domName::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "name" ); + _Meta->setStaticPointerAddress(&domProfile_CG::domTechnique::domPass::domShader::domName::_Meta); + _Meta->registerConstructor(domProfile_CG::domTechnique::domPass::domShader::domName::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domName , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domName , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domName)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_CG::domTechnique::domPass::domShader::domBind::create(daeInt bytes) +{ + domProfile_CG::domTechnique::domPass::domShader::domBindRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domBind; + return ref; +} + + +daeMetaElement * +domProfile_CG::domTechnique::domPass::domShader::domBind::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bind" ); + _Meta->setStaticPointerAddress(&domProfile_CG::domTechnique::domPass::domShader::domBind::_Meta); + _Meta->registerConstructor(domProfile_CG::domTechnique::domPass::domShader::domBind::create); + + // Add elements: cg_param_type, param + _Meta->appendElement(domCg_param_type::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader::domBind,elemCg_param_type)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "half4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed1x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed2x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed3x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x1", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "fixed4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[0], "cg_surface_type"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[0], "cg_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[0], "cg_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[0], "cg_sampler3D"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[0], "cg_samplerRECT"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[0], "cg_samplerCUBE"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[0], "cg_samplerDEPTH"); + _Meta->appendPossibleChild( "string", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[0]); + _Meta->appendElement(domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::registerElement(),daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader::domBind,elemParam)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader::domBind,_contents)); + + + // Add attribute: symbol + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "symbol" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domBind , attrSymbol )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domBind)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::create(daeInt bytes) +{ + domProfile_CG::domTechnique::domPass::domShader::domBind::domParamRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domBind::domParam; + return ref; +} + + +daeMetaElement * +domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::_Meta); + _Meta->registerConstructor(domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::create); + + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domBind::domParam , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domBind::domParam)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domProfile_CG::_Meta = NULL; +daeMetaElement * domProfile_CG::domTechnique::_Meta = NULL; +daeMetaElement * domProfile_CG::domTechnique::domPass::_Meta = NULL; +daeMetaElement * domProfile_CG::domTechnique::domPass::domDraw::_Meta = NULL; +daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::_Meta = NULL; +daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::_Meta = NULL; +daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::_Meta = NULL; +daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domName::_Meta = NULL; +daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domBind::_Meta = NULL; +daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_COMMON.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_COMMON.cpp new file mode 100644 index 000000000..0b132a167 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_COMMON.cpp @@ -0,0 +1,262 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domProfile_COMMON::create(daeInt bytes) +{ + domProfile_COMMONRef ref = new(bytes) domProfile_COMMON; + return ref; +} + + +daeMetaElement * +domProfile_COMMON::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "profile_COMMON" ); + _Meta->setStaticPointerAddress(&domProfile_COMMON::_Meta); + _Meta->registerConstructor(domProfile_COMMON::create); + + // Add elements: image, newparam, technique, extra + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domProfile_COMMON,elemImage_array)); + _Meta->appendArrayElement(domCommon_newparam_type::registerElement(),daeOffsetOf(domProfile_COMMON,elemNewparam_array),"newparam"); + _Meta->appendElement(domProfile_COMMON::domTechnique::registerElement(),daeOffsetOf(domProfile_COMMON,elemTechnique)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domProfile_COMMON,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_COMMON,_contents)); + + + + _Meta->setElementSize(sizeof(domProfile_COMMON)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_COMMON::domTechnique::create(daeInt bytes) +{ + domProfile_COMMON::domTechniqueRef ref = new(bytes) domProfile_COMMON::domTechnique; + return ref; +} + + +daeMetaElement * +domProfile_COMMON::domTechnique::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique" ); + _Meta->setStaticPointerAddress(&domProfile_COMMON::domTechnique::_Meta); + _Meta->registerConstructor(domProfile_COMMON::domTechnique::create); + + // Add elements: asset, image, newparam, constant, lambert, phong, blinn, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique,elemAsset)); + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique,elemImage_array)); + _Meta->appendArrayElement(domCommon_newparam_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique,elemNewparam_array),"newparam"); + _Meta->appendElement(domProfile_COMMON::domTechnique::domConstant::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique,elemConstant)); + _Meta->appendElement(domProfile_COMMON::domTechnique::domLambert::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique,elemLambert)); + _Meta->appendElement(domProfile_COMMON::domTechnique::domPhong::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique,elemPhong)); + _Meta->appendElement(domProfile_COMMON::domTechnique::domBlinn::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique,elemBlinn)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_COMMON::domTechnique,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domProfile_COMMON::domTechnique , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_COMMON::domTechnique , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_COMMON::domTechnique::domConstant::create(daeInt bytes) +{ + domProfile_COMMON::domTechnique::domConstantRef ref = new(bytes) domProfile_COMMON::domTechnique::domConstant; + return ref; +} + + +daeMetaElement * +domProfile_COMMON::domTechnique::domConstant::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "constant" ); + _Meta->setStaticPointerAddress(&domProfile_COMMON::domTechnique::domConstant::_Meta); + _Meta->registerConstructor(domProfile_COMMON::domTechnique::domConstant::create); + + // Add elements: emission, reflective, reflectivity, transparent, transparency, index_of_refraction + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemEmission),"emission"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemReflective),"reflective"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemReflectivity),"reflectivity"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemTransparent),"transparent"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemTransparency),"transparency"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemIndex_of_refraction),"index_of_refraction"); + + + _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique::domConstant)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_COMMON::domTechnique::domLambert::create(daeInt bytes) +{ + domProfile_COMMON::domTechnique::domLambertRef ref = new(bytes) domProfile_COMMON::domTechnique::domLambert; + return ref; +} + + +daeMetaElement * +domProfile_COMMON::domTechnique::domLambert::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "lambert" ); + _Meta->setStaticPointerAddress(&domProfile_COMMON::domTechnique::domLambert::_Meta); + _Meta->registerConstructor(domProfile_COMMON::domTechnique::domLambert::create); + + // Add elements: emission, ambient, diffuse, reflective, reflectivity, transparent, transparency, index_of_refraction + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemEmission),"emission"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemAmbient),"ambient"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemDiffuse),"diffuse"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemReflective),"reflective"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemReflectivity),"reflectivity"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemTransparent),"transparent"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemTransparency),"transparency"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemIndex_of_refraction),"index_of_refraction"); + + + _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique::domLambert)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_COMMON::domTechnique::domPhong::create(daeInt bytes) +{ + domProfile_COMMON::domTechnique::domPhongRef ref = new(bytes) domProfile_COMMON::domTechnique::domPhong; + return ref; +} + + +daeMetaElement * +domProfile_COMMON::domTechnique::domPhong::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "phong" ); + _Meta->setStaticPointerAddress(&domProfile_COMMON::domTechnique::domPhong::_Meta); + _Meta->registerConstructor(domProfile_COMMON::domTechnique::domPhong::create); + + // Add elements: emission, ambient, diffuse, specular, shininess, reflective, reflectivity, transparent, transparency, index_of_refraction + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemEmission),"emission"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemAmbient),"ambient"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemDiffuse),"diffuse"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemSpecular),"specular"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemShininess),"shininess"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemReflective),"reflective"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemReflectivity),"reflectivity"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemTransparent),"transparent"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemTransparency),"transparency"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemIndex_of_refraction),"index_of_refraction"); + + + _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique::domPhong)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_COMMON::domTechnique::domBlinn::create(daeInt bytes) +{ + domProfile_COMMON::domTechnique::domBlinnRef ref = new(bytes) domProfile_COMMON::domTechnique::domBlinn; + return ref; +} + + +daeMetaElement * +domProfile_COMMON::domTechnique::domBlinn::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "blinn" ); + _Meta->setStaticPointerAddress(&domProfile_COMMON::domTechnique::domBlinn::_Meta); + _Meta->registerConstructor(domProfile_COMMON::domTechnique::domBlinn::create); + + // Add elements: emission, ambient, diffuse, specular, shininess, reflective, reflectivity, transparent, transparency, index_of_refraction + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemEmission),"emission"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemAmbient),"ambient"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemDiffuse),"diffuse"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemSpecular),"specular"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemShininess),"shininess"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemReflective),"reflective"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemReflectivity),"reflectivity"); + _Meta->appendElement(domCommon_color_or_texture_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemTransparent),"transparent"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemTransparency),"transparency"); + _Meta->appendElement(domCommon_float_or_param_type::registerElement(),daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemIndex_of_refraction),"index_of_refraction"); + + + _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique::domBlinn)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domProfile_COMMON::_Meta = NULL; +daeMetaElement * domProfile_COMMON::domTechnique::_Meta = NULL; +daeMetaElement * domProfile_COMMON::domTechnique::domConstant::_Meta = NULL; +daeMetaElement * domProfile_COMMON::domTechnique::domLambert::_Meta = NULL; +daeMetaElement * domProfile_COMMON::domTechnique::domPhong::_Meta = NULL; +daeMetaElement * domProfile_COMMON::domTechnique::domBlinn::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLES.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLES.cpp new file mode 100644 index 000000000..989ac1699 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLES.cpp @@ -0,0 +1,565 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domProfile_GLES::create(daeInt bytes) +{ + domProfile_GLESRef ref = new(bytes) domProfile_GLES; + return ref; +} + + +daeMetaElement * +domProfile_GLES::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "profile_GLES" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::_Meta); + _Meta->registerConstructor(domProfile_GLES::create); + + // Add elements: image, newparam, technique + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domProfile_GLES,elemImage_array)); + _Meta->appendArrayElement(domGles_newparam::registerElement(),daeOffsetOf(domProfile_GLES,elemNewparam_array),"newparam"); + _Meta->appendArrayElement(domProfile_GLES::domTechnique::registerElement(),daeOffsetOf(domProfile_GLES,elemTechnique_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_GLES,_contents)); + + + + _Meta->setElementSize(sizeof(domProfile_GLES)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::create(daeInt bytes) +{ + domProfile_GLES::domTechniqueRef ref = new(bytes) domProfile_GLES::domTechnique; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::create); + + // Add elements: asset, annotate, image, newparam, setparam, pass + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique,elemAsset)); + _Meta->appendElement(domFx_annotate_common::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique,elemAnnotate),"annotate"); + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique,elemImage_array)); + _Meta->appendArrayElement(domGles_newparam::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique,elemNewparam_array),"newparam"); + _Meta->appendArrayElement(domProfile_GLES::domTechnique::domSetparam::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique,elemSetparam_array)); + _Meta->appendArrayElement(domProfile_GLES::domTechnique::domPass::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique,elemPass_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_GLES::domTechnique,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::domSetparam::create(daeInt bytes) +{ + domProfile_GLES::domTechnique::domSetparamRef ref = new(bytes) domProfile_GLES::domTechnique::domSetparam; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::domSetparam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "setparam" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::domSetparam::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::domSetparam::create); + + // Add elements: annotate, gles_basic_type_common + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domSetparam,elemAnnotate_array),"annotate"); + _Meta->appendElement(domGles_basic_type_common::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domSetparam,elemGles_basic_type_common)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float1x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float2x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float3x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x1", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x2", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x3", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[1]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[1], "fx_surface_common"); + _Meta->appendPossibleChild( "texture_pipeline", _Meta->getMetaElements()[1], "gles_texture_pipeline"); + _Meta->appendPossibleChild( "sampler_state", _Meta->getMetaElements()[1], "gles_sampler_state"); + _Meta->appendPossibleChild( "texture_unit", _Meta->getMetaElements()[1], "gles_texture_unit"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[1]); + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domSetparam , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domSetparam)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::domPass::create(daeInt bytes) +{ + domProfile_GLES::domTechnique::domPassRef ref = new(bytes) domProfile_GLES::domTechnique::domPass; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::domPass::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "pass" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::domPass::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::domPass::create); + + // Add elements: annotate, color_target, depth_target, stencil_target, color_clear, depth_clear, stencil_clear, draw, gles_pipeline_settings + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemAnnotate_array),"annotate"); + _Meta->appendElement(domProfile_GLES::domTechnique::domPass::domColor_target::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemColor_target)); + _Meta->appendElement(domProfile_GLES::domTechnique::domPass::domDepth_target::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemDepth_target)); + _Meta->appendElement(domProfile_GLES::domTechnique::domPass::domStencil_target::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemStencil_target)); + _Meta->appendElement(domProfile_GLES::domTechnique::domPass::domColor_clear::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemColor_clear)); + _Meta->appendElement(domProfile_GLES::domTechnique::domPass::domDepth_clear::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemDepth_clear)); + _Meta->appendElement(domProfile_GLES::domTechnique::domPass::domStencil_clear::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemStencil_clear)); + _Meta->appendElement(domProfile_GLES::domTechnique::domPass::domDraw::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemDraw)); + _Meta->appendArrayElement(domGles_pipeline_settings::registerElement(),daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemGles_pipeline_settings_array)); + _Meta->appendPossibleChild( "alpha_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clear_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clear_stencil", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clear_depth", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clip_plane", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "color_mask", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "cull_face", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_mask", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_range", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_density", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_mode", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_start", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_end", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "front_face", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture_pipeline", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "logic_op", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_ambient", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_diffuse", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_specular", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_position", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_constant_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_linear_attenutation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_quadratic_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_spot_cutoff", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_spot_direction", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_spot_exponent", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_ambient", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_width", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_ambient", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_diffuse", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_emission", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_shininess", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_specular", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "model_view_matrix", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_distance_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_fade_threshold_size", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_size", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_size_min", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_size_max", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "projection_matrix", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "scissor", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "shade_model", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_mask", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_op", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "alpha_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clip_plane_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "color_logic_op_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "color_material_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "cull_face_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "dither_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture_pipeline_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "lighting_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_two_side_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_smooth_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "multisample_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "normalize_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_smooth_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset_fill_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "rescale_normal_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "sample_alpha_to_coverage_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "sample_alpha_to_one_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "sample_coverage_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "scissor_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_test_enable", _Meta->getMetaElements()[8]); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_GLES::domTechnique::domPass,_contents)); + + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::domPass::domColor_target::create(daeInt bytes) +{ + domProfile_GLES::domTechnique::domPass::domColor_targetRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domColor_target; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::domPass::domColor_target::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "color_target" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::domPass::domColor_target::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::domPass::domColor_target::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Gles_rendertarget_common")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domColor_target , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domColor_target)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::domPass::domDepth_target::create(daeInt bytes) +{ + domProfile_GLES::domTechnique::domPass::domDepth_targetRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domDepth_target; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::domPass::domDepth_target::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_target" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::domPass::domDepth_target::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::domPass::domDepth_target::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Gles_rendertarget_common")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domDepth_target , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domDepth_target)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::domPass::domStencil_target::create(daeInt bytes) +{ + domProfile_GLES::domTechnique::domPass::domStencil_targetRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domStencil_target; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::domPass::domStencil_target::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_target" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::domPass::domStencil_target::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::domPass::domStencil_target::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Gles_rendertarget_common")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domStencil_target , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domStencil_target)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::domPass::domColor_clear::create(daeInt bytes) +{ + domProfile_GLES::domTechnique::domPass::domColor_clearRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domColor_clear; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::domPass::domColor_clear::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "color_clear" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::domPass::domColor_clear::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::domPass::domColor_clear::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_color_common")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domColor_clear , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domColor_clear)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::domPass::domDepth_clear::create(daeInt bytes) +{ + domProfile_GLES::domTechnique::domPass::domDepth_clearRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domDepth_clear; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::domPass::domDepth_clear::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "depth_clear" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::domPass::domDepth_clear::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::domPass::domDepth_clear::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domDepth_clear , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domDepth_clear)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::domPass::domStencil_clear::create(daeInt bytes) +{ + domProfile_GLES::domTechnique::domPass::domStencil_clearRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domStencil_clear; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::domPass::domStencil_clear::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "stencil_clear" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::domPass::domStencil_clear::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::domPass::domStencil_clear::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsByte")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domStencil_clear , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domStencil_clear)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLES::domTechnique::domPass::domDraw::create(daeInt bytes) +{ + domProfile_GLES::domTechnique::domPass::domDrawRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domDraw; + return ref; +} + + +daeMetaElement * +domProfile_GLES::domTechnique::domPass::domDraw::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "draw" ); + _Meta->setStaticPointerAddress(&domProfile_GLES::domTechnique::domPass::domDraw::_Meta); + _Meta->registerConstructor(domProfile_GLES::domTechnique::domPass::domDraw::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_draw_common")); + ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domDraw , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domDraw)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domProfile_GLES::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::domSetparam::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::domPass::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::domPass::domColor_target::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::domPass::domDepth_target::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::domPass::domStencil_target::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::domPass::domColor_clear::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::domPass::domDepth_clear::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::domPass::domStencil_clear::_Meta = NULL; +daeMetaElement * domProfile_GLES::domTechnique::domPass::domDraw::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLSL.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLSL.cpp new file mode 100644 index 000000000..bfe7786c0 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLSL.cpp @@ -0,0 +1,582 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domProfile_GLSL::create(daeInt bytes) +{ + domProfile_GLSLRef ref = new(bytes) domProfile_GLSL; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "profile_GLSL" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::_Meta); + _Meta->registerConstructor(domProfile_GLSL::create); + + // Add elements: code, include, image, newparam, technique + _Meta->appendArrayElement(domFx_code_profile::registerElement(),daeOffsetOf(domProfile_GLSL,elemCode_array),"code"); + _Meta->appendArrayElement(domFx_include_common::registerElement(),daeOffsetOf(domProfile_GLSL,elemInclude_array),"include"); + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domProfile_GLSL,elemImage_array)); + _Meta->appendArrayElement(domGlsl_newparam::registerElement(),daeOffsetOf(domProfile_GLSL,elemNewparam_array),"newparam"); + _Meta->appendArrayElement(domProfile_GLSL::domTechnique::registerElement(),daeOffsetOf(domProfile_GLSL,elemTechnique_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_GLSL,_contents)); + + + + _Meta->setElementSize(sizeof(domProfile_GLSL)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLSL::domTechnique::create(daeInt bytes) +{ + domProfile_GLSL::domTechniqueRef ref = new(bytes) domProfile_GLSL::domTechnique; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::domTechnique::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::domTechnique::_Meta); + _Meta->registerConstructor(domProfile_GLSL::domTechnique::create); + + // Add elements: code, include, image, newparam, setparam, pass + _Meta->appendArrayElement(domFx_code_profile::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique,elemCode_array),"code"); + _Meta->appendArrayElement(domFx_include_common::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique,elemInclude_array),"include"); + _Meta->appendArrayElement(domImage::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique,elemImage_array)); + _Meta->appendArrayElement(domGlsl_newparam::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique,elemNewparam_array),"newparam"); + _Meta->appendArrayElement(domGlsl_setparam::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique,elemSetparam_array),"setparam"); + _Meta->appendArrayElement(domProfile_GLSL::domTechnique::domPass::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique,elemPass_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_GLSL::domTechnique,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLSL::domTechnique::domPass::create(daeInt bytes) +{ + domProfile_GLSL::domTechnique::domPassRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::domTechnique::domPass::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "pass" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::domTechnique::domPass::_Meta); + _Meta->registerConstructor(domProfile_GLSL::domTechnique::domPass::create); + + // Add elements: annotate, color_target, depth_target, stencil_target, color_clear, depth_clear, stencil_clear, draw, gl_pipeline_settings, shader + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemAnnotate_array),"annotate"); + _Meta->appendArrayElement(domFx_colortarget_common::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemColor_target_array),"color_target"); + _Meta->appendArrayElement(domFx_depthtarget_common::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemDepth_target_array),"depth_target"); + _Meta->appendArrayElement(domFx_stenciltarget_common::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemStencil_target_array),"stencil_target"); + _Meta->appendArrayElement(domFx_clearcolor_common::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemColor_clear_array),"color_clear"); + _Meta->appendArrayElement(domFx_cleardepth_common::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemDepth_clear_array),"depth_clear"); + _Meta->appendArrayElement(domFx_clearstencil_common::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemStencil_clear_array),"stencil_clear"); + _Meta->appendElement(domProfile_GLSL::domTechnique::domPass::domDraw::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemDraw)); + _Meta->appendArrayElement(domGl_pipeline_settings::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemGl_pipeline_settings_array)); + _Meta->appendPossibleChild( "alpha_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_func_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_equation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_equation_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "color_material", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "cull_face", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_mode", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_coord_src", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "front_face", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_color_control", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "logic_op", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_mode", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "shade_model", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_func", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_op", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_func_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_op_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_mask_separate", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_ambient", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_diffuse", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_specular", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_position", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_constant_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_linear_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_quadratic_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_spot_cutoff", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_spot_direction", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_spot_exponent", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture1D", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture2D", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture3D", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureCUBE", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureRECT", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureDEPTH", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture1D_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture2D_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture3D_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureCUBE_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureRECT_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "textureDEPTH_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture_env_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "texture_env_mode", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clip_plane", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clip_plane_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clear_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clear_stencil", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "clear_depth", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "color_mask", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_bounds", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_mask", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_range", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_density", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_start", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_end", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_color", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_ambient", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "lighting_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_stipple", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_width", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_ambient", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_diffuse", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_emission", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_shininess", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "material_specular", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "model_view_matrix", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_distance_attenuation", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_fade_threshold_size", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_size", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_size_min", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_size_max", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "projection_matrix", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "scissor", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_mask", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "alpha_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "auto_normal_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "blend_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "color_logic_op_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "cull_face_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_bounds_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_clamp_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "depth_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "dither_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "fog_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_local_viewer_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "light_model_two_side_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_smooth_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "line_stipple_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "logic_op_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "multisample_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "normalize_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "point_smooth_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset_fill_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset_line_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_offset_point_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_smooth_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "polygon_stipple_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "rescale_normal_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "sample_alpha_to_coverage_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "sample_alpha_to_one_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "sample_coverage_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "scissor_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendPossibleChild( "stencil_test_enable", _Meta->getMetaElements()[8]); + _Meta->appendArrayElement(domProfile_GLSL::domTechnique::domPass::domShader::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemShader_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_GLSL::domTechnique::domPass,_contents)); + + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLSL::domTechnique::domPass::domDraw::create(daeInt bytes) +{ + domProfile_GLSL::domTechnique::domPass::domDrawRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domDraw; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::domTechnique::domPass::domDraw::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "draw" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::domTechnique::domPass::domDraw::_Meta); + _Meta->registerConstructor(domProfile_GLSL::domTechnique::domPass::domDraw::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Fx_draw_common")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domDraw , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domDraw)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLSL::domTechnique::domPass::domShader::create(daeInt bytes) +{ + domProfile_GLSL::domTechnique::domPass::domShaderRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::domTechnique::domPass::domShader::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "shader" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::domTechnique::domPass::domShader::_Meta); + _Meta->registerConstructor(domProfile_GLSL::domTechnique::domPass::domShader::create); + + // Add elements: annotate, compiler_target, compiler_options, name, bind + _Meta->appendArrayElement(domFx_annotate_common::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemAnnotate_array),"annotate"); + _Meta->appendElement(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemCompiler_target)); + _Meta->appendElement(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemCompiler_options)); + _Meta->appendElement(domProfile_GLSL::domTechnique::domPass::domShader::domName::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemName)); + _Meta->appendArrayElement(domProfile_GLSL::domTechnique::domPass::domShader::domBind::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemBind_array)); + + // Add attribute: stage + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "stage" ); + ma->setType( daeAtomicType::get("Glsl_pipeline_stage")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader , attrStage )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::create(daeInt bytes) +{ + domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_targetRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "compiler_target" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::_Meta); + _Meta->registerConstructor(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::create(daeInt bytes) +{ + domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_optionsRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "compiler_options" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::_Meta); + _Meta->registerConstructor(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLSL::domTechnique::domPass::domShader::domName::create(daeInt bytes) +{ + domProfile_GLSL::domTechnique::domPass::domShader::domNameRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domName; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::domTechnique::domPass::domShader::domName::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "name" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::domTechnique::domPass::domShader::domName::_Meta); + _Meta->registerConstructor(domProfile_GLSL::domTechnique::domPass::domShader::domName::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domName , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domName , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domName)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLSL::domTechnique::domPass::domShader::domBind::create(daeInt bytes) +{ + domProfile_GLSL::domTechnique::domPass::domShader::domBindRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domBind; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::domTechnique::domPass::domShader::domBind::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bind" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::domTechnique::domPass::domShader::domBind::_Meta); + _Meta->registerConstructor(domProfile_GLSL::domTechnique::domPass::domShader::domBind::create); + + // Add elements: glsl_param_type, param + _Meta->appendElement(domGlsl_param_type::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,elemGlsl_param_type)); + _Meta->appendPossibleChild( "bool", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "bool4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float2x2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float3x3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "float4x4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int2", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int3", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "int4", _Meta->getMetaElements()[0]); + _Meta->appendPossibleChild( "surface", _Meta->getMetaElements()[0], "fx_surface_common"); + _Meta->appendPossibleChild( "sampler1D", _Meta->getMetaElements()[0], "gl_sampler1D"); + _Meta->appendPossibleChild( "sampler2D", _Meta->getMetaElements()[0], "gl_sampler2D"); + _Meta->appendPossibleChild( "sampler3D", _Meta->getMetaElements()[0], "gl_sampler3D"); + _Meta->appendPossibleChild( "samplerCUBE", _Meta->getMetaElements()[0], "gl_samplerCUBE"); + _Meta->appendPossibleChild( "samplerRECT", _Meta->getMetaElements()[0], "gl_samplerRECT"); + _Meta->appendPossibleChild( "samplerDEPTH", _Meta->getMetaElements()[0], "gl_samplerDEPTH"); + _Meta->appendPossibleChild( "enum", _Meta->getMetaElements()[0]); + _Meta->appendElement(domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::registerElement(),daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,elemParam)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,_contents)); + + + // Add attribute: symbol + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "symbol" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domBind , attrSymbol )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domBind)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::create(daeInt bytes) +{ + domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParamRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam; + return ref; +} + + +daeMetaElement * +domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "param" ); + _Meta->setStaticPointerAddress(&domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::_Meta); + _Meta->registerConstructor(domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::create); + + + // Add attribute: ref + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "ref" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam , attrRef )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domProfile_GLSL::_Meta = NULL; +daeMetaElement * domProfile_GLSL::domTechnique::_Meta = NULL; +daeMetaElement * domProfile_GLSL::domTechnique::domPass::_Meta = NULL; +daeMetaElement * domProfile_GLSL::domTechnique::domPass::domDraw::_Meta = NULL; +daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::_Meta = NULL; +daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::_Meta = NULL; +daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::_Meta = NULL; +daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domName::_Meta = NULL; +daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domBind::_Meta = NULL; +daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domRigid_body.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domRigid_body.cpp new file mode 100644 index 000000000..036d02ff4 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domRigid_body.cpp @@ -0,0 +1,285 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domRigid_body::create(daeInt bytes) +{ + domRigid_bodyRef ref = new(bytes) domRigid_body; + return ref; +} + + +daeMetaElement * +domRigid_body::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "rigid_body" ); + _Meta->setStaticPointerAddress(&domRigid_body::_Meta); + _Meta->registerConstructor(domRigid_body::create); + + // Add elements: technique_common, technique, extra + _Meta->appendElement(domRigid_body::domTechnique_common::registerElement(),daeOffsetOf(domRigid_body,elemTechnique_common)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domRigid_body,elemTechnique_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domRigid_body,elemExtra_array)); + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domRigid_body , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domRigid_body , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domRigid_body)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_body::domTechnique_common::create(daeInt bytes) +{ + domRigid_body::domTechnique_commonRef ref = new(bytes) domRigid_body::domTechnique_common; + return ref; +} + + +daeMetaElement * +domRigid_body::domTechnique_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_common" ); + _Meta->setStaticPointerAddress(&domRigid_body::domTechnique_common::_Meta); + _Meta->registerConstructor(domRigid_body::domTechnique_common::create); + + // Add elements: dynamic, mass, mass_frame, inertia, instance_physics_material, physics_material, shape + _Meta->appendElement(domRigid_body::domTechnique_common::domDynamic::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common,elemDynamic)); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common,elemMass),"mass"); + _Meta->appendElement(domRigid_body::domTechnique_common::domMass_frame::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common,elemMass_frame)); + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common,elemInertia),"inertia"); + _Meta->appendElement(domInstance_physics_material::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common,elemInstance_physics_material)); + _Meta->appendElement(domPhysics_material::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common,elemPhysics_material)); + _Meta->appendArrayElement(domRigid_body::domTechnique_common::domShape::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common,elemShape_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domRigid_body::domTechnique_common,_contents)); + + + + _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_body::domTechnique_common::domDynamic::create(daeInt bytes) +{ + domRigid_body::domTechnique_common::domDynamicRef ref = new(bytes) domRigid_body::domTechnique_common::domDynamic; + return ref; +} + + +daeMetaElement * +domRigid_body::domTechnique_common::domDynamic::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "dynamic" ); + _Meta->setStaticPointerAddress(&domRigid_body::domTechnique_common::domDynamic::_Meta); + _Meta->registerConstructor(domRigid_body::domTechnique_common::domDynamic::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domRigid_body::domTechnique_common::domDynamic , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domRigid_body::domTechnique_common::domDynamic , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common::domDynamic)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_body::domTechnique_common::domMass_frame::create(daeInt bytes) +{ + domRigid_body::domTechnique_common::domMass_frameRef ref = new(bytes) domRigid_body::domTechnique_common::domMass_frame; + return ref; +} + + +daeMetaElement * +domRigid_body::domTechnique_common::domMass_frame::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "mass_frame" ); + _Meta->setStaticPointerAddress(&domRigid_body::domTechnique_common::domMass_frame::_Meta); + _Meta->registerConstructor(domRigid_body::domTechnique_common::domMass_frame::create); + + // Add elements: translate, rotate + _Meta->appendArrayElement(domTranslate::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domMass_frame,elemTranslate_array)); + _Meta->appendArrayElement(domRotate::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domMass_frame,elemRotate_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domRigid_body::domTechnique_common::domMass_frame,_contents)); + + + + _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common::domMass_frame)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_body::domTechnique_common::domShape::create(daeInt bytes) +{ + domRigid_body::domTechnique_common::domShapeRef ref = new(bytes) domRigid_body::domTechnique_common::domShape; + return ref; +} + + +daeMetaElement * +domRigid_body::domTechnique_common::domShape::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "shape" ); + _Meta->setStaticPointerAddress(&domRigid_body::domTechnique_common::domShape::_Meta); + _Meta->registerConstructor(domRigid_body::domTechnique_common::domShape::create); + + // Add elements: hollow, mass, density, instance_physics_material, physics_material, instance_geometry, plane, box, sphere, cylinder, tapered_cylinder, capsule, tapered_capsule, translate, rotate, extra + _Meta->appendElement(domRigid_body::domTechnique_common::domShape::domHollow::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemHollow)); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemMass),"mass"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemDensity),"density"); + _Meta->appendElement(domInstance_physics_material::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemInstance_physics_material)); + _Meta->appendElement(domPhysics_material::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemPhysics_material)); + _Meta->appendElement(domInstance_geometry::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemInstance_geometry)); + _Meta->appendElement(domPlane::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemPlane)); + _Meta->appendElement(domBox::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemBox)); + _Meta->appendElement(domSphere::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemSphere)); + _Meta->appendElement(domCylinder::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemCylinder)); + _Meta->appendElement(domTapered_cylinder::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemTapered_cylinder)); + _Meta->appendElement(domCapsule::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemCapsule)); + _Meta->appendElement(domTapered_capsule::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemTapered_capsule)); + _Meta->appendArrayElement(domTranslate::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemTranslate_array)); + _Meta->appendArrayElement(domRotate::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemRotate_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domRigid_body::domTechnique_common::domShape,_contents)); + + + + _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common::domShape)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_body::domTechnique_common::domShape::domHollow::create(daeInt bytes) +{ + domRigid_body::domTechnique_common::domShape::domHollowRef ref = new(bytes) domRigid_body::domTechnique_common::domShape::domHollow; + return ref; +} + + +daeMetaElement * +domRigid_body::domTechnique_common::domShape::domHollow::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "hollow" ); + _Meta->setStaticPointerAddress(&domRigid_body::domTechnique_common::domShape::domHollow::_Meta); + _Meta->registerConstructor(domRigid_body::domTechnique_common::domShape::domHollow::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domRigid_body::domTechnique_common::domShape::domHollow , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domRigid_body::domTechnique_common::domShape::domHollow , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common::domShape::domHollow)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domRigid_body::_Meta = NULL; +daeMetaElement * domRigid_body::domTechnique_common::_Meta = NULL; +daeMetaElement * domRigid_body::domTechnique_common::domDynamic::_Meta = NULL; +daeMetaElement * domRigid_body::domTechnique_common::domMass_frame::_Meta = NULL; +daeMetaElement * domRigid_body::domTechnique_common::domShape::_Meta = NULL; +daeMetaElement * domRigid_body::domTechnique_common::domShape::domHollow::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domRigid_constraint.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domRigid_constraint.cpp new file mode 100644 index 000000000..09163491b --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domRigid_constraint.cpp @@ -0,0 +1,475 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domRigid_constraint::create(daeInt bytes) +{ + domRigid_constraintRef ref = new(bytes) domRigid_constraint; + return ref; +} + + +daeMetaElement * +domRigid_constraint::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "rigid_constraint" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::_Meta); + _Meta->registerConstructor(domRigid_constraint::create); + + // Add elements: ref_attachment, attachment, technique_common, technique, extra + _Meta->appendElement(domRigid_constraint::domRef_attachment::registerElement(),daeOffsetOf(domRigid_constraint,elemRef_attachment)); + _Meta->appendElement(domRigid_constraint::domAttachment::registerElement(),daeOffsetOf(domRigid_constraint,elemAttachment)); + _Meta->appendElement(domRigid_constraint::domTechnique_common::registerElement(),daeOffsetOf(domRigid_constraint,elemTechnique_common)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domRigid_constraint,elemTechnique_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domRigid_constraint,elemExtra_array)); + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domRigid_constraint , attrSid )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domRigid_constraint , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domRigid_constraint)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domRef_attachment::create(daeInt bytes) +{ + domRigid_constraint::domRef_attachmentRef ref = new(bytes) domRigid_constraint::domRef_attachment; + ref->attrRigid_body.setContainer( (domRigid_constraint::domRef_attachment*)ref ); + return ref; +} + + +daeMetaElement * +domRigid_constraint::domRef_attachment::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "ref_attachment" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domRef_attachment::_Meta); + _Meta->registerConstructor(domRigid_constraint::domRef_attachment::create); + + // Add elements: translate, rotate, extra + _Meta->appendArrayElement(domTranslate::registerElement(),daeOffsetOf(domRigid_constraint::domRef_attachment,elemTranslate_array)); + _Meta->appendArrayElement(domRotate::registerElement(),daeOffsetOf(domRigid_constraint::domRef_attachment,elemRotate_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domRigid_constraint::domRef_attachment,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domRigid_constraint::domRef_attachment,_contents)); + + + // Add attribute: rigid_body + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "rigid_body" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domRigid_constraint::domRef_attachment , attrRigid_body )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domRigid_constraint::domRef_attachment)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domAttachment::create(daeInt bytes) +{ + domRigid_constraint::domAttachmentRef ref = new(bytes) domRigid_constraint::domAttachment; + ref->attrRigid_body.setContainer( (domRigid_constraint::domAttachment*)ref ); + return ref; +} + + +daeMetaElement * +domRigid_constraint::domAttachment::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "attachment" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domAttachment::_Meta); + _Meta->registerConstructor(domRigid_constraint::domAttachment::create); + + // Add elements: translate, rotate, extra + _Meta->appendArrayElement(domTranslate::registerElement(),daeOffsetOf(domRigid_constraint::domAttachment,elemTranslate_array)); + _Meta->appendArrayElement(domRotate::registerElement(),daeOffsetOf(domRigid_constraint::domAttachment,elemRotate_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domRigid_constraint::domAttachment,elemExtra_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domRigid_constraint::domAttachment,_contents)); + + + // Add attribute: rigid_body + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "rigid_body" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domRigid_constraint::domAttachment , attrRigid_body )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domRigid_constraint::domAttachment)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domTechnique_common::create(daeInt bytes) +{ + domRigid_constraint::domTechnique_commonRef ref = new(bytes) domRigid_constraint::domTechnique_common; + return ref; +} + + +daeMetaElement * +domRigid_constraint::domTechnique_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_common" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domTechnique_common::_Meta); + _Meta->registerConstructor(domRigid_constraint::domTechnique_common::create); + + // Add elements: enabled, interpenetrate, limits, spring + _Meta->appendElement(domRigid_constraint::domTechnique_common::domEnabled::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common,elemEnabled)); + _Meta->appendElement(domRigid_constraint::domTechnique_common::domInterpenetrate::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common,elemInterpenetrate)); + _Meta->appendElement(domRigid_constraint::domTechnique_common::domLimits::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common,elemLimits)); + _Meta->appendElement(domRigid_constraint::domTechnique_common::domSpring::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common,elemSpring)); + + + _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domTechnique_common::domEnabled::create(daeInt bytes) +{ + domRigid_constraint::domTechnique_common::domEnabledRef ref = new(bytes) domRigid_constraint::domTechnique_common::domEnabled; + return ref; +} + + +daeMetaElement * +domRigid_constraint::domTechnique_common::domEnabled::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "enabled" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domTechnique_common::domEnabled::_Meta); + _Meta->registerConstructor(domRigid_constraint::domTechnique_common::domEnabled::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domRigid_constraint::domTechnique_common::domEnabled , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domRigid_constraint::domTechnique_common::domEnabled , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domEnabled)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domTechnique_common::domInterpenetrate::create(daeInt bytes) +{ + domRigid_constraint::domTechnique_common::domInterpenetrateRef ref = new(bytes) domRigid_constraint::domTechnique_common::domInterpenetrate; + return ref; +} + + +daeMetaElement * +domRigid_constraint::domTechnique_common::domInterpenetrate::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "interpenetrate" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domTechnique_common::domInterpenetrate::_Meta); + _Meta->registerConstructor(domRigid_constraint::domTechnique_common::domInterpenetrate::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domRigid_constraint::domTechnique_common::domInterpenetrate , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domRigid_constraint::domTechnique_common::domInterpenetrate , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domInterpenetrate)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domTechnique_common::domLimits::create(daeInt bytes) +{ + domRigid_constraint::domTechnique_common::domLimitsRef ref = new(bytes) domRigid_constraint::domTechnique_common::domLimits; + return ref; +} + + +daeMetaElement * +domRigid_constraint::domTechnique_common::domLimits::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "limits" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domTechnique_common::domLimits::_Meta); + _Meta->registerConstructor(domRigid_constraint::domTechnique_common::domLimits::create); + + // Add elements: swing_cone_and_twist, linear + _Meta->appendElement(domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits,elemSwing_cone_and_twist)); + _Meta->appendElement(domRigid_constraint::domTechnique_common::domLimits::domLinear::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits,elemLinear)); + + + _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domLimits)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::create(daeInt bytes) +{ + domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twistRef ref = new(bytes) domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist; + return ref; +} + + +daeMetaElement * +domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "swing_cone_and_twist" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::_Meta); + _Meta->registerConstructor(domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::create); + + // Add elements: min, max + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist,elemMin),"min"); + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist,elemMax),"max"); + + + _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domTechnique_common::domLimits::domLinear::create(daeInt bytes) +{ + domRigid_constraint::domTechnique_common::domLimits::domLinearRef ref = new(bytes) domRigid_constraint::domTechnique_common::domLimits::domLinear; + return ref; +} + + +daeMetaElement * +domRigid_constraint::domTechnique_common::domLimits::domLinear::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "linear" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domTechnique_common::domLimits::domLinear::_Meta); + _Meta->registerConstructor(domRigid_constraint::domTechnique_common::domLimits::domLinear::create); + + // Add elements: min, max + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits::domLinear,elemMin),"min"); + _Meta->appendElement(domTargetableFloat3::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits::domLinear,elemMax),"max"); + + + _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domLimits::domLinear)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domTechnique_common::domSpring::create(daeInt bytes) +{ + domRigid_constraint::domTechnique_common::domSpringRef ref = new(bytes) domRigid_constraint::domTechnique_common::domSpring; + return ref; +} + + +daeMetaElement * +domRigid_constraint::domTechnique_common::domSpring::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "spring" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domTechnique_common::domSpring::_Meta); + _Meta->registerConstructor(domRigid_constraint::domTechnique_common::domSpring::create); + + // Add elements: angular, linear + _Meta->appendElement(domRigid_constraint::domTechnique_common::domSpring::domAngular::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring,elemAngular)); + _Meta->appendElement(domRigid_constraint::domTechnique_common::domSpring::domLinear::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring,elemLinear)); + + + _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domSpring)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domTechnique_common::domSpring::domAngular::create(daeInt bytes) +{ + domRigid_constraint::domTechnique_common::domSpring::domAngularRef ref = new(bytes) domRigid_constraint::domTechnique_common::domSpring::domAngular; + return ref; +} + + +daeMetaElement * +domRigid_constraint::domTechnique_common::domSpring::domAngular::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "angular" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domTechnique_common::domSpring::domAngular::_Meta); + _Meta->registerConstructor(domRigid_constraint::domTechnique_common::domSpring::domAngular::create); + + // Add elements: stiffness, damping, target_value + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domAngular,elemStiffness),"stiffness"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domAngular,elemDamping),"damping"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domAngular,elemTarget_value),"target_value"); + + + _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domSpring::domAngular)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domRigid_constraint::domTechnique_common::domSpring::domLinear::create(daeInt bytes) +{ + domRigid_constraint::domTechnique_common::domSpring::domLinearRef ref = new(bytes) domRigid_constraint::domTechnique_common::domSpring::domLinear; + return ref; +} + + +daeMetaElement * +domRigid_constraint::domTechnique_common::domSpring::domLinear::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "linear" ); + _Meta->setStaticPointerAddress(&domRigid_constraint::domTechnique_common::domSpring::domLinear::_Meta); + _Meta->registerConstructor(domRigid_constraint::domTechnique_common::domSpring::domLinear::create); + + // Add elements: stiffness, damping, target_value + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domLinear,elemStiffness),"stiffness"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domLinear,elemDamping),"damping"); + _Meta->appendElement(domTargetableFloat::registerElement(),daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domLinear,elemTarget_value),"target_value"); + + + _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domSpring::domLinear)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domRigid_constraint::_Meta = NULL; +daeMetaElement * domRigid_constraint::domRef_attachment::_Meta = NULL; +daeMetaElement * domRigid_constraint::domAttachment::_Meta = NULL; +daeMetaElement * domRigid_constraint::domTechnique_common::_Meta = NULL; +daeMetaElement * domRigid_constraint::domTechnique_common::domEnabled::_Meta = NULL; +daeMetaElement * domRigid_constraint::domTechnique_common::domInterpenetrate::_Meta = NULL; +daeMetaElement * domRigid_constraint::domTechnique_common::domLimits::_Meta = NULL; +daeMetaElement * domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::_Meta = NULL; +daeMetaElement * domRigid_constraint::domTechnique_common::domLimits::domLinear::_Meta = NULL; +daeMetaElement * domRigid_constraint::domTechnique_common::domSpring::_Meta = NULL; +daeMetaElement * domRigid_constraint::domTechnique_common::domSpring::domAngular::_Meta = NULL; +daeMetaElement * domRigid_constraint::domTechnique_common::domSpring::domLinear::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domRotate.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domRotate.cpp new file mode 100644 index 000000000..b17c3c0fe --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domRotate.cpp @@ -0,0 +1,66 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domRotate::create(daeInt bytes) +{ + domRotateRef ref = new(bytes) domRotate; + return ref; +} + + +daeMetaElement * +domRotate::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "rotate" ); + _Meta->setStaticPointerAddress(&domRotate::_Meta); + _Meta->registerConstructor(domRotate::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4")); + ma->setOffset( daeOffsetOf( domRotate , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domRotate , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domRotate)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domRotate::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSampler.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSampler.cpp new file mode 100644 index 000000000..b4a58b4b1 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domSampler.cpp @@ -0,0 +1,59 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domSampler::create(daeInt bytes) +{ + domSamplerRef ref = new(bytes) domSampler; + return ref; +} + + +daeMetaElement * +domSampler::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "sampler" ); + _Meta->setStaticPointerAddress(&domSampler::_Meta); + _Meta->registerConstructor(domSampler::create); + + // Add elements: input + _Meta->appendArrayElement(domInputLocal::registerElement(),daeOffsetOf(domSampler,elemInput_array),"input"); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domSampler , attrId )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSampler)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domSampler::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domScale.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domScale.cpp new file mode 100644 index 000000000..5d4d47ac5 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domScale.cpp @@ -0,0 +1,66 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domScale::create(daeInt bytes) +{ + domScaleRef ref = new(bytes) domScale; + return ref; +} + + +daeMetaElement * +domScale::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "scale" ); + _Meta->setStaticPointerAddress(&domScale::_Meta); + _Meta->registerConstructor(domScale::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domScale , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domScale , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domScale)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domScale::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSkew.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSkew.cpp new file mode 100644 index 000000000..96d499f71 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domSkew.cpp @@ -0,0 +1,66 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domSkew::create(daeInt bytes) +{ + domSkewRef ref = new(bytes) domSkew; + return ref; +} + + +daeMetaElement * +domSkew::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "skew" ); + _Meta->setStaticPointerAddress(&domSkew::_Meta); + _Meta->registerConstructor(domSkew::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float7")); + ma->setOffset( daeOffsetOf( domSkew , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domSkew , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSkew)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domSkew::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSkin.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSkin.cpp new file mode 100644 index 000000000..60f277270 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domSkin.cpp @@ -0,0 +1,247 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domSkin::create(daeInt bytes) +{ + domSkinRef ref = new(bytes) domSkin; + ref->attrSource.setContainer( (domSkin*)ref ); + return ref; +} + + +daeMetaElement * +domSkin::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "skin" ); + _Meta->setStaticPointerAddress(&domSkin::_Meta); + _Meta->registerConstructor(domSkin::create); + + // Add elements: bind_shape_matrix, source, joints, vertex_weights, extra + _Meta->appendElement(domSkin::domBind_shape_matrix::registerElement(),daeOffsetOf(domSkin,elemBind_shape_matrix)); + _Meta->appendArrayElement(domSource::registerElement(),daeOffsetOf(domSkin,elemSource_array)); + _Meta->appendElement(domSkin::domJoints::registerElement(),daeOffsetOf(domSkin,elemJoints)); + _Meta->appendElement(domSkin::domVertex_weights::registerElement(),daeOffsetOf(domSkin,elemVertex_weights)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domSkin,elemExtra_array)); + + // Add attribute: source + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "source" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domSkin , attrSource )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSkin)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domSkin::domBind_shape_matrix::create(daeInt bytes) +{ + domSkin::domBind_shape_matrixRef ref = new(bytes) domSkin::domBind_shape_matrix; + return ref; +} + + +daeMetaElement * +domSkin::domBind_shape_matrix::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "bind_shape_matrix" ); + _Meta->setStaticPointerAddress(&domSkin::domBind_shape_matrix::_Meta); + _Meta->registerConstructor(domSkin::domBind_shape_matrix::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float4x4")); + ma->setOffset( daeOffsetOf( domSkin::domBind_shape_matrix , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSkin::domBind_shape_matrix)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domSkin::domJoints::create(daeInt bytes) +{ + domSkin::domJointsRef ref = new(bytes) domSkin::domJoints; + return ref; +} + + +daeMetaElement * +domSkin::domJoints::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "joints" ); + _Meta->setStaticPointerAddress(&domSkin::domJoints::_Meta); + _Meta->registerConstructor(domSkin::domJoints::create); + + // Add elements: input, extra + _Meta->appendArrayElement(domInputLocal::registerElement(),daeOffsetOf(domSkin::domJoints,elemInput_array),"input"); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domSkin::domJoints,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domSkin::domJoints)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domSkin::domVertex_weights::create(daeInt bytes) +{ + domSkin::domVertex_weightsRef ref = new(bytes) domSkin::domVertex_weights; + return ref; +} + + +daeMetaElement * +domSkin::domVertex_weights::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "vertex_weights" ); + _Meta->setStaticPointerAddress(&domSkin::domVertex_weights::_Meta); + _Meta->registerConstructor(domSkin::domVertex_weights::create); + + // Add elements: input, vcount, v, extra + _Meta->appendArrayElement(domInputLocalOffset::registerElement(),daeOffsetOf(domSkin::domVertex_weights,elemInput_array),"input"); + _Meta->appendElement(domSkin::domVertex_weights::domVcount::registerElement(),daeOffsetOf(domSkin::domVertex_weights,elemVcount)); + _Meta->appendElement(domSkin::domVertex_weights::domV::registerElement(),daeOffsetOf(domSkin::domVertex_weights,elemV)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domSkin::domVertex_weights,elemExtra_array)); + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domSkin::domVertex_weights , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSkin::domVertex_weights)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domSkin::domVertex_weights::domVcount::create(daeInt bytes) +{ + domSkin::domVertex_weights::domVcountRef ref = new(bytes) domSkin::domVertex_weights::domVcount; + return ref; +} + + +daeMetaElement * +domSkin::domVertex_weights::domVcount::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "vcount" ); + _Meta->setStaticPointerAddress(&domSkin::domVertex_weights::domVcount::_Meta); + _Meta->registerConstructor(domSkin::domVertex_weights::domVcount::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfUInts")); + ma->setOffset( daeOffsetOf( domSkin::domVertex_weights::domVcount , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSkin::domVertex_weights::domVcount)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domSkin::domVertex_weights::domV::create(daeInt bytes) +{ + domSkin::domVertex_weights::domVRef ref = new(bytes) domSkin::domVertex_weights::domV; + return ref; +} + + +daeMetaElement * +domSkin::domVertex_weights::domV::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "v" ); + _Meta->setStaticPointerAddress(&domSkin::domVertex_weights::domV::_Meta); + _Meta->registerConstructor(domSkin::domVertex_weights::domV::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("ListOfInts")); + ma->setOffset( daeOffsetOf( domSkin::domVertex_weights::domV , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSkin::domVertex_weights::domV)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domSkin::_Meta = NULL; +daeMetaElement * domSkin::domBind_shape_matrix::_Meta = NULL; +daeMetaElement * domSkin::domJoints::_Meta = NULL; +daeMetaElement * domSkin::domVertex_weights::_Meta = NULL; +daeMetaElement * domSkin::domVertex_weights::domVcount::_Meta = NULL; +daeMetaElement * domSkin::domVertex_weights::domV::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSource.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSource.cpp new file mode 100644 index 000000000..e87ac5c1e --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domSource.cpp @@ -0,0 +1,110 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domSource::create(daeInt bytes) +{ + domSourceRef ref = new(bytes) domSource; + return ref; +} + + +daeMetaElement * +domSource::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "source" ); + _Meta->setStaticPointerAddress(&domSource::_Meta); + _Meta->registerConstructor(domSource::create); + + // Add elements: asset, IDREF_array, Name_array, bool_array, float_array, int_array, technique_common, technique + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domSource,elemAsset)); + _Meta->appendElement(domIDREF_array::registerElement(),daeOffsetOf(domSource,elemIDREF_array)); + _Meta->appendElement(domName_array::registerElement(),daeOffsetOf(domSource,elemName_array)); + _Meta->appendElement(domBool_array::registerElement(),daeOffsetOf(domSource,elemBool_array)); + _Meta->appendElement(domFloat_array::registerElement(),daeOffsetOf(domSource,elemFloat_array)); + _Meta->appendElement(domInt_array::registerElement(),daeOffsetOf(domSource,elemInt_array)); + _Meta->appendElement(domSource::domTechnique_common::registerElement(),daeOffsetOf(domSource,elemTechnique_common)); + _Meta->appendArrayElement(domTechnique::registerElement(),daeOffsetOf(domSource,elemTechnique_array)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domSource,_contents)); + + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domSource , attrId )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domSource , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSource)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domSource::domTechnique_common::create(daeInt bytes) +{ + domSource::domTechnique_commonRef ref = new(bytes) domSource::domTechnique_common; + return ref; +} + + +daeMetaElement * +domSource::domTechnique_common::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique_common" ); + _Meta->setStaticPointerAddress(&domSource::domTechnique_common::_Meta); + _Meta->registerConstructor(domSource::domTechnique_common::create); + + // Add elements: accessor + _Meta->appendElement(domAccessor::registerElement(),daeOffsetOf(domSource::domTechnique_common,elemAccessor)); + + + _Meta->setElementSize(sizeof(domSource::domTechnique_common)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domSource::_Meta = NULL; +daeMetaElement * domSource::domTechnique_common::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSphere.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSphere.cpp new file mode 100644 index 000000000..4ecbfdc88 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domSphere.cpp @@ -0,0 +1,85 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domSphere::create(daeInt bytes) +{ + domSphereRef ref = new(bytes) domSphere; + return ref; +} + + +daeMetaElement * +domSphere::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "sphere" ); + _Meta->setStaticPointerAddress(&domSphere::_Meta); + _Meta->registerConstructor(domSphere::create); + + // Add elements: radius, extra + _Meta->appendElement(domSphere::domRadius::registerElement(),daeOffsetOf(domSphere,elemRadius)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domSphere,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domSphere)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domSphere::domRadius::create(daeInt bytes) +{ + domSphere::domRadiusRef ref = new(bytes) domSphere::domRadius; + return ref; +} + + +daeMetaElement * +domSphere::domRadius::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "radius" ); + _Meta->setStaticPointerAddress(&domSphere::domRadius::_Meta); + _Meta->registerConstructor(domSphere::domRadius::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domSphere::domRadius , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSphere::domRadius)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domSphere::_Meta = NULL; +daeMetaElement * domSphere::domRadius::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSpline.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSpline.cpp new file mode 100644 index 000000000..d70f1dfcc --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domSpline.cpp @@ -0,0 +1,92 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domSpline::create(daeInt bytes) +{ + domSplineRef ref = new(bytes) domSpline; + return ref; +} + + +daeMetaElement * +domSpline::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "spline" ); + _Meta->setStaticPointerAddress(&domSpline::_Meta); + _Meta->registerConstructor(domSpline::create); + + // Add elements: source, control_vertices, extra + _Meta->appendArrayElement(domSource::registerElement(),daeOffsetOf(domSpline,elemSource_array)); + _Meta->appendElement(domSpline::domControl_vertices::registerElement(),daeOffsetOf(domSpline,elemControl_vertices)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domSpline,elemExtra_array)); + + // Add attribute: closed + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "closed" ); + ma->setType( daeAtomicType::get("Bool")); + ma->setOffset( daeOffsetOf( domSpline , attrClosed )); + ma->setContainer( _Meta ); + ma->setDefault( "false"); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domSpline)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domSpline::domControl_vertices::create(daeInt bytes) +{ + domSpline::domControl_verticesRef ref = new(bytes) domSpline::domControl_vertices; + return ref; +} + + +daeMetaElement * +domSpline::domControl_vertices::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "control_vertices" ); + _Meta->setStaticPointerAddress(&domSpline::domControl_vertices::_Meta); + _Meta->registerConstructor(domSpline::domControl_vertices::create); + + // Add elements: input, extra + _Meta->appendArrayElement(domInputLocal::registerElement(),daeOffsetOf(domSpline::domControl_vertices,elemInput_array),"input"); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domSpline::domControl_vertices,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domSpline::domControl_vertices)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domSpline::_Meta = NULL; +daeMetaElement * domSpline::domControl_vertices::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTapered_capsule.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTapered_capsule.cpp new file mode 100644 index 000000000..92b8a40cb --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTapered_capsule.cpp @@ -0,0 +1,159 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domTapered_capsule::create(daeInt bytes) +{ + domTapered_capsuleRef ref = new(bytes) domTapered_capsule; + return ref; +} + + +daeMetaElement * +domTapered_capsule::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "tapered_capsule" ); + _Meta->setStaticPointerAddress(&domTapered_capsule::_Meta); + _Meta->registerConstructor(domTapered_capsule::create); + + // Add elements: height, radius1, radius2, extra + _Meta->appendElement(domTapered_capsule::domHeight::registerElement(),daeOffsetOf(domTapered_capsule,elemHeight)); + _Meta->appendElement(domTapered_capsule::domRadius1::registerElement(),daeOffsetOf(domTapered_capsule,elemRadius1)); + _Meta->appendElement(domTapered_capsule::domRadius2::registerElement(),daeOffsetOf(domTapered_capsule,elemRadius2)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domTapered_capsule,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domTapered_capsule)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domTapered_capsule::domHeight::create(daeInt bytes) +{ + domTapered_capsule::domHeightRef ref = new(bytes) domTapered_capsule::domHeight; + return ref; +} + + +daeMetaElement * +domTapered_capsule::domHeight::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "height" ); + _Meta->setStaticPointerAddress(&domTapered_capsule::domHeight::_Meta); + _Meta->registerConstructor(domTapered_capsule::domHeight::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domTapered_capsule::domHeight , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTapered_capsule::domHeight)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domTapered_capsule::domRadius1::create(daeInt bytes) +{ + domTapered_capsule::domRadius1Ref ref = new(bytes) domTapered_capsule::domRadius1; + return ref; +} + + +daeMetaElement * +domTapered_capsule::domRadius1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "radius1" ); + _Meta->setStaticPointerAddress(&domTapered_capsule::domRadius1::_Meta); + _Meta->registerConstructor(domTapered_capsule::domRadius1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domTapered_capsule::domRadius1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTapered_capsule::domRadius1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domTapered_capsule::domRadius2::create(daeInt bytes) +{ + domTapered_capsule::domRadius2Ref ref = new(bytes) domTapered_capsule::domRadius2; + return ref; +} + + +daeMetaElement * +domTapered_capsule::domRadius2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "radius2" ); + _Meta->setStaticPointerAddress(&domTapered_capsule::domRadius2::_Meta); + _Meta->registerConstructor(domTapered_capsule::domRadius2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domTapered_capsule::domRadius2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTapered_capsule::domRadius2)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domTapered_capsule::_Meta = NULL; +daeMetaElement * domTapered_capsule::domHeight::_Meta = NULL; +daeMetaElement * domTapered_capsule::domRadius1::_Meta = NULL; +daeMetaElement * domTapered_capsule::domRadius2::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTapered_cylinder.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTapered_cylinder.cpp new file mode 100644 index 000000000..1c2c2c80c --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTapered_cylinder.cpp @@ -0,0 +1,159 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domTapered_cylinder::create(daeInt bytes) +{ + domTapered_cylinderRef ref = new(bytes) domTapered_cylinder; + return ref; +} + + +daeMetaElement * +domTapered_cylinder::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "tapered_cylinder" ); + _Meta->setStaticPointerAddress(&domTapered_cylinder::_Meta); + _Meta->registerConstructor(domTapered_cylinder::create); + + // Add elements: height, radius1, radius2, extra + _Meta->appendElement(domTapered_cylinder::domHeight::registerElement(),daeOffsetOf(domTapered_cylinder,elemHeight)); + _Meta->appendElement(domTapered_cylinder::domRadius1::registerElement(),daeOffsetOf(domTapered_cylinder,elemRadius1)); + _Meta->appendElement(domTapered_cylinder::domRadius2::registerElement(),daeOffsetOf(domTapered_cylinder,elemRadius2)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domTapered_cylinder,elemExtra_array)); + + + _Meta->setElementSize(sizeof(domTapered_cylinder)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domTapered_cylinder::domHeight::create(daeInt bytes) +{ + domTapered_cylinder::domHeightRef ref = new(bytes) domTapered_cylinder::domHeight; + return ref; +} + + +daeMetaElement * +domTapered_cylinder::domHeight::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "height" ); + _Meta->setStaticPointerAddress(&domTapered_cylinder::domHeight::_Meta); + _Meta->registerConstructor(domTapered_cylinder::domHeight::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domTapered_cylinder::domHeight , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTapered_cylinder::domHeight)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domTapered_cylinder::domRadius1::create(daeInt bytes) +{ + domTapered_cylinder::domRadius1Ref ref = new(bytes) domTapered_cylinder::domRadius1; + return ref; +} + + +daeMetaElement * +domTapered_cylinder::domRadius1::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "radius1" ); + _Meta->setStaticPointerAddress(&domTapered_cylinder::domRadius1::_Meta); + _Meta->registerConstructor(domTapered_cylinder::domRadius1::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domTapered_cylinder::domRadius1 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTapered_cylinder::domRadius1)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domTapered_cylinder::domRadius2::create(daeInt bytes) +{ + domTapered_cylinder::domRadius2Ref ref = new(bytes) domTapered_cylinder::domRadius2; + return ref; +} + + +daeMetaElement * +domTapered_cylinder::domRadius2::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "radius2" ); + _Meta->setStaticPointerAddress(&domTapered_cylinder::domRadius2::_Meta); + _Meta->registerConstructor(domTapered_cylinder::domRadius2::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float2")); + ma->setOffset( daeOffsetOf( domTapered_cylinder::domRadius2 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTapered_cylinder::domRadius2)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domTapered_cylinder::_Meta = NULL; +daeMetaElement * domTapered_cylinder::domHeight::_Meta = NULL; +daeMetaElement * domTapered_cylinder::domRadius1::_Meta = NULL; +daeMetaElement * domTapered_cylinder::domRadius2::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat.cpp new file mode 100644 index 000000000..abe3c6145 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat.cpp @@ -0,0 +1,66 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domTargetableFloat::create(daeInt bytes) +{ + domTargetableFloatRef ref = new(bytes) domTargetableFloat; + return ref; +} + + +daeMetaElement * +domTargetableFloat::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "TargetableFloat" ); + _Meta->setStaticPointerAddress(&domTargetableFloat::_Meta); + _Meta->registerConstructor(domTargetableFloat::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float")); + ma->setOffset( daeOffsetOf( domTargetableFloat , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domTargetableFloat , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTargetableFloat)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domTargetableFloat::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat3.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat3.cpp new file mode 100644 index 000000000..21ef0e988 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat3.cpp @@ -0,0 +1,66 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domTargetableFloat3::create(daeInt bytes) +{ + domTargetableFloat3Ref ref = new(bytes) domTargetableFloat3; + return ref; +} + + +daeMetaElement * +domTargetableFloat3::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "TargetableFloat3" ); + _Meta->setStaticPointerAddress(&domTargetableFloat3::_Meta); + _Meta->registerConstructor(domTargetableFloat3::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domTargetableFloat3 , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domTargetableFloat3 , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTargetableFloat3)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domTargetableFloat3::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTechnique.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTechnique.cpp new file mode 100644 index 000000000..c6b962b20 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTechnique.cpp @@ -0,0 +1,257 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +daeElementRef +domTechnique::create(daeInt bytes) +{ + domTechniqueRef ref = new(bytes) domTechnique; + ref->attrXmlns.setContainer( (domTechnique*)ref ); + return ref; +} + + +daeMetaElement * +domTechnique::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "technique" ); + _Meta->setStaticPointerAddress(&domTechnique::_Meta); + _Meta->registerConstructor(domTechnique::create); + + // Add elements: + _Meta->setAllowsAny( true ); + _Meta->appendArrayElement( domCOLLADA::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domIDREF_array::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domName_array::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domBool_array::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domFloat_array::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInt_array::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domAccessor::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domParam::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domSource::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domGeometry::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domMesh::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domSpline::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domP::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLines::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLinestrips::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domPolygons::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domPolylist::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domTriangles::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domTrifans::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domTristrips::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domVertices::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLookat::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domMatrix::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domRotate::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domScale::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domSkew::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domTranslate::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domImage::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLight::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domMaterial::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domCamera::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domAnimation::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domAnimation_clip::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domChannel::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domSampler::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domController::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domSkin::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domMorph::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domAsset::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domExtra::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domTechnique::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domNode::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domVisual_scene::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domBind_material::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_camera::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_controller::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_effect::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_force_field::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_geometry::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_light::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_material::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_node::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_physics_material::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_physics_model::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_rigid_body::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domInstance_rigid_constraint::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_animations::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_animation_clips::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_cameras::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_controllers::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_geometries::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_effects::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_force_fields::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_images::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_lights::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_materials::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_nodes::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_physics_materials::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_physics_models::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_physics_scenes::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domLibrary_visual_scenes::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domEffect::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domProfile_GLSL::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domProfile_COMMON::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domProfile_CG::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domProfile_GLES::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domBox::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domPlane::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domSphere::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domEllipsoid::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domCylinder::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domTapered_cylinder::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domCapsule::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domTapered_capsule::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domConvex_mesh::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domForce_field::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domPhysics_material::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domPhysics_scene::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domRigid_body::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domRigid_constraint::registerElement(), daeOffsetOf(domTechnique, _contents)); + _Meta->appendArrayElement( domPhysics_model::registerElement(), daeOffsetOf(domTechnique, _contents)); + // Ordered list of sub-elements + _Meta->addContents(daeOffsetOf(domTechnique,_contents)); + + // Add attribute: xmlns + { + daeMetaAttribute* ma = new daeMetaAttribute; + ma->setName( "xmlns" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domTechnique , attrXmlns )); + ma->setContainer( _Meta ); + //ma->setIsRequired( true ); + _Meta->appendAttribute(ma); + } + + // Add attribute: profile + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "profile" ); + ma->setType( daeAtomicType::get("xsNMTOKEN")); + ma->setOffset( daeOffsetOf( domTechnique , attrProfile )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTechnique)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domTechnique::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTranslate.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTranslate.cpp new file mode 100644 index 000000000..e25248101 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTranslate.cpp @@ -0,0 +1,66 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domTranslate::create(daeInt bytes) +{ + domTranslateRef ref = new(bytes) domTranslate; + return ref; +} + + +daeMetaElement * +domTranslate::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "translate" ); + _Meta->setStaticPointerAddress(&domTranslate::_Meta); + _Meta->registerConstructor(domTranslate::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaArrayAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("Float3")); + ma->setOffset( daeOffsetOf( domTranslate , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + // Add attribute: sid + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "sid" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domTranslate , attrSid )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTranslate)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domTranslate::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTriangles.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTriangles.cpp new file mode 100644 index 000000000..f4a06310c --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTriangles.cpp @@ -0,0 +1,84 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domTriangles::create(daeInt bytes) +{ + domTrianglesRef ref = new(bytes) domTriangles; + return ref; +} + + +daeMetaElement * +domTriangles::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "triangles" ); + _Meta->setStaticPointerAddress(&domTriangles::_Meta); + _Meta->registerConstructor(domTriangles::create); + + // Add elements: input, p, extra + _Meta->appendArrayElement(domInputLocalOffset::registerElement(),daeOffsetOf(domTriangles,elemInput_array),"input"); + _Meta->appendElement(domP::registerElement(),daeOffsetOf(domTriangles,elemP)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domTriangles,elemExtra_array)); + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domTriangles , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domTriangles , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: material + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "material" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domTriangles , attrMaterial )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTriangles)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domTriangles::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTrifans.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTrifans.cpp new file mode 100644 index 000000000..cdb3efdc0 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTrifans.cpp @@ -0,0 +1,84 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domTrifans::create(daeInt bytes) +{ + domTrifansRef ref = new(bytes) domTrifans; + return ref; +} + + +daeMetaElement * +domTrifans::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "trifans" ); + _Meta->setStaticPointerAddress(&domTrifans::_Meta); + _Meta->registerConstructor(domTrifans::create); + + // Add elements: input, p, extra + _Meta->appendArrayElement(domInputLocalOffset::registerElement(),daeOffsetOf(domTrifans,elemInput_array),"input"); + _Meta->appendArrayElement(domP::registerElement(),daeOffsetOf(domTrifans,elemP_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domTrifans,elemExtra_array)); + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domTrifans , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domTrifans , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: material + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "material" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domTrifans , attrMaterial )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTrifans)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domTrifans::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTristrips.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTristrips.cpp new file mode 100644 index 000000000..dacbfa7ab --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTristrips.cpp @@ -0,0 +1,84 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domTristrips::create(daeInt bytes) +{ + domTristripsRef ref = new(bytes) domTristrips; + return ref; +} + + +daeMetaElement * +domTristrips::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "tristrips" ); + _Meta->setStaticPointerAddress(&domTristrips::_Meta); + _Meta->registerConstructor(domTristrips::create); + + // Add elements: input, p, extra + _Meta->appendArrayElement(domInputLocalOffset::registerElement(),daeOffsetOf(domTristrips,elemInput_array),"input"); + _Meta->appendArrayElement(domP::registerElement(),daeOffsetOf(domTristrips,elemP_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domTristrips,elemExtra_array)); + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domTristrips , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: count + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "count" ); + ma->setType( daeAtomicType::get("Uint")); + ma->setOffset( daeOffsetOf( domTristrips , attrCount )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: material + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "material" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domTristrips , attrMaterial )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domTristrips)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domTristrips::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTypes.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTypes.cpp new file mode 100644 index 000000000..c4bf793cc --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domTypes.cpp @@ -0,0 +1,2858 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + + +#include +#include +#include + + +void registerDomTypes() +{ + + daeAtomicType* type = NULL; + // TYPEDEF: Bool //check if this type has an existing base + type = daeAtomicType::get("xsBoolean"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Bool"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Bool"); + } + + // TYPEDEF: DateTime //check if this type has an existing base + type = daeAtomicType::get("xsDateTime"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("DateTime"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("DateTime"); + } + + // TYPEDEF: Float //check if this type has an existing base + type = daeAtomicType::get("xsDouble"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float"); + } + + // TYPEDEF: Int //check if this type has an existing base + type = daeAtomicType::get("xsLong"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Int"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Int"); + } + + // TYPEDEF: Name //check if this type has an existing base + type = daeAtomicType::get("xsName"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Name"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Name"); + } + + // TYPEDEF: String //check if this type has an existing base + type = daeAtomicType::get("xsString"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("String"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("String"); + } + + // TYPEDEF: Token //check if this type has an existing base + type = daeAtomicType::get("xsToken"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Token"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Token"); + } + + // TYPEDEF: Uint //check if this type has an existing base + type = daeAtomicType::get("xsUnsignedLong"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Uint"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Uint"); + } + + // TYPEDEF: ListOfBools //check if this type has an existing base + type = daeAtomicType::get("Bool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("ListOfBools"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("ListOfBools"); + } + + // TYPEDEF: ListOfFloats //check if this type has an existing base + type = daeAtomicType::get("Float"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("ListOfFloats"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("ListOfFloats"); + } + + // TYPEDEF: ListOfHexBinary //check if this type has an existing base + type = daeAtomicType::get("xsHexBinary"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("ListOfHexBinary"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("ListOfHexBinary"); + } + + // TYPEDEF: ListOfInts //check if this type has an existing base + type = daeAtomicType::get("Int"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("ListOfInts"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("ListOfInts"); + } + + // TYPEDEF: ListOfNames //check if this type has an existing base + type = daeAtomicType::get("Name"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("ListOfNames"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("ListOfNames"); + } + + // TYPEDEF: ListOfTokens //check if this type has an existing base + type = daeAtomicType::get("Token"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("ListOfTokens"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("ListOfTokens"); + } + + // TYPEDEF: ListOfUInts //check if this type has an existing base + type = daeAtomicType::get("Uint"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("ListOfUInts"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("ListOfUInts"); + } + + // TYPEDEF: Bool2 //check if this type has an existing base + type = daeAtomicType::get("ListOfBools"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Bool2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Bool2"); + } + + // TYPEDEF: Bool3 //check if this type has an existing base + type = daeAtomicType::get("ListOfBools"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Bool3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Bool3"); + } + + // TYPEDEF: Bool4 //check if this type has an existing base + type = daeAtomicType::get("ListOfBools"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Bool4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Bool4"); + } + + // TYPEDEF: Float2 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float2"); + } + + // TYPEDEF: Float3 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float3"); + } + + // TYPEDEF: Float4 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float4"); + } + + // TYPEDEF: Float7 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float7"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float7"); + } + + // TYPEDEF: Float2x2 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float2x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float2x2"); + } + + // TYPEDEF: Float3x3 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float3x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float3x3"); + } + + // TYPEDEF: Float4x4 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float4x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float4x4"); + } + + // TYPEDEF: Float2x3 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float2x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float2x3"); + } + + // TYPEDEF: Float2x4 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float2x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float2x4"); + } + + // TYPEDEF: Float3x2 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float3x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float3x2"); + } + + // TYPEDEF: Float3x4 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float3x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float3x4"); + } + + // TYPEDEF: Float4x2 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float4x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float4x2"); + } + + // TYPEDEF: Float4x3 //check if this type has an existing base + type = daeAtomicType::get("ListOfFloats"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Float4x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Float4x3"); + } + + // TYPEDEF: Int2 //check if this type has an existing base + type = daeAtomicType::get("ListOfInts"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Int2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Int2"); + } + + // TYPEDEF: Int3 //check if this type has an existing base + type = daeAtomicType::get("ListOfInts"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Int3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Int3"); + } + + // TYPEDEF: Int4 //check if this type has an existing base + type = daeAtomicType::get("ListOfInts"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Int4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Int4"); + } + + // TYPEDEF: Int2x2 //check if this type has an existing base + type = daeAtomicType::get("ListOfInts"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Int2x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Int2x2"); + } + + // TYPEDEF: Int3x3 //check if this type has an existing base + type = daeAtomicType::get("ListOfInts"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Int3x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Int3x3"); + } + + // TYPEDEF: Int4x4 //check if this type has an existing base + type = daeAtomicType::get("ListOfInts"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Int4x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Int4x4"); + } + + // ENUM: MorphMethodType + type = new daeEnumType; + type->_nameBindings.append("MorphMethodType"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("NORMALIZED"); + ((daeEnumType*)type)->_values->append(MORPHMETHODTYPE_NORMALIZED); + ((daeEnumType*)type)->_strings->append("RELATIVE"); + ((daeEnumType*)type)->_values->append(MORPHMETHODTYPE_RELATIVE); + daeAtomicType::append( type ); + + // ENUM: NodeType + type = new daeEnumType; + type->_nameBindings.append("NodeType"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("JOINT"); + ((daeEnumType*)type)->_values->append(NODETYPE_JOINT); + ((daeEnumType*)type)->_strings->append("NODE"); + ((daeEnumType*)type)->_values->append(NODETYPE_NODE); + daeAtomicType::append( type ); + + // TYPEDEF: URIFragmentType //check if this type has an existing base + type = daeAtomicType::get("xsAnyURI"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("URIFragmentType"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("URIFragmentType"); + } + + // ENUM: UpAxisType + type = new daeEnumType; + type->_nameBindings.append("UpAxisType"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("X_UP"); + ((daeEnumType*)type)->_values->append(UPAXISTYPE_X_UP); + ((daeEnumType*)type)->_strings->append("Y_UP"); + ((daeEnumType*)type)->_values->append(UPAXISTYPE_Y_UP); + ((daeEnumType*)type)->_strings->append("Z_UP"); + ((daeEnumType*)type)->_values->append(UPAXISTYPE_Z_UP); + daeAtomicType::append( type ); + + // ENUM: VersionType + type = new daeEnumType; + type->_nameBindings.append("VersionType"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("1.4.0"); + ((daeEnumType*)type)->_values->append(VERSIONTYPE_1_4_0); + daeAtomicType::append( type ); + + // TYPEDEF: Fx_color_common //check if this type has an existing base + type = daeAtomicType::get("Float4"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Fx_color_common"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Fx_color_common"); + } + + // ENUM: Fx_surface_type_enum + type = new daeEnumType; + type->_nameBindings.append("Fx_surface_type_enum"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("UNTYPED"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_UNTYPED); + ((daeEnumType*)type)->_strings->append("1D"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_1D); + ((daeEnumType*)type)->_strings->append("2D"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_2D); + ((daeEnumType*)type)->_strings->append("3D"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_3D); + ((daeEnumType*)type)->_strings->append("RECT"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_RECT); + ((daeEnumType*)type)->_strings->append("CUBE"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_CUBE); + ((daeEnumType*)type)->_strings->append("DEPTH"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_DEPTH); + daeAtomicType::append( type ); + + // ENUM: Fx_surface_face_enum + type = new daeEnumType; + type->_nameBindings.append("Fx_surface_face_enum"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("POSITIVE_X"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_POSITIVE_X); + ((daeEnumType*)type)->_strings->append("NEGATIVE_X"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_NEGATIVE_X); + ((daeEnumType*)type)->_strings->append("POSITIVE_Y"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_POSITIVE_Y); + ((daeEnumType*)type)->_strings->append("NEGATIVE_Y"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_NEGATIVE_Y); + ((daeEnumType*)type)->_strings->append("POSITIVE_Z"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_POSITIVE_Z); + ((daeEnumType*)type)->_strings->append("NEGATIVE_Z"); + ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_NEGATIVE_Z); + daeAtomicType::append( type ); + + // ENUM: Fx_sampler_wrap_common + type = new daeEnumType; + type->_nameBindings.append("Fx_sampler_wrap_common"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("NONE"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_NONE); + ((daeEnumType*)type)->_strings->append("WRAP"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_WRAP); + ((daeEnumType*)type)->_strings->append("MIRROR"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_MIRROR); + ((daeEnumType*)type)->_strings->append("CLAMP"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_CLAMP); + ((daeEnumType*)type)->_strings->append("BORDER"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_BORDER); + daeAtomicType::append( type ); + + // ENUM: Fx_sampler_filter_common + type = new daeEnumType; + type->_nameBindings.append("Fx_sampler_filter_common"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("NONE"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_NONE); + ((daeEnumType*)type)->_strings->append("NEAREST"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_NEAREST); + ((daeEnumType*)type)->_strings->append("LINEAR"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_LINEAR); + ((daeEnumType*)type)->_strings->append("NEAREST_MIPMAP_NEAREST"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_NEAREST_MIPMAP_NEAREST); + ((daeEnumType*)type)->_strings->append("LINEAR_MIPMAP_NEAREST"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_LINEAR_MIPMAP_NEAREST); + ((daeEnumType*)type)->_strings->append("NEAREST_MIPMAP_LINEAR"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_NEAREST_MIPMAP_LINEAR); + ((daeEnumType*)type)->_strings->append("LINEAR_MIPMAP_LINEAR"); + ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_LINEAR_MIPMAP_LINEAR); + daeAtomicType::append( type ); + + // ENUM: Fx_modifier_enum_common + type = new daeEnumType; + type->_nameBindings.append("Fx_modifier_enum_common"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("CONST"); + ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_CONST); + ((daeEnumType*)type)->_strings->append("UNIFORM"); + ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_UNIFORM); + ((daeEnumType*)type)->_strings->append("VARYING"); + ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_VARYING); + ((daeEnumType*)type)->_strings->append("STATIC"); + ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_STATIC); + ((daeEnumType*)type)->_strings->append("VOLATILE"); + ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_VOLATILE); + ((daeEnumType*)type)->_strings->append("EXTERN"); + ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_EXTERN); + ((daeEnumType*)type)->_strings->append("SHARED"); + ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_SHARED); + daeAtomicType::append( type ); + + // TYPEDEF: Fx_draw_common //check if this type has an existing base + type = daeAtomicType::get("xsString"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Fx_draw_common"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Fx_draw_common"); + } + + // ENUM: Fx_pipeline_stage_common + type = new daeEnumType; + type->_nameBindings.append("Fx_pipeline_stage_common"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("VERTEXPROGRAM"); + ((daeEnumType*)type)->_values->append(FX_PIPELINE_STAGE_COMMON_VERTEXPROGRAM); + ((daeEnumType*)type)->_strings->append("FRAGMENTPROGRAM"); + ((daeEnumType*)type)->_values->append(FX_PIPELINE_STAGE_COMMON_FRAGMENTPROGRAM); + ((daeEnumType*)type)->_strings->append("VERTEXSHADER"); + ((daeEnumType*)type)->_values->append(FX_PIPELINE_STAGE_COMMON_VERTEXSHADER); + ((daeEnumType*)type)->_strings->append("PIXELSHADER"); + ((daeEnumType*)type)->_values->append(FX_PIPELINE_STAGE_COMMON_PIXELSHADER); + daeAtomicType::append( type ); + + // TYPEDEF: GL_MAX_LIGHTS_index //check if this type has an existing base + type = daeAtomicType::get("xsNonNegativeInteger"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("GL_MAX_LIGHTS_index"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("GL_MAX_LIGHTS_index"); + } + + // TYPEDEF: GL_MAX_CLIP_PLANES_index //check if this type has an existing base + type = daeAtomicType::get("xsNonNegativeInteger"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("GL_MAX_CLIP_PLANES_index"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("GL_MAX_CLIP_PLANES_index"); + } + + // TYPEDEF: GL_MAX_TEXTURE_IMAGE_UNITS_index //check if this type has an existing base + type = daeAtomicType::get("xsNonNegativeInteger"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("GL_MAX_TEXTURE_IMAGE_UNITS_index"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("GL_MAX_TEXTURE_IMAGE_UNITS_index"); + } + + // ENUM: Gl_blend_type + type = new daeEnumType; + type->_nameBindings.append("Gl_blend_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("ZERO"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ZERO); + ((daeEnumType*)type)->_strings->append("ONE"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE); + ((daeEnumType*)type)->_strings->append("SRC_COLOR"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_SRC_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_COLOR"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_SRC_COLOR); + ((daeEnumType*)type)->_strings->append("DEST_COLOR"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_DEST_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_DEST_COLOR"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_DEST_COLOR); + ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_SRC_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_SRC_ALPHA); + ((daeEnumType*)type)->_strings->append("DST_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_DST_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_DST_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_DST_ALPHA); + ((daeEnumType*)type)->_strings->append("CONSTANT_COLOR"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_CONSTANT_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_COLOR"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_CONSTANT_COLOR); + ((daeEnumType*)type)->_strings->append("CONSTANT_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_CONSTANT_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_CONSTANT_ALPHA); + ((daeEnumType*)type)->_strings->append("SRC_ALPHA_SATURATE"); + ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_SRC_ALPHA_SATURATE); + daeAtomicType::append( type ); + + // ENUM: Gl_face_type + type = new daeEnumType; + type->_nameBindings.append("Gl_face_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("FRONT"); + ((daeEnumType*)type)->_values->append(GL_FACE_TYPE_FRONT); + ((daeEnumType*)type)->_strings->append("BACK"); + ((daeEnumType*)type)->_values->append(GL_FACE_TYPE_BACK); + ((daeEnumType*)type)->_strings->append("FRONT_AND_BACK"); + ((daeEnumType*)type)->_values->append(GL_FACE_TYPE_FRONT_AND_BACK); + daeAtomicType::append( type ); + + // ENUM: Gl_blend_equation_type + type = new daeEnumType; + type->_nameBindings.append("Gl_blend_equation_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("FUNC_ADD"); + ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_FUNC_ADD); + ((daeEnumType*)type)->_strings->append("FUNC_SUBTRACT"); + ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_FUNC_SUBTRACT); + ((daeEnumType*)type)->_strings->append("FUNC_REVERSE_SUBTRACT"); + ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_FUNC_REVERSE_SUBTRACT); + ((daeEnumType*)type)->_strings->append("MIN"); + ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_MIN); + ((daeEnumType*)type)->_strings->append("MAX"); + ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_MAX); + daeAtomicType::append( type ); + + // ENUM: Gl_func_type + type = new daeEnumType; + type->_nameBindings.append("Gl_func_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("NEVER"); + ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_NEVER); + ((daeEnumType*)type)->_strings->append("LESS"); + ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_LESS); + ((daeEnumType*)type)->_strings->append("LEQUAL"); + ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_LEQUAL); + ((daeEnumType*)type)->_strings->append("EQUAL"); + ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_EQUAL); + ((daeEnumType*)type)->_strings->append("GREATER"); + ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_GREATER); + ((daeEnumType*)type)->_strings->append("NOTEQUAL"); + ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_NOTEQUAL); + ((daeEnumType*)type)->_strings->append("GEQUAL"); + ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_GEQUAL); + ((daeEnumType*)type)->_strings->append("ALWAYS"); + ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_ALWAYS); + daeAtomicType::append( type ); + + // ENUM: Gl_stencil_op_type + type = new daeEnumType; + type->_nameBindings.append("Gl_stencil_op_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("KEEP"); + ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_KEEP); + ((daeEnumType*)type)->_strings->append("ZERO"); + ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_ZERO); + ((daeEnumType*)type)->_strings->append("REPLACE"); + ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_REPLACE); + ((daeEnumType*)type)->_strings->append("INCR"); + ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_INCR); + ((daeEnumType*)type)->_strings->append("DECR"); + ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_DECR); + ((daeEnumType*)type)->_strings->append("INVERT"); + ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_INVERT); + ((daeEnumType*)type)->_strings->append("INCR_WRAP"); + ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_INCR_WRAP); + ((daeEnumType*)type)->_strings->append("DECR_WRAP"); + ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_DECR_WRAP); + daeAtomicType::append( type ); + + // ENUM: Gl_material_type + type = new daeEnumType; + type->_nameBindings.append("Gl_material_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("EMISSION"); + ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_EMISSION); + ((daeEnumType*)type)->_strings->append("AMBIENT"); + ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_AMBIENT); + ((daeEnumType*)type)->_strings->append("DIFFUSE"); + ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_DIFFUSE); + ((daeEnumType*)type)->_strings->append("SPECULAR"); + ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_SPECULAR); + ((daeEnumType*)type)->_strings->append("AMBIENT_AND_DIFFUSE"); + ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_AMBIENT_AND_DIFFUSE); + daeAtomicType::append( type ); + + // ENUM: Gl_fog_type + type = new daeEnumType; + type->_nameBindings.append("Gl_fog_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("LINEAR"); + ((daeEnumType*)type)->_values->append(GL_FOG_TYPE_LINEAR); + ((daeEnumType*)type)->_strings->append("EXP"); + ((daeEnumType*)type)->_values->append(GL_FOG_TYPE_EXP); + ((daeEnumType*)type)->_strings->append("EXP2"); + ((daeEnumType*)type)->_values->append(GL_FOG_TYPE_EXP2); + daeAtomicType::append( type ); + + // ENUM: Gl_fog_coord_src_type + type = new daeEnumType; + type->_nameBindings.append("Gl_fog_coord_src_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("FOG_COORDINATE"); + ((daeEnumType*)type)->_values->append(GL_FOG_COORD_SRC_TYPE_FOG_COORDINATE); + ((daeEnumType*)type)->_strings->append("FRAGMENT_DEPTH"); + ((daeEnumType*)type)->_values->append(GL_FOG_COORD_SRC_TYPE_FRAGMENT_DEPTH); + daeAtomicType::append( type ); + + // ENUM: Gl_front_face_type + type = new daeEnumType; + type->_nameBindings.append("Gl_front_face_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("CW"); + ((daeEnumType*)type)->_values->append(GL_FRONT_FACE_TYPE_CW); + ((daeEnumType*)type)->_strings->append("CCW"); + ((daeEnumType*)type)->_values->append(GL_FRONT_FACE_TYPE_CCW); + daeAtomicType::append( type ); + + // ENUM: Gl_light_model_color_control_type + type = new daeEnumType; + type->_nameBindings.append("Gl_light_model_color_control_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("SINGLE_COLOR"); + ((daeEnumType*)type)->_values->append(GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_SINGLE_COLOR); + ((daeEnumType*)type)->_strings->append("SEPARATE_SPECULAR_COLOR"); + ((daeEnumType*)type)->_values->append(GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_SEPARATE_SPECULAR_COLOR); + daeAtomicType::append( type ); + + // ENUM: Gl_logic_op_type + type = new daeEnumType; + type->_nameBindings.append("Gl_logic_op_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("CLEAR"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_CLEAR); + ((daeEnumType*)type)->_strings->append("AND"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_AND); + ((daeEnumType*)type)->_strings->append("AND_REVERSE"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_AND_REVERSE); + ((daeEnumType*)type)->_strings->append("COPY"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_COPY); + ((daeEnumType*)type)->_strings->append("AND_INVERTED"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_AND_INVERTED); + ((daeEnumType*)type)->_strings->append("NOOP"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_NOOP); + ((daeEnumType*)type)->_strings->append("XOR"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_XOR); + ((daeEnumType*)type)->_strings->append("OR"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_OR); + ((daeEnumType*)type)->_strings->append("NOR"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_NOR); + ((daeEnumType*)type)->_strings->append("EQUIV"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_EQUIV); + ((daeEnumType*)type)->_strings->append("INVERT"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_INVERT); + ((daeEnumType*)type)->_strings->append("OR_REVERSE"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_OR_REVERSE); + ((daeEnumType*)type)->_strings->append("COPY_INVERTED"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_COPY_INVERTED); + ((daeEnumType*)type)->_strings->append("NAND"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_NAND); + ((daeEnumType*)type)->_strings->append("SET"); + ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_SET); + daeAtomicType::append( type ); + + // ENUM: Gl_polygon_mode_type + type = new daeEnumType; + type->_nameBindings.append("Gl_polygon_mode_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("POINT"); + ((daeEnumType*)type)->_values->append(GL_POLYGON_MODE_TYPE_POINT); + ((daeEnumType*)type)->_strings->append("LINE"); + ((daeEnumType*)type)->_values->append(GL_POLYGON_MODE_TYPE_LINE); + ((daeEnumType*)type)->_strings->append("FILL"); + ((daeEnumType*)type)->_values->append(GL_POLYGON_MODE_TYPE_FILL); + daeAtomicType::append( type ); + + // ENUM: Gl_shade_model_type + type = new daeEnumType; + type->_nameBindings.append("Gl_shade_model_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("FLAT"); + ((daeEnumType*)type)->_values->append(GL_SHADE_MODEL_TYPE_FLAT); + ((daeEnumType*)type)->_strings->append("SMOOTH"); + ((daeEnumType*)type)->_values->append(GL_SHADE_MODEL_TYPE_SMOOTH); + daeAtomicType::append( type ); + + // TYPEDEF: Gl_alpha_value_type //check if this type has an existing base + type = daeAtomicType::get("xsFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Gl_alpha_value_type"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Gl_alpha_value_type"); + } + + // ENUM: Gl_enumeration + type = new daeEnumType; + type->_nameBindings.append("Gl_enumeration"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("ZERO"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ZERO); + ((daeEnumType*)type)->_strings->append("ONE"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE); + ((daeEnumType*)type)->_strings->append("SRC_COLOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SRC_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_COLOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_SRC_COLOR); + ((daeEnumType*)type)->_strings->append("DEST_COLOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DEST_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_DEST_COLOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_DEST_COLOR); + ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SRC_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_SRC_ALPHA); + ((daeEnumType*)type)->_strings->append("DST_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DST_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_DST_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_DST_ALPHA); + ((daeEnumType*)type)->_strings->append("CONSTANT_COLOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CONSTANT_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_COLOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_CONSTANT_COLOR); + ((daeEnumType*)type)->_strings->append("CONSTANT_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CONSTANT_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_ALPHA"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_CONSTANT_ALPHA); + ((daeEnumType*)type)->_strings->append("SRC_ALPHA_SATURATE"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SRC_ALPHA_SATURATE); + ((daeEnumType*)type)->_strings->append("FRONT"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FRONT); + ((daeEnumType*)type)->_strings->append("BACK"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_BACK); + ((daeEnumType*)type)->_strings->append("FRONT_AND_BACK"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FRONT_AND_BACK); + ((daeEnumType*)type)->_strings->append("FUNC_ADD"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FUNC_ADD); + ((daeEnumType*)type)->_strings->append("FUNC_SUBTRACT"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FUNC_SUBTRACT); + ((daeEnumType*)type)->_strings->append("FUNC_REVERSE_SUBTRACT"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FUNC_REVERSE_SUBTRACT); + ((daeEnumType*)type)->_strings->append("MIN"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_MIN); + ((daeEnumType*)type)->_strings->append("MAX"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_MAX); + ((daeEnumType*)type)->_strings->append("NEVER"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NEVER); + ((daeEnumType*)type)->_strings->append("LESS"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_LESS); + ((daeEnumType*)type)->_strings->append("LEQUAL"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_LEQUAL); + ((daeEnumType*)type)->_strings->append("EQUAL"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EQUAL); + ((daeEnumType*)type)->_strings->append("GREATER"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_GREATER); + ((daeEnumType*)type)->_strings->append("NOTEQUAL"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NOTEQUAL); + ((daeEnumType*)type)->_strings->append("GEQUAL"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_GEQUAL); + ((daeEnumType*)type)->_strings->append("ALWAYS"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ALWAYS); + ((daeEnumType*)type)->_strings->append("KEEP"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_KEEP); + ((daeEnumType*)type)->_strings->append("REPLACE"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_REPLACE); + ((daeEnumType*)type)->_strings->append("INCR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_INCR); + ((daeEnumType*)type)->_strings->append("DECR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DECR); + ((daeEnumType*)type)->_strings->append("INVERT"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_INVERT); + ((daeEnumType*)type)->_strings->append("INCR_WRAP"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_INCR_WRAP); + ((daeEnumType*)type)->_strings->append("DECR_WRAP"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DECR_WRAP); + ((daeEnumType*)type)->_strings->append("EMISSION"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EMISSION); + ((daeEnumType*)type)->_strings->append("AMBIENT"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AMBIENT); + ((daeEnumType*)type)->_strings->append("DIFFUSE"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DIFFUSE); + ((daeEnumType*)type)->_strings->append("SPECULAR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SPECULAR); + ((daeEnumType*)type)->_strings->append("AMBIENT_AND_DIFFUSE"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AMBIENT_AND_DIFFUSE); + ((daeEnumType*)type)->_strings->append("LINEAR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_LINEAR); + ((daeEnumType*)type)->_strings->append("EXP"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EXP); + ((daeEnumType*)type)->_strings->append("EXP2"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EXP2); + ((daeEnumType*)type)->_strings->append("FOG_COORDINATE"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FOG_COORDINATE); + ((daeEnumType*)type)->_strings->append("FRAGMENT_DEPTH"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FRAGMENT_DEPTH); + ((daeEnumType*)type)->_strings->append("CW"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CW); + ((daeEnumType*)type)->_strings->append("CCW"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CCW); + ((daeEnumType*)type)->_strings->append("SINGLE_COLOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SINGLE_COLOR); + ((daeEnumType*)type)->_strings->append("SEPARATE_SPECULAR_COLOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SEPARATE_SPECULAR_COLOR); + ((daeEnumType*)type)->_strings->append("CLEAR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CLEAR); + ((daeEnumType*)type)->_strings->append("AND"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AND); + ((daeEnumType*)type)->_strings->append("AND_REVERSE"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AND_REVERSE); + ((daeEnumType*)type)->_strings->append("COPY"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_COPY); + ((daeEnumType*)type)->_strings->append("AND_INVERTED"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AND_INVERTED); + ((daeEnumType*)type)->_strings->append("NOOP"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NOOP); + ((daeEnumType*)type)->_strings->append("XOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_XOR); + ((daeEnumType*)type)->_strings->append("OR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_OR); + ((daeEnumType*)type)->_strings->append("NOR"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NOR); + ((daeEnumType*)type)->_strings->append("EQUIV"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EQUIV); + ((daeEnumType*)type)->_strings->append("OR_REVERSE"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_OR_REVERSE); + ((daeEnumType*)type)->_strings->append("COPY_INVERTED"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_COPY_INVERTED); + ((daeEnumType*)type)->_strings->append("NAND"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NAND); + ((daeEnumType*)type)->_strings->append("SET"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SET); + ((daeEnumType*)type)->_strings->append("POINT"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_POINT); + ((daeEnumType*)type)->_strings->append("LINE"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_LINE); + ((daeEnumType*)type)->_strings->append("FILL"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FILL); + ((daeEnumType*)type)->_strings->append("FLAT"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FLAT); + ((daeEnumType*)type)->_strings->append("SMOOTH"); + ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SMOOTH); + daeAtomicType::append( type ); + + // TYPEDEF: Glsl_float //check if this type has an existing base + type = daeAtomicType::get("xsFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_float"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_float"); + } + + // TYPEDEF: Glsl_int //check if this type has an existing base + type = daeAtomicType::get("xsInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_int"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_int"); + } + + // TYPEDEF: Glsl_bool //check if this type has an existing base + type = daeAtomicType::get("xsBoolean"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_bool"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_bool"); + } + + // TYPEDEF: Glsl_ListOfBool //check if this type has an existing base + type = daeAtomicType::get("Glsl_bool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_ListOfBool"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_ListOfBool"); + } + + // TYPEDEF: Glsl_ListOfFloat //check if this type has an existing base + type = daeAtomicType::get("Glsl_float"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_ListOfFloat"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_ListOfFloat"); + } + + // TYPEDEF: Glsl_ListOfInt //check if this type has an existing base + type = daeAtomicType::get("Glsl_int"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_ListOfInt"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_ListOfInt"); + } + + // TYPEDEF: Glsl_bool2 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_bool2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_bool2"); + } + + // TYPEDEF: Glsl_bool3 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_bool3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_bool3"); + } + + // TYPEDEF: Glsl_bool4 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_bool4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_bool4"); + } + + // TYPEDEF: Glsl_float2 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_float2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_float2"); + } + + // TYPEDEF: Glsl_float3 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_float3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_float3"); + } + + // TYPEDEF: Glsl_float4 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_float4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_float4"); + } + + // TYPEDEF: Glsl_float2x2 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_float2x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_float2x2"); + } + + // TYPEDEF: Glsl_float3x3 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_float3x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_float3x3"); + } + + // TYPEDEF: Glsl_float4x4 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_float4x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_float4x4"); + } + + // TYPEDEF: Glsl_int2 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_int2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_int2"); + } + + // TYPEDEF: Glsl_int3 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_int3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_int3"); + } + + // TYPEDEF: Glsl_int4 //check if this type has an existing base + type = daeAtomicType::get("Glsl_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_int4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_int4"); + } + + // ENUM: Glsl_pipeline_stage + type = new daeEnumType; + type->_nameBindings.append("Glsl_pipeline_stage"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("VERTEXPROGRAM"); + ((daeEnumType*)type)->_values->append(GLSL_PIPELINE_STAGE_VERTEXPROGRAM); + ((daeEnumType*)type)->_strings->append("FRAGMENTPROGRAM"); + ((daeEnumType*)type)->_values->append(GLSL_PIPELINE_STAGE_FRAGMENTPROGRAM); + daeAtomicType::append( type ); + + // TYPEDEF: Glsl_identifier //check if this type has an existing base + type = daeAtomicType::get("xsString"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Glsl_identifier"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Glsl_identifier"); + } + + // TYPEDEF: Cg_bool //check if this type has an existing base + type = daeAtomicType::get("xsBoolean"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool"); + } + + // TYPEDEF: Cg_float //check if this type has an existing base + type = daeAtomicType::get("xsFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float"); + } + + // TYPEDEF: Cg_int //check if this type has an existing base + type = daeAtomicType::get("xsInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int"); + } + + // TYPEDEF: Cg_half //check if this type has an existing base + type = daeAtomicType::get("xsFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half"); + } + + // TYPEDEF: Cg_fixed //check if this type has an existing base + type = daeAtomicType::get("xsFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed"); + } + + // TYPEDEF: Cg_bool1 //check if this type has an existing base + type = daeAtomicType::get("xsBoolean"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool1"); + } + + // TYPEDEF: Cg_float1 //check if this type has an existing base + type = daeAtomicType::get("xsFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float1"); + } + + // TYPEDEF: Cg_int1 //check if this type has an existing base + type = daeAtomicType::get("xsInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int1"); + } + + // TYPEDEF: Cg_half1 //check if this type has an existing base + type = daeAtomicType::get("xsFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half1"); + } + + // TYPEDEF: Cg_fixed1 //check if this type has an existing base + type = daeAtomicType::get("xsFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed1"); + } + + // TYPEDEF: Cg_ListOfBool //check if this type has an existing base + type = daeAtomicType::get("Cg_bool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_ListOfBool"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_ListOfBool"); + } + + // TYPEDEF: Cg_ListOfFloat //check if this type has an existing base + type = daeAtomicType::get("Cg_float"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_ListOfFloat"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_ListOfFloat"); + } + + // TYPEDEF: Cg_ListOfInt //check if this type has an existing base + type = daeAtomicType::get("Cg_int"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_ListOfInt"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_ListOfInt"); + } + + // TYPEDEF: Cg_ListOfHalf //check if this type has an existing base + type = daeAtomicType::get("Cg_half"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_ListOfHalf"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_ListOfHalf"); + } + + // TYPEDEF: Cg_ListOfFixed //check if this type has an existing base + type = daeAtomicType::get("Cg_fixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_ListOfFixed"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_ListOfFixed"); + } + + // TYPEDEF: Cg_bool2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool2"); + } + + // TYPEDEF: Cg_bool3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool3"); + } + + // TYPEDEF: Cg_bool4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool4"); + } + + // TYPEDEF: Cg_bool1x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool1x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool1x1"); + } + + // TYPEDEF: Cg_bool1x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool1x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool1x2"); + } + + // TYPEDEF: Cg_bool1x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool1x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool1x3"); + } + + // TYPEDEF: Cg_bool1x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool1x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool1x4"); + } + + // TYPEDEF: Cg_bool2x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool2x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool2x1"); + } + + // TYPEDEF: Cg_bool2x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool2x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool2x2"); + } + + // TYPEDEF: Cg_bool2x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool2x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool2x3"); + } + + // TYPEDEF: Cg_bool2x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool2x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool2x4"); + } + + // TYPEDEF: Cg_bool3x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool3x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool3x1"); + } + + // TYPEDEF: Cg_bool3x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool3x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool3x2"); + } + + // TYPEDEF: Cg_bool3x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool3x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool3x3"); + } + + // TYPEDEF: Cg_bool3x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool3x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool3x4"); + } + + // TYPEDEF: Cg_bool4x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool4x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool4x1"); + } + + // TYPEDEF: Cg_bool4x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool4x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool4x2"); + } + + // TYPEDEF: Cg_bool4x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool4x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool4x3"); + } + + // TYPEDEF: Cg_bool4x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfBool"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_bool4x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_bool4x4"); + } + + // TYPEDEF: Cg_float2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float2"); + } + + // TYPEDEF: Cg_float3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float3"); + } + + // TYPEDEF: Cg_float4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float4"); + } + + // TYPEDEF: Cg_float1x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float1x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float1x1"); + } + + // TYPEDEF: Cg_float1x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float1x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float1x2"); + } + + // TYPEDEF: Cg_float1x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float1x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float1x3"); + } + + // TYPEDEF: Cg_float1x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float1x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float1x4"); + } + + // TYPEDEF: Cg_float2x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float2x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float2x1"); + } + + // TYPEDEF: Cg_float2x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float2x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float2x2"); + } + + // TYPEDEF: Cg_float2x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float2x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float2x3"); + } + + // TYPEDEF: Cg_float2x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float2x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float2x4"); + } + + // TYPEDEF: Cg_float3x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float3x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float3x1"); + } + + // TYPEDEF: Cg_float3x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float3x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float3x2"); + } + + // TYPEDEF: Cg_float3x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float3x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float3x3"); + } + + // TYPEDEF: Cg_float3x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float3x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float3x4"); + } + + // TYPEDEF: Cg_float4x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float4x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float4x1"); + } + + // TYPEDEF: Cg_float4x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float4x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float4x2"); + } + + // TYPEDEF: Cg_float4x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float4x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float4x3"); + } + + // TYPEDEF: Cg_float4x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFloat"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_float4x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_float4x4"); + } + + // TYPEDEF: Cg_int2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int2"); + } + + // TYPEDEF: Cg_int3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int3"); + } + + // TYPEDEF: Cg_int4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int4"); + } + + // TYPEDEF: Cg_int1x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int1x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int1x1"); + } + + // TYPEDEF: Cg_int1x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int1x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int1x2"); + } + + // TYPEDEF: Cg_int1x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int1x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int1x3"); + } + + // TYPEDEF: Cg_int1x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int1x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int1x4"); + } + + // TYPEDEF: Cg_int2x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int2x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int2x1"); + } + + // TYPEDEF: Cg_int2x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int2x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int2x2"); + } + + // TYPEDEF: Cg_int2x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int2x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int2x3"); + } + + // TYPEDEF: Cg_int2x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int2x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int2x4"); + } + + // TYPEDEF: Cg_int3x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int3x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int3x1"); + } + + // TYPEDEF: Cg_int3x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int3x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int3x2"); + } + + // TYPEDEF: Cg_int3x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int3x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int3x3"); + } + + // TYPEDEF: Cg_int3x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int3x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int3x4"); + } + + // TYPEDEF: Cg_int4x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int4x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int4x1"); + } + + // TYPEDEF: Cg_int4x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int4x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int4x2"); + } + + // TYPEDEF: Cg_int4x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int4x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int4x3"); + } + + // TYPEDEF: Cg_int4x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfInt"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_int4x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_int4x4"); + } + + // TYPEDEF: Cg_half2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half2"); + } + + // TYPEDEF: Cg_half3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half3"); + } + + // TYPEDEF: Cg_half4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half4"); + } + + // TYPEDEF: Cg_half1x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half1x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half1x1"); + } + + // TYPEDEF: Cg_half1x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half1x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half1x2"); + } + + // TYPEDEF: Cg_half1x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half1x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half1x3"); + } + + // TYPEDEF: Cg_half1x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half1x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half1x4"); + } + + // TYPEDEF: Cg_half2x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half2x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half2x1"); + } + + // TYPEDEF: Cg_half2x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half2x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half2x2"); + } + + // TYPEDEF: Cg_half2x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half2x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half2x3"); + } + + // TYPEDEF: Cg_half2x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half2x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half2x4"); + } + + // TYPEDEF: Cg_half3x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half3x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half3x1"); + } + + // TYPEDEF: Cg_half3x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half3x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half3x2"); + } + + // TYPEDEF: Cg_half3x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half3x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half3x3"); + } + + // TYPEDEF: Cg_half3x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half3x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half3x4"); + } + + // TYPEDEF: Cg_half4x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half4x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half4x1"); + } + + // TYPEDEF: Cg_half4x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half4x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half4x2"); + } + + // TYPEDEF: Cg_half4x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half4x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half4x3"); + } + + // TYPEDEF: Cg_half4x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfHalf"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_half4x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_half4x4"); + } + + // TYPEDEF: Cg_fixed2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed2"); + } + + // TYPEDEF: Cg_fixed3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed3"); + } + + // TYPEDEF: Cg_fixed4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed4"); + } + + // TYPEDEF: Cg_fixed1x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed1x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed1x1"); + } + + // TYPEDEF: Cg_fixed1x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed1x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed1x2"); + } + + // TYPEDEF: Cg_fixed1x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed1x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed1x3"); + } + + // TYPEDEF: Cg_fixed1x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed1x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed1x4"); + } + + // TYPEDEF: Cg_fixed2x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed2x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed2x1"); + } + + // TYPEDEF: Cg_fixed2x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed2x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed2x2"); + } + + // TYPEDEF: Cg_fixed2x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed2x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed2x3"); + } + + // TYPEDEF: Cg_fixed2x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed2x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed2x4"); + } + + // TYPEDEF: Cg_fixed3x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed3x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed3x1"); + } + + // TYPEDEF: Cg_fixed3x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed3x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed3x2"); + } + + // TYPEDEF: Cg_fixed3x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed3x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed3x3"); + } + + // TYPEDEF: Cg_fixed3x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed3x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed3x4"); + } + + // TYPEDEF: Cg_fixed4x1 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed4x1"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed4x1"); + } + + // TYPEDEF: Cg_fixed4x2 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed4x2"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed4x2"); + } + + // TYPEDEF: Cg_fixed4x3 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed4x3"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed4x3"); + } + + // TYPEDEF: Cg_fixed4x4 //check if this type has an existing base + type = daeAtomicType::get("Cg_ListOfFixed"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_fixed4x4"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_fixed4x4"); + } + + // ENUM: Cg_pipeline_stage + type = new daeEnumType; + type->_nameBindings.append("Cg_pipeline_stage"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("VERTEX"); + ((daeEnumType*)type)->_values->append(CG_PIPELINE_STAGE_VERTEX); + ((daeEnumType*)type)->_strings->append("FRAGMENT"); + ((daeEnumType*)type)->_values->append(CG_PIPELINE_STAGE_FRAGMENT); + daeAtomicType::append( type ); + + // TYPEDEF: Cg_identifier //check if this type has an existing base + type = daeAtomicType::get("xsString"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Cg_identifier"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Cg_identifier"); + } + + // TYPEDEF: GLES_MAX_LIGHTS_index //check if this type has an existing base + type = daeAtomicType::get("xsNonNegativeInteger"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("GLES_MAX_LIGHTS_index"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("GLES_MAX_LIGHTS_index"); + } + + // TYPEDEF: GLES_MAX_CLIP_PLANES_index //check if this type has an existing base + type = daeAtomicType::get("xsNonNegativeInteger"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("GLES_MAX_CLIP_PLANES_index"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("GLES_MAX_CLIP_PLANES_index"); + } + + // TYPEDEF: GLES_MAX_TEXTURE_COORDS_index //check if this type has an existing base + type = daeAtomicType::get("xsNonNegativeInteger"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("GLES_MAX_TEXTURE_COORDS_index"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("GLES_MAX_TEXTURE_COORDS_index"); + } + + // TYPEDEF: GLES_MAX_TEXTURE_IMAGE_UNITS_index //check if this type has an existing base + type = daeAtomicType::get("xsNonNegativeInteger"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("GLES_MAX_TEXTURE_IMAGE_UNITS_index"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("GLES_MAX_TEXTURE_IMAGE_UNITS_index"); + } + + // ENUM: Gles_texenv_mode_enums + type = new daeEnumType; + type->_nameBindings.append("Gles_texenv_mode_enums"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("REPLACE"); + ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_REPLACE); + ((daeEnumType*)type)->_strings->append("MODULATE"); + ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_MODULATE); + ((daeEnumType*)type)->_strings->append("DECAL"); + ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_DECAL); + ((daeEnumType*)type)->_strings->append("BLEND"); + ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_BLEND); + ((daeEnumType*)type)->_strings->append("ADD"); + ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_ADD); + daeAtomicType::append( type ); + + // ENUM: Gles_texcombiner_operatorRGB_enums + type = new daeEnumType; + type->_nameBindings.append("Gles_texcombiner_operatorRGB_enums"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("REPLACE"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_REPLACE); + ((daeEnumType*)type)->_strings->append("MODULATE"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_MODULATE); + ((daeEnumType*)type)->_strings->append("ADD"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_ADD); + ((daeEnumType*)type)->_strings->append("ADD_SIGNED"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_ADD_SIGNED); + ((daeEnumType*)type)->_strings->append("INTERPOLATE"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_INTERPOLATE); + ((daeEnumType*)type)->_strings->append("SUBTRACT"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_SUBTRACT); + ((daeEnumType*)type)->_strings->append("DOT3_RGB"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_DOT3_RGB); + ((daeEnumType*)type)->_strings->append("DOT3_RGBA"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_DOT3_RGBA); + daeAtomicType::append( type ); + + // ENUM: Gles_texcombiner_operatorAlpha_enums + type = new daeEnumType; + type->_nameBindings.append("Gles_texcombiner_operatorAlpha_enums"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("REPLACE"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_REPLACE); + ((daeEnumType*)type)->_strings->append("MODULATE"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_MODULATE); + ((daeEnumType*)type)->_strings->append("ADD"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_ADD); + ((daeEnumType*)type)->_strings->append("ADD_SIGNED"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_ADD_SIGNED); + ((daeEnumType*)type)->_strings->append("INTERPOLATE"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_INTERPOLATE); + ((daeEnumType*)type)->_strings->append("SUBTRACT"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_SUBTRACT); + daeAtomicType::append( type ); + + // ENUM: Gles_texcombiner_source_enums + type = new daeEnumType; + type->_nameBindings.append("Gles_texcombiner_source_enums"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("TEXTURE"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_SOURCE_ENUMS_TEXTURE); + ((daeEnumType*)type)->_strings->append("CONSTANT"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_SOURCE_ENUMS_CONSTANT); + ((daeEnumType*)type)->_strings->append("PRIMARY"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_SOURCE_ENUMS_PRIMARY); + ((daeEnumType*)type)->_strings->append("PREVIOUS"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_SOURCE_ENUMS_PREVIOUS); + daeAtomicType::append( type ); + + // ENUM: Gles_texcombiner_operandRGB_enums + type = new daeEnumType; + type->_nameBindings.append("Gles_texcombiner_operandRGB_enums"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("SRC_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDRGB_ENUMS_SRC_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDRGB_ENUMS_ONE_MINUS_SRC_COLOR); + ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDRGB_ENUMS_SRC_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDRGB_ENUMS_ONE_MINUS_SRC_ALPHA); + daeAtomicType::append( type ); + + // ENUM: Gles_texcombiner_operandAlpha_enums + type = new daeEnumType; + type->_nameBindings.append("Gles_texcombiner_operandAlpha_enums"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_SRC_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_ONE_MINUS_SRC_ALPHA); + daeAtomicType::append( type ); + + // TYPEDEF: Gles_texcombiner_argument_index_type //check if this type has an existing base + type = daeAtomicType::get("xsNonNegativeInteger"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Gles_texcombiner_argument_index_type"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Gles_texcombiner_argument_index_type"); + } + + // ENUM: Gles_sampler_wrap + type = new daeEnumType; + type->_nameBindings.append("Gles_sampler_wrap"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("REPEAT"); + ((daeEnumType*)type)->_values->append(GLES_SAMPLER_WRAP_REPEAT); + ((daeEnumType*)type)->_strings->append("CLAMP"); + ((daeEnumType*)type)->_values->append(GLES_SAMPLER_WRAP_CLAMP); + ((daeEnumType*)type)->_strings->append("CLAMP_TO_EDGE"); + ((daeEnumType*)type)->_values->append(GLES_SAMPLER_WRAP_CLAMP_TO_EDGE); + ((daeEnumType*)type)->_strings->append("MIRRORED_REPEAT"); + ((daeEnumType*)type)->_values->append(GLES_SAMPLER_WRAP_MIRRORED_REPEAT); + daeAtomicType::append( type ); + + // ENUM: Gles_stencil_op_type + type = new daeEnumType; + type->_nameBindings.append("Gles_stencil_op_type"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("KEEP"); + ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_KEEP); + ((daeEnumType*)type)->_strings->append("ZERO"); + ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_ZERO); + ((daeEnumType*)type)->_strings->append("REPLACE"); + ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_REPLACE); + ((daeEnumType*)type)->_strings->append("INCR"); + ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_INCR); + ((daeEnumType*)type)->_strings->append("DECR"); + ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_DECR); + ((daeEnumType*)type)->_strings->append("INVERT"); + ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_INVERT); + daeAtomicType::append( type ); + + // ENUM: Gles_enumeration + type = new daeEnumType; + type->_nameBindings.append("Gles_enumeration"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("ZERO"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ZERO); + ((daeEnumType*)type)->_strings->append("ONE"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE); + ((daeEnumType*)type)->_strings->append("SRC_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SRC_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_SRC_COLOR); + ((daeEnumType*)type)->_strings->append("DEST_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DEST_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_DEST_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_DEST_COLOR); + ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SRC_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_SRC_ALPHA); + ((daeEnumType*)type)->_strings->append("DST_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DST_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_DST_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_DST_ALPHA); + ((daeEnumType*)type)->_strings->append("CONSTANT_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CONSTANT_COLOR); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_CONSTANT_COLOR); + ((daeEnumType*)type)->_strings->append("CONSTANT_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CONSTANT_ALPHA); + ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_ALPHA"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_CONSTANT_ALPHA); + ((daeEnumType*)type)->_strings->append("SRC_ALPHA_SATURATE"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SRC_ALPHA_SATURATE); + ((daeEnumType*)type)->_strings->append("FRONT"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_FRONT); + ((daeEnumType*)type)->_strings->append("BACK"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_BACK); + ((daeEnumType*)type)->_strings->append("FRONT_AND_BACK"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_FRONT_AND_BACK); + ((daeEnumType*)type)->_strings->append("NEVER"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NEVER); + ((daeEnumType*)type)->_strings->append("LESS"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_LESS); + ((daeEnumType*)type)->_strings->append("LEQUAL"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_LEQUAL); + ((daeEnumType*)type)->_strings->append("EQUAL"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EQUAL); + ((daeEnumType*)type)->_strings->append("GREATER"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_GREATER); + ((daeEnumType*)type)->_strings->append("NOTEQUAL"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NOTEQUAL); + ((daeEnumType*)type)->_strings->append("GEQUAL"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_GEQUAL); + ((daeEnumType*)type)->_strings->append("ALWAYS"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ALWAYS); + ((daeEnumType*)type)->_strings->append("KEEP"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_KEEP); + ((daeEnumType*)type)->_strings->append("REPLACE"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_REPLACE); + ((daeEnumType*)type)->_strings->append("INCR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_INCR); + ((daeEnumType*)type)->_strings->append("DECR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DECR); + ((daeEnumType*)type)->_strings->append("INVERT"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_INVERT); + ((daeEnumType*)type)->_strings->append("INCR_WRAP"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_INCR_WRAP); + ((daeEnumType*)type)->_strings->append("DECR_WRAP"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DECR_WRAP); + ((daeEnumType*)type)->_strings->append("EMISSION"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EMISSION); + ((daeEnumType*)type)->_strings->append("AMBIENT"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AMBIENT); + ((daeEnumType*)type)->_strings->append("DIFFUSE"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DIFFUSE); + ((daeEnumType*)type)->_strings->append("SPECULAR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SPECULAR); + ((daeEnumType*)type)->_strings->append("AMBIENT_AND_DIFFUSE"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AMBIENT_AND_DIFFUSE); + ((daeEnumType*)type)->_strings->append("LINEAR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_LINEAR); + ((daeEnumType*)type)->_strings->append("EXP"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EXP); + ((daeEnumType*)type)->_strings->append("EXP2"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EXP2); + ((daeEnumType*)type)->_strings->append("CW"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CW); + ((daeEnumType*)type)->_strings->append("CCW"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CCW); + ((daeEnumType*)type)->_strings->append("SINGLE_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SINGLE_COLOR); + ((daeEnumType*)type)->_strings->append("SEPARATE_SPECULAR_COLOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SEPARATE_SPECULAR_COLOR); + ((daeEnumType*)type)->_strings->append("CLEAR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CLEAR); + ((daeEnumType*)type)->_strings->append("AND"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AND); + ((daeEnumType*)type)->_strings->append("AND_REVERSE"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AND_REVERSE); + ((daeEnumType*)type)->_strings->append("COPY"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_COPY); + ((daeEnumType*)type)->_strings->append("AND_INVERTED"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AND_INVERTED); + ((daeEnumType*)type)->_strings->append("NOOP"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NOOP); + ((daeEnumType*)type)->_strings->append("XOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_XOR); + ((daeEnumType*)type)->_strings->append("OR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_OR); + ((daeEnumType*)type)->_strings->append("NOR"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NOR); + ((daeEnumType*)type)->_strings->append("EQUIV"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EQUIV); + ((daeEnumType*)type)->_strings->append("OR_REVERSE"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_OR_REVERSE); + ((daeEnumType*)type)->_strings->append("COPY_INVERTED"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_COPY_INVERTED); + ((daeEnumType*)type)->_strings->append("NAND"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NAND); + ((daeEnumType*)type)->_strings->append("SET"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SET); + ((daeEnumType*)type)->_strings->append("POINT"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_POINT); + ((daeEnumType*)type)->_strings->append("LINE"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_LINE); + ((daeEnumType*)type)->_strings->append("FILL"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_FILL); + ((daeEnumType*)type)->_strings->append("FLAT"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_FLAT); + ((daeEnumType*)type)->_strings->append("SMOOTH"); + ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SMOOTH); + daeAtomicType::append( type ); + + // TYPEDEF: Gles_rendertarget_common //check if this type has an existing base + type = daeAtomicType::get("xsNCName"); + if ( type == NULL ) { //register as a raw type + type = new daeRawRefType; + type->_nameBindings.append("Gles_rendertarget_common"); + daeAtomicType::append( type ); + } + else { //add binding to existing type + type->_nameBindings.append("Gles_rendertarget_common"); + } + + // ENUM: SpringType + type = new daeEnumType; + type->_nameBindings.append("SpringType"); + ((daeEnumType*)type)->_strings = new daeStringRefArray; + ((daeEnumType*)type)->_values = new daeEnumArray; + ((daeEnumType*)type)->_strings->append("LINEAR"); + ((daeEnumType*)type)->_values->append(SPRINGTYPE_LINEAR); + ((daeEnumType*)type)->_strings->append("ANGULAR"); + ((daeEnumType*)type)->_values->append(SPRINGTYPE_ANGULAR); + daeAtomicType::append( type ); + +} + +daeMetaElement* registerDomElements() +{ + daeMetaElement* meta = domCOLLADA::registerElement(); + // Enable tracking of top level object by default + domCOLLADA::_Meta->setIsTrackableForQueries(true); + return meta; +} diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domVertices.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domVertices.cpp new file mode 100644 index 000000000..8208cd4d0 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domVertices.cpp @@ -0,0 +1,72 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domVertices::create(daeInt bytes) +{ + domVerticesRef ref = new(bytes) domVertices; + return ref; +} + + +daeMetaElement * +domVertices::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "vertices" ); + _Meta->setStaticPointerAddress(&domVertices::_Meta); + _Meta->registerConstructor(domVertices::create); + + // Add elements: input, extra + _Meta->appendArrayElement(domInputLocal::registerElement(),daeOffsetOf(domVertices,elemInput_array),"input"); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domVertices,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domVertices , attrId )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domVertices , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domVertices)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domVertices::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domVisual_scene.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domVisual_scene.cpp new file mode 100644 index 000000000..129fc3764 --- /dev/null +++ b/Extras/COLLADA_DOM/src/1.4/dom/domVisual_scene.cpp @@ -0,0 +1,193 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeElementRef +domVisual_scene::create(daeInt bytes) +{ + domVisual_sceneRef ref = new(bytes) domVisual_scene; + return ref; +} + + +daeMetaElement * +domVisual_scene::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "visual_scene" ); + _Meta->setStaticPointerAddress(&domVisual_scene::_Meta); + _Meta->registerConstructor(domVisual_scene::create); + + // Add elements: asset, node, evaluate_scene, extra + _Meta->appendElement(domAsset::registerElement(),daeOffsetOf(domVisual_scene,elemAsset)); + _Meta->appendArrayElement(domNode::registerElement(),daeOffsetOf(domVisual_scene,elemNode_array)); + _Meta->appendArrayElement(domVisual_scene::domEvaluate_scene::registerElement(),daeOffsetOf(domVisual_scene,elemEvaluate_scene_array)); + _Meta->appendArrayElement(domExtra::registerElement(),daeOffsetOf(domVisual_scene,elemExtra_array)); + + // Add attribute: id + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "id" ); + ma->setType( daeAtomicType::get("xsID")); + ma->setOffset( daeOffsetOf( domVisual_scene , attrId )); + ma->setContainer( _Meta ); + ma->setIsRequired( false ); + + _Meta->appendAttribute(ma); + } + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domVisual_scene , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domVisual_scene)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domVisual_scene::domEvaluate_scene::create(daeInt bytes) +{ + domVisual_scene::domEvaluate_sceneRef ref = new(bytes) domVisual_scene::domEvaluate_scene; + return ref; +} + + +daeMetaElement * +domVisual_scene::domEvaluate_scene::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "evaluate_scene" ); + _Meta->setStaticPointerAddress(&domVisual_scene::domEvaluate_scene::_Meta); + _Meta->registerConstructor(domVisual_scene::domEvaluate_scene::create); + + // Add elements: render + _Meta->appendArrayElement(domVisual_scene::domEvaluate_scene::domRender::registerElement(),daeOffsetOf(domVisual_scene::domEvaluate_scene,elemRender_array)); + + // Add attribute: name + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "name" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domVisual_scene::domEvaluate_scene , attrName )); + ma->setContainer( _Meta ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domVisual_scene::domEvaluate_scene)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domVisual_scene::domEvaluate_scene::domRender::create(daeInt bytes) +{ + domVisual_scene::domEvaluate_scene::domRenderRef ref = new(bytes) domVisual_scene::domEvaluate_scene::domRender; + ref->attrCamera_node.setContainer( (domVisual_scene::domEvaluate_scene::domRender*)ref ); + return ref; +} + + +daeMetaElement * +domVisual_scene::domEvaluate_scene::domRender::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "render" ); + _Meta->setStaticPointerAddress(&domVisual_scene::domEvaluate_scene::domRender::_Meta); + _Meta->registerConstructor(domVisual_scene::domEvaluate_scene::domRender::create); + + // Add elements: layer, instance_effect + _Meta->appendArrayElement(domVisual_scene::domEvaluate_scene::domRender::domLayer::registerElement(),daeOffsetOf(domVisual_scene::domEvaluate_scene::domRender,elemLayer_array)); + _Meta->appendElement(domInstance_effect::registerElement(),daeOffsetOf(domVisual_scene::domEvaluate_scene::domRender,elemInstance_effect)); + + // Add attribute: camera_node + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "camera_node" ); + ma->setType( daeAtomicType::get("xsAnyURI")); + ma->setOffset( daeOffsetOf( domVisual_scene::domEvaluate_scene::domRender , attrCamera_node )); + ma->setContainer( _Meta ); + ma->setIsRequired( true ); + + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domVisual_scene::domEvaluate_scene::domRender)); + _Meta->validate(); + + return _Meta; +} + +daeElementRef +domVisual_scene::domEvaluate_scene::domRender::domLayer::create(daeInt bytes) +{ + domVisual_scene::domEvaluate_scene::domRender::domLayerRef ref = new(bytes) domVisual_scene::domEvaluate_scene::domRender::domLayer; + return ref; +} + + +daeMetaElement * +domVisual_scene::domEvaluate_scene::domRender::domLayer::registerElement() +{ + if ( _Meta != NULL ) return _Meta; + + _Meta = new daeMetaElement; + _Meta->setName( "layer" ); + _Meta->setStaticPointerAddress(&domVisual_scene::domEvaluate_scene::domRender::domLayer::_Meta); + _Meta->registerConstructor(domVisual_scene::domEvaluate_scene::domRender::domLayer::create); + + // Add attribute: _value + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsNCName")); + ma->setOffset( daeOffsetOf( domVisual_scene::domEvaluate_scene::domRender::domLayer , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + + _Meta->setElementSize(sizeof(domVisual_scene::domEvaluate_scene::domRender::domLayer)); + _Meta->validate(); + + return _Meta; +} + + +daeMetaElement * domVisual_scene::_Meta = NULL; +daeMetaElement * domVisual_scene::domEvaluate_scene::_Meta = NULL; +daeMetaElement * domVisual_scene::domEvaluate_scene::domRender::_Meta = NULL; +daeMetaElement * domVisual_scene::domEvaluate_scene::domRender::domLayer::_Meta = NULL; + + diff --git a/Extras/COLLADA_DOM/src/dae/dae.cpp b/Extras/COLLADA_DOM/src/dae/dae.cpp new file mode 100644 index 000000000..622461346 --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/dae.cpp @@ -0,0 +1,364 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include +#include +#include +#include +#include + +#ifndef NO_DEFAULT_PLUGIN +#ifndef DEFAULT_BXCEPLUGIN +#include +#include +#else +//This plugin is not provided with the public release. If you don't know about it then you don't need +//to worry about it. +#include +#include +#endif +#endif + +// Don't include domConstants.h because it varies depending on the dom version, +// just extern the one thing we need (COLLADA_VERSION) which all versions of +// domConstants.h/.cpp are required to define. + +extern daeString COLLADA_VERSION; + +daeInt DAEInstanceCount = 0; + +void +DAE::cleanup() +{ + if (DAEInstanceCount == 0) { + daeMetaElement::releaseMetas(); + daeAtomicType::uninitializeKnownTypes(); + } +} + +// constructor +DAE::DAE() : database(NULL), + plugin(NULL), + resolver(NULL), + idResolver(NULL), + defaultDatabase(false), + defaultPlugin(false), + registerFunc(NULL) +{ + topMeta = initializeDomMeta(); + DAEInstanceCount++; +} + +DAE::~DAE() +{ + if (defaultDatabase) + delete database; + if (defaultPlugin) { + delete plugin; + delete resolver; + delete idResolver; + } + topMeta = NULL; + --DAEInstanceCount; +} + +// Database setup +daeDatabase* DAE::getDatabase() +{ + return database; +} + +daeInt DAE::setDatabase(daeDatabase* _database) +{ + if (defaultDatabase) + delete database; + if (_database) + database = _database; + else + { + //create default database + database = new daeSTLDatabase; + defaultDatabase = true; + } + // !!!GAC Not sure what good the error return is, current implementations never fail, what would we do if they did? + int res = database->setMeta(topMeta); + (void)res; + return DAE_OK; +} + +// IO Plugin setup +daeIOPlugin* DAE::getIOPlugin() +{ + return plugin; +} + +daeInt DAE::setIOPlugin(daeIOPlugin* _plugin) +{ + if (defaultPlugin) + delete plugin; + if (_plugin) + plugin = _plugin; + else + { + //create default plugin +#ifndef NO_DEFAULT_PLUGIN +#ifndef DEFAULT_BXCEPLUGIN + plugin = new daeLIBXMLPlugin; + defaultPlugin = true; + resolver = new daeLIBXMLResolver(database,plugin); +#else + plugin = new daebXCePlugin(); + defaultPlugin = true; + resolver = new daebXCeResolver(database, plugin); +#endif +#else + daeErrorHandler::get()->handleWarning( "No IOPlugin Set! NO_DEFAULT_PLUGIN is defined." ); + plugin = NULL; + return DAE_ERR_BACKEND_IO; +#endif + + // Setup the IDRef resolver + idResolver = new daeDefaultIDRefResolver(database); + } + int res = plugin->setMeta(topMeta); + if (res != DAE_OK) + { + if (defaultPlugin) + { + defaultPlugin = false; + delete plugin; + } + plugin = NULL; + return res; + } + return DAE_OK; +} + +// Integration Library Setup +daeIntegrationLibraryFunc DAE::getIntegrationLibrary() +{ + return registerFunc; +} + +daeInt DAE::setIntegrationLibrary(daeIntegrationLibraryFunc _registerFunc) +{ + registerFunc = _registerFunc; + return DAE_OK; +} + +// batch file operations +daeInt DAE::load(daeString name, daeString docBuffer) +{ + if (!database) + setDatabase(NULL); + + if (!plugin) + setIOPlugin(NULL); + + if (registerFunc) + registerFunc(); + + if ( !plugin || !database ) { + printf( "no plugin or database\n" ); + return DAE_ERR_BACKEND_IO; + } + + plugin->setDatabase(database); + + if (!name || name[0] == '\0') + return DAE_ERR_INVALID_CALL; + + daeURI tempURI(name); + + return plugin->read(tempURI, docBuffer); +} +daeInt DAE::save(daeString documentName, daeBool replace) +{ + if (!database) + setDatabase(NULL); + + if (!plugin) + setIOPlugin(NULL); + + if (registerFunc) + registerFunc(); + + if ( !plugin || !database ) { + return DAE_ERR_BACKEND_IO; + } + + plugin->setDatabase(database); + + // Find the document we want by name + daeDocument* document = database->getDocument(documentName); + if(document == NULL) + return DAE_ERR_COLLECTION_DOES_NOT_EXIST; + + // Save it out to the URI it was loaded from + return plugin->write(document->getDocumentURI(), document, replace); + +} +daeInt DAE::save(daeUInt documentIndex, daeBool replace) +{ + if (!database) + setDatabase(NULL); + + if (!plugin) + setIOPlugin(NULL); + + if (registerFunc) + registerFunc(); + + if ( !plugin || !database ) { + return DAE_ERR_BACKEND_IO; + } + + plugin->setDatabase(database); + + if(documentIndex >= database->getDocumentCount()) + return DAE_ERR_COLLECTION_DOES_NOT_EXIST; + + daeDocument *document = database->getDocument(documentIndex); + + // Save it out to the URI it was loaded from + return plugin->write(document->getDocumentURI(), document, replace); +} +daeInt DAE::saveAs(daeString name, daeString documentName, daeBool replace) +{ + if (!database) + setDatabase(NULL); + + if (!plugin) + setIOPlugin(NULL); + + if (registerFunc) + registerFunc(); + + if ( !plugin || !database ) { + return DAE_ERR_BACKEND_IO; + } + + plugin->setDatabase(database); + + // Find the document we want by name + daeDocument* document = database->getDocument(documentName); + if(document == NULL) + return DAE_ERR_COLLECTION_DOES_NOT_EXIST; + + // Make a URI from "name" and save to that + + daeURI tempURI(name); + return plugin->write(&tempURI, document, replace); + +} +daeInt DAE::saveAs(daeString name, daeUInt documentIndex, daeBool replace) +{ + if (!database) + setDatabase(NULL); + + if (!plugin) + setIOPlugin(NULL); + + if (registerFunc) + registerFunc(); + + if ( !plugin || !database ) { + return DAE_ERR_BACKEND_IO; + } + + plugin->setDatabase(database); + + if(documentIndex >= database->getDocumentCount()) + return DAE_ERR_COLLECTION_DOES_NOT_EXIST; + + daeDocument *document = database->getDocument(documentIndex); + + daeURI tempURI(name); + return plugin->write(&tempURI, document, replace); +} +daeInt DAE::unload(daeString name) +{ + daeDocument *col = database->getDocument( name ); + if ( col == NULL ) return DAE_ERR_COLLECTION_DOES_NOT_EXIST; + return database->removeDocument( col ); +} + +daeInt DAE::clear() +{ + if (database) + database->clear(); + return DAE_OK; +} + +// Load/Save Progress +void DAE::getProgress(daeInt* bytesParsed,daeInt* lineNumber,daeInt* totalBytes,daeBool reset) +{ + if (!database || !plugin) + { + if (bytesParsed) + *bytesParsed=0; + if (bytesParsed) + *lineNumber=0; + if (totalBytes) + *totalBytes=0; + } + else + plugin->getProgress(bytesParsed,lineNumber,totalBytes,reset); +} + +// Simple Query +domCOLLADA* DAE::getDom(daeString name) +{ + if (!database) + return NULL; + + // Find the document by name + daeDocument *document = database->getDocument(name); + if(document) + { + // Return the root domCOLLADA element + return (domCOLLADA*)(daeElement*)document->getDomRoot(); + } + else + { + return(NULL); + } +} + +daeInt DAE::setDom(daeString name, domCOLLADA* dom) +{ + if (!database) + setDatabase(NULL); + + // Find the document by name + + daeDocument *document = database->getDocument(name); + + if(document) + { + //replace a DOM on an existing document by the one provided. + // Note that the casts are needed because we don't want to include the full definition of domCOLLADA + document->setDomRoot((daeElement*)dom); + return DAE_OK; + } + else + { + // Document doesn't exist, make a new one + return database->insertDocument(name,(daeElement*)dom); + } +} +daeString DAE::getDomVersion() +{ + return(COLLADA_VERSION); +} diff --git a/Extras/COLLADA_DOM/src/dae/daeArray.cpp b/Extras/COLLADA_DOM/src/dae/daeArray.cpp new file mode 100644 index 000000000..3d39f15e9 --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeArray.cpp @@ -0,0 +1,84 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeArray::daeArray():_count(0),_capacity(0),_data(NULL),_elementSize(4),_type(NULL) +{ +} + +daeArray::~daeArray() +{ + clear(); +} + +void +daeArray::clear() +{ + if (_data) + { + daeMemorySystem::free("array",_data); + _capacity = 0; + _data = NULL; + _count = 0; + } +} + +daeInt +daeArray::removeIndex(size_t index) +{ + if ((index >= _count)||(_count < 1)||(_data == NULL)) + return(DAE_ERR_INVALID_CALL); + if (_count-1-index) + memmove(_data+index*_elementSize, _data+(index+1)*_elementSize, _elementSize*(_count-1-index)); + memset(_data+(_count-1)*_elementSize,0,_elementSize); + _count--; + return(DAE_OK); +} + +void +daeArray::grow(size_t sz) +{ + + if (sz < _capacity) + return; + + size_t newSize = 4*_elementSize; + size_t neccesarySize = (sz+1)*_elementSize; + + while(newSize < neccesarySize) { + if (newSize < 16384) + newSize *= 2; + else + newSize += 16384; + } + + size_t newCapacity = newSize/_elementSize; + daeChar* newData = + (daeChar*)daeMemorySystem::malloc("array", newCapacity*_elementSize); + + if (_data != NULL) + memcpy(newData,_data,_capacity*_elementSize); + else + memset(newData,0,_capacity*_elementSize); + + memset(newData+_capacity*_elementSize,0, + (newCapacity-_capacity)*_elementSize); + + if (_data != NULL) + daeMemorySystem::free("array",_data); + + _data = newData; + _capacity = newCapacity; +} diff --git a/Extras/COLLADA_DOM/src/dae/daeAtomicType.cpp b/Extras/COLLADA_DOM/src/dae/daeAtomicType.cpp new file mode 100644 index 000000000..aa13a86ff --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeAtomicType.cpp @@ -0,0 +1,668 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include +#include +#include +#include +#include + +daeAtomicTypeArray* daeAtomicType::_Types = NULL; +daeBool daeAtomicType::_TypesInitialized = false; + +void +daeAtomicType::initializeKnownTypes() +{ + _Types = new daeAtomicTypeArray; + initializeKnownBaseTypes(); + //mandatory to set here, because the array types are querying the atomic types + _TypesInitialized = true; +} + +void +daeAtomicType::uninitializeKnownTypes() +{ + _TypesInitialized = false; + unsigned int i; + for (i=0;i<_Types->getCount();i++) + { + daeAtomicType* type = _Types->get(i); + delete type; + } + delete _Types; +} + +void +daeAtomicType::initializeKnownBaseTypes() +{ + _Types->append(new daeUIntType); + _Types->append(new daeIntType); + _Types->append(new daeLongType); + _Types->append(new daeShortType); + _Types->append(new daeUIntType); + _Types->append(new daeULongType); + _Types->append(new daeFloatType); + _Types->append(new daeDoubleType); + _Types->append(new daeStringRefType); + _Types->append(new daeElementRefType); + _Types->append(new daeEnumType); + _Types->append(new daeRawRefType); + _Types->append(new daeResolverType); + _Types->append(new daeIDResolverType); + _Types->append(new daeBoolType); + _Types->append(new daeTokenType); +} + +daeAtomicType* +daeAtomicType::get(daeStringRef typeString) +{ + if (!_TypesInitialized) + daeAtomicType::initializeKnownTypes(); + + int tCount = (int)_Types->getCount(); + int i; + for(i=0; iget(i); + daeStringRefArray& nameBindings = type->getNameBindings(); + int count = (int)nameBindings.getCount(); + int j; + for(j=0;jgetCount(); + int i; + for(i=0; iget(i); + if (type->getTypeEnum() == typeEnum) + return type; + } + return NULL; +} + +daeBool +daeAtomicType::stringToMemory(daeChar *src, daeChar* dstMemory) +{ + sscanf(src, _scanFormat, dstMemory); + return true; +} + +daeBool +daeAtomicType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + // just to remove the warnings + (void)src; + + if (dstSize > 32) + sprintf(dst,"unknown type string conversion\n"); + return true; +} + +daeInt +daeAtomicType::append(daeAtomicType* t) { + if (!_TypesInitialized) + daeAtomicType::initializeKnownTypes(); + return (daeInt)_Types->append(t); +} + +const daeAtomicType* +daeAtomicType::getByIndex(daeInt index) { + return _Types->get(index); +} + +daeInt +daeAtomicType::getCount() { + return (daeInt)_Types->getCount(); +} + +daeEnumType::daeEnumType() +{ + _size = sizeof(daeEnum); + _alignment = sizeof(daeEnum); + _typeEnum = EnumType; + _nameBindings.append("enum"); + _printFormat = "%s";//"%%.%ds"; + _scanFormat = "%s"; + _strings = NULL; + _values = NULL; + _typeString = "enum"; +} + +daeEnumType::~daeEnumType() { + if ( _strings ) { + delete _strings; + _strings = NULL; + } + if ( _values ) { + delete _values; + _values = NULL; + } +} + +daeBoolType::daeBoolType() +{ + _size = sizeof(daeBool); + _alignment = sizeof(daeBool); + _typeEnum = BoolType; + _printFormat = "%d"; + _scanFormat = "%d"; + _typeString = "bool"; + _maxStringLength = (daeInt)strlen("false")+1; + _nameBindings.append("bool"); + //_nameBindings.append("xsBool"); + _nameBindings.append("xsBoolean"); +} + +daeIntType::daeIntType() +{ + _size = sizeof(daeInt); + _alignment = sizeof(daeInt); + _typeEnum = IntType; + _maxStringLength = 16; + _nameBindings.append("int"); + _nameBindings.append("xsInteger"); + _nameBindings.append("xsHexBinary"); + _nameBindings.append("xsIntegerArray"); + _nameBindings.append("xsHexBinaryArray"); + _nameBindings.append("xsByte"); + _nameBindings.append("xsInt"); + _printFormat = "%d"; + _scanFormat = "%d"; + _typeString = "int"; +} +daeLongType::daeLongType() +{ + _size = sizeof(daeLong); + _alignment = sizeof(daeLong); + _typeEnum = LongType; + _maxStringLength = 32; + _nameBindings.append("xsLong"); + _nameBindings.append("xsLongArray"); + _printFormat = "%ld"; + _scanFormat = "%ld"; + _typeString = "long"; +} +daeShortType::daeShortType() +{ + _maxStringLength = 8; + _size = sizeof(daeShort); + _alignment = sizeof(daeShort); + _typeEnum = ShortType; + _nameBindings.append("short"); + _nameBindings.append("xsShort"); + _printFormat = "%hd"; + _scanFormat = "%hd"; + _typeString = "short"; +} +daeUIntType::daeUIntType() +{ + _maxStringLength = 16; + _size = sizeof(daeUInt); + _alignment = sizeof(daeUInt); + _typeEnum = UIntType; + _nameBindings.append("uint"); + _nameBindings.append("xsNonNegativeInteger"); + _nameBindings.append("xsUnsignedByte"); + _nameBindings.append("xsUnsignedInt"); + _nameBindings.append("xsPositiveInteger"); + _printFormat = "%u"; + _scanFormat = "%u"; + _typeString = "uint"; +} +daeULongType::daeULongType() +{ + _size = sizeof(daeULong); + _alignment = sizeof(daeULong); + _typeEnum = ULongType; + _maxStringLength = 32; + _nameBindings.append("ulong"); + _nameBindings.append("xsUnsignedLong"); + _printFormat = "%lu"; + _scanFormat = "%lu"; + _typeString = "ulong"; +} +daeFloatType::daeFloatType() +{ + _maxStringLength = 64; + _size = sizeof(daeFloat); + _alignment = sizeof(daeFloat); + _typeEnum = FloatType; + _nameBindings.append("float"); + _nameBindings.append("xsFloat"); + _printFormat = "%g"; + _scanFormat = "%g"; + _typeString = "float"; +} +daeDoubleType::daeDoubleType() +{ + _size = sizeof(daeDouble); + _alignment = sizeof(daeDouble); + _typeEnum = DoubleType; + _nameBindings.append("double"); + _nameBindings.append("xsDouble"); + _nameBindings.append("xsDecimal"); + _printFormat = "%lg"; + _scanFormat = "%lg"; + _typeString = "double"; + _maxStringLength = 64; +} + +daeStringRefType::daeStringRefType() +{ + _size = sizeof(daeStringRef); + _alignment = sizeof(daeStringRef); + _typeEnum = StringRefType; + _nameBindings.append("string"); + _nameBindings.append("xsString"); + _nameBindings.append("xsDateTime"); + _printFormat = "%s"; + _scanFormat = "%s"; + _typeString = "string"; +} + +daeTokenType::daeTokenType() +{ + _size = sizeof(daeStringRef); + _alignment = sizeof(daeStringRef); + _typeEnum = TokenType; + _nameBindings.append("token"); + _nameBindings.append("xsID"); + _nameBindings.append("xsNCName"); + _nameBindings.append("xsNMTOKEN"); + _nameBindings.append("xsName"); + _nameBindings.append("xsToken"); + _nameBindings.append("xsNameArray"); + _nameBindings.append("xsTokenArray"); + _nameBindings.append("xsNCNameArray"); + _printFormat = "%s"; + _scanFormat = "%s"; + _typeString = "token"; +} + +daeElementRefType::daeElementRefType() +{ + _size = sizeof(daeElementRef); + _alignment = sizeof(daeElementRef); + _typeEnum = ElementRefType; + _nameBindings.append("element"); + _nameBindings.append("Element"); + _nameBindings.append("TrackedElement"); + _printFormat = "%p"; + _scanFormat = "%p"; + _typeString = "element"; + _maxStringLength = 64; +} + +daeRawRefType::daeRawRefType() +{ + _size = sizeof(daeRawRef); + _alignment = sizeof(daeRawRef); + _typeEnum = RawRefType; + _nameBindings.append("raw"); + _printFormat = "%p"; + _scanFormat = "%p"; + _typeString = "raw"; + _maxStringLength = 64; +} + +daeResolverType::daeResolverType() +{ + _size = sizeof(daeURI); + _alignment = sizeof(daeURI); + _typeEnum = ResolverType; + _nameBindings.append("resolver"); + _nameBindings.append("xsAnyURI"); + _printFormat = "%s"; + _scanFormat = "%s"; + _typeString = "resolver"; +} +daeIDResolverType::daeIDResolverType() +{ + _size = sizeof(daeIDRef); + _alignment = sizeof(daeIDRef); + _typeEnum = IDResolverType; + _nameBindings.append("xsIDREF"); + _nameBindings.append("xsIDREFS"); + _printFormat = "%s"; + _scanFormat = "%s"; + _typeString = "idref_resolver"; +} +daeBool + daeIntType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + if (_maxStringLength > dstSize) return false; + sprintf(dst,_printFormat,*((daeInt*)src)); + return true; +} +daeBool + daeLongType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + if (_maxStringLength > dstSize) return false; + sprintf(dst,_printFormat,*((daeLong*)src)); + return true; +} +daeBool + daeShortType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + if (_maxStringLength > dstSize) return false; + sprintf(dst,_printFormat,*((daeShort*)src)); + return true; +} +daeBool + daeUIntType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + if (_maxStringLength > dstSize) return false; + sprintf(dst,_printFormat,*((daeUInt*)src)); + return true; +} +daeBool + daeULongType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + if (_maxStringLength > dstSize) return false; + sprintf(dst,_printFormat,*((daeULong*)src)); + return true; +} +daeBool + daeFloatType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + if (_maxStringLength > dstSize) return false; + sprintf(dst,_printFormat,*((daeFloat*)src)); + return true; +} + +daeBool + daeDoubleType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + if (_maxStringLength > dstSize) return false; + sprintf(dst,_printFormat,*((daeDouble*)src)); + return true; +} +daeBool + daeRawRefType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + if (_maxStringLength > dstSize) return false; + sprintf(dst,"%p",(void *)(*((daeRawRef*)src))); + return true; +} + +daeBool +daeStringRefType::getUsesStrings() +{ + return true; +} +daeBool +daeTokenType::getUsesStrings() +{ + return false; +} +daeBool +daeStringRefType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + daeString s = *((daeStringRef *)src); + if (!s || strlen(s) == 0) + dst[0] = '\0'; + else { + char tmp[64]; + sprintf(tmp,"%%.%ds",dstSize-1); + sprintf(dst,tmp,(const char*)s); + + if ((daeInt)(strlen(s)+1) > dstSize) + return false; + } + return true; +} + +daeBool +daeResolverType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ +#if 1 + // Get the URI we are trying to write + daeURI *thisURI = ((daeURI *)src); + daeString s; + + // !!!GAC We may want to re-resolve the URI before writing, if so call thisURI->resolveURI() here + // !!!GAC if you're willing to trust that everything is properly resolved, this isn't needed + + // Was this URI successfully resolved ? (if element or collection is null, we can't write the URI correctly) + if(thisURI->getState() != daeURI::uri_success || !(thisURI->getElement()) || !(thisURI->getContainer())) + { + // This URI was never successfully resolved, so write out it's original value + s = thisURI->getOriginalURI(); + } + else + { + // This URI was successfully resolved, we need to determine if it is referencing this document (the one being written) + // or some other document so we know what URI to write out. + // !!!GAC this approach should be safe, if the collection pointer of our document matches the collection pointer + // !!!GAC of the element our URI is pointing at, we are pointing at our own doc. + if(thisURI->getElement()->getCollection() == thisURI->getContainer()->getDocument()) + { + // we will send back the original URI if we're pointing at ourselves + s = thisURI->getOriginalURI(); + } + else + { + // !!!GAC change this to test outputting of relative URIs, NOT FULLY TESTED!!! +#if 1 + // we will send back the full resolved URI + s = thisURI->getURI(); +#else + // Makes the URI relative to the document being written, EXPERIMENTAL, not fully tested!!! + thisURI->makeRelativeTo(thisURI->getDocument()->getCollection()->getDocumentURI()); + s = thisURI->getOriginalURI(); +#endif + } + } + // Copy at most dstSize-1 characters, null terminate and return error if the string was too long + daeChar *d; + int i; + for(d = dst, i = 1; *s != 0 && iresolveURI(); + + // Get the URI String as set, not the composited one from the base + // as per SCEA request + daeString s = ((daeURI *)src)->getOriginalURI(); + char tmp[64]; + sprintf(tmp,"%%.%ds",dstSize-1); + sprintf(dst,tmp,s); + + if ((daeInt)(strlen(s)+1) > dstSize) + return false; + return true; +#endif +} +daeBool +daeIDResolverType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + ((daeIDRef*)src)->resolveID(); + + daeString s = ((daeIDRef *)src)->getID(); + char tmp[64]; + sprintf(tmp,"%%.%ds",dstSize-1); + sprintf(dst,tmp,s); + + if ((daeInt)(strlen(s)+1) > dstSize) + return false; + return true; +} + +void +daeAtomicType::resolve(daeElementRef element, daeMetaAttributeRef ma) +{ + // just to remove the warnings + (void)element; + (void)ma; +} + +void +daeResolverType::resolve(daeElementRef element, daeMetaAttributeRef ma) +{ + daeURI* resolver = (daeURI*)ma->getWritableMemory(element); + resolver->setContainer(element); + resolver->resolveElement(); +} + +daeBool +daeResolverType::stringToMemory(daeChar* src, daeChar* dstMemory) +{ + ((daeURI*)dstMemory)->setURI(src); + return true; +} +void +daeIDResolverType::resolve(daeElementRef element, daeMetaAttributeRef ma) +{ + daeIDRef* resolver = (daeIDRef*)ma->getWritableMemory(element); + resolver->setContainer( element ); + resolver->resolveElement(); +} + +daeBool +daeIDResolverType::stringToMemory(daeChar* src, daeChar* dstMemory) +{ + ((daeIDRef*)dstMemory)->setID(src); + return true; +} + +daeBool +daeStringRefType::stringToMemory(daeChar* srcChars, daeChar* dstMemory) +{ + *((daeStringRef*)dstMemory) = srcChars; + return true; +} + +daeBool +daeEnumType::stringToMemory(daeChar* src, daeChar* dst ) +{ + size_t index; + if ( _strings->find(src,index) == DAE_ERR_QUERY_NO_MATCH ) return false; + daeEnum val = _values->get( index ); + *((daeEnum*)dst) = val; + + return true; +} + +daeBool +daeEnumType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + daeStringRef s = "unknown"; + if (_strings != NULL) { + size_t index; + if (_values->find(*((daeEnum*)src), index) == DAE_OK) + s = _strings->get(index); + } + sprintf(dst,_printFormat,(const char*)s); + (void)dstSize; + return true; +} +daeBool +daeBoolType::stringToMemory(daeChar* srcChars, daeChar* dstMemory) +{ + if (strncmp(srcChars,"true",4)==0) + *((daeBool*)dstMemory) = true; + else + *((daeBool*)dstMemory) = false; + return true; +} + +daeBool +daeBoolType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + if (*((daeBool*)src)) { + if (dstSize < 5) + return false; + else + sprintf(dst,"true"); + } + else { + if (dstSize < 6) + return false; + else + sprintf(dst,"false"); + } + return true; +} +//!!!ACL added for 1.4 complex types and groups + +//unImplemented +daeBool +daeElementRefType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) +{ + /*if (*((daeBool*)src)) { + if (dstSize < 5) + return false; + else + sprintf(dst,"true"); + } + else { + if (dstSize < 6) + return false; + else + sprintf(dst,"false"); + }*/ + (void)src; + (void)dst; + (void)dstSize; + return false; +} + diff --git a/Extras/COLLADA_DOM/src/dae/daeDocument.cpp b/Extras/COLLADA_DOM/src/dae/daeDocument.cpp new file mode 100644 index 000000000..4a58973ae --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeDocument.cpp @@ -0,0 +1,59 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include + +void daeDocument::addExternalReference( daeURI &uri ) { + if ( uri.getContainer() == NULL || uri.getContainer()->getDocument() != this ) { + return; + } + size_t idx; + daeURI tempURI( uri.getURI(), true ); + daeStringRef docURI( tempURI.getURI() ); + if ( referencedDocuments.find( docURI, idx ) == DAE_OK ) { + externalURIs[idx]->appendUnique( &uri ); + } + else { + referencedDocuments.append( docURI ); + idx = externalURIs.append( new daeTArray ); + externalURIs[idx]->append( &uri ); + } +} + +void daeDocument::removeExternalReference( daeURI &uri ) { + for( unsigned int i = 0; i < externalURIs.getCount(); i++ ) { + for ( unsigned int j = 0; j < externalURIs[i]->getCount(); j++ ) { + daeURI *tempURI = externalURIs[i]->get(j); + if ( tempURI == &uri ) { + //found the uri. now remove it + externalURIs[i]->removeIndex(j); + if ( externalURIs[i]->getCount() == 0 ) { + externalURIs.removeIndex(i); + referencedDocuments.removeIndex(i); + } + return; + } + } + } +} + +void daeDocument::resolveExternals( daeString docURI ) { + size_t idx; + if ( referencedDocuments.find( docURI, idx ) == DAE_OK ) { + for ( unsigned int j = 0; j < externalURIs[idx]->getCount(); j++ ) { + daeURI *tempURI = externalURIs[idx]->get(j); + tempURI->resolveElement(); + } + return; + } +} diff --git a/Extras/COLLADA_DOM/src/dae/daeDom.cpp b/Extras/COLLADA_DOM/src/dae/daeDom.cpp new file mode 100644 index 000000000..34044e446 --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeDom.cpp @@ -0,0 +1,24 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ +#include + +#include + +#include + +daeMetaElement* initializeDomMeta() +{ + registerDomTypes(); + + return registerDomElements(); +} diff --git a/Extras/COLLADA_DOM/src/dae/daeElement.cpp b/Extras/COLLADA_DOM/src/dae/daeElement.cpp new file mode 100644 index 000000000..d478e6a57 --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeElement.cpp @@ -0,0 +1,644 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include +#include +#include +#include +#include + +#include +#include + +void +daeElement::release() const +{ + if (--_refCount <= 0) + delete this; +} +daeElementRef DAECreateElement(int nbytes) +{ + return new(nbytes) daeElement; +} + +static daeElementRefArray resolveArray; +//static char StaticIndentBuf[] = ""; + +daeIntegrationObject* +daeElement::getIntObject( IntegrationState from_state, IntegrationState to_state ) +{ + if ( !_intObject ) { + return NULL; + } + if ( from_state >= int_created ) { + if ( _intObject->_from_state < int_created ) { + daeErrorHandler::get()->handleWarning("Warning: getIntObject tries to get object that is not created (from)"); + return NULL; + } + if ( from_state >= int_converted ) { + _intObject->fromCOLLADAChecked(); + if ( from_state == int_finished ) { + _intObject->fromCOLLADAPostProcessChecked(); + } + } + } + if ( to_state >= int_created ) { + if ( _intObject->_to_state < int_created ) { + daeErrorHandler::get()->handleWarning("Warning: getIntObject tries to get object that is not created (to)"); + return NULL; + } + if ( to_state >= int_converted ) { + _intObject->toCOLLADAChecked(); + if ( to_state == int_finished ) { + _intObject->toCOLLADAPostProcessChecked(); + } + } + } + return _intObject; +} + +daeElementRef +daeElement::createElement(daeString className) +{ + daeElementRef elem = _meta->create(className); + // Bug #225 work around +// if ( elem != NULL) +// elem->ref(); // change premature delete into memory leak. + return elem; +} + +daeElement* +daeElement::createAndPlace(daeString className) +{ + daeElementRef elem = _meta->create(className); + daeBool place = false; + if (elem != NULL) + place = placeElement(elem); + if (place) + return elem; + return NULL; +} + +daeElement* +daeElement::createAndPlaceAt(daeInt index, daeString className) +{ + daeElementRef elem = _meta->create(className); + daeBool place = false; + if (elem != NULL) + place = placeElementAt(index, elem); + if (place) + return elem; + return NULL; +} + +daeBool +daeElement::placeElement(daeElement* e) +{ + if (e == NULL || e == this) + return false; + if (e->getMeta()->getIsAbstract()) { + return false; + } + daeMetaElementAttributeArray &meas = _meta->getMetaElements(); + if (_meta->getAllowsAny()) { + //remove element from praent + if ( e->_parent ) { + e->_parent->removeChildElement( e ); + } + e->_parent = this; + //add element to contents if one exists + if (_meta->getContents() != NULL) { + daeElementRefArray* contents = + (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + contents->append(e); + } + //update document pointer + e->setDocument( _document ); + if ( _document ) { + _document->insertElement( e ); + _document->setModified(true); + } + return true; + } + int cnt = (int)meas.getCount(); + int i; + daeString nm = e->getElementName(); + if ( !nm ) { + nm = e->getTypeName(); + } + for(i=0;igetName(), nm ) == 0 || strcmp(meas[i]->_elementType->getName(), nm ) == 0) { + //add element to meta + meas[i]->placeElement(this,e); + //remove element from praent + if ( e->_parent ) { + e->_parent->removeChildElement( e ); + } + e->_parent = this; + //add element to contents if one exists + if (_meta->getContents() != NULL) { + daeElementRefArray* contents = + (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + contents->append(e); + } + //update document pointer + e->setDocument( _document ); + if ( _document ) { + _document->insertElement( e ); + _document->setModified(true); + } + return true; + } + } + for ( unsigned int c = 0; c < _meta->getPossibleChildrenCount(); c++ ) { + if (strcmp(_meta->getPossibleChildName(c), e->_meta->getName()) == 0 || + strcmp(_meta->getPossibleChildType(c), e->_meta->getName()) == 0 ) { + + daeMetaElementAttribute *cont = _meta->getPossibleChildContainer(c); + int elCnt = cont->getCount(this); + daeMemoryRef mem = cont->get(this, elCnt ); + daeElementRef el; + if ( mem != 0 ) { + el = *(daeElementRef*)mem; + } + if ( el == NULL ) { + cont->placeElement(this, cont->_elementType->create() ); + el = *(daeElementRef*)cont->get(this, elCnt ); + el->_parent = this; + } + if ( el->placeElement( e ) ) { + if (_meta->getContents() != NULL) { + daeElementRefArray* contents = + (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + contents->append(el); + } + return true; + } + return false; + } + } + return false; +} + +daeBool daeElement::placeElementAt(daeInt index, daeElement* e) { + if (e == NULL || e == this) + return false; + if (e->getMeta()->getIsAbstract()) { + return false; + } + + daeMetaElementAttributeArray &meas = _meta->getMetaElements(); + if (_meta->getAllowsAny()) { + //remove element from praent + if ( e->_parent ) { + e->_parent->removeChildElement( e ); + } + e->_parent = this; + //add element to contents if one exists + if (_meta->getContents() != NULL) { + daeElementRefArray* contents = + (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + contents->insertAt(index, e); + } + //update document pointer + e->setDocument( _document ); + if ( _document ) { + _document->insertElement( e ); + _document->setModified(true); + } + return true; + } + int cnt = (int)meas.getCount(); + int i; + daeString nm = e->getElementName(); + if ( !nm ) { + nm = e->getTypeName(); + } + for(i=0;igetName(), nm ) == 0 || strcmp(meas[i]->_elementType->getName(), nm ) == 0) { + //add element to meta + meas[i]->placeElement(this,e); + //remove element from praent + if ( e->_parent ) { + e->_parent->removeChildElement( e ); + } + e->_parent = this; + //add element to contents if one exists + if (_meta->getContents() != NULL) { + daeElementRefArray* contents = + (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + contents->insertAt( index, e ); + } + //update document pointer + e->setDocument( _document ); + if ( _document ) { + _document->insertElement( e ); + _document->setModified(true); + } + return true; + } + } + for ( unsigned int c = 0; c < _meta->getPossibleChildrenCount(); c++ ) { + if (strcmp(_meta->getPossibleChildName(c), e->_meta->getName()) == 0 || + strcmp(_meta->getPossibleChildType(c), e->_meta->getName()) == 0 ) { + + daeMetaElementAttribute *cont = _meta->getPossibleChildContainer(c); + int elCnt = cont->getCount(this); + daeMemoryRef mem = cont->get(this, elCnt ); + daeElementRef el; + if ( mem != 0 ) { + el = *(daeElementRef*)mem; + } + if ( el == NULL ) { + cont->placeElement(this, cont->_elementType->create() ); + el = *(daeElementRef*)cont->get(this, elCnt ); + el->_parent = this; + } + if ( el->placeElement( e ) ) { + if (_meta->getContents() != NULL) { + daeElementRefArray* contents = + (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + contents->insertAt(index, el); + } + return true; + } + return false; + } + } + return false; +} + +daeBool daeElement::placeElementBefore( daeElement *marker, daeElement *element ) { + if (marker == NULL || element == NULL || marker->getXMLParentElement() != this ) { + return false; + } + if ( _meta->getContents() != NULL ) { + size_t idx; + daeElementRefArray* contents = + (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + if ( contents->find( marker, idx ) != DAE_OK ) { + return false; + } + return placeElementAt( (daeInt)idx, element ); + } + if ( strcmp( marker->getTypeName(), element->getTypeName() ) == 0 ) { + //same type + daeMetaElementAttribute *mea = _meta->getChildMetaElementAttribute( element->getTypeName() ); + daeElementRefArray* era = (daeElementRefArray*)mea->getWritableMemory(this); + size_t idx; + if ( era->find( marker, idx ) != DAE_OK ) { + return false; + } + era->insertAt( idx, element ); + return true; + } + return placeElement( element ); +} + +daeBool daeElement::placeElementAfter( daeElement *marker, daeElement *element ) { + if (marker == NULL || element == NULL || marker->getXMLParentElement() != this ) { + return false; + } + if ( _meta->getContents() != NULL ) { + size_t idx; + daeElementRefArray* contents = + (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + if ( contents->find( marker, idx ) != DAE_OK ) { + return false; + } + return placeElementAt( (daeInt)idx+1, element ); + } + if ( strcmp( marker->getTypeName(), element->getTypeName() ) == 0 ) { + daeMetaElementAttribute *mea = _meta->getChildMetaElementAttribute( element->getTypeName() ); + daeElementRefArray* era = (daeElementRefArray*)mea->getWritableMemory(this); + size_t idx; + if ( era->find( marker, idx ) != DAE_OK ) { + return false; + } + era->insertAt( idx+1, element ); + return true; + } + return placeElement( element ); +} + +daeInt daeElement::findLastIndexOf( daeString elementName ) { + if ( _meta->getContents() != NULL ) { + daeElementRefArray* contents = + (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + for ( int i = (int)contents->getCount()-1; i >= 0; --i ) { + daeString nm = contents->get(i)->getElementName(); + if ( nm == NULL ) { + nm = contents->get(i)->getTypeName(); + } + if ( strcmp( nm, elementName ) == 0 ) { + return i; + } + } + return -1; + } + daeInt idx = 0; + size_t cnt = _meta->getMetaElements().getCount(); + for ( unsigned int i = 0; i < cnt; ++i ) { + idx += (daeInt)((daeElementRefArray*)(_meta->getMetaElements().get(i)->getWritableMemory(this)))->getCount(); + if ( strcmp( _meta->getMetaElements().get(i)->getName(), elementName ) == 0 ) { + return idx; + } + } + return -1; +} + +daeBool +daeElement::removeChildElement(daeElement* element) +{ + // error traps + if(element==NULL) + return false; + if(element->_parent != this) + return false; + + // Clear the element's parent pointer, if the element has references outside + // 'this' it won't go away, so we want to make sure it's parent is valid + + element->_parent = NULL; + + // Remove the element from our contents array (if we have one) + + if (_meta->getContents() != NULL) + { + daeElementRefArray* contents = (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); + contents->remove(element); + } + + // Remove the element from wherever else it appears in 'this' + + daeMetaElementAttributeArray &meas = _meta->getMetaElements(); + int cnt = (int)meas.getCount(); + int i; + // Look for a meta element with a matching name + for(i=0;igetName(), element->_meta->getName()) == 0) + { + if ( _document ) { + _document->removeElement( element ); + _document->setModified(true); + } + // Remove it, if the element's ref count goes to zero it might be destructed, + // so don't touch "element" again after this point. + meas[i]->removeElement(this,element); + return true; + } + } + return false; +} + +// !!!ACL Added to fix mantis issue 0000416 +void daeElement::setDocument( daeDocument *c ) { + if( _document == c ) { + return; + } + _document = c; + + daeMetaElementAttributeArray &meas = _meta->getMetaElements(); + int cnt = (int)meas.getCount(); + for( int i = 0; i < cnt; i++) { + meas[i]->setDocument( this, c ); + } + +} + +daeBool +daeElement::setAttribute(daeString attrName, daeString attrValue) +{ + if (_meta == NULL) + return false; + + daeMetaAttributeRefArray& metaAttrs = _meta->getMetaAttributes(); + int n = (int)metaAttrs.getCount(); + int i; + for(i=0;igetName() != NULL) && + (strcmp(metaAttrs[i]->getName(),attrName)==0)) { +#if 0 //debug stuff + printf("%s(%s)->setAttr(%s,%s)\n", + (const char*)_meta->getName(), + metaAttrs[i]->getType()->getTypeString(), + attrName, + attrValue); +#endif + if (metaAttrs[i]->getType() != NULL) + { + metaAttrs[i]->set(this,attrValue); + } + return true; + } + } + return false; +} + +void +daeElement::appendResolveElement(daeElement* elem) +{ + resolveArray.append(elem); +} +void +daeElement::resolveAll() +{ + int cnt; + while(resolveArray.getCount()) { + cnt = (int)resolveArray.getCount(); + daeElementRef elem = resolveArray[cnt-1]; + resolveArray.removeIndex(cnt-1); + elem->resolve(); + } + /*size_t cnt = resolveArray.getCount(); + for ( size_t i =0; i < cnt; i++ ) { + resolveArray[i]->resolve(); + } + resolveArray.clear();*/ +} + +void +daeElement::resolve() +{ + if (_meta == NULL) + return; + + daeMetaAttributeRefArray& maa = _meta->getMetaAttributes(); + int n = (int)maa.getCount(); + int i; + for(i=0;iresolve(this); +} + +void +daeElement::setup(daeMetaElement* meta) +{ + if (_meta) + return; + _meta = meta; + if (meta->needsResolve()) + appendResolveElement((daeElement*)this); + daeMetaElement* intlibMeta = meta->getMetaIntegration(); + if (intlibMeta != NULL) + { + daeElementRef intObj = intlibMeta->create(); + intObj->ref(); //inc the ref count + _intObject = (daeIntegrationObject*)(daeElement*)intObj; + } + daeMetaAttributeRefArray& attrs = meta->getMetaAttributes(); + int macnt = (int)attrs.getCount(); + + int i; + for(i=0;igetDefault() != NULL) + attrs[i]->set(this, attrs[i]->getDefault()); + +#if 0 + // Setup resolvers to know their containers and thus their file context + daeMetaAttributePtrArray& resolvers = meta->getMetaResolvers(); + int racnt = resolvers.getCount(); + for(i=0;igetWritableMemory(this)))->_container = + this; +#endif +} + +daeElement::daeElement(): + _refCount(0), + _intObject(0), + _parent(NULL), + _document(NULL), + _meta(NULL), + _elementName(NULL) +{} + +daeElement::~daeElement() +{ + if (_intObject) + _intObject->release(); + + if (_elementName) { + delete[] _elementName; + _elementName = NULL; + } +} + +//function used until we clarify what's a type and what's a name for an element +daeString daeElement::getTypeName() const +{ + return _meta->getName(); +} +daeString daeElement::getElementName() const +{ + return _elementName; +} +void daeElement::setElementName( daeString nm ) { + if ( nm == NULL ) { + if ( _elementName ) delete[] _elementName; + _elementName = NULL; + return; + } + if ( !_elementName ) _elementName = new daeChar[128]; + strcpy( (char*)_elementName, nm ); +} + +daeString daeElement::getID() const +{ + if ((_meta == NULL) || (!_meta->getIDAttribute())) + return NULL; + else + return *(daeStringRef*)_meta->getIDAttribute()->getWritableMemory(const_cast(this)); +} + +void daeElement::getChildren( daeElementRefArray &array ) { + if (_meta->getContents() != NULL) { + daeMetaElementArrayAttribute *contents = _meta->getContents(); + for ( int i = 0; i < contents->getCount( this ); i++ ) { + array.append( *(daeElementRef*)contents->get( this, i ) ); + } + } + else + { + daeMetaElementAttributeArray &meas = _meta->getMetaElements(); + for(unsigned int i = 0; i < meas.getCount(); i++) { + for ( int c = 0; c < meas[i]->getCount( this ); c++ ) { + array.append( *(daeElementRef*)meas[i]->get( this, c ) ); + } + } + } +} + +daeSmartRef daeElement::clone(daeString idSuffix, daeString nameSuffix) { + //use the meta object system to create a new instance of this element + daeElementRef ret = _meta->create(); + ret->setElementName( getElementName() ); + //use meta system to copy attributes + daeMetaAttributeRefArray &attrs = _meta->getMetaAttributes(); + for ( unsigned int i = 0; i < attrs.getCount(); i++ ) { + //memcpy( attrs[i]->getWritableMemory( ret ), attrs[i]->getWritableMemory( this ), attrs[i]->getSize() ); + attrs[i]->copy( ret, this ); + } + if ( _meta->getValueAttribute() != NULL ) { + daeMetaAttribute *val = _meta->getValueAttribute(); + //memcpy( val->getWritableMemory( ret ), val->getWritableMemory( this ), val->getSize() ); + val->copy( ret, this ); + } + //use meta system to child elements + if ( _meta->getContents() != NULL ) { + daeMetaElementArrayAttribute *contents = _meta->getContents(); + for ( int i = 0; i < contents->getCount( this ); i++ ) { + ret->placeElement( (*(daeElementRef*)contents->get( this, i ))->clone(idSuffix, nameSuffix) ); + } + } + else { + daeMetaElementAttributeArray &meas = _meta->getMetaElements(); + for(unsigned int i = 0; i < meas.getCount(); i++) { + for ( int c = 0; c < meas[i]->getCount( this ); c++ ) { + ret->placeElement( (*(daeElementRef*)meas[i]->get( this, c ))->clone(idSuffix, nameSuffix) ); + } + } + } + //ret->ref(); //called because the cast to daeElement* releases a reference causing premature deletion + //mangle the id + daeMetaAttribute *id = _meta->getIDAttribute(); + if ( idSuffix != NULL && id != NULL ) { + daeChar str[2048]; + id->getType()->memoryToString( id->getWritableMemory( ret ), str, 2048 ); + if ( strcmp( str, "" ) ) { + strcat( str, idSuffix ); + } + id->getType()->stringToMemory( str, id->getWritableMemory( ret ) ); + } + //mangle the name + daeMetaAttribute *nm = _meta->getMetaAttribute("name"); + if ( nameSuffix != NULL && nm != NULL ) { + daeChar str[2048]; + nm->getType()->memoryToString( nm->getWritableMemory( ret ), str, 2048 ); + if ( strcmp( str, "" ) ) { + strcat( str, nameSuffix ); + } + nm->getType()->stringToMemory( str, nm->getWritableMemory( ret ) ); + } + //ret->_intObject = _intObject; + return ret; +} + +daeURI *daeElement::getDocumentURI() const { + if ( _document == NULL ) { + return NULL; + } + return _document->getDocumentURI(); +} diff --git a/Extras/COLLADA_DOM/src/dae/daeError.cpp b/Extras/COLLADA_DOM/src/dae/daeError.cpp new file mode 100644 index 000000000..124f89106 --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeError.cpp @@ -0,0 +1,45 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include + +typedef struct +{ + int errCode; + const char *errString; +} DAEERROR; + +static DAEERROR errorsArray[] = +{ + { DAE_OK, "Success" }, + { DAE_ERR_INVALID_CALL, "Invalid function call" }, + { DAE_ERR_FATAL, "Fatal" }, + { DAE_ERR_BACKEND_IO, "Backend IO" }, + { DAE_ERR_BACKEND_VALIDATION, "Backend validation" }, + { DAE_ERR_QUERY_SYNTAX, "Query syntax" }, + { DAE_ERR_QUERY_NO_MATCH, "Query no match" }, + { DAE_ERR_COLLECTION_ALREADY_EXISTS, "A document with the same name exists already" }, + { DAE_ERR_COLLECTION_DOES_NOT_EXIST, "No document is loaded with that name or index" }, + { DAE_ERR_NOT_IMPLEMENTED, "This function is not implemented in this reference implementation" }, +}; + +const char *daeErrorString(int errorCode) +{ + int iErrorCount = (int)(sizeof(errorsArray)/sizeof(DAEERROR)); + for (int i=0;i +#include + +daeErrorHandler *daeErrorHandler::_instance = NULL; +daeBool daeErrorHandler::_default = false; + +daeErrorHandler::daeErrorHandler() { +} + +daeErrorHandler::~daeErrorHandler() { + if (_instance != NULL && _default ) { + delete _instance; + _instance = 0; + } +} + +void daeErrorHandler::setErrorHandler( daeErrorHandler *eh ) { + if ( _instance != NULL && _default ) { + delete _instance; + } + _instance = eh; +} + +daeErrorHandler *daeErrorHandler::get() { + if ( _instance == NULL ) { + _instance = new stdErrPlugin(); + _default = true; + } + return _instance; +} diff --git a/Extras/COLLADA_DOM/src/dae/daeIDRef.cpp b/Extras/COLLADA_DOM/src/dae/daeIDRef.cpp new file mode 100644 index 000000000..a5c9b12af --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeIDRef.cpp @@ -0,0 +1,228 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include +daeIDRefResolverPtrArray daeIDRefResolver::_KnownResolvers; + +void +daeIDRef::initialize() +{ + id = NULL; + element = NULL; + container = NULL; +} + +daeIDRef::~daeIDRef() +{ + reset(); +} + +daeIDRef::daeIDRef() +{ + initialize(); + reset(); +} + +daeIDRef::daeIDRef(daeString IDRefString) +{ + initialize(); + setID(IDRefString); + validate(); +} + +daeIDRef::daeIDRef(daeIDRef& copyFrom) +{ + initialize(); + element = copyFrom.element; + setID(copyFrom.getID()); + state = copyFrom.state; +} + +void +daeIDRef::copyFrom(daeIDRef& copyFrom) +{ + element = copyFrom.element; + setID(copyFrom.getID()); + state = copyFrom.state; +} + +daeString emptyID = ""; + +void +daeIDRef::reset() +{ + if ((id != NULL) && (strcmp(id, emptyID) != 0)) + daeMemorySystem::free("idref",(void*)id); + + id = emptyID; +} + +daeString safeCreateID(daeString src) +{ + if (src == NULL) + return emptyID; + daeChar* ret = (daeChar*)daeMemorySystem::malloc("idref",strlen(src)+1); + if (ret == NULL) + return emptyID; + strcpy(ret,src); + + return ret; +} + +void +daeIDRef::setID(daeString _IDString) +{ + reset(); + + id = safeCreateID(_IDString); + + state = id_loaded; +} + +void +daeIDRef::print() +{ + fprintf(stderr,"id = %s\n",id); + fflush(stderr); +} + +daeString +daeIDRef::getID() const +{ + return id; +} + +void +daeIDRef::validate() +{ + state = id_pending; +} + +void +daeIDRef::resolveElement( daeString typeNameHint ) +{ + if (state == id_empty) + return; + + if (state == id_loaded) + validate(); + + daeIDRefResolver::attemptResolveElement(*((daeIDRef*)this), typeNameHint ); +} + +void +daeIDRef::resolveID() +{ + if (state == id_empty) { + if (element != NULL) + setID(element->getID()); + else + state = id_failed_invalid_reference; + } +} + +void +daeIDRefResolver::attemptResolveElement(daeIDRef& id, daeString typeNameHint) +{ + int i; + int cnt = (int)_KnownResolvers.getCount(); + + for(i=0;iresolveElement(id, typeNameHint)) + return; +} + +void +daeIDRefResolver::attemptResolveID(daeIDRef& id) +{ + int i,cnt = (int)_KnownResolvers.getCount(); + +// daeBool foundProtocol = false; + for(i=0;iresolveID(id)) + return; + +#if defined(_DEBUG) && defined(WIN32) + fprintf(stderr, + "daeIDRefResolver::attemptResolveID(%s) - failed\n", + id.getID()); +#endif + +} + +daeIDRefResolver::daeIDRefResolver() +{ + _KnownResolvers.append((daeIDRefResolver*)this); +} + +daeIDRefResolver::~daeIDRefResolver() +{ + _KnownResolvers.remove((daeIDRefResolver*)this); +} + + + +daeDefaultIDRefResolver::daeDefaultIDRefResolver(daeDatabase* database) +{ + _database = database; +} + +daeDefaultIDRefResolver::~daeDefaultIDRefResolver() +{ +} + +daeBool +daeDefaultIDRefResolver::resolveID(daeIDRef& id) +{ + (void)id; + return false; +} + +daeString +daeDefaultIDRefResolver::getName() +{ + return "DefaultIDRefResolver"; +} + +daeBool +daeDefaultIDRefResolver::resolveElement(daeIDRef& idref, daeString typeNameHint) +{ + if (idref.getState() == daeIDRef::id_loaded) + idref.validate(); + + daeElement* resolved = NULL; + int status; + + daeString id = idref.getID(); + + status = _database->getElement(&resolved,0,id,typeNameHint,NULL); + + idref.setElement( resolved ); + + if (status||(resolved==NULL)) { + idref.setState( daeIDRef::id_failed_id_not_found ); + fprintf(stderr, + "daeDefaultIDRefResolver::resolveElement() - failed to resolve %s\n", + idref.getID()); + fflush(stderr); + return false; + } + + idref.setState( daeIDRef::id_success ); + return true; +} + + + + diff --git a/Extras/COLLADA_DOM/src/dae/daeMemorySystem.cpp b/Extras/COLLADA_DOM/src/dae/daeMemorySystem.cpp new file mode 100644 index 000000000..ec902a3ad --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeMemorySystem.cpp @@ -0,0 +1,34 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +//#include + +daeRawRef +daeMemorySystem::malloc(daeString pool, size_t n) +{ + (void)pool; + void *mem = ::malloc(n); +// memset(mem,0,n); +// printf("alloc[%s] - %d = 0x%x\n",pool,n,mem); + return (daeRawRef)mem; +} + +void +daeMemorySystem::free(daeString pool, daeRawRef mem) +{ + (void)pool; +// printf("free[%s] - 0x%x\n",pool,mem); + ::free(mem); +} + diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaAttribute.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaAttribute.cpp new file mode 100644 index 000000000..ae280d427 --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeMetaAttribute.cpp @@ -0,0 +1,361 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeStringRefArrayArray daeMetaAttribute::_NameBindings; +daeMetaAttributeRefArray daeMetaAttribute::_FactoryTemplates; + +void +daeMetaAttribute::set(daeElement* e, daeString s) +{ + if( _type->getTypeEnum() == daeAtomicType::FloatType || _type->getTypeEnum() == daeAtomicType::DoubleType ) { + if ( strcmp(s, "NaN") == 0 ) { + fprintf(stderr, "NaN encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); + fflush(stderr); + } + else if ( strcmp(s, "INF") == 0 ) { + fprintf(stderr, "INF encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); + fflush(stderr); + } + } + _type->stringToMemory((char*)s, getWritableMemory(e)); + _isValid=true; +} + +void daeMetaElementAttribute::set(daeElement* e, daeString s) +{ + //_type->stringToMemory((char*)s, getWritableMemory(e)); + daeElementRef *ref = (daeElementRef*)(getWritableMemory(e)); + if ((*ref) == NULL) { + (*ref) = _elementType->create(); + } + (*ref)->getMeta()->getValueAttribute()->set((*ref), s); + _isValid=true; +} + +void daeMetaAttribute::copy(daeElement* to, daeElement *from) { + daeChar str[4096]; + _type->memoryToString( getWritableMemory(from), str, 2048 ); + _type->stringToMemory( str, getWritableMemory( to ) ); + //memcpy( getWritableMemory( to ), getWritableMemory( from ), getSize() ); + _isValid=true; +} + +void +daeMetaArrayAttribute::set(daeElement* e, daeString s) +{ + if( _type->getTypeEnum() == daeAtomicType::FloatType || _type->getTypeEnum() == daeAtomicType::DoubleType ) { + if ( strcmp(s, "NaN") == 0 ) { + fprintf(stderr, "NaN encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); + fflush(stderr); + } + else if ( strcmp(s, "INF") == 0 ) { + fprintf(stderr, "INF encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); + fflush(stderr); + } + } + daeArray* array = (daeArray*)getWritableMemory(e); + daeInt typeSize = _type->getSize(); + daeInt cnt = (daeInt)array->getCount(); + array->setRawCount(++cnt); + _type->stringToMemory((char*)s, array->getRawData()+(cnt-1)*typeSize); + _isValid=true; +} + +void daeMetaArrayAttribute::copy(daeElement* to, daeElement *from) { + daeArray* toArray = (daeArray*)getWritableMemory(to); + daeArray* fromArray = (daeArray*)getWritableMemory(from); + daeInt typeSize = _type->getSize(); + daeInt cnt = (daeInt)fromArray->getCount(); + toArray->setRawCount( cnt ); + //memcpy( toArray->getRawData(), fromArray->getRawData(), cnt * typeSize ); + daeChar *toData = toArray->getRawData(); + daeChar *fromData = fromArray->getRawData(); + daeChar str[4096]; + for ( int i = 0; i < cnt; i++ ) { + _type->memoryToString( fromData+i*typeSize, str, 2048 ); + _type->stringToMemory( str, toData+i*typeSize ); + } +} + + +void daeMetaElementAttribute::copy(daeElement* to, daeElement *from) { + daeElement *cpy = (*(daeElementRef*)(getWritableMemory(from)))->clone(); + (*(daeElementRef*)(getWritableMemory(to))) = cpy; +} +void daeMetaElementArrayAttribute::copy(daeElement* to, daeElement *from) { + (void)to; + (void)from; +} + +daeMetaElementArrayAttribute::daeMetaElementArrayAttribute() +{ +} + +void +daeMetaElementAttribute::placeElement(daeElement* parent, daeElement* child) +{ + if (parent == NULL) + return; + + daeElementRef* er = (daeElementRef*)getWritableMemory(parent); + *er = child; +} + +void +daeMetaElementArrayAttribute::placeElement(daeElement* parent, + daeElement* child) +{ + if ((parent == NULL)||(child == NULL)) + return; + + daeElementRefArray* era = (daeElementRefArray*)getWritableMemory(parent); + era->append(child); +} +// !!!GAC added for testing 7/8/05 +// These are the opposite of the placeElement functions above +void +daeMetaElementAttribute::removeElement(daeElement* parent, daeElement* child) +{ + (void)child; // silence unused variable warning + + if (parent == NULL) + return; + + daeElementRef* er = (daeElementRef*)getWritableMemory(parent); + *er = NULL; +} + +void +daeMetaElementArrayAttribute::removeElement(daeElement* parent, + daeElement* child) +{ + if ((parent == NULL)||(child == NULL)) + return; + + daeElementRefArray* era = (daeElementRefArray*)getWritableMemory(parent); + era->remove(child); +} + +void +daeMetaElementAttribute::setDocument( daeElement * parent, daeDocument* c ) +{ + daeElementRef* er = (daeElementRef*)getWritableMemory( parent ); + if ( ((daeElement*)(*er)) != NULL ) { + (*er)->setDocument( c ); + } +} + +void +daeMetaElementArrayAttribute::setDocument( daeElement * parent, daeDocument* c ) +{ + daeElementRefArray* era = (daeElementRefArray*)getWritableMemory( parent ); + for ( unsigned int i = 0; i < era->getCount(); i++ ) { + era->get(i)->setDocument( c ); + } +} + +daeInt +daeMetaElementAttribute::getCount(daeElement* e) +{ + if (e == NULL) + return 0; + return ((*((daeElementRef*)getWritableMemory(e))) != NULL); +} + +daeMemoryRef +daeMetaElementAttribute::get(daeElement *e, daeInt index) +{ + (void)index; + return getWritableMemory(e); +} + +daeInt +daeMetaElementArrayAttribute::getCount(daeElement *e) +{ + if (e == NULL) + return 0; + daeElementRefArray* era = (daeElementRefArray*)getWritableMemory(e); + if (era == NULL) + return 0; + return (daeInt)era->getCount(); +} + +daeMemoryRef +daeMetaElementArrayAttribute::get(daeElement* e, daeInt index) +{ + if (e == NULL) + return NULL; + daeElementRefArray* era = (daeElementRefArray*)getWritableMemory(e); + if (era == NULL || index >= (daeInt)era->getCount() ) + return NULL; + return (daeMemoryRef)&(era->get(index)); +} + +void +daeMetaAttribute::InitializeKnownTypes() +{ + daeInt index; + index = (daeInt)_FactoryTemplates.append(new daeMetaAttribute); + _NameBindings[index].append("int"); + _NameBindings[index].append("float"); + _NameBindings[index].append("string"); + _NameBindings[index].append("enum"); + + index = (daeInt)_FactoryTemplates.append(new daeMetaArrayAttribute); + _NameBindings[index].append("ListOfFloats"); + _NameBindings[index].append("ListOfInts"); + _NameBindings[index].append("ListOfTokens"); + + index = (daeInt)_FactoryTemplates.append(new daeMetaElementAttribute); + _NameBindings[index].append("xs:element"); + + index = (daeInt)_FactoryTemplates.append(new daeMetaElementArrayAttribute); + _NameBindings[index].append("element"); + + //index = (daeInt)_FactoryTemplates.append(new daeMetaEnumAttribute); + //_NameBindings[index].append("__enum"); +} + +daeMetaAttributeRef +daeMetaAttribute::Factory(daeStringRef xmlTypeName) +{ + unsigned int i; + for(i=0;i<_FactoryTemplates.getCount();i++) { + + daeStringRefArray& nameBindings = _NameBindings[i]; + int count = (int)nameBindings.getCount(); + int j; + for(j=0;jclone(); + } + + return NULL; +} + +daeMetaAttributeRef +daeMetaAttribute::clone() +{ + return new daeMetaAttribute; +} + +daeMetaAttributeRef +daeMetaArrayAttribute::clone() +{ + return new daeMetaArrayAttribute; +} +//daeMetaAttributeRef +//daeMetaEnumAttribute::clone() +//{ +// return new daeMetaEnumAttribute; +//} + +daeMetaElementAttribute::daeMetaElementAttribute() +{ + _minOccurs = 1; + _maxOccurs = 1; + _isInChoice = false; + _isInSequence = false; + //_ref = "noref"; + _previousInSequence = NULL; + _elementType = NULL; +} + +daeMetaAttributeRef +daeMetaElementAttribute::clone() +{ + return new daeMetaElementAttribute; +} + +daeMetaAttributeRef +daeMetaElementArrayAttribute::clone() +{ + return new daeMetaElementArrayAttribute; +} + +//daeMetaEnumAttribute::daeMetaEnumAttribute() +//{ +//} + +daeMetaAttribute::daeMetaAttribute() +{ + _name = "noname"; + _offset = -1; + _type = NULL; + _container = NULL; + _default = NULL; + _isValid = false; + _isRequired = false; +} + +void +daeMetaAttribute::resolve(daeElementRef element) +{ + if (_type != NULL) + _type->resolve(element, this); +} + +daeInt +daeMetaAttribute::getSize() +{ + return _type->getSize(); +} +daeInt +daeMetaAttribute::getAlignment() +{ + return _type->getAlignment(); +} + +//!!!ACL 10-18 +daeInt +daeMetaAttribute::getCount(daeElement* e) +{ + if (e == NULL) + return 0; + return (getWritableMemory(e) != NULL); +} + +daeMemoryRef +daeMetaAttribute::get(daeElement *e, daeInt index) +{ + (void)index; + return getWritableMemory(e); +} + +daeInt +daeMetaArrayAttribute::getCount(daeElement *e) +{ + if (e == NULL) + return 0; + daeArray* era = (daeArray*)getWritableMemory(e); + if (era == NULL) + return 0; + return (daeInt)era->getCount(); +} + +daeMemoryRef +daeMetaArrayAttribute::get(daeElement* e, daeInt index) +{ + if (e == NULL) + return NULL; + daeArray* era = (daeArray*)getWritableMemory(e); + if (era == NULL || index >= (daeInt)era->getCount() ) + return NULL; + return era->getRawData()+(index*era->getElementSize()); +} +//****************************************************** diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaElement.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaElement.cpp new file mode 100644 index 000000000..a1bfefe9b --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeMetaElement.cpp @@ -0,0 +1,291 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include +#include + +daeMetaElementRefArray daeMetaElement::_metas; + +daeElementRef +daeMetaElement::create() +{ +#if defined(_DEBUG) && defined(WIN32) + if (_createFunc == NULL) + return NULL; +#endif + daeElementRef ret = (*_createFunc)(_elementSize); + ret->setup(this); + + return ret; +} + +daeMetaElement* +daeMetaElement::findChild(daeString s) +{ + if (s != NULL) { + if ( strcmp( _name, s) == 0 ) { + return this; + } + int n = (int)_metaElements.getCount(); + int i; + for(i=0;i_elementType; + + if ((me == NULL) || ((daeString)(me->_name) == NULL)) + continue; + + if (strcmp(me->_name,s)==0) + return me; + + if (strcmp(_metaElements[i]->getName(),s)==0) + return me; + } + //!!!ACL Added for testing complex types and groups + for( i =0; i < (int)_otherChildren.getCount(); i++ ) { + if ( strcmp( _otherChildren[i], s) == 0 ) { + daeMetaElementAttribute *mea = _otherChildrenContainer[i]; + daeMetaElement *me = mea->getElementType(); + return me->findChild(s); + } + } + } + return NULL; +} + +daeElementRef +daeMetaElement::create(daeString s) +{ + daeMetaElement* me = findChild(s); + if (me != NULL) { + daeElementRef ret = me->create(); + if ( strcmp(s, me->getName() ) != 0 ) { + ret->setElementName(s); + } + return ret; + } + if ( getAllowsAny() ) { + daeElementRef ret = domAny::registerElement()->create(); + ret->setElementName(s); + return ret; + } + return NULL; +} + +daeMetaElement * +daeMetaElement::getChildMetaElement(daeString s) +{ + int n = (int)_metaElements.getCount(); + int i; + for(i=0;i_elementType->_name,s)==0) + return _metaElements[i]->_elementType; + } + return NULL; +} + +daeMetaElementAttribute * +daeMetaElement::getChildMetaElementAttribute(daeString s) +{ + int n = (int)_metaElements.getCount(); + int i; + for(i=0;i_elementType->_name,s)==0) + return _metaElements[i]; + } + return NULL; +} + +#define defMAEA(class,maename) \ +{ \ +defMetaAttributeElement* maea = new daeMetaAttributeArrayElement; \ +maea-> + +#define defME(class, name) \ + daeMetaElement* parent = active; \ + daeMetaElement* active = new daeMetaElement; \ + active->_name = "##name##"; \ + active->_elementSize = sizeof( class ); \ + if (parent != NULL) \ + parent->appendElement(active, daeOffsetOf( parent, name )); + + +#define defMA(class,matype,maname) \ +{ \ +daeMetaAttribute* ma = new daeMetaAttribute; \ +ma->_name = "##maname##";\ +ma->_type = daeAtomicType::get("##matype##");\ +ma->_offset = daeOffsetOf( class , _##maname );\ +ma->_container = active; \ +active->appendAttribute(ma); \ +} + +daeMetaElement* daeMetaElement::_Schema = NULL; + +void +daeMetaElement::initializeSchemaMeta() +{ +} + +daeMetaElement::daeMetaElement() +{ + _name = "noname"; + _createFunc = NULL; + _minOccurs = 1; + _maxOccurs = 1; + _ref = "none"; + _isSequence = false; + _isChoice = false; + _needsResolve = false; + _elementSize = sizeof(daeElement); + _metaValue = NULL; + _metaContents = NULL; + _metaIntegration = NULL; + _metaID = NULL; + _parent = NULL; + _staticPointerAddress = NULL; + _isTrackableForQueries = true; + _usesStringContents = false; + _isTransparent = false; + _isAbstract = false; + _allowsAny = false; + _metas.append(this); +} + +daeMetaElement::~daeMetaElement() +{ + if (_metaContents) + delete _metaContents; + if (_staticPointerAddress != NULL) + *_staticPointerAddress = NULL; +} + +void +daeMetaElement::addContents(daeInt offset) +{ + daeMetaElementArrayAttribute* meaa = new daeMetaElementArrayAttribute; + meaa->setType(daeAtomicType::get("element")); + meaa->setName("contents"); + meaa->setOffset(offset); + meaa->setContainer( this); + meaa->setElementType( daeElement::getMeta() ); + _metaContents = meaa; +} + + +void +daeMetaElement::appendArrayElement(daeMetaElement* element, daeInt offset, daeString name) +{ + daeMetaElementArrayAttribute* meaa = new daeMetaElementArrayAttribute; + meaa->setType(daeAtomicType::get("element")); + if ( name ) { + meaa->setName(name); + } + else { + meaa->setName(element->getName()); + } + meaa->setOffset(offset); + meaa->setContainer(this); + meaa->setElementType( element); + _metaElements.append(meaa); + element->_parent = this; +} +void +daeMetaElement::appendElement(daeMetaElement* element, daeInt offset, daeString name) +{ + daeMetaElementAttribute* meaa = new daeMetaElementAttribute; + meaa->setType(daeAtomicType::get("element")); + if ( name ) { + meaa->setName(name); + } + else { + meaa->setName(element->getName()); + } + meaa->setOffset( offset); + meaa->setContainer( this ); + meaa->setElementType( element ); + _metaElements.append(meaa); + element->_parent = this; +} + +void +daeMetaElement::appendAttribute(daeMetaAttribute* attr) +{ + if (attr == NULL) + return; + + if (strcmp(attr->getName(),"_value") == 0) { + _usesStringContents = attr->getType()->getUsesStrings(); + + _metaValue = attr; + } + else + _metaAttributes.append(attr); + + if ((attr->getType() != NULL) && + ((strcmp(attr->getType()->getTypeString(),"resolver")==0)|| + (strcmp(attr->getType()->getTypeString(),"idref_resolver")==0))) { + _resolvers.append(attr); + _needsResolve = true; + } + + if ((attr->getName() != NULL) && + (strcmp(attr->getName(),"id") == 0)) { + _metaID = attr; + _isTrackableForQueries = true; + } +} + +void +daeMetaElement::validate() +{ + if (_createFunc == NULL) + _createFunc = DAECreateElement; + if (_elementSize == 0) + { + daeInt place=0; + unsigned int i; + for(i=0;i<_metaAttributes.getCount();i++) { + place += _metaAttributes[i]->getSize(); + int align = _metaAttributes[i]->getAlignment(); + place += align; + place &= (~(align-1)); + } + _elementSize = place; + } +} + +daeMetaAttribute* +daeMetaElement::getMetaAttribute(daeString s) +{ + int cnt = (int)_metaAttributes.getCount(); + int i; + for(i=0;igetName(),s) == 0) + return _metaAttributes[i]; + return NULL; +} + + +void daeMetaElement::releaseMetas() +{ + _metas.clear(); +} + +void daeMetaElement::appendPossibleChild( daeString name, daeMetaElementAttribute* cont, daeString type ) { + _otherChildren.append( name ); + _otherChildrenContainer.append( cont ); + if ( type ) _otherChildrenTypes.append( type ); + else _otherChildrenTypes.append( "" ); +} + diff --git a/Extras/COLLADA_DOM/src/dae/daeStringRef.cpp b/Extras/COLLADA_DOM/src/dae/daeStringRef.cpp new file mode 100644 index 000000000..68fcc6fd0 --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeStringRef.cpp @@ -0,0 +1,34 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include + +daeStringTable daeStringRef::_stringTable; + +daeStringRef::daeStringRef(daeString string) +{ + _string = _stringTable.allocString(string); +} + +const daeStringRef& +daeStringRef::set(daeString string) +{ + _string = _stringTable.allocString(string); + return *this; +} + +const daeStringRef& +daeStringRef::operator= (daeString string) +{ + return set(string); +} diff --git a/Extras/COLLADA_DOM/src/dae/daeStringTable.cpp b/Extras/COLLADA_DOM/src/dae/daeStringTable.cpp new file mode 100644 index 000000000..4b7e9bfdc --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeStringTable.cpp @@ -0,0 +1,76 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include + +daeStringTable::daeStringTable(int stringBufferSize):_stringBufferSize(stringBufferSize) +{ + //allocate initial buffer + allocateBuffer(); +} + +daeString daeStringTable::allocateBuffer() +{ + daeString buf = new daeChar[_stringBufferSize]; + _stringBuffersList.append(buf); + _stringBufferIndex = 0; + return buf; +} + +daeString daeStringTable::allocString(daeString string) +{ + size_t stringSize = strlen(string) + 1; + size_t sizeLeft = _stringBufferSize - _stringBufferIndex; + daeString buf; + if (sizeLeft < stringSize) + { + buf = allocateBuffer(); + } + else + { + buf = _stringBuffersList.get((daeInt)_stringBuffersList.getCount()-1); + } + daeChar *str = (char*)buf + _stringBufferIndex; + memcpy(str,string,stringSize); + _stringBufferIndex += stringSize; + + int align = sizeof(void*); + _stringBufferIndex = (_stringBufferIndex+(align-1)) & (~(align-1)); + + //assert +#if defined(_DEBUG) && defined(WIN32) + if (_stringBufferIndex>_stringBufferSize) + { + //error the size of the buffer is not aligned, + //or there is an internal error + assert(0); + return NULL; + } +#endif + + return str; +} + +void daeStringTable::clear() +{ + unsigned int i; + for (i=0;i<_stringBuffersList.getCount();i++) +#if _MSC_VER <= 1200 + delete [] (char *) _stringBuffersList[i]; +#else + delete [] _stringBuffersList[i]; +#endif + + _stringBuffersList.clear(); + _stringBufferIndex = 0; +} diff --git a/Extras/COLLADA_DOM/src/dae/daeURI.cpp b/Extras/COLLADA_DOM/src/dae/daeURI.cpp new file mode 100644 index 000000000..847e07916 --- /dev/null +++ b/Extras/COLLADA_DOM/src/dae/daeURI.cpp @@ -0,0 +1,1178 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include +#include + +#ifdef _WIN32 +#include // for getcwd (windows) +#else +#include // for getcwd (linux) +#endif + +daeString safeCreate(daeString src); +void safeDelete(daeString src); +daeString findCharacterReverse(daeString string, daeChar stopChar); + +daeURIResolverPtrArray daeURIResolver::_KnownResolvers; + +static daeURI ApplicationURI(1); +daeString empty = ""; + +void +daeURI::setBaseURI(daeURI& uri) +{ + ApplicationURI.reset(); + ApplicationURI.setURI(uri.getURI()); +} + +daeURI* +daeURI::getBaseURI() +{ + return &ApplicationURI; +} + +void +daeURI::initialize() +{ + // Initialize a URI to it's empty state, same as daeURI::reset but also clears out "container" + + uriString = empty; + originalURIString = empty; + protocol = empty; + authority = empty; + filepath = empty; + file = empty; + id = empty; + extension = empty; + state = uri_empty; + element = NULL; + container = NULL; + external = false; +} + +daeURI::~daeURI() +{ + reset(); +} + +daeURI::daeURI() +{ + initialize(); +// reset(); // No need to call reset in the constructor, initialize does the same thing. +} +daeURI::daeURI(int dummy) +{ + (void)dummy; + // This constructor builds a base URI from the current working directory + // This should work for windows or linux + // !!!GAC the buffers should probably be bigger + char buffer[1024], *b1; + strcpy(buffer, "file:///"); +#ifdef NO_GETCWD + // The platform has no getcwd call, so leave the value as file:/// +#else + #ifdef _WIN32 + // Windows getcwd always returns a path beginning with a drive letter, so we add file:/// to the beginning + getcwd(&buffer[8],1024-8); + #else + // Linux getcwd always returns a path beginning with a slash, so we add file:// to the beginning + getcwd(&buffer[7],1024-7); + #endif +#endif + // If the path contains windows backslashes, flip them to forward slashes + for(b1 = buffer;*b1 != 0;b1++) + { + if(*b1 == '\\') + { + *b1 = '/'; + } + } + // The path must end in a slash or the last part of it will be taken as a filename + if(*(b1-1) != '/') + { + *(b1++) = '/'; + } + *b1 = '\0'; + initialize(); + setURI(buffer); + validate(); +} +daeURI::daeURI(daeString uriString, daeBool nofrag) +{ + initialize(); + // !!!GAC this is inefficient as hell, but was the best way to isolate this functionality till the + // !!!GAC daeURI class can be written to support modifying URIs better (should be possible to make a URI, + // !!!GAC change any member and have getURI return the proper const string URI) + if(nofrag) + { + // Strip off the fragment part before constructing the URI + daeString temp = safeCreate(uriString); + daeChar* fragment = (daeChar*)findCharacterReverse(temp, '#'); + if(fragment) + { + *fragment = 0; + } + setURI(temp); + safeDelete(temp); + } + else + { + // Generate the URI without changing the string + setURI(uriString); + } + if(nofrag) + validate(); +} +daeURI::daeURI(daeURI& baseURI, daeString uriString) +{ + initialize(); + setURI(uriString); + validate(&baseURI); +} +daeURI::daeURI(daeURI& copyFrom) +{ + initialize(); + setURI(copyFrom.getOriginalURI()); + element = copyFrom.element; // !!!GAC SetURI immediately clears element so we must do this after + state = copyFrom.state; +} +void +daeURI::copyFrom(daeURI& copyFrom) +{ + setURI(copyFrom.getOriginalURI()); + element = copyFrom.element; // !!!GAC SetURI immediately clears element so we must do this after + state = copyFrom.state; + // !!!GAC Should there be a call to validate in here? +} +void +daeURI::reset() +{ + // Free up any allocated memory + + if (uriString != NULL) + safeDelete(uriString); + + if (originalURIString != NULL) + safeDelete(originalURIString); + + if (protocol != NULL) + safeDelete(protocol); + + if (authority != NULL) + safeDelete(authority); + + if (filepath != NULL) + safeDelete(filepath); + + if (file != NULL) + safeDelete(file); + + if (id != NULL) + safeDelete(id); + + if (extension != NULL) + safeDelete(extension); + + // Set everything to the empty string + + uriString = empty; + originalURIString = empty; + protocol = empty; + authority = empty; + filepath = empty; + file = empty; + id = empty; + extension = empty; + + state = uri_empty; + element = NULL; +// container = NULL; // !!!GAC don't want to clear this, our container doesn't change once it's set +} +daeString +findCharacterReverse(daeString string, daeChar stopChar) +{ + if (string == NULL) + return NULL; + daeString cur = string + strlen(string)-1; + while((cur >= string) && (*cur != stopChar)) + cur--; + + if ((cur >= string) && (*cur == stopChar)) + return cur; + + return NULL; +} +daeString +findCharacter(daeString string, daeChar stopChar) +{ + if (string == NULL) + return NULL; + daeString end = string + strlen(string); + daeString cur = string; + while((*cur != stopChar) && (cur < end)) + cur++; + + if (*cur == stopChar) + return cur; + + return NULL; +} +daeString safeCreate(daeString src) +{ + if (src == NULL) + return empty; + daeChar* ret = (daeChar*)daeMemorySystem::malloc("uri",strlen(src)+1); + if (ret == NULL) + return empty; + strcpy(ret,src); + + return ret; +} +void safeDelete(daeString src) +{ + if(src != empty) + { + daeMemorySystem::free("uri",(void*)src); + src = empty; + } + +} +void +daeURI::setURI(daeString _URIString) +{ + originalURIString = safeCreate(_URIString); + internalSetURI(_URIString); +} +daeChar *validScheme(daeString uri_string) +{ + // attempt to find a valid scheme in a string + // Failure to find a scheme returns a NULL, success returns the position of the terminating : + + // First character must be alpha, fail if it's not + if(!isalpha(*uri_string)) + return(NULL); + + // Advance to the next character + uri_string++; + + // Scheme must be at least two (valid) characters long, so go through this loop at least once + do + { + // If the character is NOT alpha, digit, +, - or . then this isn't a valid scheme + // Note this also fails if we encounter a null terminator before hitting the first : + if(!(isalpha(*uri_string) || isdigit(*uri_string) || *uri_string == '.' || *uri_string == '+' || *uri_string == '-')) + return(NULL); + uri_string++; + } while(*uri_string != ':' ); + + return((daeChar *)uri_string); +} +void +daeURI::internalSetURI(daeString _URIString) +{ + daeChar* tmp; + + // Store the originalURI so you can fix it post Reset + daeString oURI = originalURIString; + originalURIString = empty; + + // Reset everything + reset(); + + // Fix original URI String + originalURIString = oURI; + + uriString = safeCreate(_URIString); + + tmp = (daeChar*)daeMemorySystem::malloc("tmp",strlen(_URIString)+1); + if ((uriString == empty)||(tmp == NULL)) + return; + strcpy(tmp,uriString); + + daeChar* curSrc = tmp; + +#if 1 + // Check for a scheme, two or more characters followed by a : + +// daeChar* colon = (daeChar*)findCharacter(curSrc,':'); + + daeChar* colon = validScheme(curSrc); + +// if(colon && (colon-tmp >= 2 )) + if(colon) + { + // Found a scheme, remember it (protocol should be named scheme) + *colon = '\0'; + protocol = safeCreate(curSrc); + // Advance the current pointer past the colon + curSrc = colon+1; + } + + // Check for a net path containing an authority, this would begin with // + + if(curSrc[0] == '/' && curSrc[1] == '/') + { + // Advance past the double slash to where the authority would start, then find the next slash + curSrc = curSrc + 2; + daeChar* slash = (daeChar*)findCharacter(curSrc,'/'); + // Temporarily remove that slash (avoids some branches) + if ( slash != NULL ) { + *slash = '\0'; + } + // Save the text between the slashes as the authority + authority = safeCreate(curSrc); + // Put the slash back and advance the current pointer to it, this puts us at the start of the path + if (slash != NULL ) { + *slash = '/'; + curSrc = slash; + } + } + + // Search backwards from the end of the URI for the # which denotes the fragment (called ID here) + daeChar* idSymbol = (daeChar*)findCharacterReverse(curSrc,'#'); + if (idSymbol != NULL) + { + // There was a fragment, isolate it by changing the # to a null + *idSymbol = '\0'; + idSymbol++; + } + id = safeCreate(idSymbol); + + // Search backwards for the last / in the path, everything after is the filename + + daeChar* fname = (daeChar*)findCharacterReverse(curSrc,'/'); + daeChar* dir; + if (fname == NULL) + { + // No / found, so the whole thing is the file name and there is no path + fname = curSrc; + dir = NULL; + } + else + { + // Found a slash, so the filename starts after it and dir starts at curSrc + fname++; + dir = curSrc; + } + file = safeCreate(fname); + + // Pull the extension (if any) off of the filepath + + daeString extStr = findCharacterReverse(fname,'.'); + if (extStr != NULL) + extension = safeCreate(extStr+1); + + // Now pull off the directory path if it exists by putting a zero at the beginning of fname, this insures filepath will end in a slash + + if(fname != NULL) *fname = 0; + filepath = safeCreate(dir); + + state = uri_loaded; + daeMemorySystem::free("tmp",tmp); + +#else + daeBool isAbsolute; + daeChar* colon = (daeChar*)findCharacter(curSrc,':'); + + // IS ABSOLUTE REFERENCE + if (colon && (strlen(colon) > 2) && (colon[1] == '/') && (colon[2] == '/')) + { + *colon = '\0'; + protocol = safeCreate(curSrc); + curSrc = colon+3; + daeString hosttmp = curSrc; + daeChar* slash = (daeChar*)findCharacter(curSrc,'/'); + if (slash != NULL) + { + *slash = '\0'; + authority = safeCreate(hosttmp); + curSrc = slash+1; + } + isAbsolute = true; + } + else { + protocol = empty; + isAbsolute = false; + } + + // Look for the # which denotes the fragment (called ID here) + daeChar* idSymbol = (daeChar*)findCharacterReverse(curSrc,'#'); + if (idSymbol != NULL) + { + // There was a fragment, isolate it by changing the # to a null + *idSymbol = '\0'; + idSymbol++; + } + + daeChar* dir = NULL; + daeChar* fname = (daeChar*)findCharacterReverse(curSrc,'/'); + if (fname == NULL) + fname = curSrc; + else { + *fname = '\0'; + fname++; + dir = curSrc; + } + + filepath = safeCreate(dir); + int dirLen = (int)strlen(filepath); + + // append a '/' + if ((filepath != empty) && (dirLen > 0) && + (filepath[dirLen-1] != '/')) { + daeMemorySystem::free("uri",(void*)filepath); + filepath = (daeString)daeMemorySystem::malloc("uri", dirLen+2); + strcpy((daeChar*)filepath,dir); + *((daeChar*)filepath+dirLen) = '/'; + *((daeChar*)filepath+dirLen+1) = '\0'; + } + + file = safeCreate(fname); + id = safeCreate(idSymbol); + + daeString extStr = findCharacterReverse(fname,'.'); + if (extStr != NULL) + extension = safeCreate(extStr+1); + + state = uri_loaded; + daeMemorySystem::free("tmp",tmp); +#endif +} + +void +daeURI::print() +{ + fprintf(stderr,"URI(%s)\n",uriString); + fprintf(stderr,"protocol = %s\n",protocol); + fprintf(stderr,"authority = %s\n",authority); + fprintf(stderr,"path = %s\n",filepath); + fprintf(stderr,"file = %s\n",file); + fprintf(stderr,"id = %s\n",id); + fprintf(stderr,"URI without base = %s\n",originalURIString); + fflush(stderr); +} + +const char* protoString = "://"; +const char* hostString = "/"; +const char* queryString = "#"; +const char* filepathString = "/"; + +daeString +daeURI::getURI() const +{ + return uriString; +} + +daeString +daeURI::getOriginalURI() const +{ + return originalURIString; +} + +void +daeURI::validate(daeURI* baseURI) +{ + // If no base URI was supplied, get the application base and use it + if (baseURI == NULL) + { + if ( container == NULL || (baseURI = container->getDocumentURI()) == NULL ) { + baseURI = getBaseURI(); + } + if (this == baseURI ) { + return; + } + } + +#if 1 + // This is rewritten according to the updated rfc 3986 + if((protocol != NULL) && (strlen(protocol)>0)) // if defined(R.scheme) then + { + // Everything stays the same except path which we normalize + // T.scheme = R.scheme; + // T.authority = R.authority; + // T.path = remove_dot_segments(R.path); + // T.query = R.query; + normalizeURIPath((char *)filepath); + if ( (file == NULL) || (strlen(file)==0) ) { + //safeDelete(file); + //safeDelete(extension); + //file = safeCreate(baseURI->file); + //extension = safeCreate(baseURI->extension); + } + } + else + { + if((authority != NULL) && (strlen(authority)>0)) // if defined(R.authority) then + { + // Authority and query stay the same, path is normalized + // T.authority = R.authority; + // T.path = remove_dot_segments(R.path); + // T.query = R.query; + normalizeURIPath((char *)filepath); + if ( (file == NULL) || (strlen(file)==0) ) { + //safeDelete(file); + //safeDelete(extension); + //file = safeCreate(baseURI->file); + //extension = safeCreate(baseURI->extension); + } + } + else + { + if(((filepath == NULL) || (strlen(filepath)==0)) && ((file == NULL) || (strlen(file)==0))) // if (R.path == "") then + { + // T.path = Base.path; + safeDelete(filepath); + safeDelete(file); + safeDelete(extension); + filepath = safeCreate(baseURI->filepath); + file = safeCreate(baseURI->file); + extension = safeCreate(baseURI->extension); + // We don't handle querys, but if we did + //if defined(R.query) then + // T.query = R.query; + //else + // T.query = Base.query; + //endif; + } + else + { + if((filepath != NULL) && (*filepath == '/')) //if (R.path starts-with "/") then + { + // T.path = remove_dot_segments(R.path); + normalizeURIPath((char *)filepath); + } + else + { + //T.path = merge(Base.path, R.path); + daeChar* newPath; + if((strlen(baseURI->authority) != 0) && (strlen(baseURI->filepath)==0) && (strlen(baseURI->file) == 0)) //authority defined, path empty + { + newPath = (daeChar*)daeMemorySystem::malloc("uri", strlen(filepath) + 2); + *newPath = '/'; + *(newPath+1) = 0; + strcat(newPath,filepath); + } + else + { + newPath = (daeChar*)daeMemorySystem::malloc("uri", strlen(baseURI->filepath) + strlen(filepath) + 1); + *newPath = 0; + strcat(newPath,baseURI->filepath); + strcat(newPath,filepath); + } + //T.path = remove_dot_segments(T.path); + normalizeURIPath(newPath); + safeDelete(filepath); + filepath = newPath; + } + // T.query = R.query; + } + // T.authority = Base.authority; + safeDelete(authority); + authority = safeCreate(baseURI->authority); + } + // T.scheme = Base.scheme; + safeDelete(protocol); + protocol = safeCreate(baseURI->protocol); + } + // T.fragment = R.fragment; + + // Now for the purpose of maintaining the class members, we reassemble all this into a string version of the URI + daeChar* newURI = (daeChar*) + daeMemorySystem::malloc( + "uri", + strlen(protocol) + // really scheme + 1 + // space for ":" + strlen(authority) + // really authority + 2 + // space for "//" + strlen(filepath) + // path without the filename + strlen(file) + // filename part of the path + strlen(queryString) + // "#" + strlen(id) + // really fragment + 1); // terminating zero + *newURI = 0; + + if(protocol != NULL && *protocol != 0) + { + strcat(newURI, protocol); + strcat(newURI, ":"); + } + strcat(newURI, "//"); + if(authority != NULL && *authority != 0) + { + strcat(newURI, authority); + } + if(filepath != NULL) + strcat(newURI, filepath); + if(file != NULL) + strcat(newURI, file); + + if(id != NULL && *id != 0) + { + strcat(newURI,"#"); + strcat(newURI,id); + } + // This becomes the new uriString, no need to call internalSetUri because all the class members are up to date + safeDelete(uriString); + uriString = newURI; + state = uri_pending; + + if ( container != NULL ) { + daeString fp = container->getDocumentURI()->getFilepath(); + daeString f = container->getDocumentURI()->getFile(); + if ( strcmp( fp, filepath ) != 0 || strcmp( f, file ) != 0 ) { + //external reference + container->getDocument()->addExternalReference( *this ); + external = true; + } + else if ( external ) { + //was external but now isn't + container->getDocument()->removeExternalReference( *this ); + external = false; + } + } + +#else + // RFC 2396 part 5.2 step 3, if the scheme (protocol here) is defined we are done, otherwise inherit the base URI's protocol + if ((protocol == NULL)||(strlen(protocol)==0)) + { + // Make a copy of the base's protocol, not a reference to it + safeDelete(protocol); + protocol = safeCreate(baseURI->protocol); + // part 5.2 step 4, if the authority is defined we skip to step 7, otherwise inherit the base URI's authority + if((authority == NULL) || (strlen(authority)== 0)) + { + // Make a copy of the base's authority, not a reference to it + safeDelete(authority); + authority = safeCreate(baseURI->authority); + // part 5.2 step 5 if the path part (filepath here) begins with a slash we skip to step 7, otherwise resolve the relative path against the base + if((filepath == NULL) || (*filepath != '/')) + { + // part 5.2 step 2, if scheme, authority and path are all empty, this is a reference to the current doc + // COLLADA DOM wants this to resolve to the URI of the document + the fragment + // To make this happen we have the URI inherit the file part of the base (if present) and the path + if( ((filepath == NULL) || (strlen(filepath)==0)) && // filepath empty + ((file == NULL) || (strlen(file)==0)) && // file empty + ((baseURI->file != NULL) && (strlen(baseURI->file) > 0))) // baseURI file NOT empty + { + // inherit the base's filename + safeDelete(file); + file = safeCreate(baseURI->file); + } + // part 5.2 step 6, resolving a relative path reference + // note that in this implementation the filepath does not contain the last segment (the filename.ext) + // Allocate enough memory to hold the merged path + daeChar* newPath = (daeChar*)daeMemorySystem::malloc( + "uri", + strlen(baseURI->filepath) + + strlen(filepath) + 1); + *newPath = 0; + // part 5.2 step 6(a) copy the baseURI filepath to the buffer + strcat(newPath,baseURI->filepath); + // part 5.2 step 6(b) copy this URI's filepath to the buffer + if(*filepath != 0) + { + strcat(newPath,filepath); + } + // part 5.2 step 6(c-g) normalize the new path + normalizeURIPath(newPath); + // part 5.2 step 6(h) replace the old filepath with the new path + safeDelete(filepath); + filepath = newPath; + } + } + // part 5.2 step 7 assemble the final complete URI + // Allocate memory to hold the assembled version of the URI + daeChar* newURI = (daeChar*) + daeMemorySystem::malloc( + "uri", + strlen(protocol) + // really scheme + 1 + // space for ":" + strlen(authority) + // really authority + 2 + // space for "//" + strlen(filepath) + // path without the filename + strlen(file) + // filename part of the path + strlen(queryString) + // "#" + strlen(id) + // really fragment + 1); // terminating zero + *newURI = 0; + if(protocol != NULL && *protocol != 0) + { + strcat(newURI, protocol); + strcat(newURI, ":"); + } + if(authority != NULL && *authority != 0) + { + strcat(newURI, authority); + } + strcat(newURI, "//"); + if(filepath != NULL) + strcat(newURI, filepath); + if(file != NULL) + strcat(newURI, file); + if(id != NULL && *id != 0) + { + strcat(newURI,"#"); + strcat(newURI,id); + } + // Reset the URI to the new one + // Just setting the uriString would probably be enough + internalSetURI(newURI); + daeMemorySystem::free("uri",newURI); + } + state = uri_pending; + +#endif +#if 0 + // If there is no protocol, assume this is a relative URI that needs to be resolved against the base + if ((protocol == NULL)||(strlen(protocol)==0)) + { + // !!!GAC if the base URI contains a file and this uri does not, copy it over (why??) + if (((baseURI->file != NULL) && (strlen(baseURI->file)>0)) && + ((file == NULL)||(strlen(file)==0))) + { + if (file != NULL) + safeDelete(file); + file = safeCreate(baseURI->file); + } + + // !!!GAC this is a quick and dirty attempt to get the relative URIs properly resolved and the internal + // !!!GAC paths normalized. This code should be rewritten when there's time, I wanted to get this up quick + // !!!GAC so we could test the rest of the system to make sure handing it "correct" URIs doesn't break things. + + // Start by allocating memory and putting together just the path component + daeChar* newPath = (daeChar*) + daeMemorySystem::malloc( + "tmp", + strlen(baseURI->filepath) + + strlen(filepathString) + + strlen(filepath) + + strlen(filepathString) + + strlen(file)+1); + *newPath = 0; + strcat(newPath,baseURI->filepath); + strcat(newPath,filepathString); // !!!GAC this may put in an extra / but if it does the normalization will fix it + if(*filepath != 0) + { + strcat(newPath,filepath); // !!!GAC only do this if filepath is not empty + strcat(newPath,filepathString); // !!!GAC only do this if filepath is not empty + } + strcat(newPath,file); + // Normalize the path according to RFC 2396 (removes extra /, .., . and so on) + normalizeURIPath(newPath); + // !!!GAC Allocate memory for the complete URI and assemble it + daeChar* newURI = (daeChar*) + daeMemorySystem::malloc( + "tmp", + strlen(baseURI->protocol) + + strlen(protoString) + + strlen(authority) + + strlen(hostString) + + strlen(newPath) + + strlen(queryString) + + strlen(id)+1); + *newURI = 0; + strcat(newURI,baseURI->protocol); // Should be called "scheme" from RFC 2396 + strcat(newURI,protoString); + strcat(newURI,authority); // Should be called "authority" +// strcat(newURI,hostString); // !!!GAC not necessary, path always begins with a / + strcat(newURI,newPath); + if(strlen(id) != 0) + { + // !!!GAC don't append the #id unless it's needed (bug 297) + strcat(newURI,queryString); + strcat(newURI,id); + } + internalSetURI(newURI); + daeMemorySystem::free("tmp",newPath); + daeMemorySystem::free("tmp",newURI); + } + state = uri_pending; +#endif +} + +void +daeURI::resolveElement(daeString typeNameHint) +{ + if (state == uri_empty) + return; + + if (state == uri_loaded) { + if (container != NULL) + validate(container->getDocumentURI()); + else + validate(); + } + daeURIResolver::attemptResolveElement(*((daeURI*)this), typeNameHint ); +} + +void +daeURI::resolveURI() +{ + // !!!GAC bug 486, there used to be code here that just returned if state was uri_empty or uri_resolve_local this has been removed. + if (element != NULL) + { + // !!!GAC bug 388 and 421, need to add a fragment (#) before the ID (was setURI(element->getID())) + if(element->getID() == NULL || element->getID()[0] == 0) + { + // We can't resolve to an element that has no ID, so if the ID is blank, fail and return + state = uri_failed_invalid_reference; + return; + } + daeChar* newID = (daeChar*)daeMemorySystem::malloc("tmp",strlen(element->getID())+2); + strcpy(newID,"#"); + strcat(newID,element->getID()); + // !!!GAC We have to save element and container because setURI clears them for some reason + daeElementRef elementSave = element; + setURI(newID); + // !!!GAC Hopefully, calling validate like below is the right thing to do to get the full URI resolution + element = elementSave; + validate(element->getDocumentURI()); + element = elementSave; + daeMemorySystem::free("tmp",newID); + state = uri_success; // !!!GAC The element pointer and the URI should agree now, so set success + } + else + { + state = uri_failed_invalid_reference; + } +} + +daeBool daeURI::getPath(daeChar *dest, daeInt size) +{ + + if(filepath==0 || file==0) + { + //printf("****** %s : %s\n", uriString, originalURIString); + return false; + } + + int lenPath = (int)strlen(filepath); + int lenFile = (int)strlen(file); + + int length = lenPath + lenFile; + if (length < size) + { + strcpy(dest,filepath); + strcat(dest,file); + return true; + } + else + return false; +} + +void +daeURIResolver::attemptResolveElement(daeURI& uri, daeString typeNameHint) +{ + int i; + int cnt =(int) _KnownResolvers.getCount(); + + for(i=0;iisProtocolSupported(uri.getProtocol()))&& + ((uri.getFile() == NULL) || + (uri.getFile()[0] == '\0') || + (_KnownResolvers[i]->isExtensionSupported(uri.getExtension()))) && + (_KnownResolvers[i]->resolveElement(uri, typeNameHint))) + return; +} + +void +daeURIResolver::attemptResolveURI(daeURI& uri) +{ + int i,cnt = (int)_KnownResolvers.getCount(); + + daeBool foundProtocol = false; + for(i=0;iisProtocolSupported(uri.getProtocol())) { + foundProtocol = true; + if (_KnownResolvers[i]->resolveURI(uri)) + return; + } +#if defined(_DEBUG) && defined(WIN32) + fprintf(stderr, + "daeURIResolver::attemptResolveURI(%s) - failed\n", + uri.getURI()); +#endif + + if (!foundProtocol) { + uri.setState(daeURI::uri_failed_unsupported_protocol); +#if defined(_DEBUG) && defined(WIN32) + fprintf(stderr,"**protocol '%s' is not supported**\n",uri.getProtocol()); + fflush(stderr); +#endif + } + else { +#if defined(_DEBUG) && defined(WIN32) + fprintf(stderr,"**file(%s/%s) or id(%s) failed to resolve\n", + uri.getFilepath(),uri.getFile(),uri.getID()); + fflush(stderr); +#endif + } + +} + +daeBool daeURIResolver::_loadExternalDocuments = true; + +daeURIResolver::daeURIResolver() +{ + _KnownResolvers.append((daeURIResolver*)this); +} + +daeURIResolver::~daeURIResolver() +{ + _KnownResolvers.remove((daeURIResolver*)this); +} +// This code is loosely based on the RFC 2396 normalization code from +// libXML. Specifically it does the RFC steps 6.c->6.g from section 5.2 +// The path is modified in place, there is no error return. +void daeURI::normalizeURIPath(char *path) +{ + char + *cur, // location we are currently processing + *out; // Everything from this back we are done with + + // Return if the path pointer is null + + if (path == NULL) return; + + // Skip any initial / characters to get us to the start of the first segment + + for(cur=path; *cur == '/'; cur++); + + // Return if we hit the end of the string + + if (*cur == 0) return; + + // Keep everything we've seen so far. + + out = cur; + + // Analyze each segment in sequence for cases (c) and (d). + + while (*cur != 0) + { + // (c) All occurrences of "./", where "." is a complete path segment, are removed from the buffer string. + + if ((*cur == '.') && (*(cur+1) == '/')) + { + cur += 2; + // If there were multiple slashes, skip them too + while (*cur == '/') cur++; + continue; + } + + // (d) If the buffer string ends with "." as a complete path segment, that "." is removed. + + if ((*cur == '.') && (*(cur+1) == 0)) + break; + + // If we passed the above tests copy the segment to the output side + + while (*cur != '/' && *cur != 0) + { + *(out++) = *(cur++); + } + + if(*cur != 0) + { + // Skip any occurrances of // at the end of the segment + + while ((*cur == '/') && (*(cur+1) == '/')) cur++; + + // Bring the last character in the segment (/ or a null terminator) into the output + + *(out++) = *(cur++); + } + } + + *out = 0; + + // Restart at the beginning of the first segment for the next part + + for(cur=path; *cur == '/'; cur++); + if (*cur == 0) return; + + // Analyze each segment in sequence for cases (e) and (f). + // + // e) All occurrences of "/../", where is a + // complete path segment not equal to "..", are removed from the + // buffer string. Removal of these path segments is performed + // iteratively, removing the leftmost matching pattern on each + // iteration, until no matching pattern remains. + // + // f) If the buffer string ends with "/..", where + // is a complete path segment not equal to "..", that + // "/.." is removed. + // + // To satisfy the "iterative" clause in (e), we need to collapse the + // string every time we find something that needs to be removed. Thus, + // we don't need to keep two pointers into the string: we only need a + // "current position" pointer. + // + bool trew = true; + while (trew) + { + char *segp, *tmp; + + // At the beginning of each iteration of this loop, "cur" points to + // the first character of the segment we want to examine. + + // Find the end of the current segment. + + for(segp = cur;(*segp != '/') && (*segp != 0); ++segp); + + // If this is the last segment, we're done (we need at least two + // segments to meet the criteria for the (e) and (f) cases). + + if (*segp == 0) + break; + + // If the first segment is "..", or if the next segment _isn't_ "..", + // keep this segment and try the next one. + + ++segp; + if (((*cur == '.') && (cur[1] == '.') && (segp == cur+3)) + || ((*segp != '.') || (segp[1] != '.') + || ((segp[2] != '/') && (segp[2] != 0)))) + { + cur = segp; + continue; + } + + // If we get here, remove this segment and the next one and back up + // to the previous segment (if there is one), to implement the + // "iteratively" clause. It's pretty much impossible to back up + // while maintaining two pointers into the buffer, so just compact + // the whole buffer now. + + // If this is the end of the buffer, we're done. + + if (segp[2] == 0) + { + *cur = 0; + break; + } + + // Strings overlap during this copy, but not in a bad way, just avoid using strcpy + + tmp = cur; + segp += 3; + while ((*(tmp++) = *(segp++)) != 0); + + // If there are no previous segments, then keep going from here. + + segp = cur; + while ((segp > path) && (*(--segp) == '/')); + + if (segp == path) + continue; + + // "segp" is pointing to the end of a previous segment; find it's + // start. We need to back up to the previous segment and start + // over with that to handle things like "foo/bar/../..". If we + // don't do this, then on the first pass we'll remove the "bar/..", + // but be pointing at the second ".." so we won't realize we can also + // remove the "foo/..". + + for(cur = segp;(cur > path) && (*(cur-1) != '/'); cur--); + } + + *out = 0; + + // g) If the resulting buffer string still begins with one or more + // complete path segments of "..", then the reference is + // considered to be in error. Implementations may handle this + // error by retaining these components in the resolved path (i.e., + // treating them as part of the final URI), by removing them from + // the resolved path (i.e., discarding relative levels above the + // root), or by avoiding traversal of the reference. + // + // We discard them from the final path. + + if (*path == '/') + { + for(cur=path; (*cur == '/') && (cur[1] == '.') && (cur[2] == '.') && ((cur[3] == '/') || (cur[3] == 0)); cur += 3); + + if (cur != path) + { + for(out=path; *cur != 0; *(out++) = *(cur++)); + + *out = 0; + } + } + return; +} +// This function will take a resolved URI and create a version of it that is relative to +// another existing URI. The new URI is stored in the "originalURI" +int daeURI::makeRelativeTo(daeURI* relativeToURI) +{ + // !!!GAC for some reason, relativeToURI is in pending and not success state, why?? + // Can't do this function unless both URIs have already been successfully resolved + if(getState() != uri_success /*|| relativeToURI->getState() != uri_success*/ ) + return(DAE_ERR_INVALID_CALL); // !!!GAC Need to assign a real error code to this + + // Can only do this function if both URIs have the same scheme and authority + + if((strcmp(getProtocol(), relativeToURI->getProtocol()) != 0) || (strcmp(getAuthority(), relativeToURI->getAuthority()) != 0)) + return(DAE_ERR_INVALID_CALL); // !!!GAC Need to assign a real error code to this + + // advance till we find a segment that doesn't match + + const char *this_filepath = getFilepath(); + const char *relativeTo_filepath = relativeToURI->getFilepath(); + const char *this_slash = this_filepath; + const char *relativeTo_slash = relativeTo_filepath; + + while(*this_filepath == *relativeTo_filepath) + { + if(*this_filepath == '/') + { + this_slash = this_filepath; + relativeTo_slash = relativeTo_filepath; + } + this_filepath++; + relativeTo_filepath++; + } + + // Decide how many ../ segments are needed (Filepath should always end in a /) + int segment_count = 0; + relativeTo_slash++; + while(*relativeTo_slash != 0) + { + if(*relativeTo_slash == '/') + segment_count ++; + relativeTo_slash++; + } + this_slash++; + // Delete old URI string + safeDelete(originalURIString); + // Allocate memory for a new "originalURI" and free the old one + char *newRelativeURI = (char*) daeMemorySystem::malloc("uri",strlen(relativeTo_slash)+ strlen(file)+(segment_count*3)+strlen(getID())+2); + char *temp = newRelativeURI; + for(int i = 0; i < segment_count; i++) + { + strcpy(temp,"../"); + temp += 3; + } + strcpy(temp,this_slash); + strcat(temp,file); + if(id!=empty && strlen(getID()) != 0) + { + strcat(temp,"#"); + strcat(temp,getID()); + } + originalURIString = newRelativeURI; + return(DAE_OK); +} + diff --git a/Extras/COLLADA_DOM/src/dae/dae_vc8.vcproj b/Extras/COLLADA_DOM/src/dae/dae_vc8.vcproj index 2e0e2df64..5c0685a10 100644 --- a/Extras/COLLADA_DOM/src/dae/dae_vc8.vcproj +++ b/Extras/COLLADA_DOM/src/dae/dae_vc8.vcproj @@ -4,6 +4,7 @@ Version="8.00" Name="dae_vc8" ProjectGUID="{B70CBA1A-414C-4872-8DAF-31934BCAB568}" + RootNamespace="dae_vc8" Keyword="Win32Proj" > @@ -40,7 +41,7 @@ +#include + +daeElementRef +domAny::create(daeInt bytes) +{ + domAnyRef ref = new(bytes) domAny; + return ref; +} + + +daeMetaElement * +domAny::registerElement() +{ + //if ( _Meta != NULL ) return _Meta; + daeMetaElement *_Meta = new daeMetaElement; + _Meta->setName( "any" ); + //_Meta->setStaticPointerAddress(&domAny::_Meta); + _Meta->registerConstructor(domAny::create); + _Meta->setAllowsAny( true ); + + _Meta->addContents(daeOffsetOf(domAny,_contents)); + + //VALUE + { + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( "_value" ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( daeOffsetOf( domAny , _value )); + ma->setContainer( _Meta ); + _Meta->appendAttribute(ma); + } + + _Meta->setElementSize(sizeof(domAny)); + _Meta->validate(); + + return _Meta; +} + +//daeMetaElement * domAny::_Meta = NULL; + +daeBool domAny::setAttribute(daeString attrName, daeString attrValue) { + if (_meta == NULL) + return false; + + //if the attribute already exists set it. + daeMetaAttributeRefArray& metaAttrs = _meta->getMetaAttributes(); + int n = (int)metaAttrs.getCount(); + int i; + for(i=0;igetName() != NULL) && (strcmp(metaAttrs[i]->getName(),attrName)==0)) { + if (metaAttrs[i]->getType() != NULL) { + metaAttrs[i]->set(this,attrValue); + } + return true; + } + } + //else register it and then set it. + if ( n >= MAX_ATTRIBUTES ) { + fprintf(stderr, "daeAny::setAttribute() - too many attributes on this domAny. The maximum number of attributes allowed is %d", + MAX_ATTRIBUTES ); + fflush(stderr); + return false; + } + daeMetaAttribute *ma = new daeMetaAttribute; + ma->setName( attrName ); + ma->setType( daeAtomicType::get("xsString")); + ma->setOffset( (daeInt)daeOffsetOf( domAny , attrs[n] )); + ma->setContainer( _meta ); + _meta->appendAttribute(ma); + if (metaAttrs[i]->getType() != NULL) { + metaAttrs[i]->set(this,attrValue); + return true; + } + + return false; +} + + diff --git a/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/LIBXMLPlugin_vc8.vcproj b/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/LIBXMLPlugin_vc8.vcproj index 1fdfdf4e4..8e9436fcd 100644 --- a/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/LIBXMLPlugin_vc8.vcproj +++ b/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/LIBXMLPlugin_vc8.vcproj @@ -4,6 +4,7 @@ Version="8.00" Name="LIBXMLPlugin_vc8" ProjectGUID="{4A974C64-D51F-4D0F-85B8-0C876EF29F2E}" + RootNamespace="LIBXMLPlugin_vc8" Keyword="Win32Proj" > @@ -40,7 +41,7 @@ +#include +#include +#include +#include +#include +#include + +daeLIBXMLPlugin::daeLIBXMLPlugin():topMeta(NULL),database(NULL) +{ + xmlInitParser(); +} + +daeLIBXMLPlugin::~daeLIBXMLPlugin() +{ + xmlCleanupParser(); +} + +daeInt daeLIBXMLPlugin::setMeta(daeMetaElement *_topMeta) +{ + topMeta = _topMeta; + return DAE_OK; +} + +void daeLIBXMLPlugin::setDatabase(daeDatabase* _database) +{ + database = _database; +} + +void daeLIBXMLPlugin::getProgress(daeInt* bytesParsed, + daeInt* lineNumber, + daeInt* totalBytes, + daeBool reset) +{ + // Need to interface this to libxml + if (reset) + { + //daeChunkBuffer::resetProgress(); + } +#if LIBXML_VERSION >= 20620 + if (bytesParsed) + *bytesParsed= 0; //xmlTextReaderByteConsumed(reader); // Not sure if this is the right data + if (lineNumber) + *lineNumber = 0; //xmlTextReaderGetParserLineNumber(reader); +#else + if (bytesParsed) + *bytesParsed= 0; + if (lineNumber) + *lineNumber = 0; +#endif + if (totalBytes) + *totalBytes = 0; // Not available +} +// This function needs to be re-entrant, it can be called recursively from inside of resolveAll +// to load files that the first file depends on. +daeInt daeLIBXMLPlugin::read(daeURI& uri, daeString docBuffer) +{ + // Make sure topMeta has been set before proceeding + + if (topMeta == NULL) + { + return DAE_ERR_BACKEND_IO; + } + + // Generate a version of the URI with the fragment removed + + daeURI fileURI(uri.getURI(),true); + + // Create the right type of xmlTextReader on the stack so this function can be re-entrant + + xmlTextReaderPtr reader; + + if(docBuffer) + { + // Load from memory (experimental) +#if 0 //debug stuff + printf("Reading %s from memory buffer\n", fileURI.getURI()); +#endif + reader = xmlReaderForDoc((xmlChar*)docBuffer, fileURI.getURI(), NULL,0); + } + else + { + // Load from URI +#if 0 //debug stuff + printf("Opening %s\n", fileURI.getURI()); +#endif + reader = xmlReaderForFile(fileURI.getURI(), NULL,0); + } + + if(!reader) + { + printf( "no libxml2 reader\n"); + return DAE_ERR_BACKEND_IO; + } + + // Start parsing the file + + daeElementRef domObject = startParse(topMeta, reader); + + // Parsing done, free the xmlReader and error check to make sure we got a valid DOM back + + xmlFreeTextReader(reader); + + if (!domObject) + { +#if defined(_DEBUG) && defined(WIN32) + fprintf(stderr,"daeLIBXMLPlugin::read(%s) failed - XML Parse Failed\n", + fileURI.getFile()); + fflush(stdout); +#endif + printf("not able to load\n"); + return DAE_ERR_BACKEND_IO; + } + + // Insert the document into the database, the Database will keep a ref on the main dom, so it won't gets deleted + // until we clear the database + + daeDocument *document = NULL; + + int res = database->insertDocument(fileURI.getURI(),domObject,&document); + if (res!= DAE_OK) + return res; + + // Make a vector to store a list of the integration items that need to be processed later + // postProcessDom will fill this in for us (this should probably not be done in the IOPlugin) + + std::vector intItems; + + //insert the elements into the database, for this DB the elements are the Collada object which have + //an ID. + //this function will fill the _integrationItems array as well + postProcessDom(document, domObject, intItems); + database->validate(); + daeElement::resolveAll(); + + //create the integration objects + int size = (int)intItems.size(); + int i; + for (i=0;icreateFromChecked(intItems[i].element); + + for (i=0;ifromCOLLADAChecked(); + + for (i=0;ifromCOLLADAPostProcessChecked(); + + //clear the temporary integration items array + intItems.clear(); + + return DAE_OK; +} +daeElementRef +daeLIBXMLPlugin::startParse(daeMetaElement* thisMetaElement, xmlTextReaderPtr reader) +{ + // The original parsing system would drop everything up to the first element open, usually + // This behavior will have to be replicated here till we have someplace to put the headers/comments + + int ret = xmlTextReaderRead(reader); + if(ret != 1) + { + // empty or hit end of file + return NULL; + } + //printf("xmlTextReaderConstBaseUri is %s\n",xmlTextReaderConstBaseUri(reader)); + //printf("xmlTextReaderConstNamespaceUri is %s\n",xmlTextReaderConstNamespaceUri(reader)); + //printf("xmlTextReaderConstPrefix is %s\n",xmlTextReaderConstPrefix(reader)); + //printf("xmlTextReaderName is %s\n",xmlTextReaderName(reader)); + + // Process the current element + // Skip over things we don't understand + while(xmlTextReaderNodeType(reader) != XML_READER_TYPE_ELEMENT) + { + ret = xmlTextReaderRead(reader); + if(ret != 1) + return(NULL); + } + + // Create the element that we found + daeElementRef element = thisMetaElement->create((const daeString)xmlTextReaderConstName(reader)); + if(!element) + { + char err[256]; + memset( err, 0, 256 ); + const xmlChar * mine =xmlTextReaderConstName(reader); +#if LIBXML_VERSION >= 20620 + sprintf(err,"The DOM was unable to create an element type %s at line %d\nProbably a schema violation.\n", mine,xmlTextReaderGetParserLineNumber(reader)); +#else + sprintf(err,"The DOM was unable to create an element type %s\nProbably a schema violation.\n", mine); +#endif + daeErrorHandler::get()->handleWarning( err ); + xmlTextReaderNext(reader); + return NULL; + } + int currentDepth = xmlTextReaderDepth(reader); + + //try and read attributes + readAttributes( element, reader ); + + //Check COLLADA Version + if ( strcmp( element->getTypeName(), "COLLADA" ) != 0 ) { + //invalid root + daeErrorHandler::get()->handleError("Loading document with invalid root element!"); + return NULL; + } + daeURI *xmlns = (daeURI*)(element->getMeta()->getMetaAttribute( "xmlns" )->getWritableMemory( element )); + if ( strcmp( xmlns->getURI(), COLLADA_NAMESPACE ) != 0 ) { + //invalid COLLADA version + daeErrorHandler::get()->handleError("Trying to load an invalid COLLADA version for this DOM build!"); + return NULL; + } + + + ret = xmlTextReaderRead(reader); + // If we're out of data, return the element + if(ret != 1) + return(element); + + // Read all the tags that are part of this tag + bool trew = true; + while(trew) + { + int thisType = xmlTextReaderNodeType(reader); + if(thisType == XML_READER_TYPE_ELEMENT) + { + // Is the new element at the same depth as this one? + if(currentDepth == xmlTextReaderDepth(reader)) + { + // Same depth means the current element ended in a /> so this is a sibling + // so we return and let our parent process it. + return(element); + } + else + { + // The element is a child of this one, so we recurse + if(!element->placeElement(nextElement(element->getMeta(), reader))) + { + char err[256]; + memset( err, 0, 256 ); +#if LIBXML_VERSION >= 20620 + sprintf(err,"placeElement failed at line %d\n", xmlTextReaderGetParserLineNumber(reader)); +#else + sprintf(err,"placeElement failed\n"); +#endif + daeErrorHandler::get()->handleWarning(err); + ret = xmlTextReaderRead(reader); + if ( ret != 1 ) { + return element; + } + } + } + } + else if(thisType == XML_READER_TYPE_TEXT) + { + readValue( element, reader ); + } + else if(thisType == XML_READER_TYPE_END_ELEMENT) + { + // Done with this element so read again and return + ret = xmlTextReaderRead(reader); + return(element); + } + else + { // Skip element types we don't care about + ret = xmlTextReaderRead(reader); + // If we're out of data, return the element + if(ret != 1) + return(element); + } + } + // Return NULL on an error + return NULL; +} + +void daeLIBXMLPlugin::readAttributes( daeElement *element, xmlTextReaderPtr reader ) { + // See if the element has attributes + if(xmlTextReaderHasAttributes(reader)) + { + // Read in and set all the attributes + while(xmlTextReaderMoveToNextAttribute(reader)) + { + daeMetaAttribute *ma = element->getMeta()->getMetaAttribute((const daeString)xmlTextReaderConstName(reader)); + if( ( ma != NULL && ma->getType() != NULL && ma->getType()->getUsesStrings() ) || + strcmp(element->getMeta()->getName(), "any") == 0 ) + { + // String is used as one piece + if(!element->setAttribute( (const daeString)xmlTextReaderConstName(reader), + (const daeString)xmlTextReaderConstValue(reader) ) ) + { + const xmlChar * attName = xmlTextReaderConstName(reader); + const xmlChar * attValue = xmlTextReaderConstValue(reader); + char err[256]; + memset( err, 0, 256 ); +#if LIBXML_VERSION >= 20620 + sprintf(err,"The DOM was unable to create an attribute %s = %s at line %d\nProbably a schema violation.\n", attName, attValue ,xmlTextReaderGetParserLineNumber(reader)); +#else + sprintf(err,"The DOM was unable to create an attribute %s = %s \nProbably a schema violation.\n", attName, attValue); +#endif + daeErrorHandler::get()->handleWarning( err ); + } + } + else + { + // String needs to be broken up into whitespace seperated items. The "set" methods for numbers are smart enough to + // grab just the first number in a string, but the ones for string lists require a null terminator between each + // string. If this could be fixed we could avoid a copy and memory allocation by using xmlTextReaderConstValue(reader) + if ( ma == NULL ) { + const xmlChar * attName = xmlTextReaderConstName(reader); + const xmlChar * attValue = xmlTextReaderConstValue(reader); + char err[256]; + memset( err, 0, 256 ); +#if LIBXML_VERSION >= 20620 + sprintf(err,"The DOM was unable to create an attribute %s = %s at line %d\nProbably a schema violation.\n", attName, attValue ,xmlTextReaderGetParserLineNumber(reader)); +#else + sprintf(err,"The DOM was unable to create an attribute %s = %s \nProbably a schema violation.\n", attName, attValue); +#endif + daeErrorHandler::get()->handleWarning( err ); + continue; + } + xmlChar* value = xmlTextReaderValue(reader); + daeChar* current = (daeChar *)value; + while(*current != 0) + { + // !!!GAC NEEDS TO BE CHANGED to use XML standard whitespace parsing + // Skip leading whitespace + while(*current == ' ' || *current == '\r' || *current == '\n' || *current == '\t') current++; + if(*current != 0) + { + daeChar* start=current; + // Find end of string and insert a zero terminator + while(*current != ' ' && *current != '\r' && *current != '\n' && *current != '\t' && *current != 0) current++; + if(*current != 0) + { + *current = 0; + current++; + } + if(!element->setAttribute( (const daeString)xmlTextReaderConstName(reader), start) ) + { + const xmlChar * attName = xmlTextReaderConstName(reader); + const xmlChar * attValue = xmlTextReaderConstValue(reader); + char err[256]; + memset( err, 0, 256 ); +#if LIBXML_VERSION >= 20620 + sprintf(err,"The DOM was unable to create an attribute %s = %s at line %d\nProbably a schema violation.\n", attName, attValue ,xmlTextReaderGetParserLineNumber(reader)); +#else + sprintf(err,"The DOM was unable to create an attribute %s = %s \nProbably a schema violation.\n", attName, attValue); +#endif + daeErrorHandler::get()->handleWarning( err ); + } + } + } + xmlFree(value); + } + } + } +} + +void daeLIBXMLPlugin::readValue( daeElement *element, xmlTextReaderPtr reader ) { + if ( element->getMeta()->getValueAttribute() == NULL ) { + char err[256]; + memset( err, 0, 256 ); +#if LIBXML_VERSION >= 20620 + sprintf(err,"The DOM was unable to set a value for element of type %s at line %d\nProbably a schema violation.\n", element->getTypeName() ,xmlTextReaderGetParserLineNumber(reader)); +#else + sprintf(err,"The DOM was unable to set a value for element of type %s at line %d\nProbably a schema violation.\n", element->getTypeName() ); +#endif + daeErrorHandler::get()->handleWarning( err ); + } + else if(element->getMeta()->getUsesStringContents()) + { + // String is used as one piece + element->getMeta()->getValueAttribute()->set(element,(const daeString)xmlTextReaderConstValue(reader)); + } + else + { + // String needs to be broken up into whitespace seperated items. The "set" methods for numbers are smart enough to + // grab just the first number in a string, but the ones for string lists require a null terminator between each + // string. If this could be fixed we could avoid a copy and memory allocation by using xmlTextReaderConstValue(reader) + xmlChar* value = xmlTextReaderValue(reader); + daeChar* current = (daeChar *)value; + while(*current != 0) + { + // !!!GAC NEEDS TO BE CHANGED to use XML standard whitespace parsing + // Skip leading whitespace + while(*current == ' ' || *current == '\r' || *current == '\n' || *current == '\t') current++; + if(*current != 0) + { + daeChar* start=current; + // Find end of string and insert a zero terminator + while(*current != ' ' && *current != '\r' && *current != '\n' && *current != '\t' && *current != 0) current++; + if(*current != 0) + { + *current = 0; + current++; + } + element->getMeta()->getValueAttribute()->set(element,start); + // eat the characters we just read (would be nice if set returned characters used. + } + } + xmlFree(value); + } + int ret = xmlTextReaderRead(reader); + assert(ret==1); +} + + + +daeElementRef +daeLIBXMLPlugin::nextElement(daeMetaElement* thisMetaElement, xmlTextReaderPtr reader) +{ + int ret; + // Process the current element + // Skip over things we don't understand + while(xmlTextReaderNodeType(reader) != XML_READER_TYPE_ELEMENT) + { + ret = xmlTextReaderRead(reader); + if(ret != 1) + return(NULL); + } + + // Create the element that we found + daeElementRef element = thisMetaElement->create((const daeString)xmlTextReaderConstName(reader)); + if(!element) + { + const xmlChar * mine =xmlTextReaderConstName(reader); + char err[256]; + memset( err, 0, 256 ); +#if LIBXML_VERSION >= 20620 + sprintf(err,"The DOM was unable to create an element type %s at line %d\nProbably a schema violation.\n", mine,xmlTextReaderGetParserLineNumber(reader)); +#else + sprintf(err,"The DOM was unable to create an element type %s\nProbably a schema violation.\n", mine); +#endif + daeErrorHandler::get()->handleWarning( err ); + if ( xmlTextReaderNext(reader) == -1 ) { + int x = 12312412; + } + return NULL; + } + int currentDepth = xmlTextReaderDepth(reader); + + //try and read attributes + readAttributes( element, reader ); + + ret = xmlTextReaderRead(reader); + // If we're out of data, return the element + if(ret != 1) + return(element); + + // Read all the tags that are part of this tag + bool trew = true; + while(trew) + { + int thisType = xmlTextReaderNodeType(reader); + if(thisType == XML_READER_TYPE_ELEMENT) + { + // Is the new element at the same depth as this one? + if(currentDepth == xmlTextReaderDepth(reader)) + { + // Same depth means the current element ended in a /> so this is a sibling + // so we return and let our parent process it. + return(element); + } + else + { + // The element is a child of this one, so we recurse + if(!element->placeElement(nextElement(element->getMeta(), reader))) + { + char err[256]; + memset( err, 0, 256 ); +#if LIBXML_VERSION >= 20620 + sprintf(err,"placeElement failed at line %d\n", xmlTextReaderGetParserLineNumber(reader)); +#else + sprintf(err,"placeElement failed\n"); +#endif + daeErrorHandler::get()->handleWarning( err ); + ret = xmlTextReaderRead(reader); + if ( ret != 1 ) { + return element; + } + } + } + } + else if(thisType == XML_READER_TYPE_TEXT) + { + readValue( element, reader ); + } + else if(thisType == XML_READER_TYPE_END_ELEMENT) + { + // Done with this element so read again and return + ret = xmlTextReaderRead(reader); + return(element); + } + else + { // Skip element types we don't care about + ret = xmlTextReaderRead(reader); + // If we're out of data, return the element + if(ret != 1) + return(element); + } + } + //program will never get here but this line is needed to supress a warning + return NULL; +} +// postProcessDom traverses all elements below the passed in one and creates a list of all the integration objects. +// this should probably NOT be done in the IO plugin. +void daeLIBXMLPlugin::postProcessDom(daeDocument *document, daeElement* element, std::vector &intItems) +{ + // Null element? Return + + if (!element) + return; + + element->setDocument(document); + // If this element has an integration object, add it to a list so we can process them all in a bunch later + + if (element->getIntObject(daeElement::int_uninitialized)) + { + INTEGRATION_ITEM item; + item.element = element; + item.intObject = element->getIntObject(daeElement::int_uninitialized); + intItems.push_back(item); + } + + // Recursively call postProcessDom on all of this element's children + + if (element->getMeta()->getContents() != NULL) { + daeMetaElementArrayAttribute *contents = element->getMeta()->getContents(); + for ( int i = 0; i < contents->getCount( element ); i++ ) { + //array.append( *(daeElementRef*)contents->get( this, i ) ); + daeElementRef elem = *(daeElementRef*)contents->get(element,i); + postProcessDom(document,elem, intItems); + } + } + else + { + daeMetaElementAttributeArray& children = element->getMeta()->getMetaElements(); + int cnt = (int)children.getCount(); + for(int i=0;igetCount(element); + int j; + for(j=0;jget(element,j); + postProcessDom(document,elem, intItems); + } + } + } +} +daeInt daeLIBXMLPlugin::write(daeURI *name, daeDocument *document, daeBool replace) +{ + // Make sure database and document are both set + if (!database) + return DAE_ERR_INVALID_CALL; + if(!document) + return DAE_ERR_COLLECTION_DOES_NOT_EXIST; + + // Extract just the file path from the URI + daeFixedName finalname; + if (!name->getPath(finalname,sizeof(finalname))) + { + printf( "can't get path in write\n" ); + return DAE_ERR_BACKEND_IO; + } + + // If replace=false, don't replace existing files + if(!replace) + { + // Using "stat" would be better, but it's not available on all platforms + FILE *tempfd = fopen(finalname,"r"); + if(tempfd != NULL) + { + // File exists, return error + fclose(tempfd); + return DAE_ERR_BACKEND_FILE_EXISTS; + } + } + + // Open the file we will write to + writer = xmlNewTextWriterFilename(name->getURI(), 0); + if ( !writer ) { + printf( "no libxml2 writer\n" ); + return DAE_ERR_BACKEND_IO; + } + xmlChar indentString[10] = " "; + xmlTextWriterSetIndentString( writer, indentString ); + xmlTextWriterSetIndent( writer, 1 ); + xmlTextWriterStartDocument( writer, NULL, NULL, NULL ); + + writeElement( document->getDomRoot() ); + + xmlTextWriterEndDocument( writer ); + xmlTextWriterFlush( writer ); + xmlFreeTextWriter( writer ); + return DAE_OK; +} + +void daeLIBXMLPlugin::writeElement( daeElement* element ) +{ + daeIntegrationObject* _intObject = element->getIntObject(); + daeMetaElement* _meta = element->getMeta(); + if(_intObject) + { + // added in response to bug 478 + _intObject->toCOLLADAChecked(); + _intObject->toCOLLADAPostProcessChecked(); + } + if (!_meta->getIsTransparent() ) { + if ( element->getElementName() ) { + xmlTextWriterStartElement(writer, (xmlChar*)element->getElementName()); + } + else { + xmlTextWriterStartElement(writer, (xmlChar*)(daeString)_meta->getName()); + } + daeMetaAttributeRefArray& attrs = _meta->getMetaAttributes(); + + int acnt = (int)attrs.getCount(); + + for(int i=0;igetValueAttribute(); + if (valueAttr!=NULL) + writeAttribute(valueAttr, element); + + if (_meta->getContents() != NULL) { + daeElementRefArray* era = (daeElementRefArray*)_meta->getContents()->getWritableMemory(element); + int elemCnt = (int)era->getCount(); + for(int i = 0; i < elemCnt; i++) { + daeElementRef elem = (daeElementRef)era->get(i); + if (elem != NULL) { + writeElement( elem ); + } + } + } + else + { + daeMetaElementAttributeArray& children = _meta->getMetaElements(); + int cnt = (int)children.getCount(); + for(int i=0;igetElementType(); + if ( !type->getIsAbstract() ) { + for (int c = 0; c < children[i]->getCount(element); c++ ) { + writeElement( *(daeElementRef*)children[i]->get(element,c) ); + } + } + } + } + if (!_meta->getIsTransparent() ) { + xmlTextWriterEndElement(writer); + } +} + +#define TYPE_BUFFER_SIZE 4096 + +void daeLIBXMLPlugin::writeAttribute( daeMetaAttribute* attr, daeElement* element ) +{ + static daeChar atomicTypeBuf[TYPE_BUFFER_SIZE]; + + if (element == NULL) + return; + if ( attr->getCount(element) == 0 ) { + //we don't have a value if its required print it empty else just skip + if ( attr->getIsRequired() ) { + xmlTextWriterStartAttribute( writer, (xmlChar*)(daeString)attr->getName() ); + xmlTextWriterEndAttribute( writer ); + } + return; + } + else if ( attr->getCount(element) == 1 ) { + //single value or an array of a single value + char* elemMem = attr->get(element, 0); + + // !!!GAC recoded the suppression logic so you could enable suppressions individually + if(!attr->getIsRequired()) + { + // This attribute was not required and might get suppressed + int typeSize = attr->getType()->getSize(); + if(attr->getDefault() != NULL) + { + #if 1 + // The attribute has a default, convert the default to binary and suppress + // output of the attribute if the value matches the default. + // DISABLE THIS CODE IF YOU WANT DEFAULT VALUES TO ALWAYS EXPORT + if(typeSize >= TYPE_BUFFER_SIZE) + { + fprintf(stderr, + "daeMetaAttribute::print() - buffer too small for default value of %s in %s\n", + (daeString)attr->getName(),(daeString)attr->getContainer()->getName()); + fflush(stderr); + return; + } + attr->getType()->stringToMemory((daeChar*)attr->getDefault(),atomicTypeBuf); + if(memcmp(atomicTypeBuf,elemMem,typeSize) == 0) + return; + #endif + } + else + { + #if 1 + // The attribute does not have a default, suppress it if its value is all zeros (binary) + // DISABLE THIS CODE IF YOU WANT OPTIONAL ATTRIBUTES THAT HAVE A VALUE OF ZERO TO EXPORT + // Disabling this code may cause some unused attributes to be exported if _isValid is not + // enabled and properly used. + int i; + for(i=0; igetContainer()->getValueAttribute() != attr && + attr->getType()->getTypeEnum() != daeAtomicType::BoolType && + attr->getType()->getTypeEnum() != daeAtomicType::EnumType ) + return; + #endif + } + } + + // Convert the attribute to a string + + if (attr->getType()->memoryToString(elemMem, atomicTypeBuf, TYPE_BUFFER_SIZE)== false) { + fprintf(stderr, + "daeMetaAttribute::print() - buffer too small for %s in %s\n", + (daeString)attr->getName(),(daeString)attr->getContainer()->getName()); + fflush(stderr); + } + + // Suppress attributes that convert to an empty string. + + if (strlen(atomicTypeBuf) == 0) + return; + + // Is this a value attribute or something else? + + if (attr->getContainer()->getValueAttribute() == attr) + { + // Always export value attributes + xmlTextWriterWriteString( writer, (xmlChar*)atomicTypeBuf); + } + else + { + // Suppress attributes not marked as containing valid values + // DO NOT TURN THIS ON TILL ALL USER CODE HAS BEEN CHANGED TO SET _isValid OR + // ATTRIBUTES THAT WERE CREATED/SET BY USER CODE MAY NOT EXPORT. + #if 0 + // NOTE: even if a value is marked REQUIRED by the schema, if _isValid isn't true it means + // the value in this parameter was never set and may be garbage, so we suppress it even though it is required. + // To change this add && !_isRequired to the expression below. + if(!attr->getIsValid() ) + return; + #endif + // Export the attribute name and value + xmlTextWriterWriteAttribute( writer, (xmlChar*)(daeString)attr->getName(), (xmlChar*)atomicTypeBuf); + } + } + else { + if (attr->getContainer()->getValueAttribute() != attr) + { + xmlTextWriterStartAttribute( writer, (xmlChar*)(daeString)attr->getName() ); + } + for( int i = 0; i < attr->getCount(element); i++ ) { + char* elemMem = attr->get(element, i); + if (attr->getType()->memoryToString(elemMem, atomicTypeBuf, TYPE_BUFFER_SIZE)== false) + { + fprintf(stderr, + "daeMetaArrayAttribute::print() - buffer too small for %s in %s\n", + (daeString)attr->getName(),(daeString)attr->getContainer()->getName()); + fflush(stderr); + } + xmlTextWriterWriteFormatString( writer, "%s ", (xmlChar*)atomicTypeBuf ); + } + if (attr->getContainer()->getValueAttribute() != attr) + { + xmlTextWriterEndAttribute( writer ); + } + } +} diff --git a/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLResolver.cpp b/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLResolver.cpp new file mode 100644 index 000000000..bcdefdfd4 --- /dev/null +++ b/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLResolver.cpp @@ -0,0 +1,135 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include +#include +#include + +daeLIBXMLResolver::daeLIBXMLResolver(daeDatabase* database,daeIOPlugin* plugin) +{ + _database = database; + _plugin = plugin; +} + +daeLIBXMLResolver::~daeLIBXMLResolver() +{ +} + +daeBool +daeLIBXMLResolver::resolveURI(daeURI& uri) +{ + (void)uri; + return false; +} + +daeString +daeLIBXMLResolver::getName() +{ + return "XMLResolver"; +} + +daeBool +daeLIBXMLResolver::isExtensionSupported(daeString extension) +{ + if ((extension!=NULL) && + (strlen(extension) > 0) && + ((strncmp(extension,"xml",3)==0) || + (strncmp(extension,"XML",3)==0) || + (strncmp(extension,"DAE",3)==0) || + (strncmp(extension,"dae",3)==0))) + return true; + return false; +} + +daeBool +daeLIBXMLResolver::isProtocolSupported(daeString protocol) +{ + if ((protocol!=NULL) && + (strlen(protocol) > 0) && + ((strncmp(protocol,"file",4) == 0) || + (strncmp(protocol,"http",4) == 0))) + return true; + return false; +} + +daeBool +daeLIBXMLResolver::resolveElement(daeURI& uri, daeString typeNameHint) +{ + // Make sure the URI is validated + if (uri.getState() == daeURI::uri_loaded) + { + uri.validate(); + } + + daeElement* resolved = NULL; + int status; + + // Does the URI have a document reference? + if ( (uri.getFile() != NULL) && (strlen(uri.getFile())>0)) + { + // The URI contains a document reference, see if it is loaded and try to load it if it's not + if (!_database->isDocumentLoaded(uri.getURI())) { + if ( _loadExternalDocuments ) { + _plugin->read(uri,NULL); + } + else { + uri.setState( daeURI::uri_failed_external_document ); + return false; + } + } + // Try to find the id by searching this document only + status = _database->getElement(&resolved,0,uri.getID(),typeNameHint,uri.getURI()); + } + else + { + // The URI was just a fragment, so try to find it in the document that contains it. + // !!!GAC not sure if all these pointers will be set when we get here, so assert if any of them aren't + daeElement *tempElement = uri.getContainer(); + //assert(tempElement); + daeDocument *tempDocument; + if ( tempElement == NULL || (tempDocument = tempElement->getDocument()) == NULL ) { + uri.setState(daeURI::uri_failed_missing_container); + fprintf(stderr, + "daeLIBXMLResolver::resolveElement() - failed to resolve %s\n", + uri.getURI()); + fflush(stderr); + return false; + } + //assert(tempDocument); + daeURI *tempURI = tempDocument->getDocumentURI(); + //assert(tempURI); + status = _database->getElement(&resolved,0,uri.getID(),typeNameHint,tempURI->getURI()); + } + + uri.setElement(resolved); + + // Error if we didn't successfully resolve the uri + + if (status ||(resolved==NULL)) + { + uri.setState(daeURI::uri_failed_id_not_found); + fprintf(stderr, + "daeLIBXMLResolver::resolveElement() - failed to resolve %s\n", + uri.getURI()); + fflush(stderr); + return false; + } + + uri.setState(daeURI::uri_success); + return true; +} + + + + diff --git a/Extras/COLLADA_DOM/src/modules/STLDatabase/daeSTLDatabase.cpp b/Extras/COLLADA_DOM/src/modules/STLDatabase/daeSTLDatabase.cpp new file mode 100644 index 000000000..7f9a231c1 --- /dev/null +++ b/Extras/COLLADA_DOM/src/modules/STLDatabase/daeSTLDatabase.cpp @@ -0,0 +1,574 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +daeSTLDatabase::daeSTLDatabase():validated(true) +{} + +daeSTLDatabase::~daeSTLDatabase() +{ + clear(); +} + +daeInt daeSTLDatabase::setMeta(daeMetaElement *_topMeta) +{ + topMeta = _topMeta; + return DAE_OK; +} + +daeBool +daeSTLDatabase::isDocumentLoaded(daeString name) +{ + daeDocument* document = getDocument(name); + if(document) + return(true); + else + return(false); +} + +// Element Types of all Elements +daeUInt daeSTLDatabase::getTypeCount() +{ + validate(); + std::vector::iterator it = elements.begin(); + daeUInt count = 0; + while (it != elements.end()) + { + DAE_STL_DATABASE_CELL &tmp = (*it); + std::vector::iterator it_up = std::upper_bound(it,elements.end(),tmp,daeSTLDatabaseTypeLess()); + it = it_up; + count++; + } + return count; +} + + +daeString daeSTLDatabase::getTypeName(daeUInt index) +{ + validate(); + std::vector::iterator it = elements.begin(); + unsigned int count = 0; + while (it != elements.end() && count::iterator it_up = std::upper_bound(it,elements.end(),tmp,daeSTLDatabaseTypeLess()); + it = it_up; + count++; + } + if (it != elements.end()) + return (*it).type; + else + return NULL; +} + +// Documents +daeInt daeSTLDatabase::insertDocument(const char *name, daeElement* dom, daeDocument** document) +{ + return createDocument( name, dom, document ); +} +daeInt daeSTLDatabase::createDocument(const char *name, daeElement* dom, daeDocument** document) +{ + // If a document already exists with the same name, error + if(isDocumentLoaded(name)) + { + if (document) + *document = NULL; + return DAE_ERR_COLLECTION_ALREADY_EXISTS; + } + + // Make a new document + daeDocument *newDocument = new daeDocument; + // Create a Reference on the domCOLLADA passed into us + newDocument->setDomRoot(dom); + // Set the domCollada's document to this one + dom->setDocument(newDocument); + // Set and resolve the document URI + newDocument->getDocumentURI()->setURI(name); + newDocument->getDocumentURI()->validate(); + insertElement( newDocument, dom ); + newDocument->setModified(true); + // Push the connection into the database + documents.push_back(newDocument); + + if (document) + *document = newDocument; + + //check if an already loaded document has external references to this one and resolve them. + for ( unsigned int i = 0; i < documents.size(); i++ ) { + if ( documents[i] != newDocument ) { + documents[i]->resolveExternals( name ); + } + } + + return DAE_OK; +} +// !!!GAC revised version of insertDocument, creates a domCollada and fills it in for you. +daeInt daeSTLDatabase::insertDocument(const char *name, daeDocument** document) +{ + return createDocument( name, document ); +} +daeInt daeSTLDatabase::createDocument(const char *name, daeDocument** document) +{ + + // If a document already exists with the same name, error + if(isDocumentLoaded(name)) + { + if (document) + *document = NULL; + return DAE_ERR_COLLECTION_ALREADY_EXISTS; + } + // Make the new document + daeDocument *newDocument = new daeDocument; + // Make a domCOLLADA to be the root of this new document (this makes a reference so the domCOLLADA won't delete itself + daeElementRef myCOLLADA = topMeta->create(); + // Set the domCollada's document to this one + myCOLLADA->setDocument(newDocument); + newDocument->setDomRoot(myCOLLADA); + // Set and resolve the document URI + newDocument->getDocumentURI()->setURI(name); + newDocument->getDocumentURI()->validate(); + + newDocument->setModified(true); + // Add this document to the list. + documents.push_back(newDocument); + // If the user gave us a place to put the document, send it back to them. + if (document) + *document = newDocument; + + return DAE_OK; +} + +daeInt daeSTLDatabase::insertDocument( daeDocument *c ) { + documents.push_back(c); + insertElement( c, c->getDomRoot() ); + return DAE_OK; +} + +daeInt daeSTLDatabase::removeDocument(daeDocument *document) +{ + // Copy the elements that are not in this collection into + // a new list. + std::vector newElements; + newElements.reserve(elements.size()); + + std::vector::iterator iter = elements.begin(); + while ( iter != elements.end() ) { + if ( (*iter).document != document ) { + newElements.push_back(*iter); + } + iter++; + } + // Replace our existing element list with the new one (that is missing + // the elements from this collection). + elements = newElements; + + //remove the document from its vector + std::vector::iterator iter2 = documents.begin(); + while ( iter2 != documents.end() ) { + if ( (*iter2) == document ) { + iter2 = documents.erase(iter2); + } + else { + iter2++; + } + } + return DAE_OK; +} + +daeUInt daeSTLDatabase::getDocumentCount() +{ + return (daeUInt)documents.size(); +} + +daeDocument* daeSTLDatabase::getDocument(daeUInt index) +{ + if (indexgetDocumentURI()->getURI(), targetURI)==0) + return(document); + } + return(NULL); +} + +daeString daeSTLDatabase::getDocumentName(daeUInt index) +{ + if (indexgetDocumentURI()->getURI(); + else + return NULL; +} + +// Elements +daeInt daeSTLDatabase::insertElement(daeDocument* document,daeElement* element) +{ + insertChildren( document, element ); + + if ((element->getMeta() != NULL) && + (!element->getMeta()->getIsTrackableForQueries())) + return DAE_OK; + + DAE_STL_DATABASE_CELL tmp; + validated = false; + tmp.document = document; + tmp.name = element->getID(); + if (tmp.name == NULL) + tmp.name = ""; //static string in the executable + tmp.type = element->getTypeName(); + tmp.element = element; + + std::vector::iterator it = std::upper_bound(elements.begin(), elements.end(), tmp, daeSTLDatabaseLess()); + elements.insert(it, tmp); + //elements.push_back(tmp); + + return DAE_OK; +} + +daeInt daeSTLDatabase::insertChildren( daeDocument *c, daeElement *element ) +{ + daeElementRefArray era; + element->getChildren( era ); + for ( unsigned int i = 0; i < era.getCount(); i++ ) { + insertElement( c, era[i] ); + } + return DAE_OK; +} + +daeInt daeSTLDatabase::removeElement(daeDocument* document,daeElement* element) +{ + if ( !element ) { + return DAE_ERR_INVALID_CALL; + } + removeChildren( document, element ); + std::vector::iterator iter = elements.begin(); + while ( iter != elements.end() ) { + if ( (*iter).element == element ) { + iter = elements.erase(iter); + } + else { + iter++; + } + } + validated = false; + return DAE_OK; +} + +daeInt daeSTLDatabase::removeChildren( daeDocument *c, daeElement *element ) +{ + daeElementRefArray era; + element->getChildren( era ); + for ( unsigned int i = 0; i < era.getCount(); i++ ) { + removeElement( c, era[i] ); + } + return DAE_OK; +} + + +daeInt daeSTLDatabase::clear() +{ + elements.clear(); + int i; + for (i=0;i<(int)documents.size();i++) + delete documents[i]; + documents.clear(); //this will free the daeElement + return DAE_OK; +} + +daeUInt daeSTLDatabase::getElementCount(daeString name,daeString type,daeString file) +{ + // This sorts the vector if necessary + validate(); + + // If none of the search keys was specified, return the total element count in the database + + if ( !name && !type && !file ) + { + return (daeUInt)elements.size(); + } + + std::pair< std::vector::iterator, std::vector::iterator> range; + int sz = 0; + // The database is sorted by type so if type was one of the keys, find the range of items with that type + if ( type ) + { + // if a type was specified, range = elements of that type + DAE_STL_DATABASE_CELL a; + a.type = type; + a.name = NULL; + a.document = NULL; + range = std::equal_range(elements.begin(),elements.end(),a,daeSTLDatabaseTypeLess()); + sz = (int)(range.second - range.first); + } + else + { + //no type specified, range = all elements + range.first = elements.begin(); + range.second = elements.end(); + sz = (int)elements.size(); + } + + if ( name ) + { + // name specified + int count = 0; + if ( file ) + { + // If a document URI was a search key (in file) resolve it to a text URI with no fragment + daeURI tempURI(file,true); + daeDocument *col = getDocument( tempURI.getURI() ); + if ( col == NULL ) { + return 0; + } + // a document was specified + //for ( int i = 0; i < sz; i++ ) + std::vector< DAE_STL_DATABASE_CELL >::iterator i = range.first; + while ( i != range.second ) + { + DAE_STL_DATABASE_CELL e = *(i); + if ( col == e.document && !strcmp(name, e.name) ) + { + count++; + } + i++; + } + return count; + } + else + { + //no file specified + std::vector< DAE_STL_DATABASE_CELL >::iterator i = range.first; + while ( i != range.second ) + { + DAE_STL_DATABASE_CELL e = *(i); + if ( !strcmp( name, e.name ) ) { + count++; + } + i++; + } + return count; + } + } + else + { + //no name specified + if ( file ) + { + // If a document URI was a search key (in file) resolve it to a text URI with no fragment + daeURI tempURI(file,true); + daeDocument *col = getDocument( tempURI.getURI() ); + if ( col == NULL ) { + return 0; + } + //a document was specified + int count = 0; + std::vector< DAE_STL_DATABASE_CELL >::iterator i = range.first; + while ( i != range.second ) + { + DAE_STL_DATABASE_CELL e = *(i); + if( col == e.document ) + { + count++; + } + i++; + } + return count; + } + } + //if you get to this point only a type was specified + return sz; +} + +daeInt daeSTLDatabase::getElement(daeElement** pElement,daeInt index,daeString name,daeString type,daeString file) +{ + // this sorts the vector if necessary + validate(); + + // If the index is out of range, there can be no match + if ( index < 0 || index >= (int)elements.size() ) + { + return DAE_ERR_QUERY_NO_MATCH; + } + + // If no name, type or file was specified we return the element at "index" + if ( !name && !type && !file ) + { + *pElement = elements[index].element; + return DAE_OK; + } + + std::pair< std::vector::iterator, std::vector::iterator> range; + int sz = 0; + if ( type ) + { + //a type was specified, range = elements of that type + DAE_STL_DATABASE_CELL a; + a.type = type; + a.name = NULL; + a.document = NULL; + range = std::equal_range(elements.begin(),elements.end(),a,daeSTLDatabaseTypeLess()); + sz = (int)(range.second - range.first); + if ( index >= sz ) + { + return DAE_ERR_QUERY_NO_MATCH; + } + } + else + { + //no type specified, range = all elements + range.first = elements.begin(); + range.second = elements.end(); + sz = (int)elements.size(); + } + + if ( name ) + { + //name specified + int count = 0; + if ( file ) + { + // If a document URI was a search key (in file) resolve it to a text URI with no fragment + daeURI tempURI(file,true); + daeDocument *col = getDocument( tempURI.getURI() ); + if ( col == NULL ) { + return DAE_ERR_QUERY_NO_MATCH; + } + //a document was specified + //for ( int i = 0; i < sz; i++ ) + std::vector< DAE_STL_DATABASE_CELL >::iterator i = range.first; + while ( i != range.second ) + { + DAE_STL_DATABASE_CELL e = *i; + if ( col == e.document && !strcmp(name, e.name) ) + { + if ( count == index ) + { + *pElement = e.element; + return DAE_OK; + } + count++; + } + i++; + } + return DAE_ERR_QUERY_NO_MATCH; + } + else + { + //no document specified + std::vector< DAE_STL_DATABASE_CELL >::iterator i = range.first; + while ( i != range.second ) + { + DAE_STL_DATABASE_CELL e = *(i); + if ( !strcmp( name, e.name ) ) + { + if ( count == index ) + { + *pElement = e.element; + return DAE_OK; + } + count++; + } + i++; + } + return DAE_ERR_QUERY_NO_MATCH; + } + } + else + { + //no name specified + if ( file ) + { + // If a document URI was a search key (in file) resolve it to a text URI with no fragment + daeURI tempURI(file,true); + daeDocument *col = getDocument( tempURI.getURI() ); + if ( col == NULL ) { + return DAE_ERR_QUERY_NO_MATCH; + } + //a document was specified + int count = 0; + std::vector< DAE_STL_DATABASE_CELL >::iterator i = range.first; + while ( i != range.second ) + { + DAE_STL_DATABASE_CELL e = *(i); + if( col == e.document ) + { + if( count == index ) + { + *pElement = e.element; + return DAE_OK; + } + count++; + } + i++; + } + return DAE_ERR_QUERY_NO_MATCH; + } + } + //if you get to this point only a type was specified + *pElement = (*(range.first+index)).element; + return DAE_OK; +} + +// Generic Query +daeInt daeSTLDatabase::queryElement(daeElement** pElement, daeString genericQuery) +{ + (void)pElement; + (void)genericQuery; + return DAE_ERR_NOT_IMPLEMENTED; +} + +void daeSTLDatabase::validate() +{ + for( unsigned int i = 0; i < documents.size(); i++ ) { + if (documents[i]->getModified() ) { + daeDocument *tmp = documents[i]; + //removeDocument( tmp ); + //insertDocument( tmp ); + const daeElementRefArray &iea = tmp->getInsertedArray(); + for ( unsigned int x = 0; x < iea.getCount(); x++ ) { + insertElement( tmp, iea[x] ); + } + const daeElementRefArray &rea = tmp->getRemovedArray(); + for ( unsigned int x = 0; x < rea.getCount(); x++ ) { + removeElement( tmp, rea[x] ); + } + tmp->setModified(false); + validated = false; + } + } + //if (!validated) + //{ + // //sort the array by type then by name + // std::sort(elements.begin(),elements.end(),daeSTLDatabaseLess()); + // validated = true; + //} +} + diff --git a/Extras/COLLADA_DOM/src/modules/stdErrPlugin/stdErrPlugin.cpp b/Extras/COLLADA_DOM/src/modules/stdErrPlugin/stdErrPlugin.cpp new file mode 100644 index 000000000..15d520427 --- /dev/null +++ b/Extras/COLLADA_DOM/src/modules/stdErrPlugin/stdErrPlugin.cpp @@ -0,0 +1,33 @@ +/* + * Copyright 2006 Sony Computer Entertainment Inc. + * + * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://research.scea.com/scea_shared_source_license.html + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing permissions and limitations under the + * License. + */ + +#include +#include + +stdErrPlugin::stdErrPlugin() { +} + +stdErrPlugin::~stdErrPlugin() { +} + +void stdErrPlugin::handleError( daeString msg ) { + //fprintf( stderr, "Error: %s\n", msg ); + //fflush( stderr ); + printf( "Error: %s\n", msg ); +} + +void stdErrPlugin::handleWarning( daeString msg ) { + //fprintf( stderr, "Warning: %s\n", msg ); + //fflush( stderr ); + printf( "Warning: %s\n", msg ); +}