#include <MFnPointOnSurfaceManip.h>


The PointOnSurfaceManip allows the user to manipulate a point constrained to move along a surface, in order to specify the (u, v) surface parameter values. This manipulator generates two floating point values corresponding to the surface (u, v) parameters.
Public Member Functions | |
| virtual MFn::Type | type () const |
| Function set type. | |
| virtual | ~MFnPointOnSurfaceManip () |
| Destructor. | |
| MFnPointOnSurfaceManip () | |
| Default constructor. | |
| MFnPointOnSurfaceManip (MObject &object, MStatus *ReturnStatus=NULL) | |
| Constructor. | |
| MFnPointOnSurfaceManip (const MDagPath &object, MStatus *ret=NULL) | |
| Constructor. | |
| MObject | create (MStatus *ReturnStatus=NULL) |
| MObject | create (const MString &manipName, const MString ¶mName, MStatus *ReturnStatus=NULL) |
| MStatus | connectToSurfacePlug (MPlug &surfacePlug) |
| MStatus | connectToParamPlug (MPlug ¶mPlug) |
| MStatus | setDrawSurface (bool state) |
| MStatus | setDrawArrows (bool state) |
| MStatus | setParameters (double u, double v) |
| MStatus | getParameters (double &u, double &v) |
| bool | isDrawSurfaceOn (MStatus *ReturnStatus=NULL) const |
| unsigned int | surfaceIndex (MStatus *ReturnStatus=NULL) const |
| unsigned int | paramIndex (MStatus *ReturnStatus=NULL) const |
| MFnPointOnSurfaceManip (const MObject &object, MStatus *ret=NULL) | |
| Constructor. | |
Protected Member Functions | |
| virtual const char * | className () const |
| Class name. | |
| MFnPointOnSurfaceManip::~MFnPointOnSurfaceManip | ( | ) | [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 |
| MFnPointOnSurfaceManip::MFnPointOnSurfaceManip | ( | 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 |
| MFnPointOnSurfaceManip::MFnPointOnSurfaceManip | ( | 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 MFnPointOnSurfaceManip::type | ( | ) | const [virtual] |
| const char * MFnPointOnSurfaceManip::className | ( | ) | const [protected, virtual] |
Creates a new PointOnSurfaceManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite PointOnSurfaceManip.
The name that appears in the feedback line is "param"
| [out] | ReturnStatus | return status |
| MObject MFnPointOnSurfaceManip::create | ( | const MString & | manipName, | |
| const MString & | paramName, | |||
| MStatus * | ReturnStatus = NULL | |||
| ) |
Creates a new PointOnSurfaceManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite PointOnSurfaceManip.
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 surface plug. The data type corresponding to the surfacePlug is MFnData::kNurbsSurface.
| [in] | surfacePlug | the surface plug |
Connect to the param plug. The data type corresponding to the paramPlug is MFnNumericData::k2Double.
| [in] | paramPlug | the param plug |
| MStatus MFnPointOnSurfaceManip::setDrawSurface | ( | bool | state | ) |
Sets whether or not the surface is drawn.
| [in] | state | whether or not the surface should be drawn |
| MStatus MFnPointOnSurfaceManip::setDrawArrows | ( | bool | state | ) |
Sets whether or not the arrows should be drawn.
| [in] | state | whether or not the arrows should be drawn |
| MStatus MFnPointOnSurfaceManip::setParameters | ( | double | u, | |
| double | v | |||
| ) |
Sets the u and v parameters.
| [in] | u | u parameter |
| [in] | v | v parameter |
| MStatus MFnPointOnSurfaceManip::getParameters | ( | double & | u, | |
| double & | v | |||
| ) |
Returns the parameter.
| [out] | u | u parameter |
| [out] | v | v parameter |
| bool MFnPointOnSurfaceManip::isDrawSurfaceOn | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns whether or not the surface is drawn.
| [out] | ReturnStatus | return status |
| unsigned int MFnPointOnSurfaceManip::surfaceIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the surface. The data type corresponding to this index is MFnData::kNurbsSurface.
| [out] | ReturnStatus | return status |
| unsigned int MFnPointOnSurfaceManip::paramIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the parameter of the PointOnSurfaceManip. The data type corresponding to this index is MFnNumericData::k2Double.
| [out] | ReturnStatus | return status |
| Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. |
Generated with
|