#include <MFnVolumeLight.h>
MFnVolumeLight facilitates creation and manipulation of dependency graph nodes representing voume lights.
Public Types | |
enum | MLightShape { kBoxVolume, kSphereVolume, kCylinderVolume, kConeVolume } |
Available shapes for a volume light. More... | |
enum | MLightDirection { kOutward, kInward, kDownAxis } |
Direction that light travels. More... | |
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnVolumeLight () |
Destructor. | |
MFnVolumeLight () | |
Default constructor. | |
MFnVolumeLight (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnVolumeLight (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) |
MFnVolumeLight::MLightShape | lightShape (MStatus *ReturnStatus=NULL) const |
MStatus | setLightShape (const MFnVolumeLight::MLightShape &light_shape) |
MFnVolumeLight::MLightDirection | volumeLightDirection (MStatus *ReturnStatus=NULL) const |
MStatus | setVolumeLightDirection (const MFnVolumeLight::MLightDirection &volume_light_direction) |
float | arc (MStatus *ReturnStatus=NULL) const |
MStatus | setArc (const float &arc) |
float | coneEndRadius (MStatus *ReturnStatus=NULL) const |
MStatus | setConeEndRadius (const float &cone_end_radius) |
bool | emitAmbient (MStatus *ReturnStatus=NULL) const |
MStatus | setEmitAmbient (const bool &emit_ambient) |
MRampAttribute | colorRamp (MStatus *ReturnStatus=NULL) const |
MRampAttribute | penumbraRamp (MStatus *ReturnStatus=NULL) const |
MFnVolumeLight (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. |
Direction that light travels.
MFnVolumeLight::~MFnVolumeLight | ( | ) | [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 MFnVolumeLight::type | ( | ) | const [virtual] |
const char * MFnVolumeLight::className | ( | ) | const [protected, virtual] |
Creates a new volume 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 |
Reimplemented from MFnPointLight.
MObject MFnVolumeLight::create | ( | const MObject & | parent, | |
bool | UIvisible = true , |
|||
bool | wantTransform = false , |
|||
MStatus * | ReturnStatus = NULL | |||
) |
Creates a new volume 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 |
Reimplemented from MFnPointLight.
MFnVolumeLight::MLightShape MFnVolumeLight::lightShape | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the "lightShape" attribute of the light. The shape can be one of the following.
[out] | ReturnStatus | return status |
MStatus MFnVolumeLight::setLightShape | ( | const MFnVolumeLight::MLightShape & | light_shape | ) |
Sets the value of the "lightShape" attribute of a volume light node. The shape can be one of the following:
[in] | light_shape | value to which the attribute will be set. |
MFnVolumeLight::MLightDirection MFnVolumeLight::volumeLightDirection | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "volumeLightDirection" attribute.
The volumeLightDirection attribute determines the direction of the light within the volume. Outward has light moving away from the center of a Box or Sphere and away from the central axis of a Cylinder or Cone. Inward is the reverse of the direction. One can light from the outside of a sphere going in. Up Axis is like a directional light pointing in the positive y direction. Down axis points in the negative y direction. Note that Inward will not always shadow in a desirable fashion. The volumeLightDirection attribute can be one of the following:
[out] | ReturnStatus | return status |
MStatus MFnVolumeLight::setVolumeLightDirection | ( | const MFnVolumeLight::MLightDirection & | volume_light_direction | ) |
Sets the value of the "volumeLightDirection" attribute of a volume light node. The shape can be one of the following.
[in] | volume_light_direction | value to which the attribute will be set. |
float MFnVolumeLight::arc | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "arc" attribute. The arc is an angular slice of the light about the y axis. The value can range from 0 to 360 degrees.
[out] | ReturnStatus | return status |
MStatus MFnVolumeLight::setArc | ( | const float & | arc | ) |
Sets the value of the "arc" attribute of a volume light node.
[in] | arc | value to which the attribute will be set. |
float MFnVolumeLight::coneEndRadius | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "coneEndRadius" attribute. The coneEndRadius attribute determines the relative size of the one end of the cone. At a value of 1.0 it is a cylinder, while at 0 it is a cone.
[out] | ReturnStatus | return status |
MStatus MFnVolumeLight::setConeEndRadius | ( | const float & | cone_end_radius | ) |
Sets the value of the "coneEndRadius" attribute of a volume light node.
[in] | cone_end_radius | value to which the attribute will be set. |
bool MFnVolumeLight::emitAmbient | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the value of the "emitAmbient" attribute.
If true, then light affects surfaces in a non directional fashion. When combined with Emit Diffuse the lighting at a surface will be half applied using the surface/light angle, and half in a nondirectional fashion. If Emit Diffuse is off then the light will be totally omnidirectional.
[out] | ReturnStatus | return status |
MStatus MFnVolumeLight::setEmitAmbient | ( | const bool & | emit_ambient | ) |
Sets the value of the "emitAmbient" attribute of a volume light node.
[in] | emit_ambient | value to which the attribute will be set. |
MRampAttribute MFnVolumeLight::colorRamp | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the "colorRamp" attribute.
[out] | ReturnStatus | return status |
MRampAttribute MFnVolumeLight::penumbraRamp | ( | MStatus * | ReturnStatus = NULL |
) | const |
Retrieves the "penumbraRamp" attribute.
[out] | ReturnStatus | return status |
MObject MFnVolumeLight::create | ( | const MObject & | parent, | |
bool | UIvisible = true , |
|||
MStatus * | ReturnStatus = NULL | |||
) |
NO SCRIPT SUPPORT.
Creates a new volume 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 |
Reimplemented from MFnPointLight.
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |