C++ API Reference
MFcurveEdit Class Reference

Class for describing fcurve edits. More...

#include <MFcurveEdit.h>

+ Inheritance diagram for MFcurveEdit:

Public Member Functions

MObject fcurve (MStatus *ReturnStatus=NULL) const
 Returns the fcurve node that was modified for this edit. More...
 
MString fcurveName (MStatus *ReturnStatus=NULL) const
 Returns the name of the fcurve that was modified in this edit. More...
 
EditType editType (MStatus *ReturnStatus=NULL) const override
 Virtual method used to return the edit type of this edit, which is MEdit::kFcurveEdit. More...
 
- Public Member Functions inherited from MEdit
MString getString (MStatus *ReturnStatus=NULL) const
 Returns the ASCII string related to the current edit. More...
 
bool isApplied (MStatus *ReturnStatus=NULL) const
 Query if we attempted to apply the edit. More...
 
bool isFailed (MStatus *ReturnStatus=NULL) const
 Query if the edit is applied successfully. More...
 
bool isTopLevel (MStatus *ReturnStatus=NULL) const
 Query if the edit was made from the top-level. More...
 
MStatus setApplied (bool isApplied)
 This method is obsolete. More...
 
MStatus setFailed (bool failed)
 This method is obsolete. More...
 
bool hasEditData () const
 Query if the edit has any user-defined editData associated with it. More...
 
bool matches (const MPxEditData *editData) const
 Query if the edit has user-defined editData associated with it that matches the given editData object. More...
 

Static Public Member Functions

static const char * className ()
 Returns the name of this class. More...
 
- Static Public Member Functions inherited from MEdit
static const char * className ()
 Returns the name of this class. More...
 

Friends

class MItEdits
 

Additional Inherited Members

- Public Types inherited from MEdit
enum  EditType {
  kNullEdit, kSetAttrEdit, kConnectDisconnectEdit, kAddRemoveAttrEdit,
  kParentEdit, kFcurveEdit
}
 Type of edit. More...
 

Detailed Description

Class for describing fcurve edits.

This class is used to return information about fcurve edits. Such edits occur when a file is referenced and changes are made to fcurves within the file reference. When a reference is unloaded, not all the queries on this method will work. In particular, the fcurve node itself cannot be returned since it no longer exists in Maya.

The MItEdits class may be used to iterate over all the edits on a given reference or assembly.

Member Function Documentation

OPENMAYA_MAJOR_NAMESPACE_OPEN MObject fcurve ( MStatus ReturnStatus = NULL) const

Returns the fcurve node that was modified for this edit.

The node can only be returned when the related reference is loaded. When the reference or assembly is unloaded, only the fcurve name string can be queried.

Parameters
[out]ReturnStatusStatus Code
Returns
The fcurve that was modified for this edit
Status Codes:
  • MS::kSuccess Node was successfully returned
  • MS::kFailure Related reference or assembly was not loaded.
MString fcurveName ( MStatus ReturnStatus = NULL) const

Returns the name of the fcurve that was modified in this edit.

Parameters
[out]ReturnStatusStatus Code
Returns
The name of the fcurve node that was modified in this edit
Status Codes:
  • MS::kSuccess Fcurve name was successfully returned
  • MS::kFailure Edit was not initialized successfully
MEdit::EditType editType ( MStatus ReturnStatus = NULL) const
overridevirtual

Virtual method used to return the edit type of this edit, which is MEdit::kFcurveEdit.

Parameters
[out]ReturnStatusreturn status
Returns
MEdit::kFcurveEdit
Status Codes:
  • MS::kSuccess Operation successful

Reimplemented from MEdit.

const char * className ( )
static

Returns the name of this class.

Returns
The name of this class.

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