FCDocument/FCDPhysicsParameter.h

00001 /*
00002     Copyright (C) 2005-2006 Feeling Software Inc.
00003     MIT License: http://www.opensource.org/licenses/mit-license.php
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     // Clone
00021     virtual FCDPhysicsParameterGeneric* Clone();
00022 
00023     void SetValue(T val);
00024     void SetValue(T* val);
00025 
00026     T* GetValue() const {return value;}
00027 
00028     // Flattening: overwrite the target parameter with this parameter
00029     virtual void Overwrite(FCDPhysicsParameterGeneric* target);
00030 
00031     // Parse in this ColladaFX parameter from the xml node tree
00032 //  virtual FUStatus LoadFromXML(xmlNode* parameterNode);
00033 
00034     // Write out this ColladaFX parameter to the xml node tree
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_

Generated on Fri May 12 16:44:39 2006 for FCollada by  doxygen 1.4.6-NO