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 __domTapered_cylinder_h__ 00010 #define __domTapered_cylinder_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domExtra.h> 00017 class DAE; 00018 00023 class domTapered_cylinder : public daeElement 00024 { 00025 public: 00026 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TAPERED_CYLINDER; } 00027 static daeInt ID() { return 778; } 00028 virtual daeInt typeID() const { return ID(); } 00029 public: 00030 class domHeight; 00031 00032 typedef daeSmartRef<domHeight> domHeightRef; 00033 typedef daeTArray<domHeightRef> domHeight_Array; 00034 00038 class domHeight : public daeElement 00039 { 00040 public: 00041 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HEIGHT; } 00042 static daeInt ID() { return 779; } 00043 virtual daeInt typeID() const { return ID(); } 00044 00045 protected: // Value 00049 domFloat _value; 00050 00051 public: //Accessors and Mutators 00056 domFloat getValue() const { return _value; } 00061 void setValue( domFloat val ) { _value = val; } 00062 00063 protected: 00067 domHeight(DAE& dae) : daeElement(dae), _value() {} 00071 virtual ~domHeight() {} 00075 virtual domHeight &operator=( const domHeight &cpy ) { (void)cpy; return *this; } 00076 00077 public: // STATIC METHODS 00082 static DLLSPEC daeElementRef create(DAE& dae); 00088 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00089 }; 00090 00091 class domRadius1; 00092 00093 typedef daeSmartRef<domRadius1> domRadius1Ref; 00094 typedef daeTArray<domRadius1Ref> domRadius1_Array; 00095 00101 class domRadius1 : public daeElement 00102 { 00103 public: 00104 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS1; } 00105 static daeInt ID() { return 780; } 00106 virtual daeInt typeID() const { return ID(); } 00107 00108 protected: // Value 00112 domFloat2 _value; 00113 00114 public: //Accessors and Mutators 00119 domFloat2 &getValue() { return _value; } 00124 const domFloat2 &getValue() const { return _value; } 00129 void setValue( const domFloat2 &val ) { _value = val; } 00130 00131 protected: 00135 domRadius1(DAE& dae) : daeElement(dae), _value() {} 00139 virtual ~domRadius1() {} 00143 virtual domRadius1 &operator=( const domRadius1 &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 class domRadius2; 00160 00161 typedef daeSmartRef<domRadius2> domRadius2Ref; 00162 typedef daeTArray<domRadius2Ref> domRadius2_Array; 00163 00168 class domRadius2 : public daeElement 00169 { 00170 public: 00171 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS2; } 00172 static daeInt ID() { return 781; } 00173 virtual daeInt typeID() const { return ID(); } 00174 00175 protected: // Value 00179 domFloat2 _value; 00180 00181 public: //Accessors and Mutators 00186 domFloat2 &getValue() { return _value; } 00191 const domFloat2 &getValue() const { return _value; } 00196 void setValue( const domFloat2 &val ) { _value = val; } 00197 00198 protected: 00202 domRadius2(DAE& dae) : daeElement(dae), _value() {} 00206 virtual ~domRadius2() {} 00210 virtual domRadius2 &operator=( const domRadius2 &cpy ) { (void)cpy; return *this; } 00211 00212 public: // STATIC METHODS 00217 static DLLSPEC daeElementRef create(DAE& dae); 00223 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00224 }; 00225 00226 00227 00228 protected: // Elements 00233 domHeightRef elemHeight; 00239 domRadius1Ref elemRadius1; 00245 domRadius2Ref elemRadius2; 00249 domExtra_Array elemExtra_array; 00250 00251 public: //Accessors and Mutators 00256 const domHeightRef getHeight() const { return elemHeight; } 00261 const domRadius1Ref getRadius1() const { return elemRadius1; } 00266 const domRadius2Ref getRadius2() const { return elemRadius2; } 00271 domExtra_Array &getExtra_array() { return elemExtra_array; } 00276 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00277 protected: 00281 domTapered_cylinder(DAE& dae) : daeElement(dae), elemHeight(), elemRadius1(), elemRadius2(), elemExtra_array() {} 00285 virtual ~domTapered_cylinder() {} 00289 virtual domTapered_cylinder &operator=( const domTapered_cylinder &cpy ) { (void)cpy; return *this; } 00290 00291 public: // STATIC METHODS 00296 static DLLSPEC daeElementRef create(DAE& dae); 00302 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00303 }; 00304 00305 00306 #endif