#include <MFnCurveSegmentManip.h>
The CurveSegmentManip allows the user to manipulate two points on a curve, in order to specify a curve segment. This manipulator generates two floating point values, which correspond to the parameters of the start and end of the curve segment.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnCurveSegmentManip () |
Destructor. | |
MFnCurveSegmentManip () | |
Default constructor. | |
MFnCurveSegmentManip (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnCurveSegmentManip (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MObject | create (MStatus *ReturnStatus=NULL) |
MObject | create (const MString &manipName, const MString &startParamName, const MString &endParamName, MStatus *ReturnStatus=NULL) |
MStatus | connectToCurvePlug (MPlug &curvePlug) |
MStatus | connectToStartParamPlug (MPlug &startParamPlug) |
MStatus | connectToEndParamPlug (MPlug &endParamPlug) |
MStatus | setStartParameter (double startParameter) |
MStatus | setEndParameter (double endParameter) |
double | startParameter (MStatus *ReturnStatus=NULL) const |
double | endParameter (MStatus *ReturnStatus=NULL) const |
unsigned int | curveIndex (MStatus *ReturnStatus=NULL) const |
unsigned int | startParamIndex (MStatus *ReturnStatus=NULL) const |
unsigned int | endParamIndex (MStatus *ReturnStatus=NULL) const |
MFnCurveSegmentManip (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnCurveSegmentManip::~MFnCurveSegmentManip | ( | ) | [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 |
MFnCurveSegmentManip::MFnCurveSegmentManip | ( | 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 |
MFnCurveSegmentManip::MFnCurveSegmentManip | ( | 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 MFnCurveSegmentManip::type | ( | ) | const [virtual] |
const char * MFnCurveSegmentManip::className | ( | ) | const [protected, virtual] |
Creates a new CurveSegmentManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite CurveSegmentManip.
The name that appears in the feedback line is "CurveSegment"
[out] | ReturnStatus | return status |
MObject MFnCurveSegmentManip::create | ( | const MString & | manipName, | |
const MString & | startParamName, | |||
const MString & | endParamName, | |||
MStatus * | ReturnStatus = NULL | |||
) |
Creates a new CurveSegmentManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite CurveSegmentManip.
The names that appears in the feedback line are specified by the startParamName and endParamName arguments.
[in] | startParamName | the startParam name that appears in the feedback line |
[in] | endParamName | the endParam name that appears in the feedback line |
[out] | ReturnStatus | return status |
Connect to the curve plug. The data type corresponding to the curvePlug is MFnData::kNurbsCurve.
[in] | curvePlug | the curve plug |
Connect to the startParam plug. The data type corresponding to the startParamPlug is a double.
[in] | startParamPlug | the startParam plug |
Connect to the endParam plug. The data type corresponding to the endParamPlug is a double.
[in] | endParamPlug | the endParam plug |
MStatus MFnCurveSegmentManip::setStartParameter | ( | double | startParameter | ) |
Sets the start parameter.
[in] | startParameter | the start parameter |
MStatus MFnCurveSegmentManip::setEndParameter | ( | double | endParameter | ) |
Sets the end parameter.
[in] | endParameter | the end parameter |
double MFnCurveSegmentManip::startParameter | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the start parameter.
[out] | ReturnStatus | return status |
double MFnCurveSegmentManip::endParameter | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the end parameter.
[out] | ReturnStatus | return status |
unsigned int MFnCurveSegmentManip::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 MFnCurveSegmentManip::startParamIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the start parameter of the CurveSegmentManip. The data type corresponding to this index is a double.
[out] | ReturnStatus | return status |
unsigned int MFnCurveSegmentManip::endParamIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the end parameter of the CurveSegmentManip. The data type corresponding this index is a double.
[out] | ReturnStatus | return status |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |