9 #ifndef __houdini_HoudiniBrush_h__ 10 #define __houdini_HoudiniBrush_h__ 12 #include <MSS/MSS_SingleOpState.h> 27 public MSS_SingleOpState,
32 PI_StateTemplate &a_rTemplate,
33 BM_SceneManager *a_pScene,
34 const char *a_pCursor=BM_DEFAULT_CURSOR);
38 static int discoverBrushes(BM_ResourceManager *a_pManager);
41 static BM_State*
construct(BM_View &a_rView,PI_StateTemplate &a_rTemplate,
42 BM_SceneManager *a_pScene);
45 virtual const char*
className(
void)
const;
49 virtual int enter(BM_SimpleState::BM_EntryType a_how)
override;
52 virtual void exit(
void)
override;
56 virtual void interrupt(BM_SimpleState* a_pState=0)
override;
60 virtual void resume(BM_SimpleState* a_pState=0)
override;
74 virtual void handleGeoChangedEvent(UI_Event* a_pEvent)
override;
78 BM_Viewport& a_rViewport)
override;
80 virtual bool handleTransitoryKey(
const UI_Event& a_rEvent,
81 int a_hotkey_id)
override;
83 virtual void handleEvent(UI_Event* a_pEvent);
86 virtual void doRender(RE_Render* a_pRender,
int a_x,
int a_y,
87 int a_ghost)
override;
101 static String scanForBrushNames(
void);
103 void eventStart(
void);
104 void eventStop(
void);
105 void drawStart(
void);
108 void generateNoEvent(
void);
109 void printEvent(
const UI_Event* a_pEvent);
110 int handleAnyEvent(
const UI_Event* a_pEvent);
121 bool m_isBrushVisible;
virtual int handleKeyTypeEvent(int key, UI_Event *a_pEvent, BM_Viewport &a_rViewport) override
respond to keyboard events
Definition: HoudiniBrush.cc:714
virtual int handleMouseWheelEvent(UI_Event *a_pEvent) override
respond to mouse wheel events
Definition: HoudiniBrush.cc:678
static BM_State * construct(BM_View &a_rView, PI_StateTemplate &a_rTemplate, BM_SceneManager *a_pScene)
used by DM to create the state
Definition: HoudiniBrush.cc:188
virtual bool handleDoubleClickEvent(UI_Event *a_pEvent) override
respond to double mouse clicks (additional)
Definition: HoudiniBrush.cc:687
kernel
Definition: namespace.dox:3
virtual const char * className(void) const
name and type of this class
Definition: HoudiniBrush.cc:244
virtual int enter(BM_SimpleState::BM_EntryType a_how) override
called when the user enters the state
Definition: HoudiniBrush.cc:525
virtual int handleMouseEvent(UI_Event *a_pEvent) override
respond to mouse events
Definition: HoudiniBrush.cc:669
Automatically reference-counted string container.
Definition: String.h:128
virtual void exit(void) override
called when the user leaves the state
Definition: HoudiniBrush.cc:553
virtual void resume(BM_SimpleState *a_pState=0) override
called when the user returns to the state after leaving temporarily (mouse re-enters the viewport) ...
Definition: HoudiniBrush.cc:589
void updateBrush(int a_x, int a_y)
reposition the brush's guide geometry
Definition: HoudiniBrush.cc:1169
virtual void updatePrompt(void)
set the prompt's text
Definition: HoudiniBrush.cc:1144
virtual void doRender(RE_Render *a_pRender, int a_x, int a_y, int a_ghost) override
render the brush "cursor" geometry
Definition: HoudiniBrush.cc:1035
Houdini Model State node.
Definition: HoudiniBrush.h:26
virtual void interrupt(BM_SimpleState *a_pState=0) override
called when the user temporarily leaves the state (mouse leaves the viewport)
Definition: HoudiniBrush.cc:566