class_docstr: **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
  
  Item displaying an isocurve of a 2D array. To align this item correctly with an 
  ImageItem, call ``isocurve.setParentItem(image)``.
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GraphicsObject","<","pyqtgraph.GraphicsObject",">","`","Item","displaying","an","isocurve","of","a","2D","array",".","To","align","this","item","correctly","with","an","ImageItem",",","call","``","isocurve.setParentItem","(","image",")","``","."]
code: def generatePath(self):
      if self.data is None:
          self.path = None
          return
  
      if self.axisOrder == "row-major":
          data = self.data.T
      else:
          data = self.data
  
      lines = fn.isocurve(
          data, self.level, connected=True, extendToEdge=True
      )
      self.path = QtGui.QPainterPath()
      for line in lines:
          self.path.moveTo(*line[0])
          for p in line[1:]:
              self.path.lineTo(*p)
  
file_path: pyqtgraph/pyqtgraph/graphicsItems/IsocurveItem.py
imports: from ..None import functions
  from ..None import getConfigOption
  from ..Qt import QtCore, QtGui
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 8 for calling the IsocurveItem obj's underlying member method code with example usage: obj.generatePath() without return types