Public Member Functions | Static Public Member Functions

MPxPolyTweakUVCommand Class Reference

This reference page is linked to from the following overview topics: Overview of example plug-ins, Example C++ plug-in descriptions.


Search for all occurrences

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.

#include <MPxPolyTweakUVCommand.h>

Inheritance diagram for MPxPolyTweakUVCommand:
Inheritance graph
[legend]

List of all members.

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.

Member Function Documentation

MStatus parseSyntax ( MArgDatabase argData) [virtual]

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

Parameters:
[in]argDataArguments passed to command.
Returns:
Examples:
flipUVCmd.h.
MStatus getTweakedUVs ( const MObject mesh,
MIntArray uvList,
MFloatArray uPos,
MFloatArray vPos 
) [virtual]

This computes and returns modified UVs.

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

MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand
MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand MPxPolyTweakUVCommand