class_docstr: Draws text in 3D.
class_docstr_tok: ["Draws","text","in","3D","."]
docstr: Update the data displayed by this item. All arguments are optional;
  for example it is allowed to update text while leaving colors unchanged, etc.
  
  ====================  ==================================================
  **Arguments:**
  ------------------------------------------------------------------------
  pos                   (3,) array of floats specifying text location.
  color                 QColor or array of ints [R,G,B] or [R,G,B,A]. (Default: Qt.white)
  text                  String to display.
  font                  QFont (Default: QFont('Helvetica', 16))
  ====================  ==================================================
docstr_tok: ["Update","the","data","displayed","by","this","item",".","All","arguments","are","optional",";","for","example","it","is","allowed","to","update","text","while","leaving","colors","unchanged",",","etc",".","====================","==================================================","*","*","Arguments",":","*","*","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","pos","(","3",",",")","array","of","floats","specifying","text","location",".","color","QColor","or","array","of","ints","[","R",",","G",",","B","]","or","[","R",",","G",",","B",",","A","]",".","(","Default",":","Qt.white",")","text","String","to","display",".","font","QFont","(","Default",":","QFont","(","'Helvetica","'",",","16",")",")","====================","=================================================="]
code: def setData(self, **kwds):
      """
      Update the data displayed by this item. All arguments are optional;
      for example it is allowed to update text while leaving colors unchanged, etc.
  
      ====================  ==================================================
      **Arguments:**
      ------------------------------------------------------------------------
      pos                   (3,) array of floats specifying text location.
      color                 QColor or array of ints [R,G,B] or [R,G,B,A]. (Default: Qt.white)
      text                  String to display.
      font                  QFont (Default: QFont('Helvetica', 16))
      ====================  ==================================================
      """
      args = ["pos", "color", "text", "font"]
      for k in kwds.keys():
          if k not in args:
              raise ValueError(
                  "Invalid keyword argument: %s (allowed arguments are %s)"
                  % (k, str(args))
              )
      for arg in args:
          if arg in kwds:
              value = kwds[arg]
              if arg == "pos":
                  if isinstance(value, np.ndarray):
                      if value.shape != (3,):
                          raise ValueError('"pos.shape" must be (3,).')
                  elif isinstance(value, (tuple, list)):
                      if len(value) != 3:
                          raise ValueError('"len(pos)" must be 3.')
              elif arg == "color":
                  value = fn.mkColor(value)
              elif arg == "font":
                  if isinstance(value, QtGui.QFont) is False:
                      raise TypeError('"font" must be QFont.')
              setattr(self, arg, value)
      self.update()
  
file_path: pyqtgraph/pyqtgraph/opengl/items/GLTextItem.py
imports: from OpenGL.GL import *
  import numpy
  from ...None import functions
  from ...Qt import QtCore, QtGui
  from ..GLGraphicsItem import GLGraphicsItem
label_desc: Use image node_id 2 for calling the GLTextItem obj's underlying member method code with example usage: obj.setData() without return types