Collects the set of MayaShaders that have been encountered so far. More...
#include "mayaShaders.h"
Public Member Functions | |
| void | bind_uvsets (MObject mesh) |
| Causes all shaders in the set to use the given mesh as a file-to-uvset map. More... | |
| void | clear () |
| Frees all of the previously-defined MayaShader objects associated with this set. More... | |
| MayaShader * | find_shader_for_node (MObject node, bool legacy_shader) |
| Extracts the shader assigned to the indicated node. More... | |
| MayaShader * | find_shader_for_shading_engine (MObject engine, bool legacy_shader) |
| Returns the MayaShader object associated with the indicated "shading
engine". More... | |
| std::string | find_uv_link (const std::string &match) |
| Returns the current mapping from file to uvset for the given file texture name. More... | |
| int | get_num_shaders () const |
| Returns the number of unique MayaShaders that have been discovered so far. More... | |
| MayaShader * | get_shader (int n) const |
| Returns the nth MayaShader that has been discovered so far. More... | |
Public Attributes | |
| MayaFileToUVSetMap | _file_to_uvset |
| pvector< std::string > | _uvset_names |
Collects the set of MayaShaders that have been encountered so far.
Definition at line 28 of file mayaShaders.h.
| void MayaShaders::bind_uvsets | ( | MObject | mesh | ) |
Causes all shaders in the set to use the given mesh as a file-to-uvset map.
Definition at line 99 of file mayaShaders.cxx.
| void MayaShaders::clear | ( | ) |
Frees all of the previously-defined MayaShader objects associated with this set.
Definition at line 189 of file mayaShaders.cxx.
Referenced by MayaToEggConverter::clear().
| MayaShader * MayaShaders::find_shader_for_node | ( | MObject | node, |
| bool | legacy_shader | ||
| ) |
Extracts the shader assigned to the indicated node.
Definition at line 51 of file mayaShaders.cxx.
| MayaShader * MayaShaders::find_shader_for_shading_engine | ( | MObject | engine, |
| bool | legacy_shader | ||
| ) |
Returns the MayaShader object associated with the indicated "shading engine".
This will create a new MayaShader object if this is the first time we have encountered the indicated engine.
Definition at line 133 of file mayaShaders.cxx.
References MayaShader::bind_uvsets(), and MayaShader::MayaShader().
| string MayaShaders::find_uv_link | ( | const std::string & | match | ) |
Returns the current mapping from file to uvset for the given file texture name.
Definition at line 158 of file mayaShaders.cxx.
| int MayaShaders::get_num_shaders | ( | ) | const |
Returns the number of unique MayaShaders that have been discovered so far.
Definition at line 171 of file mayaShaders.cxx.
| MayaShader * MayaShaders::get_shader | ( | int | n | ) | const |
Returns the nth MayaShader that has been discovered so far.
Definition at line 179 of file mayaShaders.cxx.
1.8.15