MAnimCurveChange Class Reference
[OpenMayaAnim - API module for animation]

#include <MAnimCurveChange.h>

List of all members.


Detailed Description

Anim Curve Change Cache.

Caching of the undo and redo information in a Anim Curve Change cache is required primarily to support interactive editing of Anim Curves in the UI.

Anim Curve Change caches are used as persistent storage for information concerning changes to Anim Curve Nodes.

When invoked with a valid Anim Curve change parameter, the remove keyframe and add keyframe methods of the Anim Curve Function Set (MFnAnimCurve::remove() and MFnAnimCurve::addKeyframe(), respectively) cache the change information in the Anim Curve Change cache so that the caller can undo and redo the changes as required.

If the same cache is used for a series of Anim Curve edit operations, then the cache maintains an undo/redo queue which allows all changes in the series to be undone or redone. If selective undo/redo is required, then a different Anim Curve Change cache is required for each edit.

Use Anim Curve Change caches in conjunction with the Anim Curve Function Set (MFnAnimCurve) to perform undoable and redoable edits on Anim Curves.

Public Member Functions

 MAnimCurveChange (MStatus *ReturnStatus=NULL)
 ~MAnimCurveChange ()
MStatus undoIt ()
MStatus redoIt ()


Constructor & Destructor Documentation

MAnimCurveChange::MAnimCurveChange ( MStatus ReturnStatus = NULL  ) 

Class Constructor

Creates a Anim Curve Change cache.

Parameters:
[out] ReturnStatus Status Code (see below)
Status Codes:

MAnimCurveChange::~MAnimCurveChange (  ) 

Class Destructor

No additional action.


Member Function Documentation

MStatus MAnimCurveChange::undoIt (  ) 

Undoes all of the Anim Curve edits that have been given to this cache.

Returns:
Status Code (see below)
Status Codes:

MStatus MAnimCurveChange::redoIt (  ) 

Redoes all of the Anim Curve edits that this cache previously undid. It is only valid to invoke this method after an undo on this cache.

Returns:
Status Code (see below)
Status Codes:


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