MAnimCurveClipboardItem Class Reference
[OpenMayaAnim - API module for animation]

#include <MAnimCurveClipboardItem.h>
Collaboration diagram for MAnimCurveClipboardItem:
Collaboration graph
[legend]

List of all members.


Detailed Description

Wrapper for a clipboard item.

This class provides a wrapper for a clipboard item. Common convenience functions are available, and the implementation is compatible with the internal Maya implementation so that it can be passed efficiently between plugins and internal maya data structures.

Examples:

animFileUtils.cpp, animFileUtils.h, and animImportExport.h.


Public Member Functions

  MAnimCurveClipboardItem ()
  MAnimCurveClipboardItem (const MAnimCurveClipboardItem &r)
  ~MAnimCurveClipboardItem ()
const MObject  animCurve (MStatus *ReturnStatus=NULL) const
MStatus  getAddressingInfo (unsigned int &rowCount, unsigned int &childCount, unsigned int &attributeCount) const
const MString fullAttributeName (MStatus *ReturnStatus=NULL) const
const MString leafAttributeName (MStatus *ReturnStatus=NULL) const
const MString nodeName (MStatus *ReturnStatus=NULL) const
MFnAnimCurve::AnimCurveType  animCurveType (MStatus *ReturnStatus=NULL) const
MStatus  setAnimCurve (const MObject &curve)
MStatus  setAddressingInfo (unsigned int rowCount, unsigned int childCount, unsigned int attributeCount)
MStatus  setNameInfo (const MString &nodeName, const MString &fullName, const MString &leafName)
MAnimCurveClipboardItem operator= (const MAnimCurveClipboardItem &from)
bool  operator== (const MAnimCurveClipboardItem &rhs) const

Constructor & Destructor Documentation

MAnimCurveClipboardItem::MAnimCurveClipboardItem (  ) 

Default Constructor.

MAnimCurveClipboardItem::MAnimCurveClipboardItem ( const MAnimCurveClipboardItem r  ) 

Copy Constructor.

Parameters:
[in]  r  MAnimCurveClipboardItem to copy from.

MAnimCurveClipboardItem::~MAnimCurveClipboardItem (  ) 

Class Destructor


Member Function Documentation

const MObject MAnimCurveClipboardItem::animCurve ( MStatus ReturnStatus = NULL  )  const

Returns the animCurve held by this clipboard item as an MObject. Note that the returned MObject is const because you must not modify the animCurve referenced by this MObject.

Parameters:
[out]  ReturnStatus  Status Code (see below)
Returns:
An MObject for the animCurve. On failure, the MObject will be NULL. Be aware that the clipboard may be holding onto NULL animCurves (which are placeholder objects).
Status Codes:
Examples:

MStatus MAnimCurveClipboardItem::getAddressingInfo ( unsigned int &  rowCount,
unsigned int &  childCount,
unsigned int &  attributeCount  
) const

Returns the addressing information for this clipboard item,

Parameters:
[out]  rowCount  The clipboard item's row count
[out]  childCount  The clipboard item's child count
[out]  attributeCount  The clipboard item's attribute count
Returns:
  • MS::kSuccess the addressing info was returned successfully
  • MS::kFailure the addressing info was not returned successfully
Examples:

const MString & MAnimCurveClipboardItem::fullAttributeName ( MStatus ReturnStatus = NULL  )  const

Returns the attribute's full name

Parameters:
[out]  ReturnStatus  Status Code (see below)
Returns:
The attribute's full name
Status Codes:
Examples:

const MString & MAnimCurveClipboardItem::leafAttributeName ( MStatus ReturnStatus = NULL  )  const

Returns the attribute's leaf name

Parameters:
[out]  ReturnStatus  Status Code (see below)
Returns:
The attribute's leaf name.
Status Codes:
Examples:

const MString & MAnimCurveClipboardItem::nodeName ( MStatus ReturnStatus = NULL  )  const

Returns the node name

Parameters:
[out]  ReturnStatus  Status Code (see below)
Returns:
The node name.
Status Codes:
Examples:

MFnAnimCurve::AnimCurveType MAnimCurveClipboardItem::animCurveType ( MStatus ReturnStatus = NULL  )  const

Returns the animCurve type

Parameters:
[out]  ReturnStatus  Status Code (see below)
Returns:
The animCurve type.
Status Codes:
  • MS::kSuccess the animCurve type was returned successfully
  • MS::kFailure the animCurve type was not returned successfully
Examples:

MStatus MAnimCurveClipboardItem::setAnimCurve ( const MObject curve  ) 

Sets the clipboard item's animCurve

Parameters:
[in]  curve  The animCurve
Returns:
Examples:

MStatus MAnimCurveClipboardItem::setAddressingInfo ( unsigned int  rowCount,
unsigned int  childCount,
unsigned int  attributeCount  
)

Sets the clipboard item's addressing info

Parameters:
[in]  rowCount  The clipboard item's row count
[in]  childCount  The clipboard item's child count
[in]  attributeCount  The clipboard item's attribute count
Returns:
Examples:

MStatus MAnimCurveClipboardItem::setNameInfo ( const MString nodeName,
const MString fullName,
const MString leafName  
)

Sets the clipboard item's name info

Parameters:
[in]  nodeName  The clipboard item's node name
[in]  fullName  The clipboard item's full attribute name
[in]  leafName  The clipboard item's leaf attribute name
Returns:
Examples:

MAnimCurveClipboardItem & MAnimCurveClipboardItem::operator= ( const MAnimCurveClipboardItem from  ) 

Operator= overloading.

Parameters:
[in]  from  The MAnimCurveClipboardItem to be copied
Returns:
The copied MAnimCurveClipboardItem

bool MAnimCurveClipboardItem::operator== ( const MAnimCurveClipboardItem rhs  )  const

Compare the individual members for equality.

Parameters:
[in]  rhs  The MAnimCurveClipboardItem to be compared against.
Returns:

Autodesk® Maya® 2011 © 1997-2010 Autodesk, Inc. All rights reserved. Generated with doxygen 1.5.6