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

Revision 964, 1.3 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_GENERIC_H_
7#define _FCD_PHYSICS_PARAMETER_GENERIC_H_
8
9#include "FCDocument/FCDObject.h"
10
11class FCDocument;
12
13class FCOLLADA_EXPORT FCDPhysicsParameterGeneric: public FCDObject
14{
15private:
16        DeclareObjectType;
17
18public:
19    FCDPhysicsParameterGeneric(FCDocument* document, const string& ref);
20        virtual ~FCDPhysicsParameterGeneric();
21
22        virtual FCDPhysicsParameterGeneric* Clone()=0;
23        bool IsGenerator() const { return isGenerator; }
24        bool IsModifier() const { return !isGenerator; }
25
26        const string& GetReference() const {return reference;};
27        void SetReference(const string& ref) {reference = ref;};
28        void SetGenerator(bool val) {isGenerator = val;}
29
30        virtual void Overwrite(FCDPhysicsParameterGeneric* target) = 0;
31
32        // Parse in this ColladaFX parameter from the xml node tree
33//      virtual FUStatus LoadFromXML(xmlNode* parameterNode) = 0;
34
35        // Write out this ColladaFX parameter to the xml node tree
36        virtual xmlNode* WriteToXML(xmlNode* parentNode) const = 0;
37
38protected:
39        bool isGenerator; // whether this effect parameter structure generates a new value or modifies an existing value (is <newparam>?)
40        string reference;
41
42};
43
44#endif // _FCD_PHYSICS_PARAMETER_GENERIC_H_
Note: See TracBrowser for help on using the repository browser.