class_docstr: Internal picking handler for element-based picking.
  
  This handler is only valid for single point picking operations.
  
  Parameters
  ----------
  mode : ElementType, optional
      The element type to pick.
  callback : callable, optional
      A callback function to be executed on picking events.
class_docstr_tok: ["Internal","picking","handler","for","element-based","picking",".","This","handler","is","only","valid","for","single","point","picking","operations",".","Parameters","--","--","--","--","--","mode",":","ElementType",",","optional","The","element","type","to","pick",".","callback",":","callable",",","optional","A","callback","function","to","be","executed","on","picking","events","."]
docstr: Get the picked edge of the picked cell.
  
  Parameters
  ----------
  picked_point : sequence[float]
      Coordinates of the picked point.
  
  Returns
  -------
  pyvista.UnstructuredGrid
      UnstructuredGrid containing the picked edge.
docstr_tok: ["Get","the","picked","edge","of","the","picked","cell",".","Parameters","--","--","--","--","--","picked_point",":","sequence","[","float","]","Coordinates","of","the","picked","point",".","Returns","--","--","--","-","pyvista.UnstructuredGrid","UnstructuredGrid","containing","the","picked","edge","."]
code: def get_edge(self, picked_point):
      """Get the picked edge of the picked cell.
  
      Parameters
      ----------
      picked_point : sequence[float]
          Coordinates of the picked point.
  
      Returns
      -------
      pyvista.UnstructuredGrid
          UnstructuredGrid containing the picked edge.
  
      """
      cell = self.get_cell(picked_point).get_cell(0)
      if cell.n_edges > 1:
          ei = (
              cell.cast_to_unstructured_grid()
              .extract_all_edges()
              .find_closest_cell(picked_point)
          )
          edge = cell.edges[ei].cast_to_unstructured_grid()
          edge.field_data["vtkOriginalEdgeIds"] = np.array([ei])
      else:
          edge = cell.cast_to_unstructured_grid()
  
      return edge
  
imports: from functools import partial, wraps
  from typing import Tuple, cast
  import warnings
  import weakref
  import numpy
  import pyvista
  from pyvista.core.errors import PyVistaDeprecationWarning
  from pyvista.core.utilities.misc import try_callback
  from .None import _vtk
  from .composite_mapper import CompositePolyDataMapper
  from .errors import PyVistaPickingError
  from .opts import ElementType, PickerType
label_desc: Use image node_id 7 for calling the PointPickingElementHandler obj's underlying member method code with example usage: obj.get_edge(picked_point) and returns: edge