29 #ifndef __MSS_CustomBrushState_H__
30 #define __MSS_CustomBrushState_H__
38 namespace HDK_Sample {
43 BM_SceneManager *scene,
49 BM_SceneManager *scene);
86 bool myIsBrushVisible;
93 bool myResizingCursor;
94 short myLastCursorX, myLastCursorY;
95 short myResizeCursorX, myResizeCursorY;
void interrupt(BM_SimpleState *=0) override
static PRM_Template * ourTemplateList
parameters for this state
~MSS_CustomBrushState() override
int enter(BM_SimpleState::BM_EntryType how) override
called when the user enters the state
#define BM_DEFAULT_CURSOR
static BM_State * ourConstructor(BM_View &view, PI_StateTemplate &templ, BM_SceneManager *scene)
used by DM to create our state
MSS_CustomBrushState(JEDI_View &view, PI_StateTemplate &templ, BM_SceneManager *scene, const char *cursor=BM_DEFAULT_CURSOR)
void exit() override
called when the user leaves the state
virtual void updatePrompt()
sets the prompt's text
void updateBrush(int x, int y)
repositions the brush's guide geometry
void resume(BM_SimpleState *=0) override
int handleMouseEvent(UI_Event *event) override
Respond to mouse or keyboard events.
const char * className() const override
The name and type of this class:
void doRender(RE_Render *r, int x, int y, int ghost) override
Render the brush "cursor" geometry: