#include <MFnDistanceManip.h>
The DistanceManip allows the user to manipulate a point that is constrained to move along a line. This manipulator generates a single floating point value. Scaling factors can be used to determine how int the manipulator appears when it is drawn.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnDistanceManip () |
Destructor. | |
MFnDistanceManip () | |
Default constructor. | |
MFnDistanceManip (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnDistanceManip (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MObject | create (MStatus *ReturnStatus=NULL) |
MObject | create (const MString &manipName, const MString &distanceName, MStatus *ReturnStatus=NULL) |
MStatus | connectToDistancePlug (MPlug &distancePlug) |
MStatus | setStartPoint (const MPoint &point) |
MStatus | setDirection (const MVector &vector) |
MStatus | setDrawStart (bool state) |
MStatus | setDrawLine (bool state) |
MStatus | setScalingFactor (double scalingFactor) |
bool | isDrawStartOn (MStatus *ReturnStatus=NULL) const |
bool | isDrawLineOn (MStatus *ReturnStatus=NULL) const |
double | scalingFactor (MStatus *ReturnStatus=NULL) const |
unsigned int | distanceIndex (MStatus *ReturnStatus=NULL) const |
unsigned int | directionIndex (MStatus *ReturnStatus=NULL) const |
unsigned int | startPointIndex (MStatus *ReturnStatus=NULL) const |
unsigned int | currentPointIndex (MStatus *ReturnStatus=NULL) const |
MFnDistanceManip (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnDistanceManip::~MFnDistanceManip | ( | ) | [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 MFnDistanceManip::type | ( | ) | const [virtual] |
const char * MFnDistanceManip::className | ( | ) | const [protected, virtual] |
Creates a new DistanceManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite DistanceManip.
The name that appears in the feedback line is "Distance"
[out] | ReturnStatus | return status |
MObject MFnDistanceManip::create | ( | const MString & | manipName, | |
const MString & | distanceName, | |||
MStatus * | ReturnStatus = NULL | |||
) |
Creates a new DistanceManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite DistanceManip.
The name that appears in the feedback line is specified by the distanceName argument.
[in] | distanceName | the name that appears in the feedback line |
[out] | ReturnStatus | return status |
Reimplemented from MFnDependencyNode.
Connect to the distance plug. The data type corresponding to the distancePlug is a double. (Note that MFnUnitAttribute::kDistance is used to specify a distance attribute.)
[in] | distancePlug | the distance plug |
Sets the start point of the DistanceManip.
[in] | startPoint | the start point of the DistanceManip |
Sets the direction of the DistanceManip.
[in] | direction | the direction of the DistanceManip |
MStatus MFnDistanceManip::setDrawStart | ( | bool | state | ) |
Sets whether or not to draw the start of the DistanceManip. The start of the DistanceManip is indicated by a grey dot. By default the start is not drawn.
[in] | state | whether or not the start should be drawn |
MStatus MFnDistanceManip::setDrawLine | ( | bool | state | ) |
Sets whether or not to draw a line from the start to the end of the DistanceManip. By default the line is drawn.
[in] | state | whether or not the line should be drawn |
MStatus MFnDistanceManip::setScalingFactor | ( | double | scalingFactor | ) |
Sets the scaling factor. The scaling factor is used to determine how int the DistanceManip appears when it is drawn. The default scaling factor is 1.0.
[in] | scalingFactor | the scaling factor |
bool MFnDistanceManip::isDrawStartOn | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns whether or not the start of the DistanceManip is being drawn. By default the start is not drawn.
[out] | ReturnStatus | return status |
bool MFnDistanceManip::isDrawLineOn | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns whether or not a line is being drawn from the start to the end of the DistanceManip. By default the line is drawn.
[out] | ReturnStatus | return status |
double MFnDistanceManip::scalingFactor | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the scaling factor. The scaling factor is used to determine how int the DistanceManip appears when it is drawn.
[out] | ReturnStatus | return status |
unsigned int MFnDistanceManip::distanceIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the distance. The data type corresponding to this index is a double.
[out] | ReturnStatus | return status |
unsigned int MFnDistanceManip::directionIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the direction. The data type corresponding to this index is MFnNumericData::k3Double.
[out] | ReturnStatus | return status |
unsigned int MFnDistanceManip::startPointIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the start point of the DistanceManip. The data type corresponding to this index is MFnNumericData::k3Double.
[out] | ReturnStatus | return status |
unsigned int MFnDistanceManip::currentPointIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the current point of the DistanceManip. The data type corresponding to this index is MFnNumericData::k3Double.
[out] | ReturnStatus | return status |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |