00001
00002
00003
00004
00005
00006 #ifndef _FCD_PHYSICS_PARAMETER_H_
00007 #define _FCD_PHYSICS_PARAMETER_H_
00008
00009 #include "FCDocument/FCDPhysicsParameterGeneric.h"
00010
00011 class FCDocument;
00012
00013 template <class T>
00014 class FCOLLADA_EXPORT FCDPhysicsParameter : public FCDPhysicsParameterGeneric
00015 {
00016 public:
00017 FCDPhysicsParameter(FCDocument* document, const string& ref);
00018 virtual ~FCDPhysicsParameter();
00019
00020
00021 virtual FCDPhysicsParameterGeneric* Clone();
00022
00023 void SetValue(T val);
00024 void SetValue(T* val);
00025
00026 T* GetValue() const {return value;}
00027
00028
00029 virtual void Overwrite(FCDPhysicsParameterGeneric* target);
00030
00031
00032
00033
00034
00035 virtual xmlNode* WriteToXML(xmlNode* parentNode) const;
00036
00037 protected:
00038 T* value;
00039
00040 };
00041
00042 #include "FCDPhysicsParameter.hpp"
00043
00044 #endif // _FCD_PHYSICS_PARAMETER_H_