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 * Jeff Chadwick 00008 * Side Effects Software Inc 00009 * 123 Front Street West 00010 * Toronto, Ontario 00011 * Canada M5J 2M2 00012 * 416-504-9876 00013 * 00014 * NAME: MSS_PaintSlideModifierState.h 00015 * 00016 * COMMENTS: 00017 * A state for interactively painting geometry with a 00018 * muscle sliding modifier 00019 * 00020 */ 00021 00022 #ifndef __MSS_PaintSlideModifierState_H__ 00023 #define __MSS_PaintSlideModifierState_H__ 00024 00025 #include "MSS_API.h" 00026 #include "MSS_PaintBaseState.h" 00027 00028 class MSS_API MSS_PaintSlideModifierState : public MSS_PaintBaseState 00029 { 00030 public: 00031 // Class constructor and destructor 00032 MSS_PaintSlideModifierState(JEDI_View &view, PI_StateTemplate &templ, 00033 BM_SceneManager *scene, 00034 const char *cursor = BM_DEFAULT_CURSOR); 00035 00036 virtual ~MSS_PaintSlideModifierState(); 00037 00038 static BM_State *ourConstructor(BM_View &view, PI_StateTemplate &templ, 00039 BM_SceneManager *scene); 00040 static PRM_Template *getTemplateList(); 00041 00042 // Name and type of this class 00043 virtual const char *className() const; 00044 00045 protected: 00046 // Respond to keyboard events 00047 virtual int handleKeyTypeEvent(UI_Event *event, BM_Viewport &); 00048 00049 // Respond to changes in state parameters 00050 virtual int handleParameterEvent(UI_Event *event); 00051 00052 // Just override the getSelectionBoundingBox function for now 00053 // to get things compiling 00054 virtual bool getSelectionBoundingBox(DM_Viewport &vport, 00055 UT_BoundingBox &bbox); 00056 00057 // Return the appropriate brush operation 00058 virtual SOP_BrushOp menuToBrushOp(const UI_Value &menuvalue) const; 00059 00060 virtual bool forceVisualization() const; 00061 00062 // Left and right mouse button menu entries 00063 static PRM_ChoiceList theLMBMenu; 00064 static PRM_ChoiceList theMMBMenu; 00065 00066 }; 00067 00068 #endif
1.5.9