#include <MFnDirectionalLight.h>
MFnDirectionalLight facilitates creation and manipulation of dependency nodes representing direction lights.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnDirectionalLight () |
Destructor. | |
MFnDirectionalLight () | |
Default constructor. | |
MFnDirectionalLight (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnDirectionalLight (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MObject | create (bool UIvisible=true, MStatus *ReturnStatus=NULL) |
MObject | create (const MObject &parent, bool UIvisible=true, bool wantTransform=false, MStatus *ReturnStatus=NULL) |
float | shadowAngle (MStatus *ReturnStatus=NULL) const |
MStatus | setShadowAngle (const float &shadow_angle) |
MFnDirectionalLight (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
MObject | create (const MObject &parent, bool UIvisible=true, MStatus *ReturnStatus=NULL) |
NO SCRIPT SUPPORT. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnDirectionalLight::~MFnDirectionalLight | ( | ) | [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 MFnDirectionalLight::type | ( | ) | const [virtual] |
Function set type.
Return the class type : MFn::kDirectionalLight
Reimplemented from MFnNonExtendedLight.
const char * MFnDirectionalLight::className | ( | ) | const [protected, virtual] |
Creates a new directional light dependency graph node and adds it to the dependency graph. If the UIvisible parameter is true, the new node will be connected to the light classification node (which allows the UI to recognize the node as a light) and added to the default light list. If UIvisible is false, the node will be created in isolation.
The light node is added to the current model, under a new transformation.
[in] | UIvisible | determines whether or not to connect the new node to the light classification node and add it to the default light list. |
[out] | ReturnStatus | return status |
MObject MFnDirectionalLight::create | ( | const MObject & | parent, | |
bool | UIvisible = true , |
|||
bool | wantTransform = false , |
|||
MStatus * | ReturnStatus = NULL | |||
) |
Creates a new directional light dependency graph node and adds it to the dependency graph. If the UIvisible parameter is true, the new node will be connected to the light classification node (which allows the UI to recognize the node as a light) and added to the default light list. If UIvisible is false, the node will be created in isolation.
If wantTransform parameter is false ( which is by default ), the new shape node is created under the specified parent and no transform node is created. If the specified parent is null, then no shape node will be created.
The light node is added to the current model, under the specified parent.
[in] | parent | the node under which the new light and its transform will be added. |
[in] | wantTransform | Boolean to indicate whether the transform node is needed or not, which is 'false' by default. |
[in] | UIvisible | determines whether or not to connect the new node to the light classification node and add it to the default light list. |
[out] | ReturnStatus | return status |
float MFnDirectionalLight::shadowAngle | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "shadowAngle" attribute of a directional light node. This attribute represents an angular divergence from the direction vector of the light used to calculate soft shadows.
[out] | ReturnStatus | return status |
MStatus MFnDirectionalLight::setShadowAngle | ( | const float & | shadow_angle | ) |
Sets the value of the "shadowAngle" attribute of a directional light node.
[in] | shadow_angle | value to which the attribute will be set. |
MObject MFnDirectionalLight::create | ( | const MObject & | parent, | |
bool | UIvisible = true , |
|||
MStatus * | ReturnStatus = NULL | |||
) |
NO SCRIPT SUPPORT.
Creates a new directional light dependency graph node and adds it to the dependency graph. If the UIvisible parameter is true, the new node will be connected to the light classification node (which allows the UI to recognize the node as a light) and added to the default light list. If UIvisible is false, the node will be created in isolation.
The light node is added to the current model, under a new transformation. The transformation is added to the current model under the specified parent.
[in] | parent | the node under which the new light and its transform will be added. |
[in] | UIvisible | determines whether or not to connect the new node to the light classification node and add it to the default light list. |
[out] | ReturnStatus | return status |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |