// // Author: Bruce Hickey // // Description: // // A context to allow remapping vertex/edge lists from one mesh to another // #ifndef _MESH_REMAP_TOOL_H_ #define _MESH_REMAP_TOOL_H_ #include #include #include #include #include #include #include #include #include #include #include class meshRemapTool : public MPxSelectionContext //class meshRemapTool : public MPxContext { public: meshRemapTool(); virtual ~meshRemapTool(); void* creator(); void toolOnSetup( MEvent & event ); MStatus doRelease( MEvent& ); private: void helpStateHasChanged(); void reset(); MSelectionList fSelectionList; MObjectArray fSelectedComponentSrc; MDagPathArray fSelectedPathSrc; MObjectArray fSelectedComponentDst; MDagPathArray fSelectedPathDst; MIntArray fSelectVtxSrc; MIntArray fSelectVtxDst; MString fCurrentHelpString; int fSelectedFaceSrc; int fSelectedFaceDst; int fNumSelectedPoints; meshRemapCommand *fCmd; }; ////////////////////////////////////////////// // Command to create contexts ////////////////////////////////////////////// class meshRemapContextCmd : public MPxContextCommand { public: meshRemapContextCmd() {}; 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 // ========================================================================== //+