Home | History | Annotate | Download | only in dom
      1 /*
      2 * Copyright 2006 Sony Computer Entertainment Inc.
      3 *
      4 * Licensed under the MIT Open Source License, for details please see license.txt or the website
      5 * http://www.opensource.org/licenses/mit-license.php
      6 *
      7 */
      8 
      9 #ifndef __domFx_colortarget_common_h__
     10 #define __domFx_colortarget_common_h__
     11 
     12 #include <dae/daeDocument.h>
     13 #include <dom/domTypes.h>
     14 #include <dom/domElements.h>
     15 
     16 class DAE;
     17 
     18 class domFx_colortarget_common_complexType
     19 {
     20 protected:  // Attributes
     21 	xsNonNegativeInteger attrIndex;
     22 	domFx_surface_face_enum attrFace;
     23 	xsNonNegativeInteger attrMip;
     24 	xsNonNegativeInteger attrSlice;
     25 
     26 protected:  // Value
     27 	/**
     28 	 * The xsNCName value of the text data of this element.
     29 	 */
     30 	xsNCName _value;
     31 
     32 public:	//Accessors and Mutators
     33 	/**
     34 	 * Gets the index attribute.
     35 	 * @return Returns a xsNonNegativeInteger of the index attribute.
     36 	 */
     37 	xsNonNegativeInteger getIndex() const { return attrIndex; }
     38 	/**
     39 	 * Sets the index attribute.
     40 	 * @param atIndex The new value for the index attribute.
     41 	 */
     42 	void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; }
     43 
     44 	/**
     45 	 * Gets the face attribute.
     46 	 * @return Returns a domFx_surface_face_enum of the face attribute.
     47 	 */
     48 	domFx_surface_face_enum getFace() const { return attrFace; }
     49 	/**
     50 	 * Sets the face attribute.
     51 	 * @param atFace The new value for the face attribute.
     52 	 */
     53 	void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; }
     54 
     55 	/**
     56 	 * Gets the mip attribute.
     57 	 * @return Returns a xsNonNegativeInteger of the mip attribute.
     58 	 */
     59 	xsNonNegativeInteger getMip() const { return attrMip; }
     60 	/**
     61 	 * Sets the mip attribute.
     62 	 * @param atMip The new value for the mip attribute.
     63 	 */
     64 	void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; }
     65 
     66 	/**
     67 	 * Gets the slice attribute.
     68 	 * @return Returns a xsNonNegativeInteger of the slice attribute.
     69 	 */
     70 	xsNonNegativeInteger getSlice() const { return attrSlice; }
     71 	/**
     72 	 * Sets the slice attribute.
     73 	 * @param atSlice The new value for the slice attribute.
     74 	 */
     75 	void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; }
     76 
     77 	/**
     78 	 * Gets the value of this element.
     79 	 * @return Returns a xsNCName of the value.
     80 	 */
     81 	xsNCName getValue() const { return _value; }
     82 	/**
     83 	 * Sets the _value of this element.
     84 	 * @param val The new value for this element.
     85 	 */
     86 	void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
     87 
     88 protected:
     89 	/**
     90 	 * Constructor
     91 	 */
     92 	domFx_colortarget_common_complexType(DAE& dae, daeElement* elt) : attrIndex(), attrFace(), attrMip(), attrSlice(), _value() {}
     93 	/**
     94 	 * Destructor
     95 	 */
     96 	virtual ~domFx_colortarget_common_complexType() {}
     97 	/**
     98 	 * Overloaded assignment operator
     99 	 */
    100 	virtual domFx_colortarget_common_complexType &operator=( const domFx_colortarget_common_complexType &cpy ) { (void)cpy; return *this; }
    101 };
    102 
    103 /**
    104  * An element of type domFx_colortarget_common_complexType.
    105  */
    106 class domFx_colortarget_common : public daeElement, public domFx_colortarget_common_complexType
    107 {
    108 public:
    109 	virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_COLORTARGET_COMMON; }
    110 	static daeInt ID() { return 85; }
    111 	virtual daeInt typeID() const { return ID(); }
    112 
    113 public:	//Accessors and Mutators
    114 	/**
    115 	 * Gets the index attribute.
    116 	 * @return Returns a xsNonNegativeInteger of the index attribute.
    117 	 */
    118 	xsNonNegativeInteger getIndex() const { return attrIndex; }
    119 	/**
    120 	 * Sets the index attribute.
    121 	 * @param atIndex The new value for the index attribute.
    122 	 */
    123 	void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; _validAttributeArray[0] = true; }
    124 
    125 	/**
    126 	 * Gets the face attribute.
    127 	 * @return Returns a domFx_surface_face_enum of the face attribute.
    128 	 */
    129 	domFx_surface_face_enum getFace() const { return attrFace; }
    130 	/**
    131 	 * Sets the face attribute.
    132 	 * @param atFace The new value for the face attribute.
    133 	 */
    134 	void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; _validAttributeArray[1] = true; }
    135 
    136 	/**
    137 	 * Gets the mip attribute.
    138 	 * @return Returns a xsNonNegativeInteger of the mip attribute.
    139 	 */
    140 	xsNonNegativeInteger getMip() const { return attrMip; }
    141 	/**
    142 	 * Sets the mip attribute.
    143 	 * @param atMip The new value for the mip attribute.
    144 	 */
    145 	void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; _validAttributeArray[2] = true; }
    146 
    147 	/**
    148 	 * Gets the slice attribute.
    149 	 * @return Returns a xsNonNegativeInteger of the slice attribute.
    150 	 */
    151 	xsNonNegativeInteger getSlice() const { return attrSlice; }
    152 	/**
    153 	 * Sets the slice attribute.
    154 	 * @param atSlice The new value for the slice attribute.
    155 	 */
    156 	void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; _validAttributeArray[3] = true; }
    157 
    158 protected:
    159 	/**
    160 	 * Constructor
    161 	 */
    162 	domFx_colortarget_common(DAE& dae) : daeElement(dae), domFx_colortarget_common_complexType(dae, this) {}
    163 	/**
    164 	 * Destructor
    165 	 */
    166 	virtual ~domFx_colortarget_common() {}
    167 	/**
    168 	 * Overloaded assignment operator
    169 	 */
    170 	virtual domFx_colortarget_common &operator=( const domFx_colortarget_common &cpy ) { (void)cpy; return *this; }
    171 
    172 public: // STATIC METHODS
    173 	/**
    174 	 * Creates an instance of this class and returns a daeElementRef referencing it.
    175 	 * @return a daeElementRef referencing an instance of this object.
    176 	 */
    177 	static DLLSPEC daeElementRef create(DAE& dae);
    178 	/**
    179 	 * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
    180 	 * If a daeMetaElement already exists it will return that instead of creating a new one.
    181 	 * @return A daeMetaElement describing this COLLADA element.
    182 	 */
    183 	static DLLSPEC daeMetaElement* registerElement(DAE& dae);
    184 };
    185 
    186 
    187 #endif
    188