// // Author: Bruce Hickey // // Description: // // A context to allow reordering vertex/edge lists from one mesh to another // #ifndef _MESH_REORDER_TOOL_H_ #define _MESH_REORDER_TOOL_H_ #include #include #include #include #include #include #include #include #include #include #include class meshReorderTool : public MPxSelectionContext { public: meshReorderTool(); virtual ~meshReorderTool(); void* creator(); void toolOnSetup( MEvent & event ); MStatus doRelease( MEvent& ); private: MStatus helpStateHasChanged( MEvent&); void reset(); MSelectionList fSelectionList; MObjectArray fSelectedComponentSrc; MDagPathArray fSelectedPathSrc; MIntArray fSelectVtxSrc; MString fCurrentHelpString; int fSelectedFaceSrc; int fNumSelectedPoints; meshReorderCommand *fCmd; }; ////////////////////////////////////////////// // Command to create contexts ////////////////////////////////////////////// class meshReorderContextCmd : public MPxContextCommand { public: meshReorderContextCmd() {}; virtual MPxContext* makeObj(); static void* creator(); }; #endif //- // ========================================================================== // Copyright (C) Alias|Wavefront, a division of Silicon Graphics Limited. // All rights reserved. These coded instructions, statements and computer // programs contain unpublished information proprietary to Alias|Wavefront, // a division of Silicon Graphics Limited, which is protected by the // Canadian and US federal copyright law and may not be disclosed to third // parties or copied or duplicated, in whole or in part, without prior // written consent of Alias|Wavefront, a division of Silicon Graphics Limited // ========================================================================== //+