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 __domLines_h__ 00010 #define __domLines_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 domLines : public daeElement 00029 { 00030 public: 00031 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINES; } 00032 static daeInt ID() { return 618; } 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 domPRef elemP; 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 const domPRef getP() const { return elemP; } 00120 domExtra_Array &getExtra_array() { return elemExtra_array; } 00125 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00126 protected: 00130 domLines(DAE& dae) : daeElement(dae), attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP(), elemExtra_array() {} 00134 virtual ~domLines() {} 00138 virtual domLines &operator=( const domLines &cpy ) { (void)cpy; return *this; } 00139 00140 public: // STATIC METHODS 00145 static DLLSPEC daeElementRef create(DAE& dae); 00151 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00152 }; 00153 00154 00155 #endif