| 30 | }; |
| 31 | |
| 32 | class ScriptModelNode : |
| 33 | public ScriptSceneNode |
| 34 | { |
| 35 | public: |
| 36 | // Constructor, checks if the passed node is actually a model |
| 37 | ScriptModelNode(const scene::INodePtr& node); |
| 38 | |
| 39 | // Proxy methods |
| 40 | std::string getFilename(); |
| 41 | std::string getModelPath(); |
| 42 | //void applySkin(const ModelSkin& skin); |
| 43 | int getSurfaceCount(); |
| 44 | int getVertexCount(); |
| 45 | int getPolyCount(); |
| 46 | model::StringList getActiveMaterials(); |
| 47 | ScriptModelSurface getSurface(int surfaceNum); |
| 48 | |
| 49 | // Checks if the given SceneNode structure is a ModelNode |
| 50 | static bool isModel(const ScriptSceneNode& node); |
| 51 | |
| 52 | // "Cast" service for Python, returns a ScriptModelNode. |
| 53 | // The returned node is non-NULL if the cast succeeded |
| 54 | static ScriptModelNode getModel(const ScriptSceneNode& node); |
| 55 | }; |
| 56 | |
| 57 | /** |
| 58 | * greebo: This class registers the model interface with the |