class_docstr: Class representing a single plot curve. Instances of this class are created
  automatically as part of :class:`PlotDataItem <pyqtgraph.PlotDataItem>`; 
  these rarely need to be instantiated directly.
  
  Features:
  
    - Fast data update
    - Fill under curve
    - Mouse interaction
  
  =====================  ===============================================
  **Signals:**
  sigPlotChanged(self)   Emitted when the data being plotted has changed
  sigClicked(self, ev)   Emitted when the curve is clicked
  =====================  ===============================================
class_docstr_tok: ["Class","representing","a","single","plot","curve",".","Instances","of","this","class","are","created","automatically","as","part","of",":","class",":","`","PlotDataItem","<","pyqtgraph.PlotDataItem",">","`",";","these","rarely","need","to","be","instantiated","directly",".","Features",":","-","Fast","data","update","-","Fill","under","curve","-","Mouse","interaction","=====================","===============================================","*","*","Signals",":","*","*","sigPlotChanged","(","self",")","Emitted","when","the","data","being","plotted","has","changed","sigClicked","(","self",",","ev",")","Emitted","when","the","curve","is","clicked","=====================","==============================================="]
code: def _shouldUseDrawLineSegments(self, pen):
      mode = self.opts["segmentedLineMode"]
      if mode in ("on",):
          return True
      if mode in ("off",):
          return False
      return (
          pen.widthF() > 1.0
          # non-solid pen styles need single polyline to be effective
          and pen.style() == QtCore.Qt.PenStyle.SolidLine
          # segmenting the curve slows gradient brushes, and is expected
          # to do the same for other patterns
          and pen.isSolid()  # pen.brush().style() == Qt.BrushStyle.SolidPattern
          # ends of adjacent line segments overlapping is visible when not opaque
          and pen.color().alphaF() == 1.0
          # anti-aliasing introduces transparent pixels and therefore also causes visible overlaps
          # for adjacent line segments
          and not self.opts["antialias"]
      )
  
imports: from ..Qt import QtCore, QtGui, QtWidgets
  import math
  import sys
  import warnings
  import numpy
  from ..None import Qt, debug
  from ..None import functions
  from ..None import getConfigOption
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 23 for calling the PlotCurveItem obj's underlying member method code with example usage: obj._shouldUseDrawLineSegments(pen) and returns: unknown, True, False