00001 /* 00002 * Copyright 2006 Sony Computer Entertainment Inc. 00003 * 00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website 00005 * http://www.opensource.org/licenses/mit-license.php 00006 * 00007 */ 00008 00009 #ifndef __domLinestrips_h__ 00010 #define __domLinestrips_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domP.h> 00017 #include <dom/domExtra.h> 00018 #include <dom/domInputLocalOffset.h> 00019 class DAE; 00020 00028 class domLinestrips : public daeElement 00029 { 00030 public: 00031 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINESTRIPS; } 00032 static daeInt ID() { return 619; } 00033 virtual daeInt typeID() const { return ID(); } 00034 protected: // Attributes 00038 xsNCName attrName; 00043 domUint attrCount; 00050 xsNCName attrMaterial; 00051 00052 protected: // Elements 00057 domInputLocalOffset_Array elemInput_array; 00061 domP_Array elemP_array; 00065 domExtra_Array elemExtra_array; 00066 00067 public: //Accessors and Mutators 00072 xsNCName getName() const { return attrName; } 00077 void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[0] = true; } 00078 00083 domUint getCount() const { return attrCount; } 00088 void setCount( domUint atCount ) { attrCount = atCount; _validAttributeArray[1] = true; } 00089 00094 xsNCName getMaterial() const { return attrMaterial; } 00099 void setMaterial( xsNCName atMaterial ) { *(daeStringRef*)&attrMaterial = atMaterial; _validAttributeArray[2] = true; } 00100 00105 domInputLocalOffset_Array &getInput_array() { return elemInput_array; } 00110 const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } 00115 domP_Array &getP_array() { return elemP_array; } 00120 const domP_Array &getP_array() const { return elemP_array; } 00125 domExtra_Array &getExtra_array() { return elemExtra_array; } 00130 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00131 protected: 00135 domLinestrips(DAE& dae) : daeElement(dae), attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP_array(), elemExtra_array() {} 00139 virtual ~domLinestrips() {} 00143 virtual domLinestrips &operator=( const domLinestrips &cpy ) { (void)cpy; return *this; } 00144 00145 public: // STATIC METHODS 00150 static DLLSPEC daeElementRef create(DAE& dae); 00156 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00157 }; 00158 00159 00160 #endif