#include <MFnPfxGeometry.h>
This is the function set for paint effects objects.
PfxGeometry is the parent class for the stroke and pfxHair node. The output geometry for pfxHair and stroke nodes may be accessed through this class.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnPfxGeometry () |
Destructor. | |
MFnPfxGeometry () | |
Default constructor. | |
MFnPfxGeometry (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnPfxGeometry (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MStatus | getLineData (MRenderLineArray &mainLines, MRenderLineArray &leafLines, MRenderLineArray &flowerLines, bool doLines, bool doTwist, bool doWidth, bool doFlatness, bool doParameter, bool doColor, bool doIncandescence, bool doTransparency, bool worldSpace) |
MStatus | getBoundingBox (double *min, double *max) |
MFnPfxGeometry (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnPfxGeometry::~MFnPfxGeometry | ( | ) | [virtual] |
Destructor.
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 MFnPfxGeometry::type | ( | ) | const [virtual] |
const char * MFnPfxGeometry::className | ( | ) | const [protected, virtual] |
MStatus MFnPfxGeometry::getLineData | ( | MRenderLineArray & | mainLines, | |
MRenderLineArray & | leafLines, | |||
MRenderLineArray & | flowerLines, | |||
bool | doLines, | |||
bool | doTwist, | |||
bool | doWidth, | |||
bool | doFlatness, | |||
bool | doParameter, | |||
bool | doColor, | |||
bool | doIncandescence, | |||
bool | doTransparency, | |||
bool | worldSpace | |||
) |
Get line data for the current output pfx tubes. The passed in arrays will be filled with pointers to MrenderLine classes. If there are no leaves or flowers then the passed in leafLine and flowerLine arrays will be left empty. Arrays are generated for only the specified attributes. This routine creates the memory for the arrays that it computes. This memory can only be released using the deleteArray method on the MRenderLineArray class. DeleteArray should be called for the mainLine, leafLine, and flowerLine variables when done. These variables wrap the returned data and allow access but the MRenderLineArray destructer does not delete this wrapped memory, so one must use MRenderLineArray::deleteArray(). The MRenderLine, MVectorArray and MDoubleArrays returned from MRenderLineArray will point to deleted memory after calling deleteArray, so be careful to only call deleteArray when finished using the line data(or copy the arrays first).
[out] | mainLines | primary MRenderLineArray |
[out] | leafLines | leaf MRenderLineArray |
[out] | flowerLines | flower MRenderLineArray |
[in] | doLines | create line(vertex) arrays |
[in] | doTwist | create twist arrays |
[in] | doWidth | create width arrays |
[in] | doFlatness | create flatness arrays |
[in] | doParameter | create parameter arrays |
[in] | doColor | create color arrays |
[in] | doIncandescence | create incandescence arrays |
[in] | worldSpace | compute lines in worldspace, instead of the stroke objectspace |
MStatus MFnPfxGeometry::getBoundingBox | ( | double * | min, | |
double * | max | |||
) |
Gets the bounding box of the specified geometry. The passed in double arrays will be filled with minimum and maximum coordinates of the geometry.
[out] | min | minimum coordinates |
[out] | max | maximum coordinates |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |