source: NonGTP/FCollada/FCDocument/FCDPhysicsParameter.h @ 964

Revision 964, 1.1 KB checked in by igarcia, 19 years ago (diff)
RevLine 
[964]1/*
2        Copyright (C) 2005-2006 Feeling Software Inc.
3        MIT License: http://www.opensource.org/licenses/mit-license.php
4*/
5
6#ifndef _FCD_PHYSICS_PARAMETER_H_
7#define _FCD_PHYSICS_PARAMETER_H_
8
9#include "FCDocument/FCDPhysicsParameterGeneric.h"
10
11class FCDocument;
12
13template <class T>
14class FCOLLADA_EXPORT FCDPhysicsParameter : public FCDPhysicsParameterGeneric
15{
16public:
17        FCDPhysicsParameter(FCDocument* document, const string& ref);
18        virtual ~FCDPhysicsParameter();
19
20        // Clone
21        virtual FCDPhysicsParameterGeneric* Clone();
22
23        void SetValue(T val);
24        void SetValue(T* val);
25
26        T* GetValue() const {return value;}
27
28        // Flattening: overwrite the target parameter with this parameter
29        virtual void Overwrite(FCDPhysicsParameterGeneric* target);
30
31        // Parse in this ColladaFX parameter from the xml node tree
32//      virtual FUStatus LoadFromXML(xmlNode* parameterNode);
33
34        // Write out this ColladaFX parameter to the xml node tree
35        virtual xmlNode* WriteToXML(xmlNode* parentNode) const;
36
37protected:
38        T* value;
39
40};
41
42#include "FCDPhysicsParameter.hpp"
43
44#endif // _FCD_PHYSICS_PARAMETER_H_
Note: See TracBrowser for help on using the repository browser.