OrsStateSelector

Manages different object states

author:

Dragonfly Team

contact:

https://dragonfly.comet.tech

email:

support.dragonfly@comet.tech

organization:

Comet Technologies Canada Inc.

address:

460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7

copyright:

Comet Technologies Canada Inc. All rights reserved 2023.

date:

Jul 21 2015 18:00

dragonflyVersion:

3.1.0.286 (D)

UUID:

25877f90761b11e7b76e448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsStateSelector.OrsStateSelector.OrsStateSelector(*args, **kwargs)
getHandleActivation(handleName)

Gets the name of the (action) method of the given state activation

Parameters:

state (str) – name of the state

Return:

name of the method of the given state activation

Rtype:

str

handleTriggered(eventdata)

This method is called on every user input (mouse move, mouse click, key press, …) when the current state of the application is one of those declared by the plugin. This method can be used to perform specific tasks even if no action is currently in progress.

Parameters:

eventData (OrsEvent.eventdata.InputEventData) – the event data

setCursor(handleName)

Sets the current cursor

Parameters:

state (str) – state associated to the cursor to set

setHandleActivation(handleName, activationName)

Sets the name of the method of the given state activation

Parameters:
  • state (str) – name of the state. This state should be among those defined by the plugin.

  • activation (str) – name of the method of the given state activation