Rev | Line | |
---|
[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 |
|
---|
| 11 | class FCDocument;
|
---|
| 12 |
|
---|
| 13 | template <class T>
|
---|
| 14 | class FCOLLADA_EXPORT FCDPhysicsParameter : public FCDPhysicsParameterGeneric
|
---|
| 15 | {
|
---|
| 16 | public:
|
---|
| 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 |
|
---|
| 37 | protected:
|
---|
| 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.