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.
#include <MPxPolyTweakUVCommand.h>
Public Member Functions |
|
MPxPolyTweakUVCommand () | |
Class constructor. |
|
virtual | ~MPxPolyTweakUVCommand () |
Class destructor. |
|
virtual MStatus | parseSyntax (MArgDatabase &argData) |
This method parses the additional flags
before the command is executed. |
|
virtual MStatus | getTweakedUVs (const MObject &mesh, MIntArray &uvList, MFloatArray &uPos, MFloatArray &vPos) |
This computes and returns modified UVs.
|
|
Static Public Member Functions |
|
static MSyntax | newSyntax () |
This method creates and returns an MSyntax object required for the poly
tweak UV proxy command. |
MStatus parseSyntax | ( | MArgDatabase & | argData | ) | [virtual] |
This method parses the additional flags before the command is executed.
[in] | argData | Arguments passed to command. |
MStatus getTweakedUVs | ( | const MObject & | mesh, |
MIntArray & | uvList, | ||
MFloatArray & | uPos, | ||
MFloatArray & | vPos | ||
) | [virtual] |
This computes and returns modified UVs.
[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. |