Manage anisotropic shaders.
MFnAnisotropyShader facilitates creation and manipulation of dependency graph nodes representing anisotropy shaders.
#include <MFnAnisotropyShader.h>
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnAnisotropyShader () |
Destructor. |
|
MFnAnisotropyShader () | |
Default constructor. |
|
MFnAnisotropyShader (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MObject | create (bool UIvisible=true, MStatus *ReturnStatus=NULL) |
Creates a new layered shader dependency
graph node and adds it to the dependency graph. |
|
MColor | tangentUCamera (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "color" attribute
of a shader node. |
|
MStatus | setTangentUCamera (const MColor &tangu_camera) |
Sets the value of the "color" attribute of a
shader node. |
|
MColor | tangentVCamera (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "transparency"
attribute of a shader node. |
|
MStatus | setTangentVCamera (const MColor &tangv_camera) |
Sets the value of the "transparency"
attribute of a shader node. |
|
float | correlationX (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "spreadX"
attribute of a shader node. |
|
MStatus | setCorrelationX (const float &correl_x) |
Sets the value of the "spreadX" attribute of
a shader node. |
|
float | correlationY (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "spreadY"
attribute of a shader node. |
|
MStatus | setCorrelationY (const float &correl_y) |
Sets the value of the "spreadY" attribute of
a shader node. |
|
float | roughness (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "roughness"
attribute of a shader node. |
|
MStatus | setRoughness (const float &roughness) |
Sets the value of the "roughness" attribute
of a shader node. |
|
float | rotateAngle (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "angle" attribute
of a layered shader node. |
|
MStatus | setRotateAngle (const float &rotate_angle) |
Sets the value of the "angle" attribute of a
shader node. |
|
float | refractiveIndex (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the
"fresnelRefractiveIndex" attribute of a layered shader node.
|
|
MStatus | setRefractiveIndex (const float &refractive_index) |
Sets the value of the
"fresnelRefractiveIndex" attribute of a shader node. |
|
bool | anisotropicReflectivity (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the
"anisotropicReflectivity" attribute of a layered shader node.
|
|
MStatus | setAnisotropicReflectivity (const bool &anisotropic_reflectivity) |
Sets the value of the
"anisotropicReflectivity" attribute of a shader node. |
|
MFnAnisotropyShader (const MObject &object, MStatus *ReturnStatus=NULL) | |
NO SCRIPT SUPPORT. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
MFnAnisotropyShader | ( | MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
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 |
MFnAnisotropyShader | ( | const MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
NO SCRIPT SUPPORT.
Class constructor that initializes the function set to the given MObject.
Constructor
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFn::Type type | ( | ) | const [virtual] |
const char * className | ( | ) | const [protected, virtual] |
Creates a new layered 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 |
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] | tangu_camera | 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] | tangv_camera | value to which the attribute will be set. |
float correlationX | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "spreadX" attribute of a shader node.
[out] | ReturnStatus | return status |
MStatus setCorrelationX | ( | const float & | correl_x | ) |
Sets the value of the "spreadX" attribute of a shader node.
[in] | correl_x | value to which the attribute will be set. |
float correlationY | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "spreadY" attribute of a shader node.
[out] | ReturnStatus | return status |
MStatus setCorrelationY | ( | const float & | correl_y | ) |
Sets the value of the "spreadY" attribute of a shader node.
[in] | correl_y | value to which the attribute will be set. |
float roughness | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "roughness" attribute of a shader node.
[out] | ReturnStatus | return status |
MStatus setRoughness | ( | const float & | roughness | ) |
Sets the value of the "roughness" attribute of a shader node.
[in] | roughness | value to which the attribute will be set. |
float rotateAngle | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "angle" attribute of a layered shader node.
[out] | ReturnStatus | return status |
MStatus setRotateAngle | ( | const float & | rotate_angle | ) |
Sets the value of the "angle" attribute of a shader node.
[in] | rotate_angle | value to which the attribute will be set. |
float refractiveIndex | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "fresnelRefractiveIndex" attribute of a layered shader node.
[out] | ReturnStatus | return status |
MStatus setRefractiveIndex | ( | const float & | refractive_index | ) |
Sets the value of the "fresnelRefractiveIndex" attribute of a shader node.
[in] | refractive_index | value to which the attribute will be set. |
bool anisotropicReflectivity | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "anisotropicReflectivity" attribute of a layered shader node.
[out] | ReturnStatus | return status |
MStatus setAnisotropicReflectivity | ( | const bool & | anisotropic_reflectivity | ) |
Sets the value of the "anisotropicReflectivity" attribute of a shader node.
[in] | anisotropic_reflectivity | value to which the attribute will be set. |