#include
<MFnLayeredShader.h>
List of all
members.
Detailed Description
Manage Layered shaders.
MFnLayeredShader facilitates creation
and manipulation of dependency graph nodes representing layered
shaders.
Constructor & Destructor Documentation
MFnLayeredShader::MFnLayeredShader |
( |
MObject & |
object, |
|
|
MStatus * |
ReturnStatus =
NULL |
|
|
) |
|
|
|
Constructor.
Class constructor that initializes the function set to the given
MObject.
- Parameters:
-
[in] |
object |
The MObject to
attach the function set to |
[out] |
ReturnStatus |
the return status |
- Status Codes:
-
MFnLayeredShader::MFnLayeredShader |
( |
const MObject & |
object, |
|
|
MStatus * |
ReturnStatus =
NULL |
|
|
) |
|
|
|
Constructor.
Class constructor that initializes the function set to the given
MObject.
- Parameters:
-
[in] |
object |
The MObject to
attach the function set to |
[out] |
ReturnStatus |
the return status |
- Status Codes:
-
Member Function Documentation
MFn::Type
MFnLayeredShader::type |
( |
|
) |
const [virtual] |
const char * MFnLayeredShader::className |
( |
|
) |
const [protected, virtual] |
Class name.
Return the class name : "MFnLayeredShader"
Reimplemented from MFnDependencyNode.
MObject MFnLayeredShader::create |
( |
bool |
UIvisible = true , |
|
|
MStatus * |
ReturnStatus =
NULL |
|
|
) |
|
|
|
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.
- Parameters:
-
[in] |
UIvisible |
determines whether or not the new node will be connected to the
shader classification node. |
[out] |
ReturnStatus |
return status |
- Returns:
- MObject
representing the new dependency node.
- Status Codes:
-
- MS::kSuccess
operation successful
- MS::kInsufficientMemory
ran out of memory
- MS::kNoModelActive no model is currently active
- MS::kLicenseFailure
application not licensed for attempted operation
- MS::kFailure the new node
could not be created, or the new node could not be added to the
dependency graph, or the new node could not be connected to the
classification node.
short MFnLayeredShader::compositingFlag |
( |
MStatus * |
ReturnStatus =
NULL |
) |
const |
Retrieves the value of the "compositingFlag" attribute of a
shader node.
- Parameters:
-
[out] |
ReturnStatus |
return status |
- Returns:
- The value of the "compositingFlag" attribute of the shader
node.
- Status Codes:
-
MStatus
MFnLayeredShader::setCompositingFlag |
( |
const short & |
cflag |
) |
|
Sets the value of the "compositingFlag" attribute of a shader
node.
- Parameters:
-
[in] |
cflag |
value to which the attribute will be set. |
- Returns:
- Return status
- Status Codes:
-
MColor MFnLayeredShader::color |
( |
unsigned int |
lIndex = 0 , |
|
|
MStatus * |
ReturnStatus =
NULL |
|
|
) |
|
|
const |
Retrieves the value of the "color" attribute of a shader node.
This attribute represents the surface color of the shader.
- Parameters:
-
[in] |
lIndex |
Index of the shader's entry in the inputs attribute
array element. |
[out] |
ReturnStatus |
Status code. |
- Returns:
- The value of the "color" attribute of the shader node.
- Status Codes:
-
MStatus MFnLayeredShader::setColor |
( |
const MColor & |
col, |
|
|
unsigned int |
lIndex = 0 |
|
|
) |
|
|
|
Sets the value of the "color" attribute of a shader node.
- Parameters:
-
[in] |
col |
Color. |
[in] |
lIndex |
Index of the shader's entry in the inputs attribute
array element. |
- Returns:
- Status code.
- Status Codes:
-
MColor MFnLayeredShader::transparency |
( |
unsigned int |
lIndex = 0 , |
|
|
MStatus * |
ReturnStatus =
NULL |
|
|
) |
|
|
const |
Retrieves the value of the "transparency" attribute of a shader
node. This attribute represents the surface transparency of the
shader.
- Parameters:
-
[in] |
lIndex |
Index of the shader's entry in the inputs attribute
array element. |
[out] |
ReturnStatus |
Status code. |
- Returns:
- The value of the "transparency" attribute of the shader
node.
- Status Codes:
-
MStatus
MFnLayeredShader::setTransparency |
( |
const MColor & |
transp, |
|
|
unsigned int |
lIndex = 0 |
|
|
) |
|
|
|
Sets the value of the "transparency" attribute of a shader
node.
- Parameters:
-
[in] |
transp |
Value to which the attribute will be set. |
[in] |
lIndex |
Index of the shader's entry in the inputs attribute
array element. |
- Returns:
- Status code.
- Status Codes:
-
MColor MFnLayeredShader::glowColor |
( |
unsigned int |
lIndex = 0 , |
|
|
MStatus * |
ReturnStatus =
NULL |
|
|
) |
|
|
const |
Retrieves the value of the "glowColor" attribute of a shader
node. This attribute represents the ambient color of the
shader.
- Parameters:
-
[in] |
lIndex |
Index of the shader's entry in the inputs attribute
array element. |
[out] |
ReturnStatus |
Status code. |
- Returns:
- The value of the "glowColor" attribute of the shader node.
- Status Codes:
-
MStatus
MFnLayeredShader::setGlowColor |
( |
const MColor & |
glow_color, |
|
|
unsigned int |
lIndex = 0 |
|
|
) |
|
|
|
Sets the value of the "glowColor" attribute of a shader
node.
- Parameters:
-
[in] |
glow_color |
Color to which the attribute will be set. |
[in] |
lIndex |
Index of the shader's entry in the inputs attribute
array element. |
- Returns:
- Status code.
- Status Codes:
-
MColor
MFnLayeredShader::hardwareColor |
( |
MStatus * |
ReturnStatus =
NULL |
) |
const |
Retrieves the value of the "hardwareColor" attribute of a shader
node. This attribute represents the color of the material that
appears in shaded mode.
- Parameters:
-
[out] |
ReturnStatus |
return status |
- Returns:
- The value of the "hardwareColor" attribute of the shader
node.
- Status Codes:
-
MStatus
MFnLayeredShader::setHardwareColor |
( |
const MColor & |
hardware_color |
) |
|
Sets the value of the "hardwareColor" attribute of a shader
node.
- Parameters:
-
[in] |
hardware_color |
value to which the attribute will be set. |
- Returns:
- Return status
- Status Codes:
-
MColor
MFnLayeredShader::hardwareShader |
( |
MStatus * |
ReturnStatus =
NULL |
) |
const |
Retrieves the value of the "hardwareShader" attribute of a
layered shader node.
- Parameters:
-
[out] |
ReturnStatus |
return status |
- Returns:
- The value of the "hardwareShader" attribute of the shader
node.
- Status Codes:
-
MStatus
MFnLayeredShader::setHardwareShader |
( |
const MColor & |
hardware_shader |
) |
|
Sets the value of the "hardwareShader" attribute of a shader
node.
- Parameters:
-
[in] |
hardware_shader |
value to which the attribute will be set. |
- Returns:
- Return status
- Status Codes:
-