Wrapper class to represent a ModelSkin object in Python
| 10 | |
| 11 | // Wrapper class to represent a ModelSkin object in Python |
| 12 | class ScriptModelSkin |
| 13 | { |
| 14 | decl::ISkin::Ptr _skin; |
| 15 | public: |
| 16 | ScriptModelSkin(const decl::ISkin::Ptr& skin) : |
| 17 | _skin(skin) |
| 18 | {} |
| 19 | |
| 20 | std::string getName() |
| 21 | { |
| 22 | return _skin ? _skin->getDeclName() : std::string(); |
| 23 | } |
| 24 | |
| 25 | std::string getRemap(const std::string& name) |
| 26 | { |
| 27 | return _skin ? _skin->getRemap(name) : std::string(); |
| 28 | } |
| 29 | }; |
| 30 | |
| 31 | /** |
| 32 | * greebo: This class registers the GlobalSkinCache interface with the |