MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / ScriptModelNode

Class ScriptModelNode

plugins/script/interfaces/ModelInterface.h:32–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32class ScriptModelNode :
33 public ScriptSceneNode
34{
35public:
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

Callers 1

getModelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected