#include <MFnPointOnCurveManip.h>
The PointOnCurveManip allows the user to manipulate a point constrained to move along a curve, in order to specify the "u" curve parameter value. This manipulator generates a single floating point value corresponding to the curve parameter.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnPointOnCurveManip () |
Destructor. | |
MFnPointOnCurveManip () | |
Default constructor. | |
MFnPointOnCurveManip (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnPointOnCurveManip (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MObject | create (MStatus *ReturnStatus=NULL) |
MObject | create (const MString &manipName, const MString ¶mName, MStatus *ReturnStatus=NULL) |
MStatus | connectToCurvePlug (MPlug &curvePlug) |
MStatus | connectToParamPlug (MPlug ¶mPlug) |
MStatus | setDrawCurve (bool state) |
MStatus | setParameter (double parameter) |
bool | isDrawCurveOn (MStatus *ReturnStatus=NULL) const |
double | parameter (MStatus *ReturnStatus=NULL) const |
MPoint | curvePoint (MStatus *ReturnStatus=NULL) const |
unsigned int | curveIndex (MStatus *ReturnStatus=NULL) const |
unsigned int | paramIndex (MStatus *ReturnStatus=NULL) const |
MFnPointOnCurveManip (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnPointOnCurveManip::~MFnPointOnCurveManip | ( | ) | [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 |
MFnPointOnCurveManip::MFnPointOnCurveManip | ( | const MDagPath & | object, | |
MStatus * | ReturnStatus = NULL | |||
) |
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 |
MFnPointOnCurveManip::MFnPointOnCurveManip | ( | const 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 |
MFn::Type MFnPointOnCurveManip::type | ( | ) | const [virtual] |
const char * MFnPointOnCurveManip::className | ( | ) | const [protected, virtual] |
Creates a new PointOnCurveManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite PointOnCurveManip.
The name that appears in the feedback line is "param"
[out] | ReturnStatus | return status |
MObject MFnPointOnCurveManip::create | ( | const MString & | manipName, | |
const MString & | paramName, | |||
MStatus * | ReturnStatus = NULL | |||
) |
Creates a new PointOnCurveManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite PointOnCurveManip.
The name that appears in the feedback line is specified by the paramName argument.
[in] | paramName | the name that appears in the feedback line |
[out] | ReturnStatus | return status |
Reimplemented from MFnDependencyNode.
Connect to the curve plug. The data type corresponding to the curvePlug is MFnData::kNurbsCurve.
[in] | curvePlug | the curve plug |
Connect to the param plug. The data type corresponding to the paramPlug is a double.
[in] | paramPlug | the param plug |
MStatus MFnPointOnCurveManip::setDrawCurve | ( | bool | state | ) |
Sets whether or not the curve is drawn.
[in] | state | whether or not the curve should be drawn |
MStatus MFnPointOnCurveManip::setParameter | ( | double | parameter | ) |
Sets the parameter.
[in] | parameter | the parameter |
bool MFnPointOnCurveManip::isDrawCurveOn | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns whether or not the curve is drawn.
[out] | ReturnStatus | return status |
double MFnPointOnCurveManip::parameter | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the parameter.
[out] | ReturnStatus | return status |
Returns the curve point.
[out] | ReturnStatus | return status |
unsigned int MFnPointOnCurveManip::curveIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the curve. The data type corresponding to this index is MFnData::kNurbsCurve.
[out] | ReturnStatus | return status |
unsigned int MFnPointOnCurveManip::paramIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the parameter of the PointOnCurveManip. The data type corresponding to this index is a double.
[out] | ReturnStatus | return status |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |