class_docstr: Draws text in 3D.
class_docstr_tok: ["Draws","text","in","3D","."]
code: def __project(self, obj_pos, modelview, projection, viewport):
      obj_vec = np.append(np.array(obj_pos), [1.0])
  
      view_vec = np.matmul(modelview.T, obj_vec)
      proj_vec = np.matmul(projection.T, view_vec)
  
      if proj_vec[3] == 0.0:
          return QtCore.QPointF(0, 0)
  
      proj_vec[0:3] /= proj_vec[3]
  
      return QtCore.QPointF(
          viewport[0] + (1.0 + proj_vec[0]) * viewport[2] / 2,
          viewport[1] + (1.0 + proj_vec[1]) * viewport[3] / 2,
      )
  
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 4 for calling the GLTextItem obj's underlying member method code with example usage: obj.__project(obj_pos, modelview, projection, viewport) and returns: QtCore, QtCore