#include <MFnLambertShader.h>
MFnLambertShader facilitates creation and manipulation of dependency graph nodes representing lambertian shaders.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnLambertShader () |
Destructor. | |
MFnLambertShader () | |
Default constructor. | |
MFnLambertShader (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MObject | create (bool UIvisible=true, MStatus *ReturnStatus=NULL) |
short | refractedRayDepthLimit (MStatus *ReturnStatus=NULL) const |
MStatus | setRefractedRayDepthLimit (const short &new_limit) |
float | refractiveIndex (MStatus *ReturnStatus=NULL) const |
MStatus | setRefractiveIndex (const float &refractive_index) |
bool | rtRefractedColor (MStatus *ReturnStatus=NULL) const |
MStatus | setRtRefractedColor (const bool &rt_refracted_color) |
float | diffuseCoeff (MStatus *ReturnStatus=NULL) const |
MStatus | setDiffuseCoeff (const float &diffuse_coeff) |
MColor | color (MStatus *ReturnStatus=NULL) const |
MStatus | setColor (const MColor &col) |
MColor | transparency (MStatus *ReturnStatus=NULL) const |
MStatus | setTransparency (const MColor &transp) |
MColor | ambientColor (MStatus *ReturnStatus=NULL) const |
MStatus | setAmbientColor (const MColor &ambient_color) |
MColor | incandescence (MStatus *ReturnStatus=NULL) const |
MStatus | setIncandescence (const MColor &incand) |
float | translucenceCoeff (MStatus *ReturnStatus=NULL) const |
MStatus | setTranslucenceCoeff (const float &translucence_coeff) |
float | glowIntensity (MStatus *ReturnStatus=NULL) const |
MStatus | setGlowIntensity (const float &glow_intensity) |
bool | hideSource (MStatus *ReturnStatus=NULL) const |
MStatus | setHideSource (const bool &hide_source) |
MFnLambertShader (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 MFnLambertShader::type | ( | ) | const [virtual] |
Function set type.
Return the class type : MFn::kLambert
Reimplemented from MFnDependencyNode.
Reimplemented in MFnBlinnShader, MFnPhongShader, and MFnReflectShader.
const char * MFnLambertShader::className | ( | ) | const [protected, virtual] |
Class name.
Return the class name : "MFnLambertShader"
Reimplemented from MFnDependencyNode.
Reimplemented in MFnBlinnShader, MFnPhongShader, and MFnReflectShader.
Creates a new lambert 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 |
Reimplemented in MFnBlinnShader, and MFnPhongShader.
short MFnLambertShader::refractedRayDepthLimit | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "refractedRayDepthLimit" attribute of a lambert shader node. This attribute represents the maximum refracted ray depth used in the shading calculation.
[out] | ReturnStatus | return status |
MStatus MFnLambertShader::setRefractedRayDepthLimit | ( | const short & | refracted_ray_depth_limit | ) |
Sets the value of the "refractedRayDepthLimit" attribute of a lambert shader node.
[in] | refracted_ray_depth_limit | value to which the attribute will be set. |
float MFnLambertShader::refractiveIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "refractiveIndex" attribute of a lambert shader node. This attribute represents the refractive index of the shader.
[out] | ReturnStatus | return status |
MStatus MFnLambertShader::setRefractiveIndex | ( | const float & | refractive_index | ) |
Sets the value of the "refractiveIndex" attribute of a shader node.
[in] | refractive_index | value to which the attribute will be set. |
bool MFnLambertShader::rtRefractedColor | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "rtRefractedColor" attribute of a shader node. This attribute determines whether the shader uses the value of the "refractedColor" attribute for the refracted color or calculated the refracted color itself.
[out] | ReturnStatus | return status |
MStatus MFnLambertShader::setRtRefractedColor | ( | const bool & | rt_refracted_color | ) |
Sets the value of the "rtRefractedColor" attribute of a shader node.
[in] | rt_refracted_color | value to which the attribute will be set. |
float MFnLambertShader::diffuseCoeff | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "diffuseCoeff" attribute of a lambert shader node. This attribute represents the diffuse reflectivity of the shader.
[out] | ReturnStatus | return status |
MStatus MFnLambertShader::setDiffuseCoeff | ( | const float & | diffuse_coeff | ) |
Sets the value of the "diffuseCoeff" attribute of a shader node.
[in] | diffuse_coeff | value to which the attribute will be set. |
Retrieves the value of the "color" attribute of a shader node. This attribute represents the surface color of the shader.
[out] | ReturnStatus | return status |
Sets the value of the "color" attribute of a shader node.
[in] | col | value to which the attribute will be set. |
Retrieves the value of the "transparency" attribute of a shader node. This attribute represents the surface transparency of the shader.
[out] | ReturnStatus | return status |
Sets the value of the "transparency" attribute of a shader node.
[in] | transp | value to which the attribute will be set. |
Retrieves the value of the "ambientColor" attribute of a shader node. This attribute represents the ambient color of the shader.
[out] | ReturnStatus | return status |
Sets the value of the "ambientColor" attribute of a shader node.
[in] | ambient_color | value to which the attribute will be set. |
Retrieves the value of the "incandescence" attribute of a shader node. This attribute represents the incandescence of the shader.
[out] | ReturnStatus | return status |
Sets the value of the "incandescence" attribute of a shader node.
[in] | incand | value to which the attribute will be set. |
float MFnLambertShader::translucenceCoeff | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "translucenceCoeff" attribute of a lambert shader node. This attribute represents a constant multiplier applied to the transparency attribute of the shader.
[out] | ReturnStatus | return status |
MStatus MFnLambertShader::setTranslucenceCoeff | ( | const float & | translucence_coeff | ) |
Sets the value of the "translucenceCoeff" attribute of a shader node.
[in] | translucence_coeff | value to which the attribute will be set. |
float MFnLambertShader::glowIntensity | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "glowIntensity" attribute of a shader node. This attribute represents the constant multplier applied to the glow color of the shader.
[out] | ReturnStatus | return status |
MStatus MFnLambertShader::setGlowIntensity | ( | const float & | glow_intensity | ) |
Sets the value of the "glowIntensity" attribute of a shader node.
[in] | glow_intensity | value to which the attribute will be set. |
bool MFnLambertShader::hideSource | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "hideSource" attribute of a shader node. This attribute determines whether or not the computed surface color is used in the shading computation. If hideSource is true, then only the computed shader glow color will be used. Otherwise, both the glow and surface colors will be used.
[out] | ReturnStatus | return status |
MStatus MFnLambertShader::setHideSource | ( | const bool & | hide_source | ) |
Sets the value of the "hideSource" attribute of a shader node.
[in] | hide_source | value to which the attribute will be set. |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |