MPxAttributePatternFactory Class Reference

#include <MPxAttributePatternFactory.h>

Class 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.

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. More...
 
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. More...
 
virtual MString name () const =0
 Return the name of the pattern factory. More...
 

Static Public Member Functions

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

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]patternStringThe pattern definition
[out]createdPatternsList of attribute patterns created from the string
Returns
  • MS::kFailure Patterns could not be created.
  • MS::kSuccess Patterns were successfully created.
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]patternPathThe file name to be expanded
[out]createdPatternsList of attribute patterns created from the file
Returns
  • MS::kFailure Patterns could not be created.
  • MS::kSuccess Patterns were successfully created.
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.

The documentation for this class was generated from the following files:
  • MPxAttributePatternFactory.h
  • MPxAttributePatternFactory.cpp