#include <MFnToggleManip.h>
The ToggleManip allows the user to switch between two modes or some on/off state. It is drawn as a circle with or without a dot. When the mode is on, the dot is drawn in the circle; when the mode is off, the circle is drawn without the dot. This manipulator generates a boolean value corresponding to whether or not the mode is on or off.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnToggleManip () |
Destructor. | |
MFnToggleManip () | |
Default constructor. | |
MFnToggleManip (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnToggleManip (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MObject | create (MStatus *ReturnStatus=NULL) |
MObject | create (const MString &manipName, const MString &toggleName, MStatus *ReturnStatus=NULL) |
MStatus | connectToTogglePlug (MPlug &togglePlug) |
MPoint | startPoint (MStatus *ReturnStatus=NULL) const |
MVector | direction (MStatus *ReturnStatus=NULL) const |
double | length (MStatus *ReturnStatus=NULL) const |
bool | toggle (MStatus *ReturnStatus=NULL) const |
unsigned int | startPointIndex (MStatus *ReturnStatus=NULL) const |
unsigned int | directionIndex (MStatus *ReturnStatus=NULL) const |
unsigned int | lengthIndex (MStatus *ReturnStatus=NULL) const |
unsigned int | toggleIndex (MStatus *ReturnStatus=NULL) const |
MStatus | setStartPoint (MPoint &startPoint) |
MStatus | setDirection (MVector &direction) |
MStatus | setLength (double length) |
MStatus | setToggle (bool toggle) |
MFnToggleManip (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnToggleManip::~MFnToggleManip | ( | ) | [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 MFnToggleManip::type | ( | ) | const [virtual] |
const char * MFnToggleManip::className | ( | ) | const [protected, virtual] |
Creates a new ToggleManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite ToggleManip.
The name that appears in the feedback line is "toggle"
[out] | ReturnStatus | return status |
MObject MFnToggleManip::create | ( | const MString & | manipName, | |
const MString & | toggleName, | |||
MStatus * | ReturnStatus = NULL | |||
) |
Creates a new ToggleManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite ToggleManip.
The name that appears in the feedback line is specified by the toggleName argument.
[in] | toggleName | the name that appears in the feedback line |
[out] | ReturnStatus | return status |
Reimplemented from MFnDependencyNode.
Connect to the toggle plug. The data type corresponding to the togglePlug is a boolean value.
[in] | togglePlug | the toggle plug |
Returns the start point.
[out] | ReturnStatus | return status |
Returns the direction.
[out] | ReturnStatus | return status |
double MFnToggleManip::length | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the length.
[out] | ReturnStatus | return status |
bool MFnToggleManip::toggle | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the toggle.
[out] | ReturnStatus | return status |
unsigned int MFnToggleManip::startPointIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the start point of the ToggleManip. The data type corresponding to this index is MFnNumericData::k3Double.
[out] | ReturnStatus | return status |
unsigned int MFnToggleManip::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 MFnToggleManip::lengthIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the length of the ToggleManip. The data type corresponding to this index is a double.
[out] | ReturnStatus | return status |
unsigned int MFnToggleManip::toggleIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the toggle of the ToggleManip. The data type corresponding to this index is a boolean.
[out] | ReturnStatus | return status |
Sets the start point of the ToggleManip.
[in] | startPoint | the start point of the ToggleManip |
Sets the direction of the ToggleManip.
[in] | direction | the direction of the ToggleManip |
MStatus MFnToggleManip::setLength | ( | double | length | ) |
Sets the length of the ToggleManip.
[in] | length | the length of the ToggleManip |
MStatus MFnToggleManip::setToggle | ( | bool | toggle | ) |
Sets the toggle of the ToggleManip.
[in] | toggle | the toggle of the ToggleManip |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |