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_CombState.h 00015 * 00016 * COMMENTS: 00017 * This is the state for interactively combing normals with brushes. 00018 */ 00019 00020 #ifndef __MSS_CombState_H__ 00021 #define __MSS_CombState_H__ 00022 00023 #include "MSS_API.h" 00024 #include "MSS_BrushBaseState.h" 00025 00026 class MSS_API MSS_CombState : public MSS_BrushBaseState 00027 { 00028 public: 00029 // Class constructor and destructor. 00030 MSS_CombState(JEDI_View &view, PI_StateTemplate &templ, 00031 BM_SceneManager *scene, 00032 const char *cursor = BM_DEFAULT_CURSOR); 00033 virtual ~MSS_CombState(); 00034 00035 // This constructor and parameter template list go into the DM_StateTemplate 00036 // for this state. 00037 static BM_State *ourConstructor(BM_View &view, PI_StateTemplate &templ, 00038 BM_SceneManager *scene); 00039 static PRM_Template ourTemplateList[]; 00040 00041 // The name and type of this class: 00042 virtual const char *className() const; 00043 00044 virtual void doRender(RE_Render *r, short x, short y, int ghost); 00045 00046 protected: 00047 virtual int enter(BM_SimpleState::BM_EntryType how); 00048 virtual void exit (void); 00049 00050 // Respond to keyboard events. 00051 virtual int handleKeyTypeEvent(UI_Event *event, BM_Viewport &); 00052 00053 // Respond to changes in state parameters 00054 virtual int handleParameterEvent(UI_Event *event); 00055 00056 // Convert an op menu entry to a brush operation: 00057 virtual SOP_BrushOp menuToBrushOp(const UI_Value &menuvalue) const; 00058 }; 00059 00060 #endif
1.5.9