Exemple #1
0
 def mousePressEvent(self, event):
     """ mousePressEvent(e: QMouseEvent) -> None
     Echo mouse event to SCIRun event system.
     
     """
     e = sr_py.PointerEvent()
     e.set_pointer_state(sr_py.PointerEvent.BUTTON_PRESS_E)
     self.pointer_event(e, event)
Exemple #2
0
 def mouseMoveEvent(self, event):
     """ mouseMoveEvent(e: QMouseEvent) -> None
     Echo mouse event to SCIRun event system.
     
     """
     e = sr_py.PointerEvent()
     #e.set_time(long(event.time))
     e.set_pointer_state(sr_py.PointerEvent.MOTION_E)
     self.pointer_event(e, event)
Exemple #3
0
 def mouseReleaseEvent(self, event):
     """ mouseReleaseEvent(e: QEvent) -> None
     Echo mouse event to SCIRun event system.
     
     """
     e = sr_py.PointerEvent()
     #e.set_time(long(event.time))
     e.set_pointer_state(sr_py.PointerEvent.BUTTON_RELEASE_E)
     self.pointer_event(e, event)