00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc 00008 * 477 Richmond Street West 00009 * Toronto, Ontario 00010 * Canada M5V 3E7 00011 * 416-504-9876 00012 * 00013 * NAME: MSS_UVCenterPivotState.h (MSS Library, C++) 00014 * 00015 * COMMENTS: 00016 * This state overrides the stopGenerating() method to set the pivot 00017 * the group centroid upon each new selection 00018 */ 00019 00020 #ifndef __MSS_UVCenterPivotState_H__ 00021 #define __MSS_UVCenterPivotState_H__ 00022 00023 #include "MSS_API.h" 00024 #include <UT/UT_PtrArray.h> 00025 #include <UT/UT_String.h> 00026 #include <UI/UI_Value.h> 00027 #include <BM/BM_ResourceManager.h> 00028 #include <OP3D/OP3D_InputSelector.h> 00029 #include <JEDI/JEDI_View.h> 00030 #include "MSS_UVViewportState.h" 00031 00032 class UT_String; 00033 class PRM_Template; 00034 class DM_Workbench; 00035 class OP3D_View; 00036 00037 class MSS_API MSS_UVCenterPivotState : public MSS_UVViewportState 00038 { 00039 public: 00040 // Class constructor and destructor. 00041 MSS_UVCenterPivotState(JEDI_View &view, PI_StateTemplate &templ, 00042 BM_SceneManager *scene, 00043 const char *cursor = BM_DEFAULT_CURSOR) 00044 : MSS_UVViewportState(view, templ, scene, cursor) {} 00045 virtual ~MSS_UVCenterPivotState(void) {} 00046 00047 // This constructor and parameter template list go into the 00048 // DM_StateTemplate for this state. 00049 static BM_State *ourConstructor(BM_View &view, PI_StateTemplate &templ, 00050 BM_SceneManager *scene); 00051 static PRM_Template *ourTemplateList; 00052 00053 // The name and type of this class: 00054 virtual const char *className() const { return "MSS_UVCenterPivotState"; } 00055 00056 virtual void stopGenerating(); 00057 00058 private: 00059 }; 00060 00061 #endif
1.5.9