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 * Cristin Barghiel 00008 * Side Effects Software Inc 00009 * 477 Richmond Street West 00010 * Toronto, Ontario 00011 * Canada M5V 3E7 00012 * 416-504-9876 00013 * 00014 * NAME: MSS_PaintState.h 00015 * 00016 * COMMENTS: 00017 * This is the state for interactively painting geometry with brushes. 00018 */ 00019 00020 #ifndef __MSS_PaintState_H__ 00021 #define __MSS_PaintState_H__ 00022 00023 #include "MSS_API.h" 00024 #include <PRM/PRM_ChoiceList.h> 00025 #include "MSS_PaintBaseState.h" 00026 00027 class MSS_API MSS_PaintState : public MSS_PaintBaseState 00028 { 00029 public: 00030 // Class constructor and destructor. 00031 MSS_PaintState(JEDI_View &view, PI_StateTemplate &templ, 00032 BM_SceneManager *scene, 00033 const char *cursor = BM_DEFAULT_CURSOR); 00034 virtual ~MSS_PaintState(); 00035 00036 // This constructor and parameter template list go into the DM_StateTemplate 00037 // for this state. 00038 static BM_State *ourConstructor(BM_View &view, PI_StateTemplate &templ, 00039 BM_SceneManager *scene); 00040 static PRM_Template *getTemplateList(); 00041 00042 // The 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 // Convert an op menu entry to a brush operation: 00053 virtual SOP_BrushOp menuToBrushOp(const UI_Value &menuvalue) const; 00054 00055 virtual bool forceVisualization() const; 00056 00057 static PRM_ChoiceList theLMBMenu; 00058 static PRM_ChoiceList theMMBMenu; 00059 }; 00060 00061 #endif
1.5.9