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

Revision 964, 1002 bytes checked in by igarcia, 18 years ago (diff)
Line 
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_MODEL_ENTITY_H_
7#define _FCD_PHYSICS_MODEL_ENTITY_H_
8
9#include "FCDocument/FCDEntityInstance.h"
10
11class FCDocument;
12
13typedef vector<FCDEntityInstance*> FCDEntityInstanceList;
14
15class FCOLLADA_EXPORT FCDPhysicsModelInstance : public FCDEntityInstance
16{
17private:
18        DeclareObjectType;
19        FCDEntityInstanceList instances;
20
21public:
22        FCDPhysicsModelInstance(FCDocument* document, FCDEntity* entity);
23        virtual ~FCDPhysicsModelInstance();
24
25        FCDEntityInstanceList& GetInstances() {return instances;}
26
27        // FCDEntity override for RTTI-like
28        virtual Type GetType() const { return PHYSICS_MODEL; }
29
30        // Load the geometry instance from the COLLADA document
31        virtual FUStatus LoadFromXML(xmlNode* instanceNode);
32
33        // Write out the instantiation information to the xml node tree
34        virtual xmlNode* WriteToXML(xmlNode* parentNode) const;
35};
36
37#endif // _FCD_PHYSICS_MODEL_ENTITY_H_
Note: See TracBrowser for help on using the repository browser.