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 * 123 Front Street West, Suite 1401 00009 * Toronto, Ontario 00010 * Canada M5J 2M2 00011 * 416-504-9876 00012 * 00013 * NAME: MSS_PaintBaseState.h (MSS Library, C++) 00014 * 00015 * COMMENTS: This class provides brushing functionality of attributes. 00016 * It adds functionality to paint on the display sop even if it's 00017 * not our chosen one. 00018 */ 00019 00020 #ifndef __MSS_PAINTBASE_STATE_H__ 00021 #define __MSS_PAINTBASE_STATE_H__ 00022 00023 #include "MSS_API.h" 00024 #include "MSS_BrushBaseState.h" 00025 00026 class PRM_Template; 00027 00028 class MSS_API MSS_PaintBaseState : public MSS_BrushBaseState 00029 { 00030 public: 00031 virtual ~MSS_PaintBaseState(); 00032 00033 protected: 00034 MSS_PaintBaseState(JEDI_View &view, PI_StateTemplate &templ, 00035 BM_SceneManager *scene, const char *cursor); 00036 00037 virtual void resume(BM_SimpleState *state = 0); 00038 00039 virtual void updatePrompt(); 00040 00041 // Respond to changes in state parameters 00042 virtual int handleParameterEvent(UI_Event *event); 00043 00044 virtual void enableVisualization(); 00045 virtual void disableVisualization(); 00046 00047 // Generate the necessary nodes and connect them 00048 virtual bool generateAllNodes(); 00049 00050 static const PRM_Template &getPaintDisplayTemplate(); 00051 00052 private: // methods 00053 static void opNetHandler(OP_Node *caller, void *callee, 00054 OP_EventType event_type, void *data); 00055 00056 private: // data 00057 int myNetOpId; 00058 int myErrorMsgId; 00059 }; 00060 00061 #endif // __MSS_PAINTBASE_STATE_H__
1.5.9