Manage Reflective Surface Shaders.
MFnReflectShader allows manipulation of dependency graph nodes representing reflective surface shaders. This includes Phong and Blinn shaders.
#include <MFnReflectShader.h>
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnReflectShader () |
Destructor. | |
MFnReflectShader () | |
Default constructor. | |
MFnReflectShader (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
short | reflectedRayDepthLimit (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "reflectedRayDepthLimit" attribute of a reflective shader node. | |
MStatus | setReflectedRayDepthLimit (const short &new_limit) |
Sets the value of the "reflectedRayDepthLimit" attribute of a lambert shader node. | |
MColor | specularColor (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "specularColor" attribute of a reflective shader node. | |
MStatus | setSpecularColor (const MColor &specular_color) |
Sets the value of the "specularColor" attribute of a shader node. | |
float | reflectivity (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "reflectivity" attribute of a reflective shader node. | |
MStatus | setReflectivity (const float &reflectivity) |
Sets the value of the "reflectivity" attribute of a shader node. | |
MColor | reflectedColor (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "reflectedColor" attribute of a reflective shader node. | |
MStatus | setReflectedColor (const MColor &reflected_color) |
Sets the value of the "reflectedColor" attribute of a shader node. | |
MFnReflectShader (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnReflectShader | ( | 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 |
MFnReflectShader | ( | 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::kReflect.
Reimplemented from MFnLambertShader.
Reimplemented in MFnBlinnShader, and MFnPhongShader.
const char * className | ( | ) | const [protected, virtual] |
Class name.
Return the class name : "MFnReflectShader".
Reimplemented from MFnLambertShader.
Reimplemented in MFnBlinnShader, and MFnPhongShader.
short reflectedRayDepthLimit | ( | MStatus * | ReturnStatus = NULL | ) | const |
Retrieves the value of the "reflectedRayDepthLimit" attribute of a reflective shader node.
This attribute represents the maximum reflected ray depth used in the shading calculation.
[out] | ReturnStatus | return status |
MStatus setReflectedRayDepthLimit | ( | const short & | reflected_ray_depth_limit | ) |
Sets the value of the "reflectedRayDepthLimit" attribute of a lambert shader node.
[in] | reflected_ray_depth_limit | value to which the attribute will be set. |
Retrieves the value of the "specularColor" attribute of a reflective shader node.
This attribute represents the color of specular highlights produced by the shader.
[out] | ReturnStatus | return status |
Sets the value of the "specularColor" attribute of a shader node.
[in] | specular_color | value to which the attribute will be set. |
float reflectivity | ( | MStatus * | ReturnStatus = NULL | ) | const |
Retrieves the value of the "reflectivity" attribute of a reflective shader node.
This attribute represents the reflectivity of the shader.
[out] | ReturnStatus | return status |
MStatus setReflectivity | ( | const float & | reflect | ) |
Sets the value of the "reflectivity" attribute of a shader node.
[in] | reflect | value to which the attribute will be set. |
Retrieves the value of the "reflectedColor" attribute of a reflective shader node.
This attribute represents the color of reflection produced by the shader.
[out] | ReturnStatus | return status |
Sets the value of the "reflectedColor" attribute of a shader node.
[in] | reflected_color | value to which the attribute will be set. |