MTemplateContextCommand< ContextCommandName, ContextCommandClass, ContextClass > Class Template Reference
[OpenMayaUI - API module for user interface]

#include <MTemplateManipulator.h>
Inheritance diagram for MTemplateContextCommand< ContextCommandName, ContextCommandClass, ContextClass >:
Inheritance graph
[legend]
Collaboration diagram for MTemplateContextCommand< ContextCommandName, ContextCommandClass, ContextClass >:
Collaboration graph
[legend]

List of all members.


Detailed Description

template<const char * ContextCommandName, class ContextCommandClass, class ContextClass>
class MTemplateContextCommand< ContextCommandName, ContextCommandClass, ContextClass >

Template class for context commands.

Template helper to build command that is used to create context.

Parameters:
[in]  ContextCommandName  : string name of context command
[in]  ContextCommandClass  : context command derived from MPxContextCommand
[in]  ContextClass  : context derived from MPxSelectionContext
Examples:

lineManipContainer.cpp, and squareScaleManipContext.cpp.


Public Member Functions

  MTemplateContextCommand ()
  Constructor.
virtual MPxContext makeObj ()
  Command function for make the context.

Static Public Member Functions

static void *  creator ()
  Creator of the context command.
static MStatus  registerContextCommand (MObject obj)
static MStatus  deregisterContextCommand (MObject obj)

Member Function Documentation

template<const char * ContextCommandName, class ContextCommandClass, class ContextClass>
static MStatus MTemplateContextCommand< ContextCommandName, ContextCommandClass, ContextClass >::registerContextCommand ( MObject  obj  )  [inline, static]

Plug-in registration method.

Parameters:
[in]  obj  plugin object taken from the initializePlugin() entry point.

template<const char * ContextCommandName, class ContextCommandClass, class ContextClass>
static MStatus MTemplateContextCommand< ContextCommandName, ContextCommandClass, ContextClass >::deregisterContextCommand ( MObject  obj  )  [inline, static]

Plug-in deregistration method.

Parameters:
[in]  obj  plugin object taken from the initializePlugin() entry point.

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