Engine directory for ticket #1

This commit is contained in:
DavidWyand-GG 2012-09-19 11:15:01 -04:00
parent 352279af7a
commit 7dbfe6994d
3795 changed files with 1363358 additions and 0 deletions

View file

@ -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.
*/
#ifndef __domAccessor_h__
#define __domAccessor_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domParam.h>
class DAE;
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ACCESSOR; }
static daeInt ID() { return 609; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
/**
* 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 = atSource; _validAttributeArray[2] = true; }
/**
* Sets the source attribute.
* @param atSource The new value for the source attribute.
*/
void setSource( xsString atSource ) { attrSource = atSource; _validAttributeArray[2] = true; }
/**
* 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; _validAttributeArray[3] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrCount(), attrOffset(), attrSource(dae, *this), attrStride(), elemParam_array() {}
/**
* Destructor
*/
virtual ~domAccessor() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,217 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domSource.h>
#include <dom/domSampler.h>
#include <dom/domChannel.h>
#include <dom/domAnimation.h>
#include <dom/domExtra.h>
class DAE;
/**
* The animation element categorizes the declaration of animation information.
* The animation hierarchy contains elements that describe the animations
* key-frame data and sampler functions, ordered in such a way to group together
* animations that should be executed together.
*/
class domAnimation : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ANIMATION; }
static daeInt ID() { return 651; }
virtual daeInt typeID() const { return ID(); }
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the id attribute.
* @return Returns a xsID of the id attribute.
*/
xsID getId() const { return attrId; }
/**
* Sets the id attribute.
* @param atId The new value for the id attribute.
*/
void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemSource_array(), elemSampler_array(), elemChannel_array(), elemAnimation_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domAnimation() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domAnimation_clip_h__
#define __domAnimation_clip_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domExtra.h>
#include <dom/domInstanceWithExtra.h>
class DAE;
/**
* The animation_clip element defines a section of the animation curves to
* be used together as an animation clip.
*/
class domAnimation_clip : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ANIMATION_CLIP; }
static daeInt ID() { return 652; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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; _validAttributeArray[2] = true; }
/**
* 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; _validAttributeArray[3] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), attrStart(), attrEnd(), elemAsset(), elemInstance_animation_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domAnimation_clip() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,190 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domParam.h>
#include <dom/domTechnique.h>
#include <dom/domExtra.h>
#include <dom/domInstance_material.h>
class DAE;
/**
* Bind a specific material to a piece of geometry, binding varying and uniform
* parameters at the same time.
*/
class domBind_material : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BIND_MATERIAL; }
static daeInt ID() { return 686; }
virtual daeInt typeID() const { return ID(); }
public:
class domTechnique_common;
typedef daeSmartRef<domTechnique_common> domTechnique_commonRef;
typedef daeTArray<domTechnique_commonRef> domTechnique_common_Array;
/**
* The technique_common element specifies the bind_material information for
* the common profile which all COLLADA implementations need to support.
*/
class domTechnique_common : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; }
static daeInt ID() { return 687; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), elemInstance_material_array() {}
/**
* Destructor
*/
virtual ~domTechnique_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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 bind_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 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; }
/**
* 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
*/
domBind_material(DAE& dae) : daeElement(dae), elemParam_array(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domBind_material() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domBool_array_h__
#define __domBool_array_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* The bool_array element declares the storage for a homogenous array of boolean
* values.
*/
class domBool_array : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL_ARRAY; }
static daeInt ID() { return 606; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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; _validAttributeArray[2] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), attrCount(), _value() {}
/**
* Destructor
*/
virtual ~domBool_array() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domBox_h__
#define __domBox_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* An axis-aligned, centered box primitive.
*/
class domBox : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOX; }
static daeInt ID() { return 767; }
virtual daeInt typeID() const { return ID(); }
public:
class domHalf_extents;
typedef daeSmartRef<domHalf_extents> domHalf_extentsRef;
typedef daeTArray<domHalf_extentsRef> domHalf_extents_Array;
/**
* 3 float values that represent the extents of the box
*/
class domHalf_extents : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF_EXTENTS; }
static daeInt ID() { return 768; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domHalf_extents() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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(DAE& dae) : daeElement(dae), elemHalf_extents(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domBox() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,527 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domLibrary_animations.h>
#include <dom/domLibrary_animation_clips.h>
#include <dom/domLibrary_cameras.h>
#include <dom/domLibrary_controllers.h>
#include <dom/domLibrary_geometries.h>
#include <dom/domLibrary_effects.h>
#include <dom/domLibrary_force_fields.h>
#include <dom/domLibrary_images.h>
#include <dom/domLibrary_lights.h>
#include <dom/domLibrary_materials.h>
#include <dom/domLibrary_nodes.h>
#include <dom/domLibrary_physics_materials.h>
#include <dom/domLibrary_physics_models.h>
#include <dom/domLibrary_physics_scenes.h>
#include <dom/domLibrary_visual_scenes.h>
#include <dom/domExtra.h>
#include <dom/domInstanceWithExtra.h>
class DAE;
/**
* The COLLADA element declares the root of the document that comprises some
* of the content in the COLLADA schema.
*/
class domCOLLADA : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLLADA; }
static daeInt ID() { return 602; }
virtual daeInt typeID() const { return ID(); }
public:
class domScene;
typedef daeSmartRef<domScene> domSceneRef;
typedef daeTArray<domSceneRef> 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SCENE; }
static daeInt ID() { return 603; }
virtual daeInt typeID() const { return ID(); }
protected: // Elements
/**
* The instance_physics_scene element declares the instantiation of a COLLADA
* physics_scene resource. The instance_physics_scene element may appear any
* number of times. @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(DAE& dae) : daeElement(dae), elemInstance_physics_scene_array(), elemInstance_visual_scene(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domScene() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Attributes
/**
* 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;
/**
* The xml:base attribute allows you to define the base URI for this COLLADA
* document. See http://www.w3.org/TR/xmlbase/ for more information.
*/
xsAnyURI attrXml_base;
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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 = xmlns;
_validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
/**
* Gets the xml_base attribute.
* @return Returns a xsAnyURI reference of the xml_base attribute.
*/
xsAnyURI &getXml_base() { return attrXml_base; }
/**
* Gets the xml_base attribute.
* @return Returns a constant xsAnyURI reference of the xml_base attribute.
*/
const xsAnyURI &getXml_base() const { return attrXml_base; }
/**
* Sets the xml_base attribute.
* @param atXml_base The new value for the xml_base attribute.
*/
void setXml_base( const xsAnyURI &atXml_base ) { attrXml_base = atXml_base; _validAttributeArray[2] = true; }
/**
* Sets the xml_base attribute.
* @param atXml_base The new value for the xml_base attribute.
*/
void setXml_base( xsString atXml_base ) { attrXml_base = atXml_base; _validAttributeArray[2] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrXmlns(dae, *this), attrVersion(), attrXml_base(dae, *this), 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() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,658 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domExtra.h>
#include <dom/domTechnique.h>
#include <dom/domTargetableFloat.h>
class DAE;
/**
* The camera element declares a view into the scene hierarchy or scene graph.
* The camera contains elements that describe the cameras optics and imager.
*/
class domCamera : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CAMERA; }
static daeInt ID() { return 645; }
virtual daeInt typeID() const { return ID(); }
public:
class domOptics;
typedef daeSmartRef<domOptics> domOpticsRef;
typedef daeTArray<domOpticsRef> domOptics_Array;
/**
* Optics represents the apparatus on a camera that projects the image onto
* the image sensor.
*/
class domOptics : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::OPTICS; }
static daeInt ID() { return 646; }
virtual daeInt typeID() const { return ID(); }
public:
class domTechnique_common;
typedef daeSmartRef<domTechnique_common> domTechnique_commonRef;
typedef daeTArray<domTechnique_commonRef> 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:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; }
static daeInt ID() { return 647; }
virtual daeInt typeID() const { return ID(); }
public:
class domOrthographic;
typedef daeSmartRef<domOrthographic> domOrthographicRef;
typedef daeTArray<domOrthographicRef> domOrthographic_Array;
/**
* The orthographic element describes the field of view of an orthographic
* camera.
*/
class domOrthographic : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ORTHOGRAPHIC; }
static daeInt ID() { return 648; }
virtual daeInt typeID() const { return ID(); }
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae) : daeElement(dae), elemXmag(), elemYmag(), elemAspect_ratio(), elemZnear(), elemZfar() {}
/**
* Destructor
*/
virtual ~domOrthographic() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domPerspective;
typedef daeSmartRef<domPerspective> domPerspectiveRef;
typedef daeTArray<domPerspectiveRef> domPerspective_Array;
/**
* The perspective element describes the optics of a perspective camera.
*/
class domPerspective : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PERSPECTIVE; }
static daeInt ID() { return 649; }
virtual daeInt typeID() const { return ID(); }
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 verticle
* 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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae) : daeElement(dae), elemXfov(), elemYfov(), elemAspect_ratio(), elemZnear(), elemZfar() {}
/**
* Destructor
*/
virtual ~domPerspective() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae) : daeElement(dae), elemOrthographic(), elemPerspective() {}
/**
* Destructor
*/
virtual ~domTechnique_common() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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(DAE& dae) : daeElement(dae), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domOptics() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domImager;
typedef daeSmartRef<domImager> domImagerRef;
typedef daeTArray<domImagerRef> domImager_Array;
/**
* Imagers represent the image sensor of a camera (for example film or CCD).
*/
class domImager : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::IMAGER; }
static daeInt ID() { return 650; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), elemTechnique_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domImager() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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 ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemOptics(), elemImager(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domCamera() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,230 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* A capsule primitive that is centered on and aligned with the local Y axis.
*/
class domCapsule : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CAPSULE; }
static daeInt ID() { return 782; }
virtual daeInt typeID() const { return ID(); }
public:
class domHeight;
typedef daeSmartRef<domHeight> domHeightRef;
typedef daeTArray<domHeightRef> domHeight_Array;
/**
* A float value that represents the length of the line segment connecting
* the centers of the capping hemispheres.
*/
class domHeight : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HEIGHT; }
static daeInt ID() { return 783; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domHeight() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domRadius;
typedef daeSmartRef<domRadius> domRadiusRef;
typedef daeTArray<domRadiusRef> domRadius_Array;
/**
* Two float values that represent the radii of the capsule (it may be elliptical)
*/
class domRadius : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS; }
static daeInt ID() { return 784; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domRadius() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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(DAE& dae) : daeElement(dae), elemHeight(), elemRadius(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domCapsule() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domCg_connect_param_h__
#define __domCg_connect_param_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* 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(DAE& dae, daeElement* elt) : attrRef() {}
/**
* Destructor
*/
virtual ~domCg_connect_param_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_CONNECT_PARAM; }
static daeInt ID() { return 133; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domCg_connect_param(DAE& dae) : daeElement(dae), domCg_connect_param_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_connect_param() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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.
*/
#ifndef __domCg_newarray_type_h__
#define __domCg_newarray_type_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domCg_param_type.h>
#include <dom/domCg_newarray_type.h>
#include <dom/domCg_setuser_type.h>
#include <dom/domCg_connect_param.h>
class DAE;
/**
* 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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae, daeElement* elt) : attrLength(), elemCg_param_type_array(), elemArray_array(), elemUsertype_array(), elemConnect_param_array() {}
/**
* Destructor
*/
virtual ~domCg_newarray_type_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_NEWARRAY_TYPE; }
static daeInt ID() { return 134; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domCg_newarray_type(DAE& dae) : daeElement(dae), domCg_newarray_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_newarray_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domCg_param_type.h>
#include <dom/domFx_annotate_common.h>
#include <dom/domCg_setuser_type.h>
#include <dom/domCg_newarray_type.h>
class DAE;
/**
* 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<domSemantic> domSemanticRef;
typedef daeTArray<domSemanticRef> domSemantic_Array;
/**
* The semantic element allows you to specify a semantic for this new param.
*/
class domSemantic : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; }
static daeInt ID() { return 140; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSemantic(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSemantic() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domModifier;
typedef daeSmartRef<domModifier> domModifierRef;
typedef daeTArray<domModifierRef> domModifier_Array;
/**
* The modifier element allows you to specify a modifier for this new param.
*/
class domModifier : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIER; }
static daeInt ID() { return 141; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domModifier() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae, daeElement* elt) : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemCg_param_type(), elemUsertype(), elemArray() {}
/**
* Destructor
*/
virtual ~domCg_newparam_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_NEWPARAM; }
static daeInt ID() { return 142; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domCg_newparam(DAE& dae) : daeElement(dae), domCg_newparam_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_newparam() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,80 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_sampler1D_common.h>
class DAE;
class domCg_sampler1D_complexType : public domFx_sampler1D_common_complexType
{
protected:
/**
* Constructor
*/
domCg_sampler1D_complexType(DAE& dae, daeElement* elt) : domFx_sampler1D_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domCg_sampler1D_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLER1D; }
static daeInt ID() { return 127; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domCg_sampler1D(DAE& dae) : daeElement(dae), domCg_sampler1D_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_sampler1D() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,80 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_sampler2D_common.h>
class DAE;
class domCg_sampler2D_complexType : public domFx_sampler2D_common_complexType
{
protected:
/**
* Constructor
*/
domCg_sampler2D_complexType(DAE& dae, daeElement* elt) : domFx_sampler2D_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domCg_sampler2D_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLER2D; }
static daeInt ID() { return 128; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domCg_sampler2D(DAE& dae) : daeElement(dae), domCg_sampler2D_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_sampler2D() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,80 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_sampler3D_common.h>
class DAE;
class domCg_sampler3D_complexType : public domFx_sampler3D_common_complexType
{
protected:
/**
* Constructor
*/
domCg_sampler3D_complexType(DAE& dae, daeElement* elt) : domFx_sampler3D_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domCg_sampler3D_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLER3D; }
static daeInt ID() { return 129; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domCg_sampler3D(DAE& dae) : daeElement(dae), domCg_sampler3D_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_sampler3D() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,80 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_samplerCUBE_common.h>
class DAE;
class domCg_samplerCUBE_complexType : public domFx_samplerCUBE_common_complexType
{
protected:
/**
* Constructor
*/
domCg_samplerCUBE_complexType(DAE& dae, daeElement* elt) : domFx_samplerCUBE_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domCg_samplerCUBE_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLERCUBE; }
static daeInt ID() { return 130; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domCg_samplerCUBE(DAE& dae) : daeElement(dae), domCg_samplerCUBE_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_samplerCUBE() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,80 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_samplerDEPTH_common.h>
class DAE;
class domCg_samplerDEPTH_complexType : public domFx_samplerDEPTH_common_complexType
{
protected:
/**
* Constructor
*/
domCg_samplerDEPTH_complexType(DAE& dae, daeElement* elt) : domFx_samplerDEPTH_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domCg_samplerDEPTH_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLERDEPTH; }
static daeInt ID() { return 132; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domCg_samplerDEPTH(DAE& dae) : daeElement(dae), domCg_samplerDEPTH_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_samplerDEPTH() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,80 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_samplerRECT_common.h>
class DAE;
class domCg_samplerRECT_complexType : public domFx_samplerRECT_common_complexType
{
protected:
/**
* Constructor
*/
domCg_samplerRECT_complexType(DAE& dae, daeElement* elt) : domFx_samplerRECT_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domCg_samplerRECT_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLERRECT; }
static daeInt ID() { return 131; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domCg_samplerRECT(DAE& dae) : daeElement(dae), domCg_samplerRECT_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_samplerRECT() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,182 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domCg_param_type.h>
#include <dom/domCg_setarray_type.h>
#include <dom/domCg_setuser_type.h>
class DAE;
/**
* 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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae, daeElement* elt) : attrLength(), elemCg_param_type_array(), elemArray_array(), elemUsertype_array() {}
/**
* Destructor
*/
virtual ~domCg_setarray_type_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SETARRAY_TYPE; }
static daeInt ID() { return 135; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domCg_setarray_type(DAE& dae) : daeElement(dae), domCg_setarray_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_setarray_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,187 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domCg_param_type.h>
#include <dom/domCg_setuser_type.h>
#include <dom/domCg_setarray_type.h>
#include <dom/domCg_connect_param.h>
class DAE;
/**
* 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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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 ) { *(daeStringRef*)&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(DAE& dae, daeElement* elt) : attrRef(), attrProgram(), elemCg_param_type(), elemUsertype(), elemArray(), elemConnect_param() {}
/**
* Destructor
*/
virtual ~domCg_setparam_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SETPARAM; }
static daeInt ID() { return 144; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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 ) { *(daeStringRef*)&attrProgram = atProgram; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domCg_setparam(DAE& dae) : daeElement(dae), domCg_setparam_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_setparam() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domCg_setparam_simple_h__
#define __domCg_setparam_simple_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domCg_param_type.h>
#include <dom/domFx_annotate_common.h>
class DAE;
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(DAE& dae, daeElement* elt) : attrRef(), elemAnnotate_array(), elemCg_param_type() {}
/**
* Destructor
*/
virtual ~domCg_setparam_simple_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SETPARAM_SIMPLE; }
static daeInt ID() { return 143; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domCg_setparam_simple(DAE& dae) : daeElement(dae), domCg_setparam_simple_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_setparam_simple() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,226 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domCg_param_type.h>
#include <dom/domCg_setarray_type.h>
#include <dom/domCg_setuser_type.h>
#include <dom/domCg_connect_param.h>
#include <dom/domCg_setparam.h>
class DAE;
/**
* Creates an instance of a structured class.
*/
class domCg_setuser_type_complexType
{
protected: // Attributes
domCg_identifier attrName;
/**
* Reference a code or include element which defines the usertype
*/
xsNCName attrSource;
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;
/**
* Use a series of these to set the members by name. The ref attribute will
* be relative to the usertype you are in right now. @see domSetparam
*/
domCg_setparam_Array elemSetparam_array;
/**
* Used to preserve order in elements that do not specify strict sequencing of sub-elements.
*/
daeElementRefArray _contents;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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 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 ) { *(daeStringRef*)&attrSource = atSource;}
/**
* 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 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 _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(DAE& dae, daeElement* elt) : attrName(), attrSource(), elemCg_param_type_array(), elemArray_array(), elemUsertype_array(), elemConnect_param_array(), elemSetparam_array() {}
/**
* Destructor
*/
virtual ~domCg_setuser_type_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SETUSER_TYPE; }
static daeInt ID() { return 136; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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 ) { *(daeStringRef*)&attrSource = atSource; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domCg_setuser_type(DAE& dae) : daeElement(dae), domCg_setuser_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_setuser_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,317 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_surface_common.h>
#include <dom/domFx_annotate_common.h>
#include <dom/domFx_code_profile.h>
#include <dom/domFx_include_common.h>
#include <dom/domCg_setparam_simple.h>
class DAE;
/**
* 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<domGenerator> domGeneratorRef;
typedef daeTArray<domGeneratorRef> domGenerator_Array;
/**
* A procedural surface generator for the cg profile.
*/
class domGenerator : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GENERATOR; }
static daeInt ID() { return 137; }
virtual daeInt typeID() const { return ID(); }
public:
class domName;
typedef daeSmartRef<domName> domNameRef;
typedef daeTArray<domNameRef> domName_Array;
/**
* The entry symbol for the shader function.
*/
class domName : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NAME; }
static daeInt ID() { return 138; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSource = atSource; _validAttributeArray[0] = true; }
/**
* Gets the value of this element.
* @return Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domName(DAE& dae) : daeElement(dae), attrSource(), _value() {}
/**
* Destructor
*/
virtual ~domName() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae) : daeElement(dae), elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemName(), elemSetparam_array() {}
/**
* Destructor
*/
virtual ~domGenerator() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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(DAE& dae, daeElement* elt) : domFx_surface_common_complexType(dae, elt), elemGenerator() {}
/**
* Destructor
*/
virtual ~domCg_surface_type_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SURFACE_TYPE; }
static daeInt ID() { return 139; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domCg_surface_type(DAE& dae) : daeElement(dae), domCg_surface_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCg_surface_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domChannel_h__
#define __domChannel_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* The channel element declares an output channel of an animation.
*/
class domChannel : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CHANNEL; }
static daeInt ID() { return 653; }
virtual daeInt typeID() const { return ID(); }
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 = atSource; _validAttributeArray[0] = true; }
/**
* Sets the source attribute.
* @param atSource The new value for the source attribute.
*/
void setSource( xsString atSource ) { attrSource = atSource; _validAttributeArray[0] = true; }
/**
* 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 ) { *(daeStringRef*)&attrTarget = atTarget; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domChannel(DAE& dae) : daeElement(dae), attrSource(dae, *this), attrTarget() {}
/**
* Destructor
*/
virtual ~domChannel() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,333 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
class domCommon_color_or_texture_type_complexType
{
public:
class domColor;
typedef daeSmartRef<domColor> domColorRef;
typedef daeTArray<domColorRef> domColor_Array;
class domColor : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR; }
static daeInt ID() { return 116; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrSid(), _value() {}
/**
* Destructor
*/
virtual ~domColor() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domParam;
typedef daeSmartRef<domParam> domParamRef;
typedef daeTArray<domParamRef> domParam_Array;
class domParam : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; }
static daeInt ID() { return 117; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrRef = atRef; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domParam(DAE& dae) : daeElement(dae), attrRef() {}
/**
* Destructor
*/
virtual ~domParam() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domTexture;
typedef daeSmartRef<domTexture> domTextureRef;
typedef daeTArray<domTextureRef> domTexture_Array;
class domTexture : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE; }
static daeInt ID() { return 118; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrTexture = atTexture; _validAttributeArray[0] = true; }
/**
* 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 ) { *(daeStringRef*)&attrTexcoord = atTexcoord; _validAttributeArray[1] = true; }
/**
* Gets the extra element.
* @return a daeSmartRef to the extra element.
*/
const domExtraRef getExtra() const { return elemExtra; }
protected:
/**
* Constructor
*/
domTexture(DAE& dae) : daeElement(dae), attrTexture(), attrTexcoord(), elemExtra() {}
/**
* Destructor
*/
virtual ~domTexture() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae, daeElement* elt) : elemColor(), elemParam(), elemTexture() {}
/**
* Destructor
*/
virtual ~domCommon_color_or_texture_type_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMON_COLOR_OR_TEXTURE_TYPE; }
static daeInt ID() { return 119; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domCommon_color_or_texture_type(DAE& dae) : daeElement(dae), domCommon_color_or_texture_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCommon_color_or_texture_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domCommon_float_or_param_type_h__
#define __domCommon_float_or_param_type_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
class domCommon_float_or_param_type_complexType
{
public:
class domFloat;
typedef daeSmartRef<domFloat> domFloatRef;
typedef daeTArray<domFloatRef> domFloat_Array;
class domFloat : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; }
static daeInt ID() { return 113; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrSid(), _value() {}
/**
* Destructor
*/
virtual ~domFloat() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domParam;
typedef daeSmartRef<domParam> domParamRef;
typedef daeTArray<domParamRef> domParam_Array;
class domParam : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; }
static daeInt ID() { return 114; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrRef = atRef; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domParam(DAE& dae) : daeElement(dae), attrRef() {}
/**
* Destructor
*/
virtual ~domParam() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Elements
domFloatRef elemFloat;
domParamRef elemParam;
/**
* Used to preserve order in elements that do not specify strict sequencing of sub-elements.
*/
daeElementRefArray _contents;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae, daeElement* elt) : elemFloat(), elemParam() {}
/**
* Destructor
*/
virtual ~domCommon_float_or_param_type_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMON_FLOAT_OR_PARAM_TYPE; }
static daeInt ID() { return 115; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domCommon_float_or_param_type(DAE& dae) : daeElement(dae), domCommon_float_or_param_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCommon_float_or_param_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,489 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_surface_common.h>
#include <dom/domFx_sampler2D_common.h>
class DAE;
class domCommon_newparam_type_complexType
{
public:
class domSemantic;
typedef daeSmartRef<domSemantic> domSemanticRef;
typedef daeTArray<domSemanticRef> domSemantic_Array;
class domSemantic : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; }
static daeInt ID() { return 121; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSemantic(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSemantic() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domFloat;
typedef daeSmartRef<domFloat> domFloatRef;
typedef daeTArray<domFloatRef> domFloat_Array;
class domFloat : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; }
static daeInt ID() { return 122; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domFloat() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domFloat2;
typedef daeSmartRef<domFloat2> domFloat2Ref;
typedef daeTArray<domFloat2Ref> domFloat2_Array;
class domFloat2 : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2; }
static daeInt ID() { return 123; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domFloat2() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domFloat3;
typedef daeSmartRef<domFloat3> domFloat3Ref;
typedef daeTArray<domFloat3Ref> domFloat3_Array;
class domFloat3 : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3; }
static daeInt ID() { return 124; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domFloat3() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domFloat4;
typedef daeSmartRef<domFloat4> domFloat4Ref;
typedef daeTArray<domFloat4Ref> domFloat4_Array;
class domFloat4 : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4; }
static daeInt ID() { return 125; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domFloat4() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the sid attribute.
* @return Returns a xsNCName of the sid attribute.
*/
xsNCName getSid() const { return attrSid; }
/**
* Sets the sid attribute.
* @param atSid The new value for the sid attribute.
*/
void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid;}
/**
* 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(DAE& dae, daeElement* elt) : attrSid(), elemSemantic(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemSurface(), elemSampler2D() {}
/**
* Destructor
*/
virtual ~domCommon_newparam_type_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMON_NEWPARAM_TYPE; }
static daeInt ID() { return 126; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domCommon_newparam_type(DAE& dae) : daeElement(dae), domCommon_newparam_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCommon_newparam_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domCommon_transparent_type_h__
#define __domCommon_transparent_type_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domCommon_color_or_texture_type.h>
class DAE;
class domCommon_transparent_type_complexType : public domCommon_color_or_texture_type_complexType
{
protected: // Attribute
domFx_opaque_enum attrOpaque;
public: //Accessors and Mutators
/**
* Gets the opaque attribute.
* @return Returns a domFx_opaque_enum of the opaque attribute.
*/
domFx_opaque_enum getOpaque() const { return attrOpaque; }
/**
* Sets the opaque attribute.
* @param atOpaque The new value for the opaque attribute.
*/
void setOpaque( domFx_opaque_enum atOpaque ) { attrOpaque = atOpaque; }
protected:
/**
* Constructor
*/
domCommon_transparent_type_complexType(DAE& dae, daeElement* elt) : domCommon_color_or_texture_type_complexType(dae, elt), attrOpaque() {}
/**
* Destructor
*/
virtual ~domCommon_transparent_type_complexType() {}
/**
* Overloaded assignment operator
*/
virtual domCommon_transparent_type_complexType &operator=( const domCommon_transparent_type_complexType &cpy ) { (void)cpy; return *this; }
};
/**
* An element of type domCommon_transparent_type_complexType.
*/
class domCommon_transparent_type : public daeElement, public domCommon_transparent_type_complexType
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMON_TRANSPARENT_TYPE; }
static daeInt ID() { return 120; }
virtual daeInt typeID() const { return ID(); }
public: //Accessors and Mutators
/**
* Gets the opaque attribute.
* @return Returns a domFx_opaque_enum of the opaque attribute.
*/
domFx_opaque_enum getOpaque() const { return attrOpaque; }
/**
* Sets the opaque attribute.
* @param atOpaque The new value for the opaque attribute.
*/
void setOpaque( domFx_opaque_enum atOpaque ) { attrOpaque = atOpaque; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domCommon_transparent_type(DAE& dae) : daeElement(dae), domCommon_transparent_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domCommon_transparent_type() {}
/**
* Overloaded assignment operator
*/
virtual domCommon_transparent_type &operator=( const domCommon_transparent_type &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,174 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domSkin.h>
#include <dom/domMorph.h>
#include <dom/domExtra.h>
class DAE;
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONTROLLER; }
static daeInt ID() { return 655; }
virtual daeInt typeID() const { return ID(); }
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the id attribute.
* @return Returns a xsID of the id attribute.
*/
xsID getId() const { return attrId; }
/**
* Sets the id attribute.
* @param atId The new value for the id attribute.
*/
void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemSkin(), elemMorph(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domController() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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.
*/
#ifndef __domConvex_mesh_h__
#define __domConvex_mesh_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domSource.h>
#include <dom/domVertices.h>
#include <dom/domLines.h>
#include <dom/domLinestrips.h>
#include <dom/domPolygons.h>
#include <dom/domPolylist.h>
#include <dom/domTriangles.h>
#include <dom/domTrifans.h>
#include <dom/domTristrips.h>
#include <dom/domExtra.h>
class DAE;
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONVEX_MESH; }
static daeInt ID() { return 789; }
virtual daeInt typeID() const { return ID(); }
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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 = atConvex_hull_of; _validAttributeArray[0] = true; }
/**
* Sets the convex_hull_of attribute.
* @param atConvex_hull_of The new value for the convex_hull_of attribute.
*/
void setConvex_hull_of( xsString atConvex_hull_of ) { attrConvex_hull_of = atConvex_hull_of; _validAttributeArray[0] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrConvex_hull_of(dae, *this), elemSource_array(), elemVertices(), elemLines_array(), elemLinestrips_array(), elemPolygons_array(), elemPolylist_array(), elemTriangles_array(), elemTrifans_array(), elemTristrips_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domConvex_mesh() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domCylinder_h__
#define __domCylinder_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* A cylinder primitive that is centered on, and aligned with. the local Y
* axis.
*/
class domCylinder : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CYLINDER; }
static daeInt ID() { return 775; }
virtual daeInt typeID() const { return ID(); }
public:
class domHeight;
typedef daeSmartRef<domHeight> domHeightRef;
typedef daeTArray<domHeightRef> domHeight_Array;
/**
* A float value that represents the length of the cylinder along the Y axis.
*/
class domHeight : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HEIGHT; }
static daeInt ID() { return 776; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domHeight() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domRadius;
typedef daeSmartRef<domRadius> domRadiusRef;
typedef daeTArray<domRadiusRef> domRadius_Array;
/**
* float2 values that represent the radii of the cylinder.
*/
class domRadius : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS; }
static daeInt ID() { return 777; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domRadius() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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(DAE& dae) : daeElement(dae), elemHeight(), elemRadius(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domCylinder() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domEffect_h__
#define __domEffect_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domImage.h>
#include <dom/domFx_profile_abstract.h>
#include <dom/domExtra.h>
#include <dom/domFx_annotate_common.h>
#include <dom/domFx_newparam_common.h>
class DAE;
/**
* A self contained description of a shader effect.
*/
class domEffect : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::EFFECT; }
static daeInt ID() { return 728; }
virtual daeInt typeID() const { return ID(); }
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
public: //Accessors and Mutators
/**
* Gets the id attribute.
* @return Returns a xsID of the id attribute.
*/
xsID getId() const { return attrId; }
/**
* Sets the id attribute.
* @param atId The new value for the id attribute.
*/
void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemAnnotate_array(), elemImage_array(), elemNewparam_array(), elemFx_profile_abstract_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domEffect() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,871 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dom/domTypes.h>
class domInputGlobal;
typedef daeSmartRef<domInputGlobal> domInputGlobalRef;
typedef daeTArray<domInputGlobalRef> domInputGlobal_Array;
class domInputLocal;
typedef daeSmartRef<domInputLocal> domInputLocalRef;
typedef daeTArray<domInputLocalRef> domInputLocal_Array;
class domInputLocalOffset;
typedef daeSmartRef<domInputLocalOffset> domInputLocalOffsetRef;
typedef daeTArray<domInputLocalOffsetRef> domInputLocalOffset_Array;
class domInstanceWithExtra;
typedef daeSmartRef<domInstanceWithExtra> domInstanceWithExtraRef;
typedef daeTArray<domInstanceWithExtraRef> domInstanceWithExtra_Array;
class domTargetableFloat;
typedef daeSmartRef<domTargetableFloat> domTargetableFloatRef;
typedef daeTArray<domTargetableFloatRef> domTargetableFloat_Array;
class domTargetableFloat3;
typedef daeSmartRef<domTargetableFloat3> domTargetableFloat3Ref;
typedef daeTArray<domTargetableFloat3Ref> domTargetableFloat3_Array;
class domFx_surface_format_hint_common;
typedef daeSmartRef<domFx_surface_format_hint_common> domFx_surface_format_hint_commonRef;
typedef daeTArray<domFx_surface_format_hint_commonRef> domFx_surface_format_hint_common_Array;
class domFx_surface_init_planar_common;
typedef daeSmartRef<domFx_surface_init_planar_common> domFx_surface_init_planar_commonRef;
typedef daeTArray<domFx_surface_init_planar_commonRef> domFx_surface_init_planar_common_Array;
class domFx_surface_init_volume_common;
typedef daeSmartRef<domFx_surface_init_volume_common> domFx_surface_init_volume_commonRef;
typedef daeTArray<domFx_surface_init_volume_commonRef> domFx_surface_init_volume_common_Array;
class domFx_surface_init_cube_common;
typedef daeSmartRef<domFx_surface_init_cube_common> domFx_surface_init_cube_commonRef;
typedef daeTArray<domFx_surface_init_cube_commonRef> domFx_surface_init_cube_common_Array;
class domFx_surface_init_from_common;
typedef daeSmartRef<domFx_surface_init_from_common> domFx_surface_init_from_commonRef;
typedef daeTArray<domFx_surface_init_from_commonRef> domFx_surface_init_from_common_Array;
class domFx_surface_common;
typedef daeSmartRef<domFx_surface_common> domFx_surface_commonRef;
typedef daeTArray<domFx_surface_commonRef> domFx_surface_common_Array;
class domFx_sampler1D_common;
typedef daeSmartRef<domFx_sampler1D_common> domFx_sampler1D_commonRef;
typedef daeTArray<domFx_sampler1D_commonRef> domFx_sampler1D_common_Array;
class domFx_sampler2D_common;
typedef daeSmartRef<domFx_sampler2D_common> domFx_sampler2D_commonRef;
typedef daeTArray<domFx_sampler2D_commonRef> domFx_sampler2D_common_Array;
class domFx_sampler3D_common;
typedef daeSmartRef<domFx_sampler3D_common> domFx_sampler3D_commonRef;
typedef daeTArray<domFx_sampler3D_commonRef> domFx_sampler3D_common_Array;
class domFx_samplerCUBE_common;
typedef daeSmartRef<domFx_samplerCUBE_common> domFx_samplerCUBE_commonRef;
typedef daeTArray<domFx_samplerCUBE_commonRef> domFx_samplerCUBE_common_Array;
class domFx_samplerRECT_common;
typedef daeSmartRef<domFx_samplerRECT_common> domFx_samplerRECT_commonRef;
typedef daeTArray<domFx_samplerRECT_commonRef> domFx_samplerRECT_common_Array;
class domFx_samplerDEPTH_common;
typedef daeSmartRef<domFx_samplerDEPTH_common> domFx_samplerDEPTH_commonRef;
typedef daeTArray<domFx_samplerDEPTH_commonRef> domFx_samplerDEPTH_common_Array;
class domFx_colortarget_common;
typedef daeSmartRef<domFx_colortarget_common> domFx_colortarget_commonRef;
typedef daeTArray<domFx_colortarget_commonRef> domFx_colortarget_common_Array;
class domFx_depthtarget_common;
typedef daeSmartRef<domFx_depthtarget_common> domFx_depthtarget_commonRef;
typedef daeTArray<domFx_depthtarget_commonRef> domFx_depthtarget_common_Array;
class domFx_stenciltarget_common;
typedef daeSmartRef<domFx_stenciltarget_common> domFx_stenciltarget_commonRef;
typedef daeTArray<domFx_stenciltarget_commonRef> domFx_stenciltarget_common_Array;
class domFx_clearcolor_common;
typedef daeSmartRef<domFx_clearcolor_common> domFx_clearcolor_commonRef;
typedef daeTArray<domFx_clearcolor_commonRef> domFx_clearcolor_common_Array;
class domFx_cleardepth_common;
typedef daeSmartRef<domFx_cleardepth_common> domFx_cleardepth_commonRef;
typedef daeTArray<domFx_cleardepth_commonRef> domFx_cleardepth_common_Array;
class domFx_clearstencil_common;
typedef daeSmartRef<domFx_clearstencil_common> domFx_clearstencil_commonRef;
typedef daeTArray<domFx_clearstencil_commonRef> domFx_clearstencil_common_Array;
class domFx_annotate_common;
typedef daeSmartRef<domFx_annotate_common> domFx_annotate_commonRef;
typedef daeTArray<domFx_annotate_commonRef> domFx_annotate_common_Array;
class domFx_include_common;
typedef daeSmartRef<domFx_include_common> domFx_include_commonRef;
typedef daeTArray<domFx_include_commonRef> domFx_include_common_Array;
class domFx_newparam_common;
typedef daeSmartRef<domFx_newparam_common> domFx_newparam_commonRef;
typedef daeTArray<domFx_newparam_commonRef> domFx_newparam_common_Array;
class domFx_code_profile;
typedef daeSmartRef<domFx_code_profile> domFx_code_profileRef;
typedef daeTArray<domFx_code_profileRef> domFx_code_profile_Array;
class domGl_sampler1D;
typedef daeSmartRef<domGl_sampler1D> domGl_sampler1DRef;
typedef daeTArray<domGl_sampler1DRef> domGl_sampler1D_Array;
class domGl_sampler2D;
typedef daeSmartRef<domGl_sampler2D> domGl_sampler2DRef;
typedef daeTArray<domGl_sampler2DRef> domGl_sampler2D_Array;
class domGl_sampler3D;
typedef daeSmartRef<domGl_sampler3D> domGl_sampler3DRef;
typedef daeTArray<domGl_sampler3DRef> domGl_sampler3D_Array;
class domGl_samplerCUBE;
typedef daeSmartRef<domGl_samplerCUBE> domGl_samplerCUBERef;
typedef daeTArray<domGl_samplerCUBERef> domGl_samplerCUBE_Array;
class domGl_samplerRECT;
typedef daeSmartRef<domGl_samplerRECT> domGl_samplerRECTRef;
typedef daeTArray<domGl_samplerRECTRef> domGl_samplerRECT_Array;
class domGl_samplerDEPTH;
typedef daeSmartRef<domGl_samplerDEPTH> domGl_samplerDEPTHRef;
typedef daeTArray<domGl_samplerDEPTHRef> domGl_samplerDEPTH_Array;
class domGlsl_newarray_type;
typedef daeSmartRef<domGlsl_newarray_type> domGlsl_newarray_typeRef;
typedef daeTArray<domGlsl_newarray_typeRef> domGlsl_newarray_type_Array;
class domGlsl_setarray_type;
typedef daeSmartRef<domGlsl_setarray_type> domGlsl_setarray_typeRef;
typedef daeTArray<domGlsl_setarray_typeRef> domGlsl_setarray_type_Array;
class domGlsl_surface_type;
typedef daeSmartRef<domGlsl_surface_type> domGlsl_surface_typeRef;
typedef daeTArray<domGlsl_surface_typeRef> domGlsl_surface_type_Array;
class domGlsl_newparam;
typedef daeSmartRef<domGlsl_newparam> domGlsl_newparamRef;
typedef daeTArray<domGlsl_newparamRef> domGlsl_newparam_Array;
class domGlsl_setparam_simple;
typedef daeSmartRef<domGlsl_setparam_simple> domGlsl_setparam_simpleRef;
typedef daeTArray<domGlsl_setparam_simpleRef> domGlsl_setparam_simple_Array;
class domGlsl_setparam;
typedef daeSmartRef<domGlsl_setparam> domGlsl_setparamRef;
typedef daeTArray<domGlsl_setparamRef> domGlsl_setparam_Array;
class domCommon_float_or_param_type;
typedef daeSmartRef<domCommon_float_or_param_type> domCommon_float_or_param_typeRef;
typedef daeTArray<domCommon_float_or_param_typeRef> domCommon_float_or_param_type_Array;
class domCommon_color_or_texture_type;
typedef daeSmartRef<domCommon_color_or_texture_type> domCommon_color_or_texture_typeRef;
typedef daeTArray<domCommon_color_or_texture_typeRef> domCommon_color_or_texture_type_Array;
class domCommon_transparent_type;
typedef daeSmartRef<domCommon_transparent_type> domCommon_transparent_typeRef;
typedef daeTArray<domCommon_transparent_typeRef> domCommon_transparent_type_Array;
class domCommon_newparam_type;
typedef daeSmartRef<domCommon_newparam_type> domCommon_newparam_typeRef;
typedef daeTArray<domCommon_newparam_typeRef> domCommon_newparam_type_Array;
class domCg_sampler1D;
typedef daeSmartRef<domCg_sampler1D> domCg_sampler1DRef;
typedef daeTArray<domCg_sampler1DRef> domCg_sampler1D_Array;
class domCg_sampler2D;
typedef daeSmartRef<domCg_sampler2D> domCg_sampler2DRef;
typedef daeTArray<domCg_sampler2DRef> domCg_sampler2D_Array;
class domCg_sampler3D;
typedef daeSmartRef<domCg_sampler3D> domCg_sampler3DRef;
typedef daeTArray<domCg_sampler3DRef> domCg_sampler3D_Array;
class domCg_samplerCUBE;
typedef daeSmartRef<domCg_samplerCUBE> domCg_samplerCUBERef;
typedef daeTArray<domCg_samplerCUBERef> domCg_samplerCUBE_Array;
class domCg_samplerRECT;
typedef daeSmartRef<domCg_samplerRECT> domCg_samplerRECTRef;
typedef daeTArray<domCg_samplerRECTRef> domCg_samplerRECT_Array;
class domCg_samplerDEPTH;
typedef daeSmartRef<domCg_samplerDEPTH> domCg_samplerDEPTHRef;
typedef daeTArray<domCg_samplerDEPTHRef> domCg_samplerDEPTH_Array;
class domCg_connect_param;
typedef daeSmartRef<domCg_connect_param> domCg_connect_paramRef;
typedef daeTArray<domCg_connect_paramRef> domCg_connect_param_Array;
class domCg_newarray_type;
typedef daeSmartRef<domCg_newarray_type> domCg_newarray_typeRef;
typedef daeTArray<domCg_newarray_typeRef> domCg_newarray_type_Array;
class domCg_setarray_type;
typedef daeSmartRef<domCg_setarray_type> domCg_setarray_typeRef;
typedef daeTArray<domCg_setarray_typeRef> domCg_setarray_type_Array;
class domCg_setuser_type;
typedef daeSmartRef<domCg_setuser_type> domCg_setuser_typeRef;
typedef daeTArray<domCg_setuser_typeRef> domCg_setuser_type_Array;
class domCg_surface_type;
typedef daeSmartRef<domCg_surface_type> domCg_surface_typeRef;
typedef daeTArray<domCg_surface_typeRef> domCg_surface_type_Array;
class domCg_newparam;
typedef daeSmartRef<domCg_newparam> domCg_newparamRef;
typedef daeTArray<domCg_newparamRef> domCg_newparam_Array;
class domCg_setparam_simple;
typedef daeSmartRef<domCg_setparam_simple> domCg_setparam_simpleRef;
typedef daeTArray<domCg_setparam_simpleRef> domCg_setparam_simple_Array;
class domCg_setparam;
typedef daeSmartRef<domCg_setparam> domCg_setparamRef;
typedef daeTArray<domCg_setparamRef> domCg_setparam_Array;
class domGles_texture_constant_type;
typedef daeSmartRef<domGles_texture_constant_type> domGles_texture_constant_typeRef;
typedef daeTArray<domGles_texture_constant_typeRef> domGles_texture_constant_type_Array;
class domGles_texenv_command_type;
typedef daeSmartRef<domGles_texenv_command_type> domGles_texenv_command_typeRef;
typedef daeTArray<domGles_texenv_command_typeRef> domGles_texenv_command_type_Array;
class domGles_texcombiner_argumentRGB_type;
typedef daeSmartRef<domGles_texcombiner_argumentRGB_type> domGles_texcombiner_argumentRGB_typeRef;
typedef daeTArray<domGles_texcombiner_argumentRGB_typeRef> domGles_texcombiner_argumentRGB_type_Array;
class domGles_texcombiner_argumentAlpha_type;
typedef daeSmartRef<domGles_texcombiner_argumentAlpha_type> domGles_texcombiner_argumentAlpha_typeRef;
typedef daeTArray<domGles_texcombiner_argumentAlpha_typeRef> domGles_texcombiner_argumentAlpha_type_Array;
class domGles_texcombiner_commandRGB_type;
typedef daeSmartRef<domGles_texcombiner_commandRGB_type> domGles_texcombiner_commandRGB_typeRef;
typedef daeTArray<domGles_texcombiner_commandRGB_typeRef> domGles_texcombiner_commandRGB_type_Array;
class domGles_texcombiner_commandAlpha_type;
typedef daeSmartRef<domGles_texcombiner_commandAlpha_type> domGles_texcombiner_commandAlpha_typeRef;
typedef daeTArray<domGles_texcombiner_commandAlpha_typeRef> domGles_texcombiner_commandAlpha_type_Array;
class domGles_texcombiner_command_type;
typedef daeSmartRef<domGles_texcombiner_command_type> domGles_texcombiner_command_typeRef;
typedef daeTArray<domGles_texcombiner_command_typeRef> domGles_texcombiner_command_type_Array;
class domGles_texture_pipeline;
typedef daeSmartRef<domGles_texture_pipeline> domGles_texture_pipelineRef;
typedef daeTArray<domGles_texture_pipelineRef> domGles_texture_pipeline_Array;
class domGles_texture_unit;
typedef daeSmartRef<domGles_texture_unit> domGles_texture_unitRef;
typedef daeTArray<domGles_texture_unitRef> domGles_texture_unit_Array;
class domGles_sampler_state;
typedef daeSmartRef<domGles_sampler_state> domGles_sampler_stateRef;
typedef daeTArray<domGles_sampler_stateRef> domGles_sampler_state_Array;
class domGles_newparam;
typedef daeSmartRef<domGles_newparam> domGles_newparamRef;
typedef daeTArray<domGles_newparamRef> domGles_newparam_Array;
class domFx_surface_init_common;
typedef daeSmartRef<domFx_surface_init_common> domFx_surface_init_commonRef;
typedef daeTArray<domFx_surface_init_commonRef> domFx_surface_init_common_Array;
class domFx_annotate_type_common;
typedef daeSmartRef<domFx_annotate_type_common> domFx_annotate_type_commonRef;
typedef daeTArray<domFx_annotate_type_commonRef> domFx_annotate_type_common_Array;
class domFx_basic_type_common;
typedef daeSmartRef<domFx_basic_type_common> domFx_basic_type_commonRef;
typedef daeTArray<domFx_basic_type_commonRef> domFx_basic_type_common_Array;
class domGl_pipeline_settings;
typedef daeSmartRef<domGl_pipeline_settings> domGl_pipeline_settingsRef;
typedef daeTArray<domGl_pipeline_settingsRef> domGl_pipeline_settings_Array;
class domGlsl_param_type;
typedef daeSmartRef<domGlsl_param_type> domGlsl_param_typeRef;
typedef daeTArray<domGlsl_param_typeRef> domGlsl_param_type_Array;
class domCg_param_type;
typedef daeSmartRef<domCg_param_type> domCg_param_typeRef;
typedef daeTArray<domCg_param_typeRef> domCg_param_type_Array;
class domGles_pipeline_settings;
typedef daeSmartRef<domGles_pipeline_settings> domGles_pipeline_settingsRef;
typedef daeTArray<domGles_pipeline_settingsRef> domGles_pipeline_settings_Array;
class domGles_basic_type_common;
typedef daeSmartRef<domGles_basic_type_common> domGles_basic_type_commonRef;
typedef daeTArray<domGles_basic_type_commonRef> domGles_basic_type_common_Array;
class domCOLLADA;
typedef daeSmartRef<domCOLLADA> domCOLLADARef;
typedef daeTArray<domCOLLADARef> domCOLLADA_Array;
class domIDREF_array;
typedef daeSmartRef<domIDREF_array> domIDREF_arrayRef;
typedef daeTArray<domIDREF_arrayRef> domIDREF_array_Array;
class domName_array;
typedef daeSmartRef<domName_array> domName_arrayRef;
typedef daeTArray<domName_arrayRef> domName_array_Array;
class domBool_array;
typedef daeSmartRef<domBool_array> domBool_arrayRef;
typedef daeTArray<domBool_arrayRef> domBool_array_Array;
class domFloat_array;
typedef daeSmartRef<domFloat_array> domFloat_arrayRef;
typedef daeTArray<domFloat_arrayRef> domFloat_array_Array;
class domInt_array;
typedef daeSmartRef<domInt_array> domInt_arrayRef;
typedef daeTArray<domInt_arrayRef> domInt_array_Array;
class domAccessor;
typedef daeSmartRef<domAccessor> domAccessorRef;
typedef daeTArray<domAccessorRef> domAccessor_Array;
class domParam;
typedef daeSmartRef<domParam> domParamRef;
typedef daeTArray<domParamRef> domParam_Array;
class domSource;
typedef daeSmartRef<domSource> domSourceRef;
typedef daeTArray<domSourceRef> domSource_Array;
class domGeometry;
typedef daeSmartRef<domGeometry> domGeometryRef;
typedef daeTArray<domGeometryRef> domGeometry_Array;
class domMesh;
typedef daeSmartRef<domMesh> domMeshRef;
typedef daeTArray<domMeshRef> domMesh_Array;
class domSpline;
typedef daeSmartRef<domSpline> domSplineRef;
typedef daeTArray<domSplineRef> domSpline_Array;
class domP;
typedef daeSmartRef<domP> domPRef;
typedef daeTArray<domPRef> domP_Array;
class domLines;
typedef daeSmartRef<domLines> domLinesRef;
typedef daeTArray<domLinesRef> domLines_Array;
class domLinestrips;
typedef daeSmartRef<domLinestrips> domLinestripsRef;
typedef daeTArray<domLinestripsRef> domLinestrips_Array;
class domPolygons;
typedef daeSmartRef<domPolygons> domPolygonsRef;
typedef daeTArray<domPolygonsRef> domPolygons_Array;
class domPolylist;
typedef daeSmartRef<domPolylist> domPolylistRef;
typedef daeTArray<domPolylistRef> domPolylist_Array;
class domTriangles;
typedef daeSmartRef<domTriangles> domTrianglesRef;
typedef daeTArray<domTrianglesRef> domTriangles_Array;
class domTrifans;
typedef daeSmartRef<domTrifans> domTrifansRef;
typedef daeTArray<domTrifansRef> domTrifans_Array;
class domTristrips;
typedef daeSmartRef<domTristrips> domTristripsRef;
typedef daeTArray<domTristripsRef> domTristrips_Array;
class domVertices;
typedef daeSmartRef<domVertices> domVerticesRef;
typedef daeTArray<domVerticesRef> domVertices_Array;
class domLookat;
typedef daeSmartRef<domLookat> domLookatRef;
typedef daeTArray<domLookatRef> domLookat_Array;
class domMatrix;
typedef daeSmartRef<domMatrix> domMatrixRef;
typedef daeTArray<domMatrixRef> domMatrix_Array;
class domRotate;
typedef daeSmartRef<domRotate> domRotateRef;
typedef daeTArray<domRotateRef> domRotate_Array;
class domScale;
typedef daeSmartRef<domScale> domScaleRef;
typedef daeTArray<domScaleRef> domScale_Array;
class domSkew;
typedef daeSmartRef<domSkew> domSkewRef;
typedef daeTArray<domSkewRef> domSkew_Array;
class domTranslate;
typedef daeSmartRef<domTranslate> domTranslateRef;
typedef daeTArray<domTranslateRef> domTranslate_Array;
class domImage;
typedef daeSmartRef<domImage> domImageRef;
typedef daeTArray<domImageRef> domImage_Array;
class domLight;
typedef daeSmartRef<domLight> domLightRef;
typedef daeTArray<domLightRef> domLight_Array;
class domMaterial;
typedef daeSmartRef<domMaterial> domMaterialRef;
typedef daeTArray<domMaterialRef> domMaterial_Array;
class domCamera;
typedef daeSmartRef<domCamera> domCameraRef;
typedef daeTArray<domCameraRef> domCamera_Array;
class domAnimation;
typedef daeSmartRef<domAnimation> domAnimationRef;
typedef daeTArray<domAnimationRef> domAnimation_Array;
class domAnimation_clip;
typedef daeSmartRef<domAnimation_clip> domAnimation_clipRef;
typedef daeTArray<domAnimation_clipRef> domAnimation_clip_Array;
class domChannel;
typedef daeSmartRef<domChannel> domChannelRef;
typedef daeTArray<domChannelRef> domChannel_Array;
class domSampler;
typedef daeSmartRef<domSampler> domSamplerRef;
typedef daeTArray<domSamplerRef> domSampler_Array;
class domController;
typedef daeSmartRef<domController> domControllerRef;
typedef daeTArray<domControllerRef> domController_Array;
class domSkin;
typedef daeSmartRef<domSkin> domSkinRef;
typedef daeTArray<domSkinRef> domSkin_Array;
class domMorph;
typedef daeSmartRef<domMorph> domMorphRef;
typedef daeTArray<domMorphRef> domMorph_Array;
class domAsset;
typedef daeSmartRef<domAsset> domAssetRef;
typedef daeTArray<domAssetRef> domAsset_Array;
class domExtra;
typedef daeSmartRef<domExtra> domExtraRef;
typedef daeTArray<domExtraRef> domExtra_Array;
class domTechnique;
typedef daeSmartRef<domTechnique> domTechniqueRef;
typedef daeTArray<domTechniqueRef> domTechnique_Array;
class domNode;
typedef daeSmartRef<domNode> domNodeRef;
typedef daeTArray<domNodeRef> domNode_Array;
class domVisual_scene;
typedef daeSmartRef<domVisual_scene> domVisual_sceneRef;
typedef daeTArray<domVisual_sceneRef> domVisual_scene_Array;
class domBind_material;
typedef daeSmartRef<domBind_material> domBind_materialRef;
typedef daeTArray<domBind_materialRef> domBind_material_Array;
class domInstance_camera;
typedef daeSmartRef<domInstance_camera> domInstance_cameraRef;
typedef daeTArray<domInstance_cameraRef> domInstance_camera_Array;
class domInstance_controller;
typedef daeSmartRef<domInstance_controller> domInstance_controllerRef;
typedef daeTArray<domInstance_controllerRef> domInstance_controller_Array;
class domInstance_effect;
typedef daeSmartRef<domInstance_effect> domInstance_effectRef;
typedef daeTArray<domInstance_effectRef> domInstance_effect_Array;
class domInstance_force_field;
typedef daeSmartRef<domInstance_force_field> domInstance_force_fieldRef;
typedef daeTArray<domInstance_force_fieldRef> domInstance_force_field_Array;
class domInstance_geometry;
typedef daeSmartRef<domInstance_geometry> domInstance_geometryRef;
typedef daeTArray<domInstance_geometryRef> domInstance_geometry_Array;
class domInstance_light;
typedef daeSmartRef<domInstance_light> domInstance_lightRef;
typedef daeTArray<domInstance_lightRef> domInstance_light_Array;
class domInstance_material;
typedef daeSmartRef<domInstance_material> domInstance_materialRef;
typedef daeTArray<domInstance_materialRef> domInstance_material_Array;
class domInstance_node;
typedef daeSmartRef<domInstance_node> domInstance_nodeRef;
typedef daeTArray<domInstance_nodeRef> domInstance_node_Array;
class domInstance_physics_material;
typedef daeSmartRef<domInstance_physics_material> domInstance_physics_materialRef;
typedef daeTArray<domInstance_physics_materialRef> domInstance_physics_material_Array;
class domInstance_physics_model;
typedef daeSmartRef<domInstance_physics_model> domInstance_physics_modelRef;
typedef daeTArray<domInstance_physics_modelRef> domInstance_physics_model_Array;
class domInstance_rigid_body;
typedef daeSmartRef<domInstance_rigid_body> domInstance_rigid_bodyRef;
typedef daeTArray<domInstance_rigid_bodyRef> domInstance_rigid_body_Array;
class domInstance_rigid_constraint;
typedef daeSmartRef<domInstance_rigid_constraint> domInstance_rigid_constraintRef;
typedef daeTArray<domInstance_rigid_constraintRef> domInstance_rigid_constraint_Array;
class domLibrary_animations;
typedef daeSmartRef<domLibrary_animations> domLibrary_animationsRef;
typedef daeTArray<domLibrary_animationsRef> domLibrary_animations_Array;
class domLibrary_animation_clips;
typedef daeSmartRef<domLibrary_animation_clips> domLibrary_animation_clipsRef;
typedef daeTArray<domLibrary_animation_clipsRef> domLibrary_animation_clips_Array;
class domLibrary_cameras;
typedef daeSmartRef<domLibrary_cameras> domLibrary_camerasRef;
typedef daeTArray<domLibrary_camerasRef> domLibrary_cameras_Array;
class domLibrary_controllers;
typedef daeSmartRef<domLibrary_controllers> domLibrary_controllersRef;
typedef daeTArray<domLibrary_controllersRef> domLibrary_controllers_Array;
class domLibrary_geometries;
typedef daeSmartRef<domLibrary_geometries> domLibrary_geometriesRef;
typedef daeTArray<domLibrary_geometriesRef> domLibrary_geometries_Array;
class domLibrary_effects;
typedef daeSmartRef<domLibrary_effects> domLibrary_effectsRef;
typedef daeTArray<domLibrary_effectsRef> domLibrary_effects_Array;
class domLibrary_force_fields;
typedef daeSmartRef<domLibrary_force_fields> domLibrary_force_fieldsRef;
typedef daeTArray<domLibrary_force_fieldsRef> domLibrary_force_fields_Array;
class domLibrary_images;
typedef daeSmartRef<domLibrary_images> domLibrary_imagesRef;
typedef daeTArray<domLibrary_imagesRef> domLibrary_images_Array;
class domLibrary_lights;
typedef daeSmartRef<domLibrary_lights> domLibrary_lightsRef;
typedef daeTArray<domLibrary_lightsRef> domLibrary_lights_Array;
class domLibrary_materials;
typedef daeSmartRef<domLibrary_materials> domLibrary_materialsRef;
typedef daeTArray<domLibrary_materialsRef> domLibrary_materials_Array;
class domLibrary_nodes;
typedef daeSmartRef<domLibrary_nodes> domLibrary_nodesRef;
typedef daeTArray<domLibrary_nodesRef> domLibrary_nodes_Array;
class domLibrary_physics_materials;
typedef daeSmartRef<domLibrary_physics_materials> domLibrary_physics_materialsRef;
typedef daeTArray<domLibrary_physics_materialsRef> domLibrary_physics_materials_Array;
class domLibrary_physics_models;
typedef daeSmartRef<domLibrary_physics_models> domLibrary_physics_modelsRef;
typedef daeTArray<domLibrary_physics_modelsRef> domLibrary_physics_models_Array;
class domLibrary_physics_scenes;
typedef daeSmartRef<domLibrary_physics_scenes> domLibrary_physics_scenesRef;
typedef daeTArray<domLibrary_physics_scenesRef> domLibrary_physics_scenes_Array;
class domLibrary_visual_scenes;
typedef daeSmartRef<domLibrary_visual_scenes> domLibrary_visual_scenesRef;
typedef daeTArray<domLibrary_visual_scenesRef> domLibrary_visual_scenes_Array;
class domFx_profile_abstract;
typedef daeSmartRef<domFx_profile_abstract> domFx_profile_abstractRef;
typedef daeTArray<domFx_profile_abstractRef> domFx_profile_abstract_Array;
class domEffect;
typedef daeSmartRef<domEffect> domEffectRef;
typedef daeTArray<domEffectRef> domEffect_Array;
class domGl_hook_abstract;
typedef daeSmartRef<domGl_hook_abstract> domGl_hook_abstractRef;
typedef daeTArray<domGl_hook_abstractRef> domGl_hook_abstract_Array;
class domProfile_GLSL;
typedef daeSmartRef<domProfile_GLSL> domProfile_GLSLRef;
typedef daeTArray<domProfile_GLSLRef> domProfile_GLSL_Array;
class domProfile_COMMON;
typedef daeSmartRef<domProfile_COMMON> domProfile_COMMONRef;
typedef daeTArray<domProfile_COMMONRef> domProfile_COMMON_Array;
class domProfile_CG;
typedef daeSmartRef<domProfile_CG> domProfile_CGRef;
typedef daeTArray<domProfile_CGRef> domProfile_CG_Array;
class domProfile_GLES;
typedef daeSmartRef<domProfile_GLES> domProfile_GLESRef;
typedef daeTArray<domProfile_GLESRef> domProfile_GLES_Array;
class domBox;
typedef daeSmartRef<domBox> domBoxRef;
typedef daeTArray<domBoxRef> domBox_Array;
class domPlane;
typedef daeSmartRef<domPlane> domPlaneRef;
typedef daeTArray<domPlaneRef> domPlane_Array;
class domSphere;
typedef daeSmartRef<domSphere> domSphereRef;
typedef daeTArray<domSphereRef> domSphere_Array;
class domEllipsoid;
typedef daeSmartRef<domEllipsoid> domEllipsoidRef;
typedef daeTArray<domEllipsoidRef> domEllipsoid_Array;
class domCylinder;
typedef daeSmartRef<domCylinder> domCylinderRef;
typedef daeTArray<domCylinderRef> domCylinder_Array;
class domTapered_cylinder;
typedef daeSmartRef<domTapered_cylinder> domTapered_cylinderRef;
typedef daeTArray<domTapered_cylinderRef> domTapered_cylinder_Array;
class domCapsule;
typedef daeSmartRef<domCapsule> domCapsuleRef;
typedef daeTArray<domCapsuleRef> domCapsule_Array;
class domTapered_capsule;
typedef daeSmartRef<domTapered_capsule> domTapered_capsuleRef;
typedef daeTArray<domTapered_capsuleRef> domTapered_capsule_Array;
class domConvex_mesh;
typedef daeSmartRef<domConvex_mesh> domConvex_meshRef;
typedef daeTArray<domConvex_meshRef> domConvex_mesh_Array;
class domForce_field;
typedef daeSmartRef<domForce_field> domForce_fieldRef;
typedef daeTArray<domForce_fieldRef> domForce_field_Array;
class domPhysics_material;
typedef daeSmartRef<domPhysics_material> domPhysics_materialRef;
typedef daeTArray<domPhysics_materialRef> domPhysics_material_Array;
class domPhysics_scene;
typedef daeSmartRef<domPhysics_scene> domPhysics_sceneRef;
typedef daeTArray<domPhysics_sceneRef> domPhysics_scene_Array;
class domRigid_body;
typedef daeSmartRef<domRigid_body> domRigid_bodyRef;
typedef daeTArray<domRigid_bodyRef> domRigid_body_Array;
class domRigid_constraint;
typedef daeSmartRef<domRigid_constraint> domRigid_constraintRef;
typedef daeTArray<domRigid_constraintRef> domRigid_constraint_Array;
class domPhysics_model;
typedef daeSmartRef<domPhysics_model> domPhysics_modelRef;
typedef daeTArray<domPhysics_modelRef> domPhysics_model_Array;
#endif //__DOM_ELEMENTS_H__

View file

@ -0,0 +1,133 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
class domEllipsoid : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ELLIPSOID; }
static daeInt ID() { return 773; }
virtual daeInt typeID() const { return ID(); }
public:
class domSize;
typedef daeSmartRef<domSize> domSizeRef;
typedef daeTArray<domSizeRef> domSize_Array;
class domSize : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SIZE; }
static daeInt ID() { return 774; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSize() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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(DAE& dae) : daeElement(dae), elemSize() {}
/**
* Destructor
*/
virtual ~domEllipsoid() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domExtra_h__
#define __domExtra_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domTechnique.h>
class DAE;
/**
* The extra element declares additional information regarding its parent
* element.
*/
class domExtra : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::EXTRA; }
static daeInt ID() { return 679; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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 ) { *(daeStringRef*)&attrType = atType; _validAttributeArray[2] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), attrType(), elemAsset(), elemTechnique_array() {}
/**
* Destructor
*/
virtual ~domExtra() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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.
*/
#ifndef __domFloat_array_h__
#define __domFloat_array_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* The float_array element declares the storage for a homogenous array of
* floating point values.
*/
class domFloat_array : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT_ARRAY; }
static daeInt ID() { return 607; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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; _validAttributeArray[2] = true; }
/**
* 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; _validAttributeArray[3] = true; }
/**
* 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; _validAttributeArray[4] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), attrCount(), attrDigits(), attrMagnitude(), _value() {}
/**
* Destructor
*/
virtual ~domFloat_array() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domForce_field_h__
#define __domForce_field_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domTechnique.h>
#include <dom/domExtra.h>
class DAE;
/**
* A general container for force-fields. At the moment, it only has techniques
* and extra elements.
*/
class domForce_field : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FORCE_FIELD; }
static daeInt ID() { return 790; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemTechnique_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domForce_field() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,115 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_annotate_type_common.h>
class DAE;
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 ) { *(daeStringRef*)&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(DAE& dae, daeElement* elt) : attrName(), elemFx_annotate_type_common() {}
/**
* Destructor
*/
virtual ~domFx_annotate_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_ANNOTATE_COMMON; }
static daeInt ID() { return 91; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domFx_annotate_common(DAE& dae) : daeElement(dae), domFx_annotate_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_annotate_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,128 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
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(DAE& dae, daeElement* elt) : attrIndex(), _value() {}
/**
* Destructor
*/
virtual ~domFx_clearcolor_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CLEARCOLOR_COMMON; }
static daeInt ID() { return 88; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domFx_clearcolor_common(DAE& dae) : daeElement(dae), domFx_clearcolor_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_clearcolor_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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_cleardepth_common_h__
#define __domFx_cleardepth_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
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(DAE& dae, daeElement* elt) : attrIndex(), _value() {}
/**
* Destructor
*/
virtual ~domFx_cleardepth_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CLEARDEPTH_COMMON; }
static daeInt ID() { return 89; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domFx_cleardepth_common(DAE& dae) : daeElement(dae), domFx_cleardepth_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_cleardepth_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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_clearstencil_common_h__
#define __domFx_clearstencil_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
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(DAE& dae, daeElement* elt) : attrIndex(), _value() {}
/**
* Destructor
*/
virtual ~domFx_clearstencil_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CLEARSTENCIL_COMMON; }
static daeInt ID() { return 90; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domFx_clearstencil_common(DAE& dae) : daeElement(dae), domFx_clearstencil_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_clearstencil_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domFx_code_profile_h__
#define __domFx_code_profile_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* 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 ) { *(daeStringRef*)&attrSid = atSid;}
/**
* Gets the value of this element.
* @return Returns a xsString of the value.
*/
xsString getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domFx_code_profile_complexType(DAE& dae, daeElement* elt) : attrSid(), _value() {}
/**
* Destructor
*/
virtual ~domFx_code_profile_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CODE_PROFILE; }
static daeInt ID() { return 96; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domFx_code_profile(DAE& dae) : daeElement(dae), domFx_code_profile_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_code_profile() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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.
*/
#ifndef __domFx_colortarget_common_h__
#define __domFx_colortarget_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
class domFx_colortarget_common_complexType
{
protected: // Attributes
xsNonNegativeInteger attrIndex;
domFx_surface_face_enum attrFace;
xsNonNegativeInteger attrMip;
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 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 mip attribute.
* @return Returns a xsNonNegativeInteger of the mip attribute.
*/
xsNonNegativeInteger getMip() const { return attrMip; }
/**
* Sets the mip attribute.
* @param atMip The new value for the mip attribute.
*/
void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; }
/**
* 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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domFx_colortarget_common_complexType(DAE& dae, daeElement* elt) : attrIndex(), attrFace(), attrMip(), attrSlice(), _value() {}
/**
* Destructor
*/
virtual ~domFx_colortarget_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_COLORTARGET_COMMON; }
static daeInt ID() { return 85; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
/**
* Gets the mip attribute.
* @return Returns a xsNonNegativeInteger of the mip attribute.
*/
xsNonNegativeInteger getMip() const { return attrMip; }
/**
* Sets the mip attribute.
* @param atMip The new value for the mip attribute.
*/
void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; _validAttributeArray[2] = true; }
/**
* 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; _validAttributeArray[3] = true; }
protected:
/**
* Constructor
*/
domFx_colortarget_common(DAE& dae) : daeElement(dae), domFx_colortarget_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_colortarget_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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.
*/
#ifndef __domFx_depthtarget_common_h__
#define __domFx_depthtarget_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
class domFx_depthtarget_common_complexType
{
protected: // Attributes
xsNonNegativeInteger attrIndex;
domFx_surface_face_enum attrFace;
xsNonNegativeInteger attrMip;
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 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 mip attribute.
* @return Returns a xsNonNegativeInteger of the mip attribute.
*/
xsNonNegativeInteger getMip() const { return attrMip; }
/**
* Sets the mip attribute.
* @param atMip The new value for the mip attribute.
*/
void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; }
/**
* 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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domFx_depthtarget_common_complexType(DAE& dae, daeElement* elt) : attrIndex(), attrFace(), attrMip(), attrSlice(), _value() {}
/**
* Destructor
*/
virtual ~domFx_depthtarget_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_DEPTHTARGET_COMMON; }
static daeInt ID() { return 86; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
/**
* Gets the mip attribute.
* @return Returns a xsNonNegativeInteger of the mip attribute.
*/
xsNonNegativeInteger getMip() const { return attrMip; }
/**
* Sets the mip attribute.
* @param atMip The new value for the mip attribute.
*/
void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; _validAttributeArray[2] = true; }
/**
* 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; _validAttributeArray[3] = true; }
protected:
/**
* Constructor
*/
domFx_depthtarget_common(DAE& dae) : daeElement(dae), domFx_depthtarget_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_depthtarget_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domFx_include_common_h__
#define __domFx_include_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* 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 ) { *(daeStringRef*)&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 = atUrl; }
/**
* Sets the url attribute.
* @param atUrl The new value for the url attribute.
*/
void setUrl( xsString atUrl ) { attrUrl = atUrl; }
protected:
/**
* Constructor
*/
domFx_include_common_complexType(DAE& dae, daeElement* elt) : attrSid(), attrUrl(dae, *elt) {}
/**
* Destructor
*/
virtual ~domFx_include_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_INCLUDE_COMMON; }
static daeInt ID() { return 92; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
/**
* 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 = atUrl; _validAttributeArray[1] = true; }
/**
* Sets the url attribute.
* @param atUrl The new value for the url attribute.
*/
void setUrl( xsString atUrl ) { attrUrl = atUrl; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domFx_include_common(DAE& dae) : daeElement(dae), domFx_include_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_include_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,284 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_basic_type_common.h>
#include <dom/domFx_annotate_common.h>
class DAE;
/**
* 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<domSemantic> domSemanticRef;
typedef daeTArray<domSemanticRef> domSemantic_Array;
/**
* The semantic element allows you to specify a semantic for this new param.
*/
class domSemantic : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; }
static daeInt ID() { return 93; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSemantic(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSemantic() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domModifier;
typedef daeSmartRef<domModifier> domModifierRef;
typedef daeTArray<domModifierRef> domModifier_Array;
/**
* The modifier element allows you to specify a modifier for this new param.
*/
class domModifier : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIER; }
static daeInt ID() { return 94; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domModifier() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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 ) { *(daeStringRef*)&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(DAE& dae, daeElement* elt) : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemFx_basic_type_common() {}
/**
* Destructor
*/
virtual ~domFx_newparam_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_NEWPARAM_COMMON; }
static daeInt ID() { return 95; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domFx_newparam_common(DAE& dae) : daeElement(dae), domFx_newparam_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_newparam_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domFx_profile_abstract_h__
#define __domFx_profile_abstract_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* The fx_profile_abstract element is only used as a substitution group hook
* for COLLADA FX profiles.
*/
class domFx_profile_abstract : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_PROFILE_ABSTRACT; }
static daeInt ID() { return 727; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_profile_abstract(DAE& dae) : daeElement(dae) {}
/**
* Destructor
*/
virtual ~domFx_profile_abstract() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,616 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* A one-dimensional texture sampler.
*/
class domFx_sampler1D_common_complexType
{
public:
class domSource;
typedef daeSmartRef<domSource> domSourceRef;
typedef daeTArray<domSourceRef> domSource_Array;
class domSource : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; }
static daeInt ID() { return 28; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSource(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSource() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_s;
typedef daeSmartRef<domWrap_s> domWrap_sRef;
typedef daeTArray<domWrap_sRef> domWrap_s_Array;
class domWrap_s : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; }
static daeInt ID() { return 29; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_s() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMinfilter;
typedef daeSmartRef<domMinfilter> domMinfilterRef;
typedef daeTArray<domMinfilterRef> domMinfilter_Array;
class domMinfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; }
static daeInt ID() { return 30; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMinfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMagfilter;
typedef daeSmartRef<domMagfilter> domMagfilterRef;
typedef daeTArray<domMagfilterRef> domMagfilter_Array;
class domMagfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; }
static daeInt ID() { return 31; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMagfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipfilter;
typedef daeSmartRef<domMipfilter> domMipfilterRef;
typedef daeTArray<domMipfilterRef> domMipfilter_Array;
class domMipfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; }
static daeInt ID() { return 32; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domBorder_color;
typedef daeSmartRef<domBorder_color> domBorder_colorRef;
typedef daeTArray<domBorder_colorRef> domBorder_color_Array;
class domBorder_color : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; }
static daeInt ID() { return 33; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domBorder_color() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_maxlevel;
typedef daeSmartRef<domMipmap_maxlevel> domMipmap_maxlevelRef;
typedef daeTArray<domMipmap_maxlevelRef> domMipmap_maxlevel_Array;
class domMipmap_maxlevel : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; }
static daeInt ID() { return 34; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_maxlevel() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_bias;
typedef daeSmartRef<domMipmap_bias> domMipmap_biasRef;
typedef daeTArray<domMipmap_biasRef> domMipmap_bias_Array;
class domMipmap_bias : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; }
static daeInt ID() { return 35; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_bias() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
domExtra_Array elemExtra_array;
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; }
/**
* 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
*/
domFx_sampler1D_common_complexType(DAE& dae, daeElement* elt) : elemSource(), elemWrap_s(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domFx_sampler1D_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLER1D_COMMON; }
static daeInt ID() { return 36; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_sampler1D_common(DAE& dae) : daeElement(dae), domFx_sampler1D_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_sampler1D_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,680 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* A two-dimensional texture sampler.
*/
class domFx_sampler2D_common_complexType
{
public:
class domSource;
typedef daeSmartRef<domSource> domSourceRef;
typedef daeTArray<domSourceRef> domSource_Array;
class domSource : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; }
static daeInt ID() { return 37; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSource(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSource() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_s;
typedef daeSmartRef<domWrap_s> domWrap_sRef;
typedef daeTArray<domWrap_sRef> domWrap_s_Array;
class domWrap_s : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; }
static daeInt ID() { return 38; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_s() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_t;
typedef daeSmartRef<domWrap_t> domWrap_tRef;
typedef daeTArray<domWrap_tRef> domWrap_t_Array;
class domWrap_t : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; }
static daeInt ID() { return 39; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_t() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMinfilter;
typedef daeSmartRef<domMinfilter> domMinfilterRef;
typedef daeTArray<domMinfilterRef> domMinfilter_Array;
class domMinfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; }
static daeInt ID() { return 40; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMinfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMagfilter;
typedef daeSmartRef<domMagfilter> domMagfilterRef;
typedef daeTArray<domMagfilterRef> domMagfilter_Array;
class domMagfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; }
static daeInt ID() { return 41; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMagfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipfilter;
typedef daeSmartRef<domMipfilter> domMipfilterRef;
typedef daeTArray<domMipfilterRef> domMipfilter_Array;
class domMipfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; }
static daeInt ID() { return 42; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domBorder_color;
typedef daeSmartRef<domBorder_color> domBorder_colorRef;
typedef daeTArray<domBorder_colorRef> domBorder_color_Array;
class domBorder_color : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; }
static daeInt ID() { return 43; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domBorder_color() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_maxlevel;
typedef daeSmartRef<domMipmap_maxlevel> domMipmap_maxlevelRef;
typedef daeTArray<domMipmap_maxlevelRef> domMipmap_maxlevel_Array;
class domMipmap_maxlevel : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; }
static daeInt ID() { return 44; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_maxlevel() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_bias;
typedef daeSmartRef<domMipmap_bias> domMipmap_biasRef;
typedef daeTArray<domMipmap_biasRef> domMipmap_bias_Array;
class domMipmap_bias : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; }
static daeInt ID() { return 45; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_bias() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
domExtra_Array elemExtra_array;
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; }
/**
* 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
*/
domFx_sampler2D_common_complexType(DAE& dae, daeElement* elt) : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domFx_sampler2D_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLER2D_COMMON; }
static daeInt ID() { return 46; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_sampler2D_common(DAE& dae) : daeElement(dae), domFx_sampler2D_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_sampler2D_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,744 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* A three-dimensional texture sampler.
*/
class domFx_sampler3D_common_complexType
{
public:
class domSource;
typedef daeSmartRef<domSource> domSourceRef;
typedef daeTArray<domSourceRef> domSource_Array;
class domSource : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; }
static daeInt ID() { return 47; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSource(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSource() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_s;
typedef daeSmartRef<domWrap_s> domWrap_sRef;
typedef daeTArray<domWrap_sRef> domWrap_s_Array;
class domWrap_s : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; }
static daeInt ID() { return 48; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_s() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_t;
typedef daeSmartRef<domWrap_t> domWrap_tRef;
typedef daeTArray<domWrap_tRef> domWrap_t_Array;
class domWrap_t : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; }
static daeInt ID() { return 49; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_t() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_p;
typedef daeSmartRef<domWrap_p> domWrap_pRef;
typedef daeTArray<domWrap_pRef> domWrap_p_Array;
class domWrap_p : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_P; }
static daeInt ID() { return 50; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_p() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMinfilter;
typedef daeSmartRef<domMinfilter> domMinfilterRef;
typedef daeTArray<domMinfilterRef> domMinfilter_Array;
class domMinfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; }
static daeInt ID() { return 51; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMinfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMagfilter;
typedef daeSmartRef<domMagfilter> domMagfilterRef;
typedef daeTArray<domMagfilterRef> domMagfilter_Array;
class domMagfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; }
static daeInt ID() { return 52; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMagfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipfilter;
typedef daeSmartRef<domMipfilter> domMipfilterRef;
typedef daeTArray<domMipfilterRef> domMipfilter_Array;
class domMipfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; }
static daeInt ID() { return 53; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domBorder_color;
typedef daeSmartRef<domBorder_color> domBorder_colorRef;
typedef daeTArray<domBorder_colorRef> domBorder_color_Array;
class domBorder_color : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; }
static daeInt ID() { return 54; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domBorder_color() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_maxlevel;
typedef daeSmartRef<domMipmap_maxlevel> domMipmap_maxlevelRef;
typedef daeTArray<domMipmap_maxlevelRef> domMipmap_maxlevel_Array;
class domMipmap_maxlevel : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; }
static daeInt ID() { return 55; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_maxlevel() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_bias;
typedef daeSmartRef<domMipmap_bias> domMipmap_biasRef;
typedef daeTArray<domMipmap_biasRef> domMipmap_bias_Array;
class domMipmap_bias : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; }
static daeInt ID() { return 56; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_bias() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
domExtra_Array elemExtra_array;
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; }
/**
* 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
*/
domFx_sampler3D_common_complexType(DAE& dae, daeElement* elt) : elemSource(), elemWrap_s(), elemWrap_t(), elemWrap_p(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domFx_sampler3D_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLER3D_COMMON; }
static daeInt ID() { return 57; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_sampler3D_common(DAE& dae) : daeElement(dae), domFx_sampler3D_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_sampler3D_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,744 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* A texture sampler for cube maps.
*/
class domFx_samplerCUBE_common_complexType
{
public:
class domSource;
typedef daeSmartRef<domSource> domSourceRef;
typedef daeTArray<domSourceRef> domSource_Array;
class domSource : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; }
static daeInt ID() { return 58; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSource(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSource() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_s;
typedef daeSmartRef<domWrap_s> domWrap_sRef;
typedef daeTArray<domWrap_sRef> domWrap_s_Array;
class domWrap_s : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; }
static daeInt ID() { return 59; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_s() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_t;
typedef daeSmartRef<domWrap_t> domWrap_tRef;
typedef daeTArray<domWrap_tRef> domWrap_t_Array;
class domWrap_t : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; }
static daeInt ID() { return 60; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_t() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_p;
typedef daeSmartRef<domWrap_p> domWrap_pRef;
typedef daeTArray<domWrap_pRef> domWrap_p_Array;
class domWrap_p : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_P; }
static daeInt ID() { return 61; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_p() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMinfilter;
typedef daeSmartRef<domMinfilter> domMinfilterRef;
typedef daeTArray<domMinfilterRef> domMinfilter_Array;
class domMinfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; }
static daeInt ID() { return 62; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMinfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMagfilter;
typedef daeSmartRef<domMagfilter> domMagfilterRef;
typedef daeTArray<domMagfilterRef> domMagfilter_Array;
class domMagfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; }
static daeInt ID() { return 63; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMagfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipfilter;
typedef daeSmartRef<domMipfilter> domMipfilterRef;
typedef daeTArray<domMipfilterRef> domMipfilter_Array;
class domMipfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; }
static daeInt ID() { return 64; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domBorder_color;
typedef daeSmartRef<domBorder_color> domBorder_colorRef;
typedef daeTArray<domBorder_colorRef> domBorder_color_Array;
class domBorder_color : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; }
static daeInt ID() { return 65; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domBorder_color() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_maxlevel;
typedef daeSmartRef<domMipmap_maxlevel> domMipmap_maxlevelRef;
typedef daeTArray<domMipmap_maxlevelRef> domMipmap_maxlevel_Array;
class domMipmap_maxlevel : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; }
static daeInt ID() { return 66; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_maxlevel() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_bias;
typedef daeSmartRef<domMipmap_bias> domMipmap_biasRef;
typedef daeTArray<domMipmap_biasRef> domMipmap_bias_Array;
class domMipmap_bias : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; }
static daeInt ID() { return 67; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_bias() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
domExtra_Array elemExtra_array;
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; }
/**
* 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
*/
domFx_samplerCUBE_common_complexType(DAE& dae, daeElement* elt) : elemSource(), elemWrap_s(), elemWrap_t(), elemWrap_p(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domFx_samplerCUBE_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLERCUBE_COMMON; }
static daeInt ID() { return 68; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_samplerCUBE_common(DAE& dae) : daeElement(dae), domFx_samplerCUBE_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_samplerCUBE_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,419 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* A texture sampler for depth maps.
*/
class domFx_samplerDEPTH_common_complexType
{
public:
class domSource;
typedef daeSmartRef<domSource> domSourceRef;
typedef daeTArray<domSourceRef> domSource_Array;
class domSource : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; }
static daeInt ID() { return 79; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSource(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSource() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_s;
typedef daeSmartRef<domWrap_s> domWrap_sRef;
typedef daeTArray<domWrap_sRef> domWrap_s_Array;
class domWrap_s : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; }
static daeInt ID() { return 80; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_s() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_t;
typedef daeSmartRef<domWrap_t> domWrap_tRef;
typedef daeTArray<domWrap_tRef> domWrap_t_Array;
class domWrap_t : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; }
static daeInt ID() { return 81; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_t() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMinfilter;
typedef daeSmartRef<domMinfilter> domMinfilterRef;
typedef daeTArray<domMinfilterRef> domMinfilter_Array;
class domMinfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; }
static daeInt ID() { return 82; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMinfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMagfilter;
typedef daeSmartRef<domMagfilter> domMagfilterRef;
typedef daeTArray<domMagfilterRef> domMagfilter_Array;
class domMagfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; }
static daeInt ID() { return 83; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMagfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Elements
domSourceRef elemSource;
domWrap_sRef elemWrap_s;
domWrap_tRef elemWrap_t;
domMinfilterRef elemMinfilter;
domMagfilterRef elemMagfilter;
domExtra_Array elemExtra_array;
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 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
*/
domFx_samplerDEPTH_common_complexType(DAE& dae, daeElement* elt) : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domFx_samplerDEPTH_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLERDEPTH_COMMON; }
static daeInt ID() { return 84; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_samplerDEPTH_common(DAE& dae) : daeElement(dae), domFx_samplerDEPTH_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_samplerDEPTH_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,680 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* A two-dimensional texture sampler.
*/
class domFx_samplerRECT_common_complexType
{
public:
class domSource;
typedef daeSmartRef<domSource> domSourceRef;
typedef daeTArray<domSourceRef> domSource_Array;
class domSource : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; }
static daeInt ID() { return 69; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSource(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSource() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_s;
typedef daeSmartRef<domWrap_s> domWrap_sRef;
typedef daeTArray<domWrap_sRef> domWrap_s_Array;
class domWrap_s : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; }
static daeInt ID() { return 70; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_s() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_t;
typedef daeSmartRef<domWrap_t> domWrap_tRef;
typedef daeTArray<domWrap_tRef> domWrap_t_Array;
class domWrap_t : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; }
static daeInt ID() { return 71; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_t() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMinfilter;
typedef daeSmartRef<domMinfilter> domMinfilterRef;
typedef daeTArray<domMinfilterRef> domMinfilter_Array;
class domMinfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; }
static daeInt ID() { return 72; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMinfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMagfilter;
typedef daeSmartRef<domMagfilter> domMagfilterRef;
typedef daeTArray<domMagfilterRef> domMagfilter_Array;
class domMagfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; }
static daeInt ID() { return 73; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMagfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipfilter;
typedef daeSmartRef<domMipfilter> domMipfilterRef;
typedef daeTArray<domMipfilterRef> domMipfilter_Array;
class domMipfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; }
static daeInt ID() { return 74; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domBorder_color;
typedef daeSmartRef<domBorder_color> domBorder_colorRef;
typedef daeTArray<domBorder_colorRef> domBorder_color_Array;
class domBorder_color : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; }
static daeInt ID() { return 75; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domBorder_color() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_maxlevel;
typedef daeSmartRef<domMipmap_maxlevel> domMipmap_maxlevelRef;
typedef daeTArray<domMipmap_maxlevelRef> domMipmap_maxlevel_Array;
class domMipmap_maxlevel : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; }
static daeInt ID() { return 76; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_maxlevel() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_bias;
typedef daeSmartRef<domMipmap_bias> domMipmap_biasRef;
typedef daeTArray<domMipmap_biasRef> domMipmap_bias_Array;
class domMipmap_bias : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; }
static daeInt ID() { return 77; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_bias() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
domExtra_Array elemExtra_array;
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; }
/**
* 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
*/
domFx_samplerRECT_common_complexType(DAE& dae, daeElement* elt) : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domFx_samplerRECT_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLERRECT_COMMON; }
static daeInt ID() { return 78; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_samplerRECT_common(DAE& dae) : daeElement(dae), domFx_samplerRECT_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_samplerRECT_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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.
*/
#ifndef __domFx_stenciltarget_common_h__
#define __domFx_stenciltarget_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
class domFx_stenciltarget_common_complexType
{
protected: // Attributes
xsNonNegativeInteger attrIndex;
domFx_surface_face_enum attrFace;
xsNonNegativeInteger attrMip;
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 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 mip attribute.
* @return Returns a xsNonNegativeInteger of the mip attribute.
*/
xsNonNegativeInteger getMip() const { return attrMip; }
/**
* Sets the mip attribute.
* @param atMip The new value for the mip attribute.
*/
void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; }
/**
* 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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domFx_stenciltarget_common_complexType(DAE& dae, daeElement* elt) : attrIndex(), attrFace(), attrMip(), attrSlice(), _value() {}
/**
* Destructor
*/
virtual ~domFx_stenciltarget_common_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_STENCILTARGET_COMMON; }
static daeInt ID() { return 87; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
/**
* Gets the mip attribute.
* @return Returns a xsNonNegativeInteger of the mip attribute.
*/
xsNonNegativeInteger getMip() const { return attrMip; }
/**
* Sets the mip attribute.
* @param atMip The new value for the mip attribute.
*/
void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; _validAttributeArray[2] = true; }
/**
* 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; _validAttributeArray[3] = true; }
protected:
/**
* Constructor
*/
domFx_stenciltarget_common(DAE& dae) : daeElement(dae), domFx_stenciltarget_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_stenciltarget_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,568 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_surface_init_common.h>
#include <dom/domExtra.h>
#include <dom/domFx_surface_format_hint_common.h>
class DAE;
/**
* 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 domFormat;
typedef daeSmartRef<domFormat> domFormatRef;
typedef daeTArray<domFormatRef> domFormat_Array;
/**
* Contains a string representing the profile and platform specific texel
* format that the author would like this surface to use. If this element
* is not specified then the application will use a common format R8G8B8A8
* with linear color gradient, not sRGB.
*/
class domFormat : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FORMAT; }
static daeInt ID() { return 22; }
virtual daeInt typeID() const { return ID(); }
protected: // Value
/**
* The xsToken value of the text data of this element.
*/
xsToken _value;
public: //Accessors and Mutators
/**
* Gets the value of this element.
* @return Returns a xsToken of the value.
*/
xsToken getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsToken val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domFormat(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domFormat() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domSize;
typedef daeSmartRef<domSize> domSizeRef;
typedef daeTArray<domSizeRef> domSize_Array;
/**
* The surface should be sized to these exact dimensions
*/
class domSize : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SIZE; }
static daeInt ID() { return 23; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSize() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domViewport_ratio;
typedef daeSmartRef<domViewport_ratio> domViewport_ratioRef;
typedef daeTArray<domViewport_ratioRef> domViewport_ratio_Array;
/**
* The surface should be sized to a dimension based on this ratio of the viewport's
* dimensions in pixels
*/
class domViewport_ratio : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VIEWPORT_RATIO; }
static daeInt ID() { return 24; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domViewport_ratio() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMip_levels;
typedef daeSmartRef<domMip_levels> domMip_levelsRef;
typedef daeTArray<domMip_levelsRef> domMip_levels_Array;
/**
* the surface should contain the following number of MIP levels. If this
* element is not present it is assumed that all miplevels exist until a dimension
* becomes 1 texel. To create a surface that has only one level of mip maps
* (mip=0) set this to 1. If the value is 0 the result is the same as if
* mip_levels was unspecified, all possible mip_levels will exist.
*/
class domMip_levels : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIP_LEVELS; }
static daeInt ID() { return 25; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMip_levels() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_generate;
typedef daeSmartRef<domMipmap_generate> domMipmap_generateRef;
typedef daeTArray<domMipmap_generateRef> domMipmap_generate_Array;
/**
* By default it is assumed that mipmaps are supplied by the author so, if
* not all subsurfaces are initialized, it is invalid and will result in profile
* and platform specific behavior unless mipmap_generate is responsible for
* initializing the remainder of the sub-surfaces
*/
class domMipmap_generate : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_GENERATE; }
static daeInt ID() { return 26; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_generate() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Attribute
/**
* Specifying the type of a surface is mandatory though the type may be "UNTYPED".
* When a surface is typed as UNTYPED, it is said to be temporarily untyped
* and instead will be typed later by the context it is used in such as which
* samplers reference it in that are used in a particular technique or pass.
* If there is a type mismatch between what is set into it later and what
* the runtime decides the type should be the result in profile and platform
* specific behavior.
*/
domFx_surface_type_enum attrType;
protected: // Elements
/**
* The common set of initalization options for surfaces. Choose which is
* appropriate for your surface based on the type attribute and other characteristics
* described by the annotation docs on the choiced child elements of this
* type. @see domFx_surface_init_common
*/
domFx_surface_init_commonRef elemFx_surface_init_common;
/**
* Contains a string representing the profile and platform specific texel
* format that the author would like this surface to use. If this element
* is not specified then the application will use a common format R8G8B8A8
* with linear color gradient, not sRGB. @see domFormat
*/
domFormatRef elemFormat;
/**
* If the exact format cannot be resolved via the "format" element then the
* format_hint will describe the important features of the format so that
* the application may select a compatable or close format @see domFormat_hint
*/
domFx_surface_format_hint_commonRef elemFormat_hint;
/**
* The surface should be sized to these exact dimensions @see domSize
*/
domSizeRef elemSize;
/**
* The surface should be sized to a dimension based on this ratio of the viewport's
* dimensions in pixels @see domViewport_ratio
*/
domViewport_ratioRef elemViewport_ratio;
/**
* the surface should contain the following number of MIP levels. If this
* element is not present it is assumed that all miplevels exist until a dimension
* becomes 1 texel. To create a surface that has only one level of mip maps
* (mip=0) set this to 1. If the value is 0 the result is the same as if
* mip_levels was unspecified, all possible mip_levels will exist. @see domMip_levels
*/
domMip_levelsRef elemMip_levels;
/**
* By default it is assumed that mipmaps are supplied by the author so, if
* not all subsurfaces are initialized, it is invalid and will result in profile
* and platform specific behavior unless mipmap_generate is responsible for
* initializing the remainder of the sub-surfaces @see domMipmap_generate
*/
domMipmap_generateRef elemMipmap_generate;
domExtra_Array elemExtra_array;
/**
* Used to preserve order in elements that do not specify strict sequencing of sub-elements.
*/
daeElementRefArray _contents;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
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 fx_surface_init_common element.
* @return a daeSmartRef to the fx_surface_init_common element.
*/
const domFx_surface_init_commonRef getFx_surface_init_common() const { return elemFx_surface_init_common; }
/**
* Gets the format element.
* @return a daeSmartRef to the format element.
*/
const domFormatRef getFormat() const { return elemFormat; }
/**
* Gets the format_hint element.
* @return a daeSmartRef to the format_hint element.
*/
const domFx_surface_format_hint_commonRef getFormat_hint() const { return elemFormat_hint; }
/**
* 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 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
*/
domFx_surface_common_complexType(DAE& dae, daeElement* elt) : attrType(), elemFx_surface_init_common(), elemFormat(), elemFormat_hint(), elemSize(), elemViewport_ratio(), elemMip_levels(), elemMipmap_generate(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domFx_surface_common_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_COMMON; }
static daeInt ID() { return 27; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domFx_surface_common(DAE& dae) : daeElement(dae), domFx_surface_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_surface_common() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,402 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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_format_hint_common_h__
#define __domFx_surface_format_hint_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* If the exact format cannot be resolve via other methods then the format_hint
* will describe the important features of the format so that the application
* may select a compatable or close format
*/
class domFx_surface_format_hint_common_complexType
{
public:
class domChannels;
typedef daeSmartRef<domChannels> domChannelsRef;
typedef daeTArray<domChannelsRef> domChannels_Array;
/**
* The per-texel layout of the format. The length of the string indicate
* how many channels there are and the letter respresents the name of the
* channel. There are typically 0 to 4 channels.
*/
class domChannels : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CHANNELS; }
static daeInt ID() { return 6; }
virtual daeInt typeID() const { return ID(); }
protected: // Value
/**
* The domFx_surface_format_hint_channels_enum value of the text data of this element.
*/
domFx_surface_format_hint_channels_enum _value;
public: //Accessors and Mutators
/**
* Gets the value of this element.
* @return a domFx_surface_format_hint_channels_enum of the value.
*/
domFx_surface_format_hint_channels_enum getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( domFx_surface_format_hint_channels_enum val ) { _value = val; }
protected:
/**
* Constructor
*/
domChannels(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domChannels() {}
/**
* Overloaded assignment operator
*/
virtual domChannels &operator=( const domChannels &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domRange;
typedef daeSmartRef<domRange> domRangeRef;
typedef daeTArray<domRangeRef> domRange_Array;
/**
* Each channel represents a range of values. Some example ranges are signed
* or unsigned integers, or between between a clamped range such as 0.0f to
* 1.0f, or high dynamic range via floating point
*/
class domRange : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RANGE; }
static daeInt ID() { return 7; }
virtual daeInt typeID() const { return ID(); }
protected: // Value
/**
* The domFx_surface_format_hint_range_enum value of the text data of this element.
*/
domFx_surface_format_hint_range_enum _value;
public: //Accessors and Mutators
/**
* Gets the value of this element.
* @return a domFx_surface_format_hint_range_enum of the value.
*/
domFx_surface_format_hint_range_enum getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( domFx_surface_format_hint_range_enum val ) { _value = val; }
protected:
/**
* Constructor
*/
domRange(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domRange() {}
/**
* Overloaded assignment operator
*/
virtual domRange &operator=( const domRange &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domPrecision;
typedef daeSmartRef<domPrecision> domPrecisionRef;
typedef daeTArray<domPrecisionRef> domPrecision_Array;
/**
* Each channel of the texel has a precision. Typically these are all linked
* together. An exact format lay lower the precision of an individual channel
* but applying a higher precision by linking the channels together may still
* convey the same information.
*/
class domPrecision : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PRECISION; }
static daeInt ID() { return 8; }
virtual daeInt typeID() const { return ID(); }
protected: // Value
/**
* The domFx_surface_format_hint_precision_enum value of the text data of this element.
*/
domFx_surface_format_hint_precision_enum _value;
public: //Accessors and Mutators
/**
* Gets the value of this element.
* @return a domFx_surface_format_hint_precision_enum of the value.
*/
domFx_surface_format_hint_precision_enum getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( domFx_surface_format_hint_precision_enum val ) { _value = val; }
protected:
/**
* Constructor
*/
domPrecision(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domPrecision() {}
/**
* Overloaded assignment operator
*/
virtual domPrecision &operator=( const domPrecision &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domOption;
typedef daeSmartRef<domOption> domOptionRef;
typedef daeTArray<domOptionRef> domOption_Array;
/**
* Additional hints about data relationships and other things to help the
* application pick the best format.
*/
class domOption : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::OPTION; }
static daeInt ID() { return 9; }
virtual daeInt typeID() const { return ID(); }
protected: // Value
/**
* The domFx_surface_format_hint_option_enum value of the text data of this element.
*/
domFx_surface_format_hint_option_enum _value;
public: //Accessors and Mutators
/**
* Gets the value of this element.
* @return a domFx_surface_format_hint_option_enum of the value.
*/
domFx_surface_format_hint_option_enum getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( domFx_surface_format_hint_option_enum val ) { _value = val; }
protected:
/**
* Constructor
*/
domOption(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domOption() {}
/**
* Overloaded assignment operator
*/
virtual domOption &operator=( const domOption &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Elements
/**
* The per-texel layout of the format. The length of the string indicate
* how many channels there are and the letter respresents the name of the
* channel. There are typically 0 to 4 channels. @see domChannels
*/
domChannelsRef elemChannels;
/**
* Each channel represents a range of values. Some example ranges are signed
* or unsigned integers, or between between a clamped range such as 0.0f to
* 1.0f, or high dynamic range via floating point @see domRange
*/
domRangeRef elemRange;
/**
* Each channel of the texel has a precision. Typically these are all linked
* together. An exact format lay lower the precision of an individual channel
* but applying a higher precision by linking the channels together may still
* convey the same information. @see domPrecision
*/
domPrecisionRef elemPrecision;
/**
* Additional hints about data relationships and other things to help the
* application pick the best format. @see domOption
*/
domOption_Array elemOption_array;
domExtra_Array elemExtra_array;
public: //Accessors and Mutators
/**
* Gets the channels element.
* @return a daeSmartRef to the channels element.
*/
const domChannelsRef getChannels() const { return elemChannels; }
/**
* Gets the range element.
* @return a daeSmartRef to the range element.
*/
const domRangeRef getRange() const { return elemRange; }
/**
* Gets the precision element.
* @return a daeSmartRef to the precision element.
*/
const domPrecisionRef getPrecision() const { return elemPrecision; }
/**
* Gets the option element array.
* @return Returns a reference to the array of option elements.
*/
domOption_Array &getOption_array() { return elemOption_array; }
/**
* Gets the option element array.
* @return Returns a constant reference to the array of option elements.
*/
const domOption_Array &getOption_array() const { return elemOption_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
*/
domFx_surface_format_hint_common_complexType(DAE& dae, daeElement* elt) : elemChannels(), elemRange(), elemPrecision(), elemOption_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domFx_surface_format_hint_common_complexType() {}
/**
* Overloaded assignment operator
*/
virtual domFx_surface_format_hint_common_complexType &operator=( const domFx_surface_format_hint_common_complexType &cpy ) { (void)cpy; return *this; }
};
/**
* An element of type domFx_surface_format_hint_common_complexType.
*/
class domFx_surface_format_hint_common : public daeElement, public domFx_surface_format_hint_common_complexType
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_FORMAT_HINT_COMMON; }
static daeInt ID() { return 10; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_surface_format_hint_common(DAE& dae) : daeElement(dae), domFx_surface_format_hint_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_surface_format_hint_common() {}
/**
* Overloaded assignment operator
*/
virtual domFx_surface_format_hint_common &operator=( const domFx_surface_format_hint_common &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,259 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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_init_common_h__
#define __domFx_surface_init_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_surface_init_cube_common.h>
#include <dom/domFx_surface_init_volume_common.h>
#include <dom/domFx_surface_init_planar_common.h>
#include <dom/domFx_surface_init_from_common.h>
class DAE;
/**
* The common set of initalization options for surfaces. Choose which is
* appropriate for your surface based on type and other characteristics. described
* by the annotation docs on the child elements.
*/
class domFx_surface_init_common : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_COMMON; }
static daeInt ID() { return 168; }
virtual daeInt typeID() const { return ID(); }
public:
class domInit_as_null;
typedef daeSmartRef<domInit_as_null> domInit_as_nullRef;
typedef daeTArray<domInit_as_nullRef> domInit_as_null_Array;
/**
* This surface is intended to be initialized later externally by a "setparam"
* element. If it is used before being initialized there is profile and platform
* specific behavior. Most elements on the surface element containing this
* will be ignored including mip_levels, mipmap_generate, size, viewport_ratio,
* and format.
*/
class domInit_as_null : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INIT_AS_NULL; }
static daeInt ID() { return 169; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domInit_as_null(DAE& dae) : daeElement(dae) {}
/**
* Destructor
*/
virtual ~domInit_as_null() {}
/**
* Overloaded assignment operator
*/
virtual domInit_as_null &operator=( const domInit_as_null &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domInit_as_target;
typedef daeSmartRef<domInit_as_target> domInit_as_targetRef;
typedef daeTArray<domInit_as_targetRef> domInit_as_target_Array;
/**
* Init as a target for depth, stencil, or color. It does not need image
* data. Surface should not have mipmap_generate when using this.
*/
class domInit_as_target : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INIT_AS_TARGET; }
static daeInt ID() { return 170; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domInit_as_target(DAE& dae) : daeElement(dae) {}
/**
* Destructor
*/
virtual ~domInit_as_target() {}
/**
* Overloaded assignment operator
*/
virtual domInit_as_target &operator=( const domInit_as_target &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Elements
/**
* This surface is intended to be initialized later externally by a "setparam"
* element. If it is used before being initialized there is profile and platform
* specific behavior. Most elements on the surface element containing this
* will be ignored including mip_levels, mipmap_generate, size, viewport_ratio,
* and format. @see domInit_as_null
*/
domInit_as_nullRef elemInit_as_null;
/**
* Init as a target for depth, stencil, or color. It does not need image
* data. Surface should not have mipmap_generate when using this. @see domInit_as_target
*/
domInit_as_targetRef elemInit_as_target;
/**
* Init a CUBE from a compound image such as DDS @see domInit_cube
*/
domFx_surface_init_cube_commonRef elemInit_cube;
/**
* Init a 3D from a compound image such as DDS @see domInit_volume
*/
domFx_surface_init_volume_commonRef elemInit_volume;
/**
* Init a 1D,2D,RECT,DEPTH from a compound image such as DDS @see domInit_planar
*/
domFx_surface_init_planar_commonRef elemInit_planar;
/**
* Initialize the surface one sub-surface at a time by specifying combinations
* of mip, face, and slice which make sense for a particular surface type.
* Each sub-surface is initialized by a common 2D image, not a complex compound
* image such as DDS. If not all subsurfaces are initialized, it is invalid
* and will result in profile and platform specific behavior unless mipmap_generate
* is responsible for initializing the remainder of the sub-surfaces @see
* domInit_from
*/
domFx_surface_init_from_common_Array elemInit_from_array;
/**
* Used to preserve order in elements that do not specify strict sequencing of sub-elements.
*/
daeElementRefArray _contents;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the init_as_null element.
* @return a daeSmartRef to the init_as_null element.
*/
const domInit_as_nullRef getInit_as_null() const { return elemInit_as_null; }
/**
* Gets the init_as_target element.
* @return a daeSmartRef to the init_as_target element.
*/
const domInit_as_targetRef getInit_as_target() const { return elemInit_as_target; }
/**
* Gets the init_cube element.
* @return a daeSmartRef to the init_cube element.
*/
const domFx_surface_init_cube_commonRef getInit_cube() const { return elemInit_cube; }
/**
* Gets the init_volume element.
* @return a daeSmartRef to the init_volume element.
*/
const domFx_surface_init_volume_commonRef getInit_volume() const { return elemInit_volume; }
/**
* Gets the init_planar element.
* @return a daeSmartRef to the init_planar element.
*/
const domFx_surface_init_planar_commonRef getInit_planar() const { return elemInit_planar; }
/**
* Gets the init_from element array.
* @return Returns a reference to the array of init_from elements.
*/
domFx_surface_init_from_common_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 domFx_surface_init_from_common_Array &getInit_from_array() const { return elemInit_from_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
*/
domFx_surface_init_common(DAE& dae) : daeElement(dae), elemInit_as_null(), elemInit_as_target(), elemInit_cube(), elemInit_volume(), elemInit_planar(), elemInit_from_array() {}
/**
* Destructor
*/
virtual ~domFx_surface_init_common() { daeElement::deleteCMDataArray(_CMData); }
/**
* Overloaded assignment operator
*/
virtual domFx_surface_init_common &operator=( const domFx_surface_init_common &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,414 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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_init_cube_common_h__
#define __domFx_surface_init_cube_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
class domFx_surface_init_cube_common_complexType
{
public:
class domAll;
typedef daeSmartRef<domAll> domAllRef;
typedef daeTArray<domAllRef> domAll_Array;
/**
* Init the entire surface with one compound image such as DDS
*/
class domAll : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALL; }
static daeInt ID() { return 16; }
virtual daeInt typeID() const { return ID(); }
protected: // Attribute
xsIDREF attrRef;
public: //Accessors and Mutators
/**
* Gets the ref attribute.
* @return Returns a xsIDREF reference of the ref attribute.
*/
xsIDREF &getRef() { return attrRef; }
/**
* Gets the ref attribute.
* @return Returns a constant xsIDREF reference of the ref attribute.
*/
const xsIDREF &getRef() const{ return attrRef; }
/**
* Sets the ref attribute.
* @param atRef The new value for the ref attribute.
*/
void setRef( const xsIDREF &atRef ) { attrRef = atRef; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domAll(DAE& dae) : daeElement(dae), attrRef(*this) {}
/**
* Destructor
*/
virtual ~domAll() {}
/**
* Overloaded assignment operator
*/
virtual domAll &operator=( const domAll &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domPrimary;
typedef daeSmartRef<domPrimary> domPrimaryRef;
typedef daeTArray<domPrimaryRef> domPrimary_Array;
/**
* Init all primary mip level 0 subsurfaces with one compound image such as
* DDS. Use of this element expects that the surface has element mip_levels=0
* or mipmap_generate.
*/
class domPrimary : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PRIMARY; }
static daeInt ID() { return 17; }
virtual daeInt typeID() const { return ID(); }
public:
class domOrder;
typedef daeSmartRef<domOrder> domOrderRef;
typedef daeTArray<domOrderRef> domOrder_Array;
/**
* If the image dues not natively describe the face ordering then this series
* of order elements will describe which face the index belongs too
*/
class domOrder : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ORDER; }
static daeInt ID() { return 18; }
virtual daeInt typeID() const { return ID(); }
protected: // Value
/**
* The domFx_surface_face_enum value of the text data of this element.
*/
domFx_surface_face_enum _value;
public: //Accessors and Mutators
/**
* Gets the value of this element.
* @return a domFx_surface_face_enum of the value.
*/
domFx_surface_face_enum getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( domFx_surface_face_enum val ) { _value = val; }
protected:
/**
* Constructor
*/
domOrder(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domOrder() {}
/**
* Overloaded assignment operator
*/
virtual domOrder &operator=( const domOrder &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Attribute
xsIDREF attrRef;
protected: // Element
/**
* If the image dues not natively describe the face ordering then this series
* of order elements will describe which face the index belongs too @see domOrder
*/
domOrder_Array elemOrder_array;
public: //Accessors and Mutators
/**
* Gets the ref attribute.
* @return Returns a xsIDREF reference of the ref attribute.
*/
xsIDREF &getRef() { return attrRef; }
/**
* Gets the ref attribute.
* @return Returns a constant xsIDREF reference of the ref attribute.
*/
const xsIDREF &getRef() const{ return attrRef; }
/**
* Sets the ref attribute.
* @param atRef The new value for the ref attribute.
*/
void setRef( const xsIDREF &atRef ) { attrRef = atRef; _validAttributeArray[0] = true; }
/**
* Gets the order element array.
* @return Returns a reference to the array of order elements.
*/
domOrder_Array &getOrder_array() { return elemOrder_array; }
/**
* Gets the order element array.
* @return Returns a constant reference to the array of order elements.
*/
const domOrder_Array &getOrder_array() const { return elemOrder_array; }
protected:
/**
* Constructor
*/
domPrimary(DAE& dae) : daeElement(dae), attrRef(*this), elemOrder_array() {}
/**
* Destructor
*/
virtual ~domPrimary() {}
/**
* Overloaded assignment operator
*/
virtual domPrimary &operator=( const domPrimary &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domFace;
typedef daeSmartRef<domFace> domFaceRef;
typedef daeTArray<domFaceRef> domFace_Array;
/**
* Init each face mipchain with one compound image such as DDS
*/
class domFace : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FACE; }
static daeInt ID() { return 19; }
virtual daeInt typeID() const { return ID(); }
protected: // Attribute
xsIDREF attrRef;
public: //Accessors and Mutators
/**
* Gets the ref attribute.
* @return Returns a xsIDREF reference of the ref attribute.
*/
xsIDREF &getRef() { return attrRef; }
/**
* Gets the ref attribute.
* @return Returns a constant xsIDREF reference of the ref attribute.
*/
const xsIDREF &getRef() const{ return attrRef; }
/**
* Sets the ref attribute.
* @param atRef The new value for the ref attribute.
*/
void setRef( const xsIDREF &atRef ) { attrRef = atRef; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domFace(DAE& dae) : daeElement(dae), attrRef(*this) {}
/**
* Destructor
*/
virtual ~domFace() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Elements
/**
* Init the entire surface with one compound image such as DDS @see domAll
*/
domAllRef elemAll;
/**
* Init all primary mip level 0 subsurfaces with one compound image such as
* DDS. Use of this element expects that the surface has element mip_levels=0
* or mipmap_generate. @see domPrimary
*/
domPrimaryRef elemPrimary;
/**
* Init each face mipchain with one compound image such as DDS @see domFace
*/
domFace_Array elemFace_array;
/**
* Used to preserve order in elements that do not specify strict sequencing of sub-elements.
*/
daeElementRefArray _contents;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the all element.
* @return a daeSmartRef to the all element.
*/
const domAllRef getAll() const { return elemAll; }
/**
* Gets the primary element.
* @return a daeSmartRef to the primary element.
*/
const domPrimaryRef getPrimary() const { return elemPrimary; }
/**
* Gets the face element array.
* @return Returns a reference to the array of face elements.
*/
domFace_Array &getFace_array() { return elemFace_array; }
/**
* Gets the face element array.
* @return Returns a constant reference to the array of face elements.
*/
const domFace_Array &getFace_array() const { return elemFace_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
*/
domFx_surface_init_cube_common_complexType(DAE& dae, daeElement* elt) : elemAll(), elemPrimary(), elemFace_array() {}
/**
* Destructor
*/
virtual ~domFx_surface_init_cube_common_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* Overloaded assignment operator
*/
virtual domFx_surface_init_cube_common_complexType &operator=( const domFx_surface_init_cube_common_complexType &cpy ) { (void)cpy; return *this; }
};
/**
* An element of type domFx_surface_init_cube_common_complexType.
*/
class domFx_surface_init_cube_common : public daeElement, public domFx_surface_init_cube_common_complexType
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_CUBE_COMMON; }
static daeInt ID() { return 20; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_surface_init_cube_common(DAE& dae) : daeElement(dae), domFx_surface_init_cube_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_surface_init_cube_common() {}
/**
* Overloaded assignment operator
*/
virtual domFx_surface_init_cube_common &operator=( const domFx_surface_init_cube_common &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,178 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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_init_from_common_h__
#define __domFx_surface_init_from_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* This element is an IDREF which specifies the image to use to initialize
* a specific mip of a 1D or 2D surface, 3D slice, or Cube face.
*/
class domFx_surface_init_from_common_complexType
{
protected: // Attributes
xsUnsignedInt attrMip;
xsUnsignedInt attrSlice;
domFx_surface_face_enum attrFace;
protected: // Value
/**
* The xsIDREF value of the text data of this element.
*/
xsIDREF _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 of this element.
* @return Returns a xsIDREF of the value.
*/
xsIDREF &getValue() { return _value; }
/**
* Gets the value of this element.
* @return Returns a constant xsIDREF of the value.
*/
const xsIDREF &getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( const xsIDREF &val ) { _value = val; }
protected:
/**
* Constructor
*/
domFx_surface_init_from_common_complexType(DAE& dae, daeElement* elt) : attrMip(), attrSlice(), attrFace(), _value(*elt) {}
/**
* Destructor
*/
virtual ~domFx_surface_init_from_common_complexType() {}
/**
* Overloaded assignment operator
*/
virtual domFx_surface_init_from_common_complexType &operator=( const domFx_surface_init_from_common_complexType &cpy ) { (void)cpy; return *this; }
};
/**
* An element of type domFx_surface_init_from_common_complexType.
*/
class domFx_surface_init_from_common : public daeElement, public domFx_surface_init_from_common_complexType
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_FROM_COMMON; }
static daeInt ID() { return 21; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
/**
* 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; _validAttributeArray[2] = true; }
protected:
/**
* Constructor
*/
domFx_surface_init_from_common(DAE& dae) : daeElement(dae), domFx_surface_init_from_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_surface_init_from_common() {}
/**
* Overloaded assignment operator
*/
virtual domFx_surface_init_from_common &operator=( const domFx_surface_init_from_common &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,184 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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_init_planar_common_h__
#define __domFx_surface_init_planar_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* For 1D, 2D, RECT surface types
*/
class domFx_surface_init_planar_common_complexType
{
public:
class domAll;
typedef daeSmartRef<domAll> domAllRef;
typedef daeTArray<domAllRef> domAll_Array;
/**
* Init the entire surface with one compound image such as DDS
*/
class domAll : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALL; }
static daeInt ID() { return 11; }
virtual daeInt typeID() const { return ID(); }
protected: // Attribute
xsIDREF attrRef;
public: //Accessors and Mutators
/**
* Gets the ref attribute.
* @return Returns a xsIDREF reference of the ref attribute.
*/
xsIDREF &getRef() { return attrRef; }
/**
* Gets the ref attribute.
* @return Returns a constant xsIDREF reference of the ref attribute.
*/
const xsIDREF &getRef() const{ return attrRef; }
/**
* Sets the ref attribute.
* @param atRef The new value for the ref attribute.
*/
void setRef( const xsIDREF &atRef ) { attrRef = atRef; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domAll(DAE& dae) : daeElement(dae), attrRef(*this) {}
/**
* Destructor
*/
virtual ~domAll() {}
/**
* Overloaded assignment operator
*/
virtual domAll &operator=( const domAll &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Element
/**
* Init the entire surface with one compound image such as DDS @see domAll
*/
domAllRef elemAll;
/**
* Used to preserve order in elements that do not specify strict sequencing of sub-elements.
*/
daeElementRefArray _contents;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the all element.
* @return a daeSmartRef to the all element.
*/
const domAllRef getAll() const { return elemAll; }
/**
* 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_init_planar_common_complexType(DAE& dae, daeElement* elt) : elemAll() {}
/**
* Destructor
*/
virtual ~domFx_surface_init_planar_common_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* Overloaded assignment operator
*/
virtual domFx_surface_init_planar_common_complexType &operator=( const domFx_surface_init_planar_common_complexType &cpy ) { (void)cpy; return *this; }
};
/**
* An element of type domFx_surface_init_planar_common_complexType.
*/
class domFx_surface_init_planar_common : public daeElement, public domFx_surface_init_planar_common_complexType
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_PLANAR_COMMON; }
static daeInt ID() { return 12; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_surface_init_planar_common(DAE& dae) : daeElement(dae), domFx_surface_init_planar_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_surface_init_planar_common() {}
/**
* Overloaded assignment operator
*/
virtual domFx_surface_init_planar_common &operator=( const domFx_surface_init_planar_common &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,256 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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_init_volume_common_h__
#define __domFx_surface_init_volume_common_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
class domFx_surface_init_volume_common_complexType
{
public:
class domAll;
typedef daeSmartRef<domAll> domAllRef;
typedef daeTArray<domAllRef> domAll_Array;
/**
* Init the entire surface with one compound image such as DDS
*/
class domAll : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALL; }
static daeInt ID() { return 13; }
virtual daeInt typeID() const { return ID(); }
protected: // Attribute
xsIDREF attrRef;
public: //Accessors and Mutators
/**
* Gets the ref attribute.
* @return Returns a xsIDREF reference of the ref attribute.
*/
xsIDREF &getRef() { return attrRef; }
/**
* Gets the ref attribute.
* @return Returns a constant xsIDREF reference of the ref attribute.
*/
const xsIDREF &getRef() const{ return attrRef; }
/**
* Sets the ref attribute.
* @param atRef The new value for the ref attribute.
*/
void setRef( const xsIDREF &atRef ) { attrRef = atRef; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domAll(DAE& dae) : daeElement(dae), attrRef(*this) {}
/**
* Destructor
*/
virtual ~domAll() {}
/**
* Overloaded assignment operator
*/
virtual domAll &operator=( const domAll &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domPrimary;
typedef daeSmartRef<domPrimary> domPrimaryRef;
typedef daeTArray<domPrimaryRef> domPrimary_Array;
/**
* Init mip level 0 of the surface with one compound image such as DDS. Use
* of this element expects that the surface has element mip_levels=0 or mipmap_generate.
*/
class domPrimary : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PRIMARY; }
static daeInt ID() { return 14; }
virtual daeInt typeID() const { return ID(); }
protected: // Attribute
xsIDREF attrRef;
public: //Accessors and Mutators
/**
* Gets the ref attribute.
* @return Returns a xsIDREF reference of the ref attribute.
*/
xsIDREF &getRef() { return attrRef; }
/**
* Gets the ref attribute.
* @return Returns a constant xsIDREF reference of the ref attribute.
*/
const xsIDREF &getRef() const{ return attrRef; }
/**
* Sets the ref attribute.
* @param atRef The new value for the ref attribute.
*/
void setRef( const xsIDREF &atRef ) { attrRef = atRef; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domPrimary(DAE& dae) : daeElement(dae), attrRef(*this) {}
/**
* Destructor
*/
virtual ~domPrimary() {}
/**
* Overloaded assignment operator
*/
virtual domPrimary &operator=( const domPrimary &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Elements
/**
* Init the entire surface with one compound image such as DDS @see domAll
*/
domAllRef elemAll;
/**
* Init mip level 0 of the surface with one compound image such as DDS. Use
* of this element expects that the surface has element mip_levels=0 or mipmap_generate.
* @see domPrimary
*/
domPrimaryRef elemPrimary;
/**
* Used to preserve order in elements that do not specify strict sequencing of sub-elements.
*/
daeElementRefArray _contents;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the all element.
* @return a daeSmartRef to the all element.
*/
const domAllRef getAll() const { return elemAll; }
/**
* Gets the primary element.
* @return a daeSmartRef to the primary element.
*/
const domPrimaryRef getPrimary() const { return elemPrimary; }
/**
* 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_init_volume_common_complexType(DAE& dae, daeElement* elt) : elemAll(), elemPrimary() {}
/**
* Destructor
*/
virtual ~domFx_surface_init_volume_common_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* Overloaded assignment operator
*/
virtual domFx_surface_init_volume_common_complexType &operator=( const domFx_surface_init_volume_common_complexType &cpy ) { (void)cpy; return *this; }
};
/**
* An element of type domFx_surface_init_volume_common_complexType.
*/
class domFx_surface_init_volume_common : public daeElement, public domFx_surface_init_volume_common_complexType
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_VOLUME_COMMON; }
static daeInt ID() { return 15; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domFx_surface_init_volume_common(DAE& dae) : daeElement(dae), domFx_surface_init_volume_common_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domFx_surface_init_volume_common() {}
/**
* Overloaded assignment operator
*/
virtual domFx_surface_init_volume_common &operator=( const domFx_surface_init_volume_common &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domGeometry_h__
#define __domGeometry_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domConvex_mesh.h>
#include <dom/domMesh.h>
#include <dom/domSpline.h>
#include <dom/domExtra.h>
class DAE;
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GEOMETRY; }
static daeInt ID() { return 613; }
virtual daeInt typeID() const { return ID(); }
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the id attribute.
* @return Returns a xsID of the id attribute.
*/
xsID getId() const { return attrId; }
/**
* Sets the id attribute.
* @param atId The new value for the id attribute.
*/
void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemConvex_mesh(), elemMesh(), elemSpline(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domGeometry() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domGl_hook_abstract_h__
#define __domGl_hook_abstract_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
class domGl_hook_abstract : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_HOOK_ABSTRACT; }
static daeInt ID() { return 729; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domGl_hook_abstract(DAE& dae) : daeElement(dae) {}
/**
* Destructor
*/
virtual ~domGl_hook_abstract() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,83 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_sampler1D_common.h>
class DAE;
/**
* A one-dimensional texture sampler for the GLSL profile.
*/
class domGl_sampler1D_complexType : public domFx_sampler1D_common_complexType
{
protected:
/**
* Constructor
*/
domGl_sampler1D_complexType(DAE& dae, daeElement* elt) : domFx_sampler1D_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domGl_sampler1D_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLER1D; }
static daeInt ID() { return 97; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domGl_sampler1D(DAE& dae) : daeElement(dae), domGl_sampler1D_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGl_sampler1D() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,83 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_sampler2D_common.h>
class DAE;
/**
* A two-dimensional texture sampler for the GLSL profile.
*/
class domGl_sampler2D_complexType : public domFx_sampler2D_common_complexType
{
protected:
/**
* Constructor
*/
domGl_sampler2D_complexType(DAE& dae, daeElement* elt) : domFx_sampler2D_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domGl_sampler2D_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLER2D; }
static daeInt ID() { return 98; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domGl_sampler2D(DAE& dae) : daeElement(dae), domGl_sampler2D_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGl_sampler2D() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,83 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_sampler3D_common.h>
class DAE;
/**
* A three-dimensional texture sampler for the GLSL profile.
*/
class domGl_sampler3D_complexType : public domFx_sampler3D_common_complexType
{
protected:
/**
* Constructor
*/
domGl_sampler3D_complexType(DAE& dae, daeElement* elt) : domFx_sampler3D_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domGl_sampler3D_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLER3D; }
static daeInt ID() { return 99; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domGl_sampler3D(DAE& dae) : daeElement(dae), domGl_sampler3D_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGl_sampler3D() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,83 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_samplerCUBE_common.h>
class DAE;
/**
* A cube map texture sampler for the GLSL profile.
*/
class domGl_samplerCUBE_complexType : public domFx_samplerCUBE_common_complexType
{
protected:
/**
* Constructor
*/
domGl_samplerCUBE_complexType(DAE& dae, daeElement* elt) : domFx_samplerCUBE_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domGl_samplerCUBE_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLERCUBE; }
static daeInt ID() { return 100; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domGl_samplerCUBE(DAE& dae) : daeElement(dae), domGl_samplerCUBE_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGl_samplerCUBE() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,83 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_samplerDEPTH_common.h>
class DAE;
/**
* A depth texture sampler for the GLSL profile.
*/
class domGl_samplerDEPTH_complexType : public domFx_samplerDEPTH_common_complexType
{
protected:
/**
* Constructor
*/
domGl_samplerDEPTH_complexType(DAE& dae, daeElement* elt) : domFx_samplerDEPTH_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domGl_samplerDEPTH_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLERDEPTH; }
static daeInt ID() { return 102; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domGl_samplerDEPTH(DAE& dae) : daeElement(dae), domGl_samplerDEPTH_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGl_samplerDEPTH() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,83 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_samplerRECT_common.h>
class DAE;
/**
* A two-dimensional texture sampler for the GLSL profile.
*/
class domGl_samplerRECT_complexType : public domFx_samplerRECT_common_complexType
{
protected:
/**
* Constructor
*/
domGl_samplerRECT_complexType(DAE& dae, daeElement* elt) : domFx_samplerRECT_common_complexType(dae, elt) {}
/**
* Destructor
*/
virtual ~domGl_samplerRECT_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLERRECT; }
static daeInt ID() { return 101; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domGl_samplerRECT(DAE& dae) : daeElement(dae), domGl_samplerRECT_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGl_samplerRECT() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,284 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGles_basic_type_common.h>
#include <dom/domFx_annotate_common.h>
class DAE;
/**
* 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<domSemantic> domSemanticRef;
typedef daeTArray<domSemanticRef> domSemantic_Array;
/**
* The semantic element allows you to specify a semantic for this new param.
*/
class domSemantic : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; }
static daeInt ID() { return 165; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSemantic(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSemantic() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domModifier;
typedef daeSmartRef<domModifier> domModifierRef;
typedef daeTArray<domModifierRef> domModifier_Array;
/**
* The modifier element allows you to specify a modifier for this new param.
*/
class domModifier : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIER; }
static daeInt ID() { return 166; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domModifier() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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 ) { *(daeStringRef*)&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(DAE& dae, daeElement* elt) : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemGles_basic_type_common() {}
/**
* Destructor
*/
virtual ~domGles_newparam_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_NEWPARAM; }
static daeInt ID() { return 167; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domGles_newparam(DAE& dae) : daeElement(dae), domGles_newparam_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_newparam() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,583 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
/**
* 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_s> domWrap_sRef;
typedef daeTArray<domWrap_sRef> domWrap_s_Array;
class domWrap_s : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; }
static daeInt ID() { return 157; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_s() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domWrap_t;
typedef daeSmartRef<domWrap_t> domWrap_tRef;
typedef daeTArray<domWrap_tRef> domWrap_t_Array;
class domWrap_t : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; }
static daeInt ID() { return 158; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domWrap_t() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMinfilter;
typedef daeSmartRef<domMinfilter> domMinfilterRef;
typedef daeTArray<domMinfilterRef> domMinfilter_Array;
class domMinfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; }
static daeInt ID() { return 159; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMinfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMagfilter;
typedef daeSmartRef<domMagfilter> domMagfilterRef;
typedef daeTArray<domMagfilterRef> domMagfilter_Array;
class domMagfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; }
static daeInt ID() { return 160; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMagfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipfilter;
typedef daeSmartRef<domMipfilter> domMipfilterRef;
typedef daeTArray<domMipfilterRef> domMipfilter_Array;
class domMipfilter : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; }
static daeInt ID() { return 161; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipfilter() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_maxlevel;
typedef daeSmartRef<domMipmap_maxlevel> domMipmap_maxlevelRef;
typedef daeTArray<domMipmap_maxlevelRef> domMipmap_maxlevel_Array;
class domMipmap_maxlevel : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; }
static daeInt ID() { return 162; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_maxlevel() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domMipmap_bias;
typedef daeSmartRef<domMipmap_bias> domMipmap_biasRef;
typedef daeTArray<domMipmap_biasRef> domMipmap_bias_Array;
class domMipmap_bias : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; }
static daeInt ID() { return 163; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domMipmap_bias() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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 ) { *(daeStringRef*)&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(DAE& dae, daeElement* elt) : attrSid(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domGles_sampler_state_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_SAMPLER_STATE; }
static daeInt ID() { return 164; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domGles_sampler_state(DAE& dae) : daeElement(dae), domGles_sampler_state_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_sampler_state() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,153 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
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 ) { *(daeStringRef*)&attrUnit = atUnit;}
protected:
/**
* Constructor
*/
domGles_texcombiner_argumentAlpha_type_complexType(DAE& dae, daeElement* elt) : attrSource(), attrOperand(), attrUnit() {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_argumentAlpha_type_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_ARGUMENTALPHA_TYPE; }
static daeInt ID() { return 148; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
/**
* 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 ) { *(daeStringRef*)&attrUnit = atUnit; _validAttributeArray[2] = true; }
protected:
/**
* Constructor
*/
domGles_texcombiner_argumentAlpha_type(DAE& dae) : daeElement(dae), domGles_texcombiner_argumentAlpha_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_argumentAlpha_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,153 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
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 ) { *(daeStringRef*)&attrUnit = atUnit;}
protected:
/**
* Constructor
*/
domGles_texcombiner_argumentRGB_type_complexType(DAE& dae, daeElement* elt) : attrSource(), attrOperand(), attrUnit() {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_argumentRGB_type_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_ARGUMENTRGB_TYPE; }
static daeInt ID() { return 147; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
/**
* 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 ) { *(daeStringRef*)&attrUnit = atUnit; _validAttributeArray[2] = true; }
protected:
/**
* Constructor
*/
domGles_texcombiner_argumentRGB_type(DAE& dae) : daeElement(dae), domGles_texcombiner_argumentRGB_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_argumentRGB_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domGles_texcombiner_commandAlpha_type_h__
#define __domGles_texcombiner_commandAlpha_type_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGles_texcombiner_argumentAlpha_type.h>
class DAE;
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(DAE& dae, daeElement* elt) : attrOperator(), attrScale(), elemArgument_array() {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_commandAlpha_type_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_COMMANDALPHA_TYPE; }
static daeInt ID() { return 150; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domGles_texcombiner_commandAlpha_type(DAE& dae) : daeElement(dae), domGles_texcombiner_commandAlpha_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_commandAlpha_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,147 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGles_texcombiner_argumentRGB_type.h>
class DAE;
/**
* 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(DAE& dae, daeElement* elt) : attrOperator(), attrScale(), elemArgument_array() {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_commandRGB_type_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_COMMANDRGB_TYPE; }
static daeInt ID() { return 149; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domGles_texcombiner_commandRGB_type(DAE& dae) : daeElement(dae), domGles_texcombiner_commandRGB_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_commandRGB_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,103 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGles_texture_constant_type.h>
#include <dom/domGles_texcombiner_commandRGB_type.h>
#include <dom/domGles_texcombiner_commandAlpha_type.h>
class DAE;
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(DAE& dae, daeElement* elt) : elemConstant(), elemRGB(), elemAlpha() {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_command_type_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_COMMAND_TYPE; }
static daeInt ID() { return 151; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domGles_texcombiner_command_type(DAE& dae) : daeElement(dae), domGles_texcombiner_command_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_texcombiner_command_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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.
*/
#ifndef __domGles_texenv_command_type_h__
#define __domGles_texenv_command_type_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGles_texture_constant_type.h>
class DAE;
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 ) { *(daeStringRef*)&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(DAE& dae, daeElement* elt) : attrOperator(), attrUnit(), elemConstant() {}
/**
* Destructor
*/
virtual ~domGles_texenv_command_type_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXENV_COMMAND_TYPE; }
static daeInt ID() { return 146; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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 ) { *(daeStringRef*)&attrUnit = atUnit; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domGles_texenv_command_type(DAE& dae) : daeElement(dae), domGles_texenv_command_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_texenv_command_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,140 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
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 ) { *(daeStringRef*)&attrParam = atParam;}
protected:
/**
* Constructor
*/
domGles_texture_constant_type_complexType(DAE& dae, daeElement* elt) : attrValue(), attrParam() {}
/**
* Destructor
*/
virtual ~domGles_texture_constant_type_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXTURE_CONSTANT_TYPE; }
static daeInt ID() { return 145; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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 ) { *(daeStringRef*)&attrParam = atParam; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domGles_texture_constant_type(DAE& dae) : daeElement(dae), domGles_texture_constant_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_texture_constant_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,190 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
#include <dom/domGles_texcombiner_command_type.h>
#include <dom/domGles_texenv_command_type.h>
class DAE;
/**
* 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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the sid attribute.
* @return Returns a xsNCName of the sid attribute.
*/
xsNCName getSid() const { return attrSid; }
/**
* Sets the sid attribute.
* @param atSid The new value for the sid attribute.
*/
void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid;}
/**
* 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(DAE& dae, daeElement* elt) : attrSid(), elemTexcombiner_array(), elemTexenv_array(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domGles_texture_pipeline_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXTURE_PIPELINE; }
static daeInt ID() { return 152; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domGles_texture_pipeline(DAE& dae) : daeElement(dae), domGles_texture_pipeline_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_texture_pipeline() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,316 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domExtra.h>
class DAE;
class domGles_texture_unit_complexType
{
public:
class domSurface;
typedef daeSmartRef<domSurface> domSurfaceRef;
typedef daeTArray<domSurfaceRef> domSurface_Array;
class domSurface : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SURFACE; }
static daeInt ID() { return 153; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSurface(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSurface() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domSampler_state;
typedef daeSmartRef<domSampler_state> domSampler_stateRef;
typedef daeTArray<domSampler_stateRef> domSampler_state_Array;
class domSampler_state : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SAMPLER_STATE; }
static daeInt ID() { return 154; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSampler_state(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSampler_state() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domTexcoord;
typedef daeSmartRef<domTexcoord> domTexcoordRef;
typedef daeTArray<domTexcoordRef> domTexcoord_Array;
class domTexcoord : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXCOORD; }
static daeInt ID() { return 155; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSemantic = atSemantic; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domTexcoord(DAE& dae) : daeElement(dae), attrSemantic() {}
/**
* Destructor
*/
virtual ~domTexcoord() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
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 ) { *(daeStringRef*)&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; }
/**
* 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_texture_unit_complexType(DAE& dae, daeElement* elt) : attrSid(), elemSurface(), elemSampler_state(), elemTexcoord(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domGles_texture_unit_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXTURE_UNIT; }
static daeInt ID() { return 156; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domGles_texture_unit(DAE& dae) : daeElement(dae), domGles_texture_unit_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGles_texture_unit() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domGlsl_newarray_type_h__
#define __domGlsl_newarray_type_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGlsl_param_type.h>
#include <dom/domGlsl_newarray_type.h>
class DAE;
/**
* 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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae, daeElement* elt) : attrLength(), elemGlsl_param_type_array(), elemArray_array() {}
/**
* Destructor
*/
virtual ~domGlsl_newarray_type_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_NEWARRAY_TYPE; }
static daeInt ID() { return 103; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domGlsl_newarray_type(DAE& dae) : daeElement(dae), domGlsl_newarray_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGlsl_newarray_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGlsl_param_type.h>
#include <dom/domFx_annotate_common.h>
#include <dom/domGlsl_newarray_type.h>
class DAE;
class domGlsl_newparam_complexType
{
public:
class domSemantic;
typedef daeSmartRef<domSemantic> domSemanticRef;
typedef daeTArray<domSemanticRef> domSemantic_Array;
class domSemantic : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; }
static daeInt ID() { return 108; }
virtual daeInt typeID() const { return ID(); }
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 Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domSemantic(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domSemantic() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domModifier;
typedef daeSmartRef<domModifier> domModifierRef;
typedef daeTArray<domModifierRef> domModifier_Array;
class domModifier : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIER; }
static daeInt ID() { return 109; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domModifier() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae, daeElement* elt) : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemGlsl_param_type(), elemArray() {}
/**
* Destructor
*/
virtual ~domGlsl_newparam_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_NEWPARAM; }
static daeInt ID() { return 110; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domGlsl_newparam(DAE& dae) : daeElement(dae), domGlsl_newparam_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGlsl_newparam() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

File diff suppressed because it is too large Load diff

View file

@ -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 __domGlsl_setarray_type_h__
#define __domGlsl_setarray_type_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGlsl_param_type.h>
#include <dom/domGlsl_setarray_type.h>
class DAE;
/**
* 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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae, daeElement* elt) : attrLength(), elemGlsl_param_type_array(), elemArray_array() {}
/**
* Destructor
*/
virtual ~domGlsl_setarray_type_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_SETARRAY_TYPE; }
static daeInt ID() { return 104; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domGlsl_setarray_type(DAE& dae) : daeElement(dae), domGlsl_setarray_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGlsl_setarray_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,182 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGlsl_param_type.h>
#include <dom/domFx_annotate_common.h>
#include <dom/domGlsl_setarray_type.h>
class DAE;
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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 ) { *(daeStringRef*)&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(DAE& dae, daeElement* elt) : attrRef(), attrProgram(), elemAnnotate_array(), elemGlsl_param_type(), elemArray() {}
/**
* Destructor
*/
virtual ~domGlsl_setparam_complexType() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_SETPARAM; }
static daeInt ID() { return 112; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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 ) { *(daeStringRef*)&attrProgram = atProgram; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domGlsl_setparam(DAE& dae) : daeElement(dae), domGlsl_setparam_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGlsl_setparam() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domGlsl_setparam_simple_h__
#define __domGlsl_setparam_simple_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGlsl_param_type.h>
#include <dom/domFx_annotate_common.h>
class DAE;
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(DAE& dae, daeElement* elt) : attrRef(), elemAnnotate_array(), elemGlsl_param_type() {}
/**
* Destructor
*/
virtual ~domGlsl_setparam_simple_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_SETPARAM_SIMPLE; }
static daeInt ID() { return 111; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
protected:
/**
* Constructor
*/
domGlsl_setparam_simple(DAE& dae) : daeElement(dae), domGlsl_setparam_simple_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGlsl_setparam_simple() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domGlsl_surface_type_h__
#define __domGlsl_surface_type_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_surface_common.h>
#include <dom/domFx_annotate_common.h>
#include <dom/domFx_code_profile.h>
#include <dom/domFx_include_common.h>
#include <dom/domGlsl_setparam_simple.h>
class DAE;
/**
* 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<domGenerator> domGeneratorRef;
typedef daeTArray<domGeneratorRef> domGenerator_Array;
/**
* A procedural surface generator.
*/
class domGenerator : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GENERATOR; }
static daeInt ID() { return 105; }
virtual daeInt typeID() const { return ID(); }
public:
class domName;
typedef daeSmartRef<domName> domNameRef;
typedef daeTArray<domNameRef> domName_Array;
/**
* The entry symbol for the shader function.
*/
class domName : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NAME; }
static daeInt ID() { return 106; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSource = atSource; _validAttributeArray[0] = true; }
/**
* Gets the value of this element.
* @return Returns a xsNCName of the value.
*/
xsNCName getValue() const { return _value; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
protected:
/**
* Constructor
*/
domName(DAE& dae) : daeElement(dae), attrSource(), _value() {}
/**
* Destructor
*/
virtual ~domName() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the 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(DAE& dae) : daeElement(dae), elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemName(), elemSetparam_array() {}
/**
* Destructor
*/
virtual ~domGenerator() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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(DAE& dae, daeElement* elt) : domFx_surface_common_complexType(dae, elt), elemGenerator() {}
/**
* Destructor
*/
virtual ~domGlsl_surface_type_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_SURFACE_TYPE; }
static daeInt ID() { return 107; }
virtual daeInt typeID() const { return ID(); }
protected:
/**
* Constructor
*/
domGlsl_surface_type(DAE& dae) : daeElement(dae), domGlsl_surface_type_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domGlsl_surface_type() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domIDREF_array_h__
#define __domIDREF_array_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* The IDREF_array element declares the storage for a homogenous array of
* ID reference values.
*/
class domIDREF_array : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::IDREF_ARRAY; }
static daeInt ID() { return 604; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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; _validAttributeArray[2] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), attrCount(), _value(new xsIDREF(*this)) {}
/**
* Destructor
*/
virtual ~domIDREF_array() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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.
*/
#ifndef __domImage_h__
#define __domImage_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domAsset.h>
#include <dom/domExtra.h>
class DAE;
/**
* 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:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::IMAGE; }
static daeInt ID() { return 635; }
virtual daeInt typeID() const { return ID(); }
public:
class domData;
typedef daeSmartRef<domData> domDataRef;
typedef daeTArray<domDataRef> domData_Array;
/**
* The data child element contains a sequence of hexadecimal encoded binary
* octets representing the embedded image data.
*/
class domData : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DATA; }
static daeInt ID() { return 636; }
virtual daeInt typeID() const { return ID(); }
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(DAE& dae) : daeElement(dae), _value() {}
/**
* Destructor
*/
virtual ~domData() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domInit_from;
typedef daeSmartRef<domInit_from> domInit_fromRef;
typedef daeTArray<domInit_fromRef> 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INIT_FROM; }
static daeInt ID() { return 637; }
virtual daeInt typeID() const { return ID(); }
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 = val; }
/**
* Sets the _value of this element.
* @param val The new value for this element.
*/
void setValue( xsString val ) { _value = val; }
protected:
/**
* Constructor
*/
domInit_from(DAE& dae) : daeElement(dae), _value(dae, *this) {}
/**
* Destructor
*/
virtual ~domInit_from() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
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;
/**
* Used to preserve order in elements that have a complex content model.
*/
daeUIntArray _contentsOrder;
/**
* Used to store information needed for some content model objects.
*/
daeTArray< daeCharArray * > _CMData;
public: //Accessors and Mutators
/**
* Gets the id attribute.
* @return Returns a xsID of the id attribute.
*/
xsID getId() const { return attrId; }
/**
* Sets the id attribute.
* @param atId The new value for the id attribute.
*/
void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
if( _document != NULL ) _document->changeElementID( this, attrId );
}
/**
* Gets the name attribute.
* @return Returns a xsNCName of the name attribute.
*/
xsNCName getName() const { return attrName; }
/**
* Sets the name attribute.
* @param atName The new value for the name attribute.
*/
void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
/**
* 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 ) { *(daeStringRef*)&attrFormat = atFormat; _validAttributeArray[2] = true; }
/**
* 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; _validAttributeArray[3] = true; }
/**
* 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; _validAttributeArray[4] = true; }
/**
* 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; _validAttributeArray[5] = true; }
/**
* 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(DAE& dae) : daeElement(dae), attrId(), attrName(), attrFormat(), attrHeight(), attrWidth(), attrDepth(), elemAsset(), elemData(), elemInit_from(), elemExtra_array() {}
/**
* Destructor
*/
virtual ~domImage() { daeElement::deleteCMDataArray(_CMData); }
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domInputGlobal_h__
#define __domInputGlobal_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* 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 ) { *(daeStringRef*)&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 = atSource; }
/**
* Sets the source attribute.
* @param atSource The new value for the source attribute.
*/
void setSource( xsString atSource ) { attrSource = atSource; }
protected:
/**
* Constructor
*/
domInputGlobal_complexType(DAE& dae, daeElement* elt) : attrSemantic(), attrSource(dae, *elt) {}
/**
* Destructor
*/
virtual ~domInputGlobal_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUTGLOBAL; }
static daeInt ID() { return 0; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSemantic = atSemantic; _validAttributeArray[0] = true; }
/**
* 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 = atSource; _validAttributeArray[1] = true; }
/**
* Sets the source attribute.
* @param atSource The new value for the source attribute.
*/
void setSource( xsString atSource ) { attrSource = atSource; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domInputGlobal(DAE& dae) : daeElement(dae), domInputGlobal_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domInputGlobal() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -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 __domInputLocal_h__
#define __domInputLocal_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* 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 ) { *(daeStringRef*)&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 = atSource; }
/**
* Sets the source attribute.
* @param atSource The new value for the source attribute.
*/
void setSource( xsString atSource ) { attrSource = atSource; }
protected:
/**
* Constructor
*/
domInputLocal_complexType(DAE& dae, daeElement* elt) : attrSemantic(), attrSource(dae, *elt) {}
/**
* Destructor
*/
virtual ~domInputLocal_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUTLOCAL; }
static daeInt ID() { return 1; }
virtual daeInt typeID() const { return ID(); }
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 ) { *(daeStringRef*)&attrSemantic = atSemantic; _validAttributeArray[0] = true; }
/**
* 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 = atSource; _validAttributeArray[1] = true; }
/**
* Sets the source attribute.
* @param atSource The new value for the source attribute.
*/
void setSource( xsString atSource ) { attrSource = atSource; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domInputLocal(DAE& dae) : daeElement(dae), domInputLocal_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domInputLocal() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

View file

@ -0,0 +1,218 @@
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
class DAE;
/**
* 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 ) { *(daeStringRef*)&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 = atSource; }
/**
* Sets the source attribute.
* @param atSource The new value for the source attribute.
*/
void setSource( xsString atSource ) { attrSource = atSource; }
/**
* 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(DAE& dae, daeElement* elt) : attrOffset(), attrSemantic(), attrSource(dae, *elt), attrSet() {}
/**
* Destructor
*/
virtual ~domInputLocalOffset_complexType() {}
/**
* 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
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUTLOCALOFFSET; }
static daeInt ID() { return 2; }
virtual daeInt typeID() const { return ID(); }
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; _validAttributeArray[0] = true; }
/**
* 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 ) { *(daeStringRef*)&attrSemantic = atSemantic; _validAttributeArray[1] = true; }
/**
* 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 = atSource; _validAttributeArray[2] = true; }
/**
* Sets the source attribute.
* @param atSource The new value for the source attribute.
*/
void setSource( xsString atSource ) { attrSource = atSource; _validAttributeArray[2] = true; }
/**
* 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; _validAttributeArray[3] = true; }
protected:
/**
* Constructor
*/
domInputLocalOffset(DAE& dae) : daeElement(dae), domInputLocalOffset_complexType(dae, this) {}
/**
* Destructor
*/
virtual ~domInputLocalOffset() {}
/**
* 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.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
#endif

Some files were not shown because too many files have changed in this diff Show more