#include
<MFnPointOnCurveManip.h>
List of
all members.
Detailed Description
PointOnCurveManip function set.
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.
Constructor & Destructor Documentation
MFnPointOnCurveManip::~MFnPointOnCurveManip |
( |
|
) |
[virtual] |
Destructor.
Class destructor.
MFnPointOnCurveManip::MFnPointOnCurveManip |
( |
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:
-
MFnPointOnCurveManip::MFnPointOnCurveManip |
( |
const MDagPath & |
object, |
|
|
MStatus * |
ReturnStatus =
NULL |
|
|
) |
|
|
|
Constructor.
Class constructor that initializes the function set to the given
constant MDagPath object.
- Parameters:
-
[in] |
object |
The const MDagPath to attach the function set to |
[out] |
ReturnStatus |
The return status |
- Status Codes:
-
MFnPointOnCurveManip::MFnPointOnCurveManip |
( |
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
MFnPointOnCurveManip::type |
( |
|
) |
const [virtual] |
const char *
MFnPointOnCurveManip::className |
( |
|
) |
const [protected, virtual] |
Class name.
Return the class name : "MFnPointOnCurveManip"
Reimplemented from MFnManip3D.
MObject MFnPointOnCurveManip::create |
( |
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 "param"
- Parameters:
-
[out] |
ReturnStatus |
return status |
- Returns:
- Newly created PointOnCurveManip
- Status Codes:
-
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.
- Parameters:
-
[in] |
paramName |
the name that appears in the feedback line |
[out] |
ReturnStatus |
return status |
- Returns:
- Newly created PointOnCurveManip
- Status Codes:
-
Reimplemented from MFnDependencyNode.
MStatus
MFnPointOnCurveManip::connectToCurvePlug |
( |
MPlug & |
curvePlug |
) |
|
Connect to the curve plug. The data type corresponding to the
curvePlug is MFnData::kNurbsCurve.
- Parameters:
-
[in] |
curvePlug |
the curve plug |
- Returns:
-
MStatus
MFnPointOnCurveManip::connectToParamPlug |
( |
MPlug & |
paramPlug |
) |
|
Connect to the param plug. The data type corresponding to the
paramPlug is a double.
- Parameters:
-
[in] |
paramPlug |
the param plug |
- Returns:
-
MStatus
MFnPointOnCurveManip::setDrawCurve |
( |
bool |
state |
) |
|
Sets whether or not the curve is drawn.
- Parameters:
-
[in] |
state |
whether or not the curve should be drawn |
- Returns:
-
MStatus
MFnPointOnCurveManip::setParameter |
( |
double |
parameter |
) |
|
Sets the parameter.
- Parameters:
-
[in] |
parameter |
the parameter |
- Returns:
-
bool MFnPointOnCurveManip::isDrawCurveOn |
( |
MStatus * |
ReturnStatus =
NULL |
) |
const |
Returns whether or not the curve is drawn.
- Parameters:
-
[out] |
ReturnStatus |
return status |
- Returns:
-
- true the curve is being drawn
- false the curve is not being drawn
- Status Codes:
-
double MFnPointOnCurveManip::parameter |
( |
MStatus * |
ReturnStatus =
NULL |
) |
const |
Returns the parameter.
- Parameters:
-
[out] |
ReturnStatus |
return status |
- Returns:
- Parameter
- Status Codes:
-
MPoint
MFnPointOnCurveManip::curvePoint |
( |
MStatus * |
ReturnStatus =
NULL |
) |
const |
Returns the curve point.
- Parameters:
-
[out] |
ReturnStatus |
return status |
- Returns:
- The curve point
- Status Codes:
-
unsigned int
MFnPointOnCurveManip::curveIndex |
( |
MStatus * |
ReturnStatus =
NULL |
) |
const |
Returns the index of the curve. The data type corresponding to
this index is MFnData::kNurbsCurve.
- Parameters:
-
[out] |
ReturnStatus |
return status |
- Returns:
- Curve index
- Status Codes:
-
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.
- Parameters:
-
[out] |
ReturnStatus |
return status |
- Returns:
- Parameter index
- Status Codes:
-