Public Member Functions | Static Public Member Functions

MPxAttributePatternFactory Class Reference

Search for all occurrences

Detailed Description

Base class for user-defined attribute pattern factories.

MPxAttributePatternFactory is the parent class of all user defined attribute pattern factories.

This class can be used to implement new kinds of attribute pattern factories within Maya that behave in a similar manner to the attribute pattern factories included in Maya.

#include <MPxAttributePatternFactory.h>

List of all members.

Public Member Functions

  MPxAttributePatternFactory ()
  Class constructor.
virtual  ~MPxAttributePatternFactory ()
  Class destructor.
virtual MStatus  createPatternsFromString (const MString &patternString, MAttributePatternArray &createdPatterns) const =0
  Call this to define a new attribute pattern using the pattern factory format definition passed in through the string parameter.
virtual MStatus  createPatternsFromFile (const MString &patternFile, MAttributePatternArray &createdPatterns) const =0
  Call this to define a new attribute pattern using the pattern factory format definition passed in through the contents of the file in the parameter.
virtual MString  name () const =0
  Return the name of the pattern factory.

Static Public Member Functions

static const char *  className ()
  Returns the name of this class.

Member Function Documentation

MStatus createPatternsFromString ( const MString patternString,
MAttributePatternArray createdPatterns 
) const [pure virtual]

Call this to define a new attribute pattern using the pattern factory format definition passed in through the string parameter.

No default implementation is available.

Parameters:
[in] patternString The pattern definition
[out] createdPatterns List of attribute patterns created from the string
Returns:
MStatus createPatternsFromFile ( const MString patternPath,
MAttributePatternArray createdPatterns 
) const [pure virtual]

Call this to define a new attribute pattern using the pattern factory format definition passed in through the contents of the file in the parameter.

No default implementation is available.

Parameters:
[in] patternPath The file name to be expanded
[out] createdPatterns List of attribute patterns created from the file
Returns:
MString name ( ) const [pure virtual]

Return the name of the pattern factory.

It's merely an identification for the commands operating on pattern factories and has no significance beyond that.

Returns:
Name of the plugin pattern factory
const char * className ( ) [static]

Returns the name of this class.

Returns:
The name of this class.

MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory
MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory MPxAttributePatternFactory