Manage phongE shaders.
MFnPhongEShader facilitates creation and manipulation of dependency graph nodes representing phongE shaders.
#include <MFnPhongEShader.h>
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnPhongEShader () |
Destructor. |
|
MFnPhongEShader () | |
Default constructor. |
|
MFnPhongEShader (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MObject | create (bool UIvisible=true, MStatus *ReturnStatus=NULL) |
Creates a new layered shader dependency
graph node and adds it to the dependency graph. |
|
float | roughness (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "roughness"
attribute of a shader node. |
|
MStatus | setRoughness (const float &roughness) |
Sets the value of the "roughness" attribute
of a shader node. |
|
float | highlightSize (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "highlightSize"
attribute of a shader node. |
|
MStatus | setHighlightSize (const float &highlight_size) |
Sets the value of the "highlightSize"
attribute of a shader node. |
|
MColor | whiteness (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "whiteness"
attribute of a shader node. |
|
MStatus | setWhiteness (const MColor &whiteness) |
Sets the value of the "whiteness" attribute
of a shader node. |
|
MFnPhongEShader (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
MFnPhongEShader | ( | MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFnPhongEShader | ( | const MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFn::Type type | ( | ) | const [virtual] |
Function set type.
Return the class type : MFn::kPhongExplorer.
Reimplemented from MFnDependencyNode.
const char * className | ( | ) | const [protected, virtual] |
Creates a new layered shader dependency graph node and adds it to the dependency graph.
If the UIvisible parameter is true, the new node will be connected to the shader classification node (which allows the UI to recognize the node as a shader). If UIvisible is false, the node will be created in isolation.
[in] | UIvisible | determines whether or not the new node will be connected to the shader classification node. |
[out] | ReturnStatus | return status |
float roughness | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "roughness" attribute of a shader node.
[out] | ReturnStatus | return status |
MStatus setRoughness | ( | const float & | roughness | ) |
Sets the value of the "roughness" attribute of a shader node.
[in] | roughness | value to which the attribute will be set. |
float highlightSize | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "highlightSize" attribute of a shader node.
This attribute represents the surface color of the shader.
[out] | ReturnStatus | return status |
MStatus setHighlightSize | ( | const float & | highlight_size | ) |
Sets the value of the "highlightSize" attribute of a shader node.
[in] | highlight_size | value to which the attribute will be set. |
Retrieves the value of the "whiteness" attribute of a shader node.
This attribute represents the surface transparency of the shader.
[out] | ReturnStatus | return status |
Sets the value of the "whiteness" attribute of a shader node.
[in] | whiteness | value to which the attribute will be set. |