BaseToolDispatcher (object)¶
Members¶
Boolean | enabled | Handler is enabled. |
Key | enableKey | Enable key. |
HandlerExclusivity | handlerExclusivity | Handler exclusivity. |
Boolean | isIndependent | HandlerExclusivity local override. |
Boolean | takeAllEvents | It true, the handler takes all the events. |
Boolean | alwaysEnabled | It true, the handler takes all the events. |
Boolean | isOwnedByDispatcher | Checks if the handler is owned by a handlerDispatcher. In most of the cases, the dispatcher owns the handlers. However, it’s not true in DFG graphs where the handlers are owns by the nodes. |
Ref<HandlerDispatcher> | dispatcher | Reference to the dispatcher. |
Ref<BaseHandler>[String] | handlers | Dictionary of reference to all the registered handlers. |
BaseHandler[String] | ownedHandlers | Dictionary of owned handlers. |
Ref<BaseTool> | rayCastActiveTool | Current selected tool from rayCast. |
Ref<SelectionTool> | selectionTool | Reference to the SelectionTool. |
Methods¶
BaseToolDispatcher ( in BaseToolDispatcher other ) | |
BaseToolDispatcher () | |
activateHandlers ! ( io Key key, io Boolean switchDisableNone, io Boolean switchDisableOthers, io Boolean switchDisableAll, io Boolean isAccepted ) | |
BaseToolDispatcher | clone ? () |
Ref<Tool> | getActiveToolFromRayCast ! ( io MouseEvent event ) |
Ref<SelectionTool> | getSelectionTool ? () |
init ! ( in Ref<SelectionTool> selectionTool, in Key enableKey, in Boolean isOwnedByDispatcher ) | |
processMouseEvent ! ( io Event event ) | |
sceneChanged ! () | |
updateTargetSelection ! () | |
~BaseToolDispatcher () |
Methods in detail¶
BaseToolDispatcher ( in BaseToolDispatcher other )
copy constructor
default constructor
BaseToolDispatcher.activateHandlers! ( io Key key, io Boolean switchDisableNone, io Boolean switchDisableOthers, io Boolean switchDisableAll, io Boolean isAccepted )
Implementation of HandlerDispatcher.
BaseToolDispatcher BaseToolDispatcher.clone? ()
clone method
Ref<Tool> BaseToolDispatcher.getActiveToolFromRayCast! ( io MouseEvent event )
Implementation of ToolDispatcher. To override.
Ref<SelectionTool> BaseToolDispatcher.getSelectionTool? ()
Gets the selection dispatcher.
BaseToolDispatcher.init! ( in Ref<SelectionTool> selectionTool, in Key enableKey, in Boolean isOwnedByDispatcher )
Initializes a BaseToolDispatcher.
selectionTool | Reference to the SelectionTool. |
enableKey | Key that enables/disables the dispatcher. |
isOwnedByDispatcher | If true, owned by the dispatcher when registered. |
BaseToolDispatcher.processMouseEvent! ( io Event event )
Implementation of HandlerDispatcher.
BaseToolDispatcher.sceneChanged! ()
Implementation of HandlerDispatcher.
BaseToolDispatcher.updateTargetSelection! ()
Implementation of ToolDispatcher. To override.
~ BaseToolDispatcher ()
Destructor.