HDK
|
#include <DM_MouseHook.h>
Public Member Functions | |
DM_MouseEventHook (DM_VPortAgent &vport, DM_ViewportType view_mask) | |
virtual | ~DM_MouseEventHook () |
virtual bool | handleMouseEvent (const DM_MouseHookData &hook_data, UI_Event *event)=0 |
Method called to handle a mouse motion or button event. More... | |
virtual bool | handleMouseWheelEvent (const DM_MouseHookData &hook_data, UI_Event *event)=0 |
Method called to handle a mouse wheel scroll event. More... | |
virtual bool | handleDoubleClickEvent (const DM_MouseHookData &hook_data, UI_Event *event)=0 |
Method called to handle a mouse button double click event. More... | |
virtual bool | allowRMBMenu (const DM_MouseHookData &, UI_Event *) |
Method called to determine whether to allow a RMB menu popup. More... | |
DM_VPortAgent & | viewport () const |
Viewport this scene render is attached to. More... | |
DM_ViewportType | getViewportMask () const |
Mouse event hook instance, which does the actual handling for a viewport.
Allocated by the DM_MouseHook factory object.
Definition at line 34 of file DM_MouseHook.h.
DM_MouseEventHook::DM_MouseEventHook | ( | DM_VPortAgent & | vport, |
DM_ViewportType | view_mask | ||
) |
A mouse event hook has a parent viewport and a view type mask which determines which viewport types it will process mouse events within (eg. perspective, ortho, UV, all).
|
virtual |
|
inlinevirtual |
Method called to determine whether to allow a RMB menu popup.
This method is called to determine if Houdini is allowed to open a RMB menu on a particular mouse event. It is called in descending order of priority with the RMB menu event allowed only if all hooks allow it.
Definition at line 74 of file DM_MouseHook.h.
|
inline |
Definition at line 80 of file DM_MouseHook.h.
|
pure virtual |
Method called to handle a mouse button double click event.
This method is called to handle a mouse double click event. It should return true when it handles the event to prevent any further code from processing it.
|
pure virtual |
Method called to handle a mouse motion or button event.
This method is called to handle a regular mouse event. It should return true when it handles the event to prevent any further code from processing it.
|
pure virtual |
Method called to handle a mouse wheel scroll event.
This method is called to handle a mouse wheel scroll event. It should return true when it handles the event to prevent any further code from processing it.
|
inline |
Viewport this scene render is attached to.
Definition at line 79 of file DM_MouseHook.h.