#include <MRenderPassDef.h>
This class provides a means to access information about a specific render pass. Initialize by passing to MRenderPassRegistry::getRenderPassDefinition(), or by calling create() to generate and register a new pass.
Public Member Functions | |
virtual | ~MRenderPassDef () |
MPxRenderPassImpl * | getImplementation (const MString &renderer, MPxRenderPassImpl::PassTypeBit fbType, unsigned int numChannels, MStatus *ReturnStatus=NULL) |
MPxRenderPassImpl * | getImplementation (const MString &renderer, MStatus *ReturnStatus=NULL) |
MString | getID (MStatus *ReturnStatus=NULL) const |
MString | getName (MStatus *ReturnStatus=NULL) const |
MString | getGroup (MStatus *ReturnStatus=NULL) const |
MString | getDescription (MStatus *ReturnStatus=NULL) const |
MString | getAttributeType (const MString &attributeName, MStatus *ReturnStatus=NULL) const |
MStatus | addFloatParameter (const MString &longName, const MString &shortName, const MString &UIName, const float &minValue, const float &maxValue, const float &defaultValue) |
MStatus | addDoubleParameter (const MString &longName, const MString &shortName, const MString &UIName, const double &minValue, const double &maxValue, const double &defaultValue) |
MStatus | addIntParameter (const MString &longName, const MString &shortName, const MString &UIName, const int &minValue, const int &maxValue, const int &defaultValue) |
Friends | |
class | MRenderPassRegistry |
class | MFnPlugin |
MRenderPassDef::~MRenderPassDef | ( | ) | [virtual] |
Destructor
MPxRenderPassImpl * MRenderPassDef::getImplementation | ( | const MString & | renderer, | |
MPxRenderPassImpl::PassTypeBit | fbType, | |||
unsigned int | numChannels, | |||
MStatus * | ReturnStatus = NULL | |||
) |
Retrieve an implementation of this render pass for the given renderer. That supports the specified data type and the specified number of channels.
Arguments
MPxRenderPassImpl * MRenderPassDef::getImplementation | ( | const MString & | renderer, | |
MStatus * | ReturnStatus = NULL | |||
) |
Retrieve an implementation of this render pass for the given renderer.
[in] | renderer | The renderer |
[out] | ReturnStatus | Storage for status code |
Retrieve the pass ID for this pass.
[out] | ReturnStatus | Storage for status code |
Retrieve the pass name for this pass
[out] | ReturnStatus | Storage for status code |
Retrieve the pass group for this pass
[out] | ReturnStatus | Storage for status code |
Retrieve the description for this pass
[out] | ReturnStatus | Storage for status code |
MString MRenderPassDef::getAttributeType | ( | const MString & | attributeName, | |
MStatus * | ReturnStatus = NULL | |||
) | const |
Retrieve the type of a given render pass attribute
[in] | attributeName | The name of the render pass attribute to query. |
MStatus MRenderPassDef::addFloatParameter | ( | const MString & | longName, | |
const MString & | shortName, | |||
const MString & | UIName, | |||
const float & | minValue, | |||
const float & | maxValue, | |||
const float & | defaultValue | |||
) |
Define a single-precision floating-point parameter for the pass
[in] | longName | The full name of the parameter |
[in] | shortName | The short name of the parameter |
[in] | minValue | The minimum value of the parameter |
[in] | maxValue | The maximum value of the parameter |
[in] | defaultValue | The default value of the parameter |
MStatus MRenderPassDef::addDoubleParameter | ( | const MString & | longName, | |
const MString & | shortName, | |||
const MString & | UIName, | |||
const double & | minValue, | |||
const double & | maxValue, | |||
const double & | defaultValue | |||
) |
Define a double-precision floating-point parameter for the pass
[in] | longName | The full name of the parameter |
[in] | shortName | The short name of the parameter |
[in] | minValue | The minimum value of the parameter |
[in] | maxValue | The maximum value of the parameter |
[in] | defaultValue | The default value of the parameter |
MStatus MRenderPassDef::addIntParameter | ( | const MString & | longName, | |
const MString & | shortName, | |||
const MString & | UIName, | |||
const int & | minValue, | |||
const int & | maxValue, | |||
const int & | defaultValue | |||
) |
Define an integer parameter for the pass
[in] | longName | The full name of the parameter |
[in] | shortName | The short name of the parameter |
[in] | minValue | The minimum value of the parameter |
[in] | maxValue | The maximum value of the parameter |
[in] | defaultValue | The default value of the parameter |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |