#include <mayaShaders.h>
Public Member Functions | |
MayaShaders () | |
~MayaShaders () | |
MayaShader * | find_shader_for_node (MObject node) |
Extracts the shader assigned to the indicated node. | |
MayaShader * | find_shader_for_shading_engine (MObject engine) |
Returns the MayaShader object associated with the indicated "shading engine". | |
int | get_num_shaders () const |
Returns the number of unique MayaShaders that have been discovered so far. | |
MayaShader * | get_shader (int n) const |
Returns the nth MayaShader that has been discovered so far. | |
void | clear () |
Frees all of the previously-defined MayaShader objects associated with this set. | |
Private Types | |
typedef pmap< string, MayaShader * > | Shaders |
typedef pvector< MayaShader * > | ShadersInOrder |
Private Attributes | |
Shaders | _shaders |
ShadersInOrder | _shaders_in_order |
Definition at line 42 of file mayaShaders.h.
|
Definition at line 55 of file mayaShaders.h. |
|
Definition at line 57 of file mayaShaders.h. |
|
Definition at line 44 of file mayaShaders.cxx. References clear(). |
|
Definition at line 55 of file mayaShaders.cxx. |
|
Frees all of the previously-defined MayaShader objects associated with this set.
Definition at line 190 of file mayaShaders.cxx. Referenced by MayaShaders(). |
|
Extracts the shader assigned to the indicated node.
Definition at line 68 of file mayaShaders.cxx. References NULL. Referenced by MayaCopy::collect_shaders(), and MayaToEggConverter::get_transform(). |
|
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 128 of file mayaShaders.cxx. References _shaders_in_order. Referenced by MayaCopy::collect_shaders(). |
|
Returns the number of unique MayaShaders that have been discovered so far.
Definition at line 159 of file mayaShaders.cxx. References _shaders, and _shaders_in_order. |
|
Returns the nth MayaShader that has been discovered so far.
Definition at line 174 of file mayaShaders.cxx. |
|
Definition at line 56 of file mayaShaders.h. Referenced by get_num_shaders(). |
|
Definition at line 58 of file mayaShaders.h. Referenced by find_shader_for_shading_engine(), and get_num_shaders(). |