MTemplateCommand< CommandClass, CommandName, CommandSyntax > Class Template Reference
[OpenMaya - API module for common classes]

#include <MTemplateCommand.h>

Inheritance diagram for MTemplateCommand< CommandClass, CommandName, CommandSyntax >:

Inheritance graph
[legend]
Collaboration diagram for MTemplateCommand< CommandClass, CommandName, CommandSyntax >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class CommandClass, const char * CommandName, MCreateSyntaxFunction CommandSyntax>
class MTemplateCommand< CommandClass, CommandName, CommandSyntax >

Template class for undoable commands.

Helper template class which make writing undoable commands easier.

Parameters:
  • CommandClass : derived from MPxCommand and used in the creator() method
  • CommandName : name of the command
  • CommandSyntax : function pointer to syntax creator

Public Member Functions

virtual bool isUndoable () const
 Define the command as undoable.

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