meshReorder/meshReorderTool.h

meshReorder/meshReorderTool.h
#ifndef _MESH_REORDER_TOOL_H_
#define _MESH_REORDER_TOOL_H_
#include <maya/MString.h>
#include <maya/MItSelectionList.h>
#include <maya/MPxContextCommand.h>
#include <maya/MPxContext.h>
#include <maya/MPxSelectionContext.h>
#include <maya/MEvent.h>
#include <maya/M3dView.h>
#include <maya/MObjectArray.h>
#include <maya/MDagPathArray.h>
#include <maya/MIntArray.h>
#include "meshReorderCmd.h"
class meshReorderTool : public MPxSelectionContext
{
public:
meshReorderTool();
virtual ~meshReorderTool();
void* creator();
void toolOnSetup( MEvent & event );
private:
void reset();
MSelectionList fSelectionList;
MObjectArray fSelectedComponentSrc;
MDagPathArray fSelectedPathSrc;
MIntArray fSelectVtxSrc;
MString fCurrentHelpString;
int fSelectedFaceSrc;
int fNumSelectedPoints;
};
// Command to create contexts
class meshReorderContextCmd : public MPxContextCommand
{
public:
meshReorderContextCmd() {};
virtual MPxContext* makeObj();
static void* creator();
};
#endif
//-
// ==========================================================================
// Copyright 2015 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.
// ==========================================================================
//+