#include <MManipData.h>
List of all members.
Detailed Description
Manipulator Data.
This class encapulates manipulator data which is returned from the manipulator conversion functions. MManipData is used to represent data that is either simple or complex. Simple data is used to represent bool, short, int, unsigned int, float, and double types. Complex data is used to represent MObjects created by MFnData, or classes derived from MFnData.
Constructor & Destructor Documentation
MManipData::MManipData |
( |
|
) |
|
The default class constructor.
MManipData::~MManipData |
( |
|
) |
|
MManipData::MManipData |
( |
const MManipData & |
other |
) |
|
The copy constructor.
- Parameters:
-
[in] | other | Object to copy from. |
MManipData::MManipData |
( |
bool |
data |
) |
|
Constructor for bool types.
- Parameters:
-
MManipData::MManipData |
( |
short |
data |
) |
|
Constructor for short types.
- Parameters:
-
MManipData::MManipData |
( |
int |
data |
) |
|
Constructor for int types.
- Parameters:
-
MManipData::MManipData |
( |
unsigned int |
data |
) |
|
Constructor for unsigned int types.
- Parameters:
-
MManipData::MManipData |
( |
float |
data |
) |
|
Constructor for float types.
- Parameters:
-
MManipData::MManipData |
( |
double |
data |
) |
|
Constructor for double types.
- Parameters:
-
MManipData::MManipData |
( |
const MObject & |
data |
) |
|
Member Function Documentation
The assignment operator.
- Parameters:
-
[in] | other | Object to copy from. |
The assignment operator for bool types.
- Parameters:
-
[in] | data | value to copy from. |
The assignment operator for short types.
- Parameters:
-
[in] | data | value to copy from. |
The assignment operator for int types.
- Parameters:
-
[in] | data | value to copy from. |
MManipData & MManipData::operator= |
( |
unsigned int |
data |
) |
|
The assignment operator for unsigned int types.
- Parameters:
-
[in] | data | value to copy from. |
The assignment operator for float types.
- Parameters:
-
[in] | data | value to copy from. |
MManipData & MManipData::operator= |
( |
double |
data |
) |
|
The assignment operator for double types.
- Parameters:
-
[in] | data | value to copy from. |
The assignment operator for MObject types created by MFnData, or classes derived from MFnData.
- Parameters:
-
[in] | data | value to copy from. |
bool MManipData::isSimple |
( |
|
) |
const |
Returns whether or not the manipulator data is simple or complex. Simple data is used to represent bool, short, int, unsigned int, float, and double types. Complex data is used to represent MObjects created by MFnData, or classes derived from MFnData.
- Returns:
- Whether or not the manipulator data is simple or complex
bool MManipData::asBool |
( |
|
) |
const |
Returns the manipulator data as a bool.
- Returns:
- The data as a bool
short MManipData::asShort |
( |
|
) |
const |
Returns the manipulator data as a short.
- Returns:
- The data as a short
int MManipData::asLong |
( |
|
) |
const |
Returns the manipulator data as a int
- Returns:
- The data as a int
unsigned int MManipData::asUnsigned |
( |
|
) |
const |
Returns the manipulator data as an unsigned int.
- Returns:
- The data as an unsigned int
float MManipData::asFloat |
( |
|
) |
const |
Returns the manipulator data as a float.
- Returns:
- The data as a float
double MManipData::asDouble |
( |
|
) |
const |
Returns the manipulator data as a double.
- Returns:
- The data as a double
MObject MManipData::asMObject |
( |
|
) |
const |
Returns the manipulator data as an MObject. The MObjects returned from this method are created and used by MFnData or classes derived from MFnData.
- Returns:
- The data as an MObject