
    +jvj              	       D   d Z 	 ddlZej        j        Zn# e$ r Y nw xY wdZ	 ddlZej        j        Zn# e$ r Y nw xY wddlmZ ddl	m
Z
 e{	 ddlZdZns# e$ rk 	 ddlZdZn`# e$ rX 	 ddlZdZnM# e$ rE 	 ddlZd	Zn:# e$ r2 	 ddlZd
Zn'# e$ r 	 ddlZdZn# e$ r  ed          w xY wY nw xY wY nw xY wY nw xY wY nw xY wY nw xY wedk    r*edv redk    rnedv redk    rn edez   dz   ez             edk    rJedk    rddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z  ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ nedk    rJedk    rddl%mZ ddl&mZ ddl&mZ ddl&mZ ddl&mZ ddl'mZ ddlm Z  ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ nGedk    rIedk    rddl(m)Z) ddl*mZ ddl*mZ ddl*mZ ddl*mZ ddl+mZ ddlm Z  ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ ned	k    rIedk    rddl,m)Z) ddl-mZ ddl-mZ ddl-mZ ddl-mZ ddl.mZ ddlm Z  ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ ned
k    rCedk    rddl/m)Z) ddl0mZ ddl0mZ ddl0mZ ddl0mZ ddlm Z  ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ n`edk    rCedk    rddl1m)Z) ddl2mZ ddl2mZ ddl2mZ ddl2mZ ddlm Z  ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ n ed e3e          z             edk    reZ4n edk    re)Z4nedk    reZ4n ed ez             edk    rhe j5        Z5e j6        Z6e j7        Z7e j8        Z8e j9        Z9ej:        Z;e$j<        Z=	 e j>        Z>e j?        Z?e j@        Z@n4# eA$ r e jB        Z>e jC        Z?e jD        Z@Y nw xY we xZ5xZ>xZ?xZ6xZ@xZ7xZ8Z9eZ;e$Z=ed!v re>jE        ZFne>jF        ZFd" ZG G d# d$e4          ZHd% ZId&ZJi e9jK        d'e9jL        d(e9jM        d(e9jN        d)e9jO        d)e9jP        d*e9jQ        d+e9jR        d,e9jS        d-e9jT        d.e9jU        d/e9jV        d0e9jW        d1e9jX        d2e9jY        d3e9jZ        d4e9j[        d5i e9j\        d6e9j]        d7e9j^        d8e9j_        d9e9j`        d:e9ja        d;e9jb        d<e9jc        d=e9jd        d>e9je        d?e9jf        d@e9jg        dAe9jh        dBe9ji        dCe9jj        dDe9jk        dEe9jl        dFi e9jm        dGe9jn        dHe9jo        dIe9jp        dJe9jq        dKe9jr        dLe9js        dMe9jt        dNe9ju        dOe9jv        dPe9jw        dQe9jx        dRe9jy        dSe9jz        dTe9j{        dUe9j|        dVe9j}        dWi e9j~        dXe9j        dYe9j        dZe9j        d[e9j        d\e9j        d]e9j        d^e9j        d_e9j        d`e9j        dae9j        dbe9j        dce9j        dde9j        dee9j        dfe9j        dge9j        dhi e9j        die9j        dje9j        dke9j        dle9j        dme9j        dne9j        doe9j        dpe9j        dqe9j        dre9j        dse9j        dte9j        due9j        dve9j        dwe9j        dxe9j        dye9j        dze9j        d{e9j        d|e9j        d}iZed~k    r ee            eI             dS dS )u[  
A simple VTK widget for PyQt or PySide.
See http://www.trolltech.com for Qt documentation,
http://www.riverbankcomputing.co.uk for PyQt, and
http://pyside.github.io for PySide.

This class is based on the vtkGenericRenderWindowInteractor and is
therefore fairly powerful.  It should also play nicely with the
vtk3DWidget code.

Created by Prabhu Ramachandran, May 2002
Based on David Gobbi's QVTKRenderWidget.py

Changes by Gerard Vermeulen Feb. 2003
 Win32 support.

Changes by Gerard Vermeulen, May 2003
 Bug fixes and better integration with the Qt framework.

Changes by Phil Thompson, Nov. 2006
 Ported to PyQt v4.
 Added support for wheel events.

Changes by Phil Thompson, Oct. 2007
 Bug fixes.

Changes by Phil Thompson, Mar. 2008
 Added cursor support.

Changes by Rodrigo Mologni, Sep. 2013 (Credit to Daniele Esposti)
 Bug fix to PySide: Converts PyCObject to void pointer.

Changes by Greg Schussman, Aug. 2014
 The keyPressEvent function now passes keysym instead of None.

Changes by Alex Tsui, Apr. 2015
 Port from PyQt4 to PyQt5.

Changes by Fabian Wenzel, Jan. 2016
 Support for Python3

Changes by Tobias Hänel, Sep. 2018
 Support for PySide2

Changes by Ruben de Bruin, Aug. 2019
 Fixes to the keyPressEvent function

Changes by Chen Jintao, Aug. 2021
 Support for PySide6

Changes by Eric Larson and Guillaume Favelier, Apr. 2022
 Support for PyQt6
    NQWidget)vtkRenderWindow) vtkGenericRenderWindowInteractorPySide6PyQt6PyQt5PySide2PyQt4PySidez!Cannot load either PyQt or PySide)r   r   QOpenGLWidget)r   r	   r
   r   	QGLWidgetzCannot load z from )r   )r   )QSizePolicy)QApplication)QMainWindow)QCursor)Qt)QTimer)QObjectQSize)QEvent)r   zUnknown PyQt implementation z2Unknown base class for QVTKRenderWindowInteractor )r
   r   c                    	 |                                                                  |                                                                  fS # t          $ r+ |                                 |                                 fcY S w xY wN)positionxyAttributeError)evs    b/DATA/AppData/hermes/venv/lib/python3.11/site-packages/vtkmodules/qt/QVTKRenderWindowInteractor.py_get_event_posr       sq    {{}}  "++--//"3"333   ttvvrttvv~s   AA 2BBc                   Z   e Zd ZdZej        ej        ej        ej        ej        ej        ej        ej	        ej
        ej        ej        dZd!dZd Zd Zd Zd Zd	 Zd
 Zd Zd Zd Zd Zd Zd Zd Zd Zd Zed             Z	 d"dZ d Z!d Z"d Z#d Z$d Z%d Z&d Z'd Z(d Z)d  Z*dS )#QVTKRenderWindowInteractora   A QVTKRenderWindowInteractor for Python and Qt.  Uses a
    vtkGenericRenderWindowInteractor to handle the interactions.  Use
    GetRenderWindow() to get the vtkRenderWindow.  Create with the
    keyword stereo=1 in order to generate a stereo-capable window.

    The user interface is summarized in vtkInteractorStyle.h:

    - Keypress j / Keypress t: toggle between joystick (position
    sensitive) and trackball (motion sensitive) styles. In joystick
    style, motion occurs continuously as long as a mouse button is
    pressed. In trackball style, motion occurs when the mouse button
    is pressed and the mouse pointer moves.

    - Keypress c / Keypress o: toggle between camera and object
    (actor) modes. In camera mode, mouse events affect the camera
    position and focal point. In object mode, mouse events affect
    the actor that is under the mouse pointer.

    - Button 1: rotate the camera around its focal point (if camera
    mode) or rotate the actor around its origin (if actor mode). The
    rotation is in the direction defined from the center of the
    renderer's viewport towards the mouse position. In joystick mode,
    the magnitude of the rotation is determined by the distance the
    mouse is from the center of the render window.

    - Button 2: pan the camera (if camera mode) or translate the actor
    (if object mode). In joystick mode, the direction of pan or
    translation is from the center of the viewport towards the mouse
    position. In trackball mode, the direction of motion is the
    direction the mouse moves. (Note: with 2-button mice, pan is
    defined as <Shift>-Button 1.)

    - Button 3: zoom the camera (if camera mode) or scale the actor
    (if object mode). Zoom in/increase scale if the mouse position is
    in the top half of the viewport; zoom out/decrease scale if the
    mouse position is in the bottom half. In joystick mode, the amount
    of zoom is controlled by the distance of the mouse pointer from
    the horizontal centerline of the window.

    - Keypress 3: toggle the render window into and out of stereo
    mode.  By default, red-blue stereo pairs are created. Some systems
    support Crystal Eyes LCD stereo glasses; you have to invoke
    SetStereoTypeToCrystalEyes() on the rendering window.  Note: to
    use stereo you also need to pass a stereo=1 keyword argument to
    the constructor.

    - Keypress e: exit the application.

    - Keypress f: fly to the picked point

    - Keypress p: perform a pick operation. The render window interactor
    has an internal instance of vtkCellPicker that it uses to pick.

    - Keypress r: reset the camera view along the current view
    direction. Centers the actors and moves the camera so that all actors
    are visible.

    - Keypress s: modify the representation of all actors so that they
    are surfaces.

    - Keypress u: invoke the user-defined function. Typically, this
    keypress will bring up an interactor that you can type commands in.

    - Keypress w: modify the representation of all actors so that they
    are wireframe.
    )r                           	   
   Nc                 T   t           j        | _        d| _        d| _        t
          j        | _        t           j        | _        d| _	        	 t          |d                   }n# t          $ r d}Y nw xY w	 |d         }n# t          $ r d }Y nw xY wt          dk    r=d|v r	|d         }nt          j        }t          j        | ||t          j        z             nAt          dk    rt%          j        | |           n t          dk    rt'          j        | |           |r|| _        nt+                      | _        |                                 }t/          |          j        d	k    rjdd
lm}m}m}	m}
 |
|j        _        |	g|j        _         |                    |          }||j!        _        |	|
g|j!        _         |!                    ||          }| j        "                    tG          tI          |                               |r2| j        %                                 | j        &                                 	 |d         | _'        nB# t          $ r5 tQ                      | _'        | j'        )                    | j                   Y nw xY w| *                    tV          j,                   | *                    tV          j-                   | .                    d           | /                    t`          j1                   | 2                    tg          th          j5        th          j5                             tm          |           | _7        | j7        j8        9                    | j:                   | j'        ;                    d| j<                   | j'        ;                    d| j=                   | j'        >                                ;                    d| j?                   | @                                r>| @                                jA        9                    | jB        t          jD                   d S d S )Nr   stereoFrwr   wflagsr   r   	PyCapsule)	pythonapic_void_p	py_objectc_char_pirenTCreateTimerEventDestroyTimerEventCursorChangedEvent)EMouseButtonNoButton_ActiveButton"_QVTKRenderWindowInteractor__saveX"_QVTKRenderWindowInteractor__saveYKeyboardModifier
NoModifier*_QVTKRenderWindowInteractor__saveModifiers(_QVTKRenderWindowInteractor__saveButtons'_QVTKRenderWindowInteractor__wheelDeltaboolKeyErrorQVTKRWIBase
WindowTypeWidgetr   __init__MSWindowsOwnDCr   r   _RenderWindowr   winIdtype__name__ctypesr2   r3   r4   r5   PyCapsule_GetNamerestypeargtypesPyCapsule_GetPointerSetWindowInfostrintStereoCapableWindowOnSetStereoTypeToCrystalEyes_Irenr   SetRenderWindowsetAttributeWidgetAttributeWA_OpaquePaintEventWA_PaintOnScreensetMouseTrackingsetFocusPolicyFocusPolicy
WheelFocussetSizePolicyr   
SizePolicy	Expandingr   _Timertimeoutconnect
TimerEventAddObserverCreateTimerDestroyTimerGetRenderWindowr9   parent	destroyedcloseConnectionTypeDirectConnection)selfrn   kwr.   r/   r0   WIdr2   r3   r4   r5   names               r   rI   z#QVTKRenderWindowInteractor.__init__C  s   (1 /:(1
	"X,''FF 	 	 	FFF		DBB 	 	 	BBB	 )##2~~H#*T66J4M+MNNNNK''tV,,,,O++"4000 	3!#D!0!2!2Djjll99,,GGGGGGGGGGGG2:I'/4=;I'0..s33D6>I*27@(6KI*300d;;C((SXX777 	<4466699;;;	;FDJJ 	; 	; 	;9;;DJJ&&t'9:::::	;
 	/=>>>/:;;;d###K2333;z';Z=QRRSSSTll##DO444
143CDDD
2D4EFFF
""$$001E151H	J 	J 	J ;;== 	YKKMM#++DJ8WXXXXX	Y 	Ys6   
A   A/.A/3A< <B
B3I <J ?J c                     |dk    r
| j         fdS t          | j         |          rt          | j         |          S t          | j        j        dz   |z             )z?Makes the object behave like a vtkGenericRenderWindowInteractor__vtk__c                     | S r    )ts    r   <lambda>z8QVTKRenderWindowInteractor.__getattr__.<locals>.<lambda>  s         z has no attribute named )rY   hasattrgetattrr   	__class__rN   )rs   attrs     r   __getattr__z&QVTKRenderWindowInteractor.__getattr__  sm    9 J))))TZ&& 	54:t,,, !8,"-/3"4 5 5 5r}   c                 8    | j                                          dS )z=
        Call internal cleanup method on VTK objects
        N)rK   Finalizers   s    r   r   z#QVTKRenderWindowInteractor.Finalize  s     	##%%%%%r}   c                 :    | j                             d           d S )Nr,   )rf   startrs   objevts      r   rk   z&QVTKRenderWindowInteractor.CreateTimer  s    "r}   c                 8    | j                                          dS Nr#   )rf   stopr   s      r   rl   z'QVTKRenderWindowInteractor.DestroyTimer  s    qr}   c                 8    | j                                          d S r   )rY   ri   r   s    r   ri   z%QVTKRenderWindowInteractor.TimerEvent  s    
r}   c                 :    t          j        d| j                   dS )z>Called when the CursorChangedEvent fires on the render window.r   N)r   
singleShot
ShowCursorr   s      r   r9   z-QVTKRenderWindowInteractor.CursorChangedEvent  s    
 	!T_-----r}   c                 D    |                      t          j                   dS )zHides the cursor.N)	setCursorCursorShapeBlankCursorr   s    r   
HideCursorz%QVTKRenderWindowInteractor.HideCursor  s    {./////r}   c                     | j                                                                         }| j                            |t
          j                  }|                     |           dS )zShows the cursor.N)rY   rm   GetCurrentCursor_CURSOR_MAPgetr   ArrowCursorr   )rs   
vtk_cursor	qt_cursors      r   r   z%QVTKRenderWindowInteractor.ShowCursor  sT    Z//11BBDD
$(([5LMM	y!!!!!r}   c                 .    |                                   d S r   )r   )rs   r   s     r   
closeEventz%QVTKRenderWindowInteractor.closeEvent  s    r}   c                 "    t          dd          S )Ni  r   r   s    r   sizeHintz#QVTKRenderWindowInteractor.sizeHint  s    S#r}   c                     d S r   rz   r   s    r   paintEnginez&QVTKRenderWindowInteractor.paintEngine  s    tr}   c                 8    | j                                          d S r   )rY   Renderrs   r   s     r   
paintEventz%QVTKRenderWindowInteractor.paintEvent  s    
r}   c                 &   |                                  }t          t          ||                                 z                      }t          t          ||                                 z                      }| j                            t          t          d|z                                 t          j        | j        ||           | j	                            ||           | j	        
                                 |                                  d S )NH   )_getPixelRatiorV   roundwidthheightrK   SetDPIr   SetSizerY   ConfigureEventupdate)rs   r   scalewhs        r   resizeEventz&QVTKRenderWindowInteractor.resizeEvent  s    ##%%eDJJLL())**eDKKMM)**++!!#eBuHoo"6"6777 2Aq999
1a   
!!###r}   c                    	 |                                 d         }t          t          |                   }n# t          $ r d}d}Y nw xY w|3	 t          |                                         }n# t          $ r d}Y nw xY w|d}||fS )z Convert a Qt key into a char and a vtk keysym.

        This is essentially copied from the c++ implementation in
        GUISupport/Qt/QVTKInteractorAdapter.cxx.
        r    NNone)text_keysyms_for_asciiord
IndexError_keysymskeyrE   )rs   r   keyCharkeySyms       r   _GetKeyCharAndKeySymz/QVTKRenderWindowInteractor._GetKeyCharAndKeySym  s    	ggiilG'G5FF 	 	 	GFFF	
 >!"&&((+    >Fs!   47 AAA. .A=<A=c                    dx}}t          |d          rG|                                t          j        z  rd}|                                t          j        z  rd}n,| j        t          j        z  rd}| j        t          j        z  rd}||fS )NF	modifiersT)r~   r   r?   ShiftModifierControlModifierrA   rs   r   ctrlshifts       r   _GetCtrlShiftz(QVTKRenderWindowInteractor._GetCtrlShift  s    u2{## 		||~~ 0 >> ||~~ 0 @@ #&6&DD #&6&FF U{r}   c                  2   t           dv rt          j                    } t          j                    D ]A}|                                }|                    |           r|                                c S Bt          j                                                    S dS )N)r   r	   r   r   g      ?)	PyQtImplr   posr   screensgeometrycontainsdevicePixelRatioinstance)r   screenrects      r   r   z)QVTKRenderWindowInteractor._getPixelRatio  s    ???+--C&.00 5 5((==%% 5!22444445  (**;;=== 2r}   r   c           	         |                                  }| j                            t          t	          ||z                      t          t	          |                                 |z
  dz
  |z                      |||||           d S r   )r   rY   SetEventInformationrV   r   r   )	rs   r   r   r   r   r   repeatkeysumr   s	            r   _setEventInformationz/QVTKRenderWindowInteractor._setEventInformation  s    ##%%
&&s55>>':':'*5$++--/!2CU1J+K+K'L'L'+UC	I 	I 	I 	I 	Ir}   c           	          |                      |          \  }}|                     | j        | j        ||t	          d          dd            | j                                         d S Nr   )r   r   r=   r>   chrrY   
EnterEventr   s       r   
enterEventz%QVTKRenderWindowInteractor.enterEvent  g    ((,,e!!$,"&s1vvq$	@ 	@ 	@
r}   c           	          |                      |          \  }}|                     | j        | j        ||t	          d          dd            | j                                         d S r   )r   r   r=   r>   r   rY   
LeaveEventr   s       r   
leaveEventz%QVTKRenderWindowInteractor.leaveEvent%  r   r}   c           	      >   |                      |          \  }}d}|                                t          j        k    rd}t	          |          \  }}|                     ||||t          d          |d            |                                | _        | j        t          j
        k    r| j                                         d S | j        t          j        k    r| j                                         d S | j        t          k    r| j                                         d S d S )Nr   r#   )r   rM   	EventTypeMouseButtonDblClickr    r   r   buttonr<   r:   
LeftButtonrY   LeftButtonPressEventRightButtonRightButtonPressEventMiddleButtonMiddleButtonPressEvent)rs   r   r   r   r   r   r   s          r   mousePressEventz*QVTKRenderWindowInteractor.mousePressEvent+  s   ((,,e7799	555Fb!!1!!!Q"&s1vvvt	E 	E 	E  YY[[!777J++-----;#:::J,,.....<//J--///// 0/r}   c           	         |                      |          \  }}t          |          \  }}|                     ||||t          d          dd            | j        t
          j        k    r| j                                         d S | j        t
          j	        k    r| j        
                                 d S | j        t          k    r| j                                         d S d S r   )r   r    r   r   r<   r:   r   rY   LeftButtonReleaseEventr   RightButtonReleaseEventr   MiddleButtonReleaseEvent)rs   r   r   r   r   r   s         r   mouseReleaseEventz,QVTKRenderWindowInteractor.mouseReleaseEvent=  s    ((,,eb!!1!!!Q"&s1vvq$	@ 	@ 	@ !777J--/////;#:::J..00000<//J//11111 0/r}   c           	      \   |                                 | _        |                                | _        t	          |          \  }}|| _        || _        |                     |          \  }}|                     ||||t          d          dd            | j
                                         d S r   )r   rA   buttonsrB   r    r=   r>   r   r   r   rY   MouseMoveEvent)rs   r   r   r   r   r   s         r   mouseMoveEventz)QVTKRenderWindowInteractor.mouseMoveEventJ  s    !||~~ZZ\\b!!1((,,e!!!Q"&s1vvq$	@ 	@ 	@
!!#####r}   c           	         |                      |          \  }}|                     |          \  }}|                     | j        | j        |||d|           | j                                         | j                                         d S r   )r   r   r   r=   r>   rY   KeyPressEvent	CharEventrs   r   r   r   r   r   s         r   keyPressEventz(QVTKRenderWindowInteractor.keyPressEventV  s    //33V((,,e!!$,"&sAv	? 	? 	?
  """
r}   c           	          |                      |          \  }}|                     |          \  }}|                     | j        | j        |||d|           | j                                         d S r   )r   r   r   r=   r>   rY   KeyReleaseEventr   s         r   keyReleaseEventz*QVTKRenderWindowInteractor.keyReleaseEvent^  su    //33V((,,e!!$,"&sAv	? 	? 	?
""$$$$$r}   c                    t          |d          r#| xj        |                                z  c_        n4| xj        |                                                                z  c_        | j        dk    r"| j                                         d| _        d S | j        dk    r"| j                                         d| _        d S d S )Ndeltax   r   i)r~   rC   r   
angleDeltar   rY   MouseWheelForwardEventMouseWheelBackwardEventr   s     r   
wheelEventz%QVTKRenderWindowInteractor.wheelEvente  s    2w 	5+!2!2!4!44##J--/// !D$&&J..000 !D '&r}   c                     | j         S r   )rK   r   s    r   rm   z*QVTKRenderWindowInteractor.GetRenderWindowr  s    !!r}   c                 .    |                                   d S r   )r   r   s    r   r   z!QVTKRenderWindowInteractor.Renderu  s    r}   r   )r   N)+rN   
__module____qualname____doc__r   r   SizeBDiagCursorSizeFDiagCursorSizeVerCursorSizeHorCursorSizeAllCursorPointingHandCursorCrossCursorr   rI   r   r   rk   rl   ri   r9   r   r   r   r   r   r   r   r   r   staticmethodr   r   r   r   r   r   r   r   r   r  rm   r   rz   r}   r   r"   r"      s=       A AJ ##''''%%%*# KWY WY WY WYr5 5 5& & &         . . .0 0 0" " "            6      \  48I I I I          0 0 0$2 2 2
$ 
$ 
$  % % %" " "" " "    r}   r"   c                  B   ddl m}  ddlm}m}m} ddl}ddl}t          dg          }t                      }t          |          }|                    |           |                    d|fd            |            }|                                                    |            |             }	|	                    d            |            }
|
                    |	                                            |            }|                    |
           |                    |           |                                 |                                 |                                 	 |                                 dS # t0          $ r |                                 Y dS w xY w)	z@A simple example that uses the QVTKRenderWindowInteractor class.r   )vtkConeSource)vtkActorvtkPolyDataMappervtkRendererNr"   	ExitEventc                 *    |                                 S r   )quit)oeas      r   r|   z-QVTKRenderWidgetConeExample.<locals>.<lambda>  s     r}   r*   )vtkmodules.vtkFiltersSourcesr  vtkmodules.vtkRenderingCorer  r  r  vtkmodules.vtkRenderingOpenGL2vtkmodules.vtkInteractionStyler   r   r"   setCentralWidgetrj   rm   AddRendererSetResolutionSetInputConnectionGetOutputPort	SetMapperAddActorshow
InitializeStartexecr   exec_)r  r  r  r  
vtkmodulesappwindowwidgetrencone
coneMapper	coneActors               r   QVTKRenderWidgetConeExampler5  y  s    ;:::::TTTTTTTTTT)))))))) 45
6
6C]]F (//F
F###
{3$@$@$@AAA
+--C
((---=??Dq""$$J!!$"4"4"6"6777

I
###LL KKMMM

LLNNN




   		s   &E< <FF)NNNNNNNNNTabNNNNNNNNNNNNNNNNNNNNNNspaceexclamquotedbl
numbersigndollarpercent	ampersand
quoteright	parenleft
parenrightasteriskpluscommaminusperiodslash0123456789colon	semicolonlessequalgreaterquestionatABCDEFGHIJKLMNOPQRSTUVWXYZbracketleft	backslashbracketrightasciicircum
underscore	quoteleftr  bcdr  fgr   ijklmnr  pqrsr{   uvr   r   r   z	braceleftbar
braceright
asciitildeDelete	BackSpacer6  ReturnShift_L	Control_LAlt_LPause	Caps_LockEscaper7  EndHomeLeftUpRightDownSnapshotInsertr  HelprG  rH  rI  rJ  rK  rL  rM  rN  rO  rP  r  rx  ry  rz  r  r{  r|  r   r}  r~  r  r  r  r  r  r  r  r  r  r{   r  r  r   r   r   r  rA  rB  rD  rE  rF  F1F2F3F4F5F6F7F8F9F10F11F12F13F14F15F16F17F18F19F20F21F22F23F24Num_LockScroll_Lock__main__)r	  vtkmodules.qtr-  qtr   ImportErrorrF   r  r   vtkmodules.vtkRenderingUIr   PySide6.QtCorer   PyQt6.QtCorer   PyQt5.QtCorer   PySide2.QtCorer	   PyQt4.QtCorer
   PySide.QtCorer   PySide6.QtOpenGLWidgetsr   PySide6.QtWidgetsr   r   r   r   PySide6.QtGuir   r   r   r   r   r   PyQt6.QtOpenGLWidgetsPyQt6.QtWidgetsPyQt6.QtGuiPyQt5.QtOpenGLr   PyQt5.QtWidgetsPyQt5.QtGuiPySide2.QtOpenGLPySide2.QtWidgetsPySide2.QtGuiPyQt4.QtOpenGLPyQt4.QtGuiPySide.QtOpenGLPySide.QtGuireprQVTKRWIBaseClassr   r\   ra   rq   KeyPolicyrd   Typer   r:   rG   r?   r   MouseButtonsWindowFlagsKeyboardModifiers	MidButtonr   r    r"   r5  r   Key_BackspaceKey_TabKey_Backtab
Key_Return	Key_Enter	Key_ShiftKey_ControlKey_Alt	Key_PauseKey_CapsLock
Key_Escape	Key_SpaceKey_EndKey_HomeKey_LeftKey_Up	Key_RightKey_Down
Key_SysReq
Key_Insert
Key_DeleteKey_HelpKey_0Key_1Key_2Key_3Key_4Key_5Key_6Key_7Key_8Key_9Key_AKey_BKey_CKey_DKey_EKey_FKey_GKey_HKey_IKey_JKey_KKey_LKey_MKey_NKey_OKey_PKey_QKey_RKey_SKey_TKey_UKey_VKey_WKey_XKey_YKey_ZKey_AsteriskKey_Plus	Key_Minus
Key_Period	Key_SlashKey_F1Key_F2Key_F3Key_F4Key_F5Key_F6Key_F7Key_F8Key_F9Key_F10Key_F11Key_F12Key_F13Key_F14Key_F15Key_F16Key_F17Key_F18Key_F19Key_F20Key_F21Key_F22Key_F23Key_F24Key_NumLockKey_ScrollLockr   rN   printrz   r}   r   <module>r8     sy  4 4n	}%HH 	 	 	D	 	-+KK 	 	 	D	 8 7 7 7 7 7 F F F F F FS S S S	SHH 	S 	S 	SS####" S S SS))))(HH" 	S 	S 	SS++++#*& S S SS0000'/HH* S S S"-+.Q"R"RRS %HS		S	S		S	S0 )'''K?,J,J	;	;	;{@Z@Zk.;6AHLMMMyo%%999999))))))------......------%%%%%%!!!!!!%%%%%%&&&&&&$$$$$$%%%%%%%o%%777777''''''++++++,,,,,,++++++############$$$$$$""""""#######k!!,,,,,,''''''++++++,,,,,,++++++############$$$$$$""""""#######k!!......))))))------......------%%%%%%!!!!!!%%%%%%&&&&&&$$$$$$%%%%%%%k!!,,,,,,######''''''((((((''''''######$$$$$$""""""#######k!!------$$$$$$(((((())))))((((((      $$$$$$%%%%%%######$$$$$$$
+4ttH~~E
F
FF )K O##$
+J[X
Y
YYw.K(O.K&N
&C#JI0n]
. 0 0 0o^
/	0 ACCK C+ C
 C_ CC&C)7#JI"""(LL+L  G G G G G!1 G G GT/ / /d ,]{]K] OU]
 NH] M8] M9] O[] K] M7] k] NH] M7]  K!]" L&#]$ L&%]& J']( M7)] ]* L&+], NJ-]. NH/]0 NH1]2 L&3]4 Is5]6 Is7]8 Is9]: Is;]< Is=]> Is?]@ IsA]B IsC]D IsE]F IsG]H IsI]J IsK] ] ]L IsM]N IsO]P IsQ]R IsS]T IsU]V IsW]X IsY]Z Is[]\ Is]]^ Is_]` Isa]b Isc]d Ise]f Isg]h Isi]j Isk]l Ism] ] ]n Iso]p Isq]r Iss]t Isu]v Isw]x Isy]z Is{]| j}]~ L&]@ M7A]B NHC]D M7E]F JG]H JI]J JK]L JM]N JO] ] ]P JQ]R JS]T JU]V JW]X KY]Z K[]\ K]]^ K_]` Ka]b Kc]d Ke]f Kg]h Ki]j Kk]l Km]n Ko]p Kq] ]r KKOZy] ]@ z	E(OOO!!!!! s    4 <<A CA"!C"B?(A/.B?/B95A<;B9<B3	B	B3		B-B
B-B''B-*B3	,B--B3	0B92B3	3B96B?8B99B?<C>B??CC M M32M3