C++ API Reference

Manipulator Data. More...

#include <MManipData.h>

Public Member Functions

 MManipData ()
 The default class constructor.
 
 ~MManipData ()
 The destructor.
 
 MManipData (const MManipData &)
 The copy constructor. More...
 
 MManipData (bool)
 Constructor for bool types. More...
 
 MManipData (short)
 Constructor for short types. More...
 
 MManipData (int)
 Constructor for int types. More...
 
 MManipData (unsigned int)
 Constructor for unsigned int types. More...
 
 MManipData (float)
 Constructor for float types. More...
 
 MManipData (double)
 Constructor for double types. More...
 
 MManipData (const MObject &)
 Constructor for MObject types created by MFnData, or classes derived from MFnData. More...
 
MManipDataoperator= (const MManipData &)
 The assignment operator. More...
 
MManipDataoperator= (bool)
 The assignment operator for bool types. More...
 
MManipDataoperator= (short)
 The assignment operator for short types. More...
 
MManipDataoperator= (int)
 The assignment operator for int types. More...
 
MManipDataoperator= (unsigned int)
 The assignment operator for unsigned int types. More...
 
MManipDataoperator= (float)
 The assignment operator for float types. More...
 
MManipDataoperator= (double)
 The assignment operator for double types. More...
 
MManipDataoperator= (const MObject &)
 The assignment operator for MObject types created by MFnData, or classes derived from MFnData. More...
 
bool isSimple () const
 Returns whether or not the manipulator data is simple or complex. More...
 
bool asBool () const
 Returns the manipulator data as a bool. More...
 
short asShort () const
 Returns the manipulator data as a short. More...
 
int asLong () const
 Returns the manipulator data as a int. More...
 
unsigned int asUnsigned () const
 Returns the manipulator data as an unsigned int. More...
 
float asFloat () const
 Returns the manipulator data as a float. More...
 
double asDouble () const
 Returns the manipulator data as a double. More...
 
MObject asMObject () const
 Returns the manipulator data as an MObject. More...
 

Static Public Member Functions

static const char * className ()
 Returns the name of this class. More...
 

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.

Examples:
componentScaleManip/componentScaleManip.cpp, footPrintManip/footPrintManip.cpp, rotateManip/rotateManip.cpp, surfaceBumpManip/surfaceBumpManip.cpp, and swissArmyManip/swissArmyManip.cpp.

Constructor & Destructor Documentation

MManipData ( const MManipData other)

The copy constructor.

Parameters
[in]otherObject to copy from.
MManipData ( bool  data)

Constructor for bool types.

Parameters
[in]dataInitial value.
MManipData ( short  data)

Constructor for short types.

Parameters
[in]dataInitial value.
MManipData ( int  data)

Constructor for int types.

Parameters
[in]dataInitial value.
MManipData ( unsigned int  data)

Constructor for unsigned int types.

Parameters
[in]dataInitial value.
MManipData ( float  data)

Constructor for float types.

Parameters
[in]dataInitial value.
MManipData ( double  data)

Constructor for double types.

Parameters
[in]dataInitial value.
MManipData ( const MObject data)

Constructor for MObject types created by MFnData, or classes derived from MFnData.

Parameters
[in]dataInitial value.

Member Function Documentation

MManipData & operator= ( const MManipData other)

The assignment operator.

Parameters
[in]otherObject to copy from.
MManipData & operator= ( bool  data)

The assignment operator for bool types.

Parameters
[in]datavalue to copy from.
MManipData & operator= ( short  data)

The assignment operator for short types.

Parameters
[in]datavalue to copy from.
MManipData & operator= ( int  data)

The assignment operator for int types.

Parameters
[in]datavalue to copy from.
MManipData & operator= ( unsigned int  data)

The assignment operator for unsigned int types.

Parameters
[in]datavalue to copy from.
MManipData & operator= ( float  data)

The assignment operator for float types.

Parameters
[in]datavalue to copy from.
MManipData & operator= ( double  data)

The assignment operator for double types.

Parameters
[in]datavalue to copy from.
MManipData & operator= ( const MObject data)

The assignment operator for MObject types created by MFnData, or classes derived from MFnData.

Parameters
[in]datavalue to copy from.
bool 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 asBool ( ) const

Returns the manipulator data as a bool.

Returns
The data as a bool
short asShort ( ) const

Returns the manipulator data as a short.

Returns
The data as a short
int asLong ( ) const

Returns the manipulator data as a int.

Returns
The data as a int
unsigned int asUnsigned ( ) const

Returns the manipulator data as an unsigned int.

Returns
The data as an unsigned int
float asFloat ( ) const

Returns the manipulator data as a float.

Returns
The data as a float
double asDouble ( ) const

Returns the manipulator data as a double.

Returns
The data as a double
MObject 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
const char * className ( )
static

Returns the name of this class.

Returns
Name of this class.

The documentation for this class was generated from the following files: