MPxPolyTweakUVCommand Class Reference
[OpenMaya - API module for common classesProxy classes]

#include <MPxPolyTweakUVCommand.h>

Inheritance diagram for MPxPolyTweakUVCommand:

Inheritance graph
[legend]
Collaboration diagram for MPxPolyTweakUVCommand:

Collaboration graph
[legend]

List of all members.


Detailed Description

Base class used for moving polygon UV's.

This is the base class for UV editing commands on polygonal objects.

The purpose of this command class is to simplify the process of moving UVs on a polygonal object. The use is only required to provide the new positions of the UVs that have been modified.

Examples:

flipUVCmd.h.


Public Member Functions

 MPxPolyTweakUVCommand ()
virtual ~MPxPolyTweakUVCommand ()
virtual MStatus parseSyntax (MArgDatabase &argData)
virtual MStatus getTweakedUVs (const MObject &mesh, MIntArray &uvList, MFloatArray &uPos, MFloatArray &vPos)

Static Public Member Functions

static MSyntax newSyntax ()

Constructor & Destructor Documentation

MPxPolyTweakUVCommand::MPxPolyTweakUVCommand (  ) 

Class constructor.

MPxPolyTweakUVCommand::~MPxPolyTweakUVCommand (  )  [virtual]

Class destructor.


Member Function Documentation

MStatus MPxPolyTweakUVCommand::parseSyntax ( MArgDatabase argData  )  [virtual]

This method parses the additionnal flags before the command is executed.

Returns:
Examples:

MStatus MPxPolyTweakUVCommand::getTweakedUVs ( const MObject mesh,
MIntArray uvList,
MFloatArray uPos,
MFloatArray vPos 
) [virtual]

This computes and returns modified UVs.

Parameters:
[in] mesh The mesh object to be modified
[in] uvList The list of UV Ids selected by the user. The method is allowed to change uvList on output.
[out] uPos The new u values corresponding to the indices listed in uvList.
[out] vPos The new v values corresponding to the indices listed in uvList.
Returns:
Examples:

MSyntax MPxPolyTweakUVCommand::newSyntax (  )  [static]

This method creates and returns an MSyntax object required for the poly tweak UV proxy command.

Examples:


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