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","=====================","==============================================="]
docstr: Sets the mode that decides whether or not lines are drawn as segmented lines. Drawing lines
  as segmented lines is more performant than the standard drawing method with continuous
  lines.
  
  Parameters
  ----------
  mode : str
         ``'auto'`` (default) segmented lines are drawn if the pen's width > 1, pen style is a
         solid line, the pen color is opaque and anti-aliasing is not enabled.
  
         ``'on'`` lines are always drawn as segmented lines
  
         ``'off'`` lines are never drawn as segmented lines, i.e. the drawing
         method with continuous lines is used
docstr_tok: ["Sets","the","mode","that","decides","whether","or","not","lines","are","drawn","as","segmented","lines",".","Drawing","lines","as","segmented","lines","is","more","performant","than","the","standard","drawing","method","with","continuous","lines",".","Parameters","--","--","--","--","--","mode",":","str","``","'auto","'","``","(","default",")","segmented","lines","are","drawn","if","the","pen","'s","width",">","1",",","pen","style","is","a","solid","line",",","the","pen","color","is","opaque","and","anti-aliasing","is","not","enabled",".","``","'on","'","``","lines","are","always","drawn","as","segmented","lines","``","'off","'","``","lines","are","never","drawn","as","segmented","lines",",","i.e",".","the","drawing","method","with","continuous","lines","is","used"]
code: def setSegmentedLineMode(self, mode):
      """
      Sets the mode that decides whether or not lines are drawn as segmented lines. Drawing lines
      as segmented lines is more performant than the standard drawing method with continuous
      lines.
  
      Parameters
      ----------
      mode : str
             ``'auto'`` (default) segmented lines are drawn if the pen's width > 1, pen style is a
             solid line, the pen color is opaque and anti-aliasing is not enabled.
  
             ``'on'`` lines are always drawn as segmented lines
  
             ``'off'`` lines are never drawn as segmented lines, i.e. the drawing
             method with continuous lines is used
      """
      if mode not in ("auto", "on", "off"):
          raise ValueError(
              f'segmentedLineMode must be "auto", "on" or "off", got {mode} instead'
          )
      self.opts["segmentedLineMode"] = mode
      self.invalidateBounds()
      self.update()
  
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 22 for calling the PlotCurveItem obj's underlying member method code with example usage: obj.setSegmentedLineMode(mode) without return types