#include
<MFnReflectShader.h>
MFnReflectShader allows manipulation of dependency graph nodes representing reflective surface shaders. This includes Phong and Blinn shaders.
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 |
MStatus | setReflectedRayDepthLimit (const short &new_limit) |
MColor | specularColor (MStatus *ReturnStatus=NULL) const |
MStatus | setSpecularColor (const MColor &specular_color) |
float | reflectivity (MStatus *ReturnStatus=NULL) const |
MStatus | setReflectivity (const float &reflectivity) |
MColor | reflectedColor (MStatus *ReturnStatus=NULL) const |
MStatus | setReflectedColor (const MColor &reflected_color) |
MFnReflectShader (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
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 |
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 MFnReflectShader::type | ( | ) | const [virtual] |
Function set type.
Return the class type : MFn::kReflect
Reimplemented from MFnLambertShader.
Reimplemented in MFnBlinnShader, and MFnPhongShader.
const char * MFnReflectShader::className | ( | ) | const [protected, virtual] |
Class name.
Return the class name : "MFnReflectShader"
Reimplemented from MFnLambertShader.
Reimplemented in MFnBlinnShader, and MFnPhongShader.
short MFnReflectShader::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 MFnReflectShader::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 MFnReflectShader::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 MFnReflectShader::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. |
Autodesk® Maya® 2011 © 1997-2010 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |