parameters: (self, parent)
return_statement: return
docstring: :param parent:
          :return:
function: def __init__(self, parent):
          """
  
          :param parent:
          :return:
          """
          mpl2dgraphicsview.Mpl2dGraphicsView.__init__(self, parent)
  
          # connect the mouse motion to interact with the canvas
          self._myCanvas.mpl_connect('button_press_event', self.on_mouse_press_event)
          self._myCanvas.mpl_connect('button_release_event', self.on_mouse_release_event)
          self._myCanvas.mpl_connect('motion_notify_event', self.on_mouse_motion)
  
          # class variables
          self._myPolygon = None  # matplotlib.patches.Polygon
  
          # class status variables
          self._roiSelectMode = False
          # region of interest. None or 2 tuple of 2-tuple for upper left corner and lower right corner
          # mouse positions as start and end
          self._roiStart = None
          self._roiEnd = None
  
          # mouse
          self._mousePressed = Detector2DView.MousePress.RELEASED
  
          # mouse position and resolution
          self._currX = 0.
          self._currY = 0.
          self._resolutionX = 0.005
          self._resolutionY = 0.005
  
          # parent window
          self._myParentWindow = None
  
          return
function_tokens: def __init__ ( self , parent ) : mpl2dgraphicsview . Mpl2dGraphicsView . __init__ ( self , parent ) # connect the mouse motion to interact with the canvas self . _myCanvas . mpl_connect ( 'button_press_event' , self . on_mouse_press_event ) self . _myCanvas . mpl_connect ( 'button_release_event' , self . on_mouse_release_event ) self . _myCanvas . mpl_connect ( 'motion_notify_event' , self . on_mouse_motion ) # class variables self . _myPolygon = None # matplotlib.patches.Polygon # class status variables self . _roiSelectMode = False # region of interest. None or 2 tuple of 2-tuple for upper left corner and lower right corner # mouse positions as start and end self . _roiStart = None self . _roiEnd = None # mouse self . _mousePressed = Detector2DView . MousePress . RELEASED # mouse position and resolution self . _currX = 0. self . _currY = 0. self . _resolutionX = 0.005 self . _resolutionY = 0.005 # parent window self . _myParentWindow = None return