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_PeltState.h 00014 * 00015 * COMMENTS: 00016 * This dummy state is required as we need the select buttons to be disabled 00017 * in this state as the type of selection is hard coded. This state also 00018 * renders the UV guide geometry. 00019 */ 00020 00021 #ifndef __MSS_PeltState_H__ 00022 #define __MSS_PeltState_H__ 00023 00024 #include "MSS_API.h" 00025 #include "MSS_SingleOpState.h" 00026 00027 class MSS_API MSS_PeltState : public MSS_SingleOpState 00028 { 00029 public: 00030 // Class constructor and destructor. 00031 MSS_PeltState(JEDI_View &view, PI_StateTemplate &templ, 00032 BM_SceneManager *scene, 00033 const char *cursor = BM_DEFAULT_CURSOR); 00034 virtual ~MSS_PeltState(); 00035 00036 // This constructor and parameter template list go into the 00037 // DM_StateTemplate for this state. 00038 static BM_State *ourConstructor(BM_View &view, PI_StateTemplate &templ, 00039 BM_SceneManager *scene); 00040 00041 // The name and type of this class: 00042 virtual const char *className() const { return "MSS_PeltState"; } 00043 00044 virtual void doRender(RE_Render *r, short x, short y, int ghost); 00045 virtual void restart(void); 00046 00047 protected: 00048 virtual void updateCurrentSelector( 00049 OP3D_InputSelector *current_selector, 00050 const PI_BindingSelectorInfo *info); 00051 virtual void invalidateGuideCache(); 00052 virtual bool needSelectMask(void) const; 00053 00054 int myMetaCacheCount; 00055 int myGuideCache; 00056 bool myEnableButtonFlag; 00057 00058 SOP_Node *myOriginalInputNode; 00059 }; 00060 00061 #endif
1.5.9