class_docstr: **Bases:** :class:`GLGraphicsItem <pyqtgraph.opengl.GLGraphicsItem.GLGraphicsItem>`
  
  Displays volumetric data. 
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GLGraphicsItem","<","pyqtgraph.opengl.GLGraphicsItem.GLGraphicsItem",">","`","Displays","volumetric","data","."]
docstr: ==============  =======================================================================================
  **Arguments:**
  data            Volume data to be rendered. *Must* be 4D numpy array (x, y, z, RGBA) with dtype=ubyte.
  sliceDensity    Density of slices to render through the volume. A value of 1 means one slice per voxel.
  smooth          (bool) If True, the volume slices are rendered with linear interpolation 
  ==============  =======================================================================================
docstr_tok: ["==============","=======================================================================================","*","*","Arguments",":","*","*","data","Volume","data","to","be","rendered",".","*","Must","*","be","4D","numpy","array","(","x",",","y",",","z",",","RGBA",")","with","dtype=ubyte",".","sliceDensity","Density","of","slices","to","render","through","the","volume",".","A","value","of","1","means","one","slice","per","voxel",".","smooth","(","bool",")","If","True",",","the","volume","slices","are","rendered","with","linear","interpolation","==============","======================================================================================="]
code: def __init__(
      self,
      data,
      sliceDensity=1,
      smooth=True,
      glOptions="translucent",
      parentItem=None,
  ):
      """
      ==============  =======================================================================================
      **Arguments:**
      data            Volume data to be rendered. *Must* be 4D numpy array (x, y, z, RGBA) with dtype=ubyte.
      sliceDensity    Density of slices to render through the volume. A value of 1 means one slice per voxel.
      smooth          (bool) If True, the volume slices are rendered with linear interpolation
      ==============  =======================================================================================
      """
  
      self.sliceDensity = sliceDensity
      self.smooth = smooth
      self.data = None
      self._needUpload = False
      self.texture = None
      super().__init__(parentItem=parentItem)
      self.setGLOptions(glOptions)
      self.setData(data)
  
file_path: pyqtgraph/pyqtgraph/opengl/items/GLVolumeItem.py
imports: from OpenGL.GL import *
  import numpy
  from ...Qt import QtGui
  from ..GLGraphicsItem import GLGraphicsItem
label_desc: Use image node_id 1 to create a new GLVolumeItem object from inherited base classes: GLGraphicsItem with example: obj = GLVolumeItem(data, sliceDensity, smooth, glOptions, parentItem)