00001 #ifndef __domParabola_h__ 00002 #define __domParabola_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domExtra.h> 00009 class DAE; 00010 00034 class domParabola : public daeElement 00035 { 00036 public: 00037 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARABOLA; } 00038 static daeInt ID() { return 316; } 00039 virtual daeInt typeID() const { return ID(); } 00040 public: 00041 class domFocal; 00042 00043 typedef daeSmartRef<domFocal> domFocalRef; 00044 typedef daeTArray<domFocalRef> domFocal_Array; 00045 00046 class domFocal : public daeElement 00047 { 00048 public: 00049 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOCAL; } 00050 static daeInt ID() { return 317; } 00051 virtual daeInt typeID() const { return ID(); } 00052 00053 00054 public: //Accessors and Mutators 00059 domFloat& getValue() { return _value; } 00064 void setValue( const domFloat& val ) { _value = val; } 00065 00066 protected: // Value 00070 domFloat _value; 00071 protected: 00075 domFocal(DAE& dae) : daeElement(dae), _value() {} 00079 virtual ~domFocal() {} 00083 virtual domFocal &operator=( const domFocal &cpy ) { (void)cpy; return *this; } 00084 00085 public: // STATIC METHODS 00090 static DLLSPEC daeElementRef create(DAE& dae); 00096 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00097 }; 00098 00099 00100 00101 protected: // Elements 00102 domFocalRef elemFocal; 00103 domExtra_Array elemExtra_array; 00104 00105 public: //Accessors and Mutators 00110 const domFocalRef getFocal() const { return elemFocal; } 00115 domExtra_Array &getExtra_array() { return elemExtra_array; } 00120 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00121 protected: 00125 domParabola(DAE& dae) : daeElement(dae), elemFocal(), elemExtra_array() {} 00129 virtual ~domParabola() {} 00133 virtual domParabola &operator=( const domParabola &cpy ) { (void)cpy; return *this; } 00134 00135 public: // STATIC METHODS 00140 static DLLSPEC daeElementRef create(DAE& dae); 00146 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00147 }; 00148 00149 00150 #endif