iblrig.gui.online_plots.StateMeshItem

- class iblrig.gui.online_plots.StateMeshItem[source]
A graphical item for displaying a color mesh that represents Bpod states.
This class extends the PyQtGraph’s PColorMeshItem to provide functionality for emitting signals when the mouse hovers over different states in the mesh.
- stateIndex
A signal that emits the index of the state currently hovered over.
- Type:
Signal
- hoverEvent(ev)[source]
Handle hover events over the mesh item.
This method emits the index of the state that the mouse is currently hovering over. If the mouse exits the item or hovers over an area that does not correspond to a state, it emits -1.
- Parameters:
ev (
QGraphicsSceneHoverEvent
) – The event object containing information about the hover event.- Parameters:
ev (QGraphicsSceneHoverEvent)
- stateIndex
str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name