#include
<MFnNonAmbientLight.h>
MFnNonAmbientLight facilitates modification of dependency graph nodes representing non-ambient lights. This includes area lights, linear lights, and non-extended lights.
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnNonAmbientLight () |
Destructor. |
|
MFnNonAmbientLight () | |
Default constructor. |
|
MFnNonAmbientLight (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MFnNonAmbientLight (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. |
|
short | decayRate (MStatus *ReturnStatus=NULL) const |
MStatus | setDecayRate (const short &decay_rate) |
MFnNonAmbientLight (const MObject &object, MStatus *ret=NULL) | |
Constructor. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
MFnNonAmbientLight::~MFnNonAmbientLight | ( | ) | [virtual] |
Destructor.
The class destructor.
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 constant MDagPath object.
[in] | object | The const MDagPath 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 MFnNonAmbientLight::type | ( | ) | const [virtual] |
Function set type.
Return the class type : MFn::kNonAmbientLight
Reimplemented from MFnLight.
Reimplemented in MFnAreaLight, MFnDirectionalLight, MFnNonExtendedLight, MFnPointLight, MFnSpotLight, and MFnVolumeLight.
const char * MFnNonAmbientLight::className | ( | ) | const [protected, virtual] |
Class name.
Return the class name : "MFnNonAmbientLight"
Reimplemented from MFnLight.
Reimplemented in MFnAreaLight, MFnDirectionalLight, MFnNonExtendedLight, MFnPointLight, MFnSpotLight, and MFnVolumeLight.
short MFnNonAmbientLight::decayRate | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "decayRate" attribute of a non-ambient light node. This attribute determines the type of decay for the light.
The decay rate is with respect to the distance between the light and the surface point being shaded. The decay values range from 0 - 3. The light intensity decays according to (I / d ** v), where I is the light intensity, d is the distance between the light and the surface point being shaded, and v is the decay rate value. A decay rate of 0 means there is no decay in intensity, a value of 1 indicates linear decay. A decay rate of 2 is the most physically accurate behaviour.
[out] | ReturnStatus | return status |
MStatus MFnNonAmbientLight::setDecayRate | ( | const short & | decay_rate | ) |
Sets the value of the "decayRate" attribute of a non-ambient light node.
[in] | decay_rate | value to which the attribute will be set. |
Autodesk® Maya® 2011 © 1997-2010 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |