DiscManip function set.
The DiscManip allows the user to rotate a disc in order to specify a rotation about an axis. This manipulator generates a single floating point value corresponding to the rotation.
#include <MFnDiscManip.h>
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnDiscManip () |
Destructor. |
|
MFnDiscManip () | |
Default constructor. |
|
MFnDiscManip (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MFnDiscManip (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. |
|
MObject | create (MStatus *ReturnStatus=NULL) |
Creates a new DiscManip. |
|
MObject | create (const MString &manipName, const MString &angleName, MStatus *ReturnStatus=NULL) |
Creates a new DiscManip. |
|
MStatus | connectToAnglePlug (MPlug &anglePlug) |
Connect to the angle plug. |
|
MStatus | setCenterPoint (const MPoint ¢erPoint) |
Sets the center point of the DiscManip.
|
|
MStatus | setNormal (const MVector &normal) |
Sets the normal of the DiscManip. |
|
MStatus | setRadius (double radius) |
Sets the radius of the DiscManip. |
|
MStatus | setAngle (MAngle angle) |
Sets the angle of the DiscManip. |
|
unsigned int | centerIndex (MStatus *ReturnStatus=NULL) const |
Returns the index of the center of the
DiscManip. |
|
unsigned int | axisIndex (MStatus *ReturnStatus=NULL) const |
Returns the index of the axis of the
DiscManip. |
|
unsigned int | angleIndex (MStatus *ReturnStatus=NULL) const |
Returns the index of the angle. |
|
MFnDiscManip (const MObject &object, MStatus *ret=NULL) | |
Constructor. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
~MFnDiscManip | ( | ) | [virtual] |
Destructor.
Class destructor.
MFnDiscManip | ( | 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 |
MFnDiscManip | ( | 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 |
MFnDiscManip | ( | 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 type | ( | ) | const [virtual] |
const char * className | ( | ) | const [protected, virtual] |
Creates a new DiscManip.
This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite DiscManip.
The name that appears in the feedback line is "Disc"
[out] | ReturnStatus | return status |
MObject create | ( | const MString & | manipName, |
const MString & | angleName, | ||
MStatus * | ReturnStatus =
NULL |
||
) |
Creates a new DiscManip.
This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite DiscManip.
The name that appears in the feedback line is specified by the angleName argument.
[in] | manipName | Name of the manip for UI purposes. |
[in] | angleName | Label for the angle value which appears in the feedback line. |
[out] | ReturnStatus | Status code. |
Reimplemented from MFnDependencyNode.
Connect to the angle plug.
The data type corresponding to the anglePlug is a double. (Note that MFnUnitAttribute::kAngle is used to specify an angle attribute.)
[in] | anglePlug | the angle plug |
Sets the center point of the DiscManip.
[in] | centerPoint | the center point of the DiscManip |
Sets the normal of the DiscManip.
[in] | normal | the normal of the DiscManip |
MStatus setRadius | ( | double | radius | ) |
Sets the radius of the DiscManip.
[in] | radius | the radius of the DiscManip |
Sets the angle of the DiscManip.
[in] | angle | the angle of the DiscManip |
unsigned int centerIndex | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Returns the index of the center of the DiscManip.
The data type corresponding to this index is MFnNumericData::k3Double.
[out] | ReturnStatus | return status |
unsigned int axisIndex | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Returns the index of the axis of the DiscManip.
The data type corresponding to this index is MFnNumericData::k3Double.
[out] | ReturnStatus | return status |
unsigned int angleIndex | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Returns the index of the angle.
The data type corresponding to this index is a double.
[out] | ReturnStatus | return status |