meshReorder/meshRemapCmd.h

meshReorder/meshRemapCmd.h
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompanies this software in either electronic
// or hard copy form.
// ==========================================================================
//+
#ifndef _MESH_REMAP_CMD_H_
#define _MESH_REMAP_CMD_H_
#include <maya/MPxCommand.h>
#include <maya/MDagPath.h>
#include <maya/MSelectionList.h>
#include <maya/MIntArray.h>
#include <maya/MFloatPointArray.h>
#include <maya/MStringArray.h>
#include <maya/MFnMesh.h>
class MArgList;
// MAIN CLASS DECLARATION FOR THE MEL COMMAND:
class meshRemapCommand : public MPxCommand
{
private:
int fFaceIdxSrc;
int fFaceIdxDst;
MIntArray fFaceVtxSrc;
MIntArray fFaceVtxDst;
MDagPath fDagPathSrc;
MDagPath fDagPathDst;
// For undo
MFloatPointArray fVertices;
MIntArray fPolygonCounts;
MIntArray fPolygonConnects;
// For Colors undo
MStringArray fColorSetNames;
MColorArray *fColorArrays;
bool *fClampedArray;
// For UVs undo
MStringArray fUVSetNames;
MFloatArray *fUArrays;
MFloatArray *fVArrays;
MIntArray *fUVCountsArrays;
MIntArray *fUVIdsArrays;
MStatus parseArgs(const MArgList&);
public:
meshRemapCommand();
virtual ~meshRemapCommand();
static void* creator();
bool isUndoable() const { return true; }
void reset();
};
#endif