def __init__(self, size=None, antialias=True, glOptions='translucent'): GLGraphicsItem.__init__(self) if size is None: size = QtGui.QVector3D(1, 1, 1) self.antialias = antialias self.setSize(size=size) self.setGLOptions(glOptions)
def __init__(self, x=None, y=None, z=None, text=None): GLGraphicsItem.__init__(self) self.text = text self.x = x self.y = y self.z = z
def __init__(self, X=None, Y=None, Z=None, text=None): GLGraphicsItem.__init__(self) self.text = text self.X = X self.Y = Y self.Z = Z
def __init__(self, pos=None, text=None, color=None, font=QtGui.QFont()): GLGraphicsItem.__init__(self) self.color = color if color is None: self.color = QtCore.Qt.white self.text = text self.pos = pos self.font = font
def __init__(self, X=None, Y=None, Z=None, text=None, size=7, color=[50,50,50]): GLGraphicsItem.__init__(self) self.text = text self.X = X self.Y = Y self.Z = Z self.size = size self.color = color
def __init__(self, size=None, color=None, antialias=True, glOptions='translucent'): GLGraphicsItem.__init__(self) self.setGLOptions(glOptions) self.antialias = antialias if size is None: size = QtGui.QVector3D(20, 20, 1) self.setSize(size=size) self.setSpacing(1, 1, 1)
def __init__(self, X=None, Y=None, Z=None, text=None, color=None): GLGraphicsItem.__init__(self) self.color = color if color is None: self.color = QtCore.Qt.white self.text = text self.X = X self.Y = Y self.Z = Z
def __init__(self, GLViewWidget=None, X=None, Y=None, Z=None, text=None, color=QtCore.Qt.white): GLGraphicsItem.__init__(self) self.GLViewWidget = GLViewWidget self.text = text self.color = color self.X = X self.Y = Y self.Z = Z
def __init__(self, size=None, color=None, antialias=True, glOptions='translucent'): GLGraphicsItem.__init__(self) self.setGLOptions(glOptions) self.antialias = antialias if color is None: color = (255, 255, 255, 80) self.set_color(color) if size is None: size = QtGui.QVector3D(1, 1, 0) self.set_size(size=size) self.set_spacing(0.05, 0.05)
def __init__(self, **kwds): """All keyword arguments are passed to setData()""" GLGraphicsItem.__init__(self) glopts = kwds.pop('glOptions', 'additive') self.setGLOptions(glopts) self.pos = np.array([0.0, 0.0, 0.0]) self.color = QtCore.Qt.GlobalColor.white self.text = '' self.font = QtGui.QFont('Helvetica', 16) self.setData(**kwds)
def __init__(self, context, parentItem=None): # super(gl.GLGraphicsItem, self).__init__(parentItem) GLGraphicsItem.__init__(self) self.context = context self.leftGrabber = None self.rightGrabber = None self.upArrow = None self.forwardArrow = None self.currentOpenningWidth = 0 self.initGrabberModel("grabber{}", "grabber_arrow{}", "grabber_base") self.setOpenGrabber(2) self.showDirectionArrow(0)
def __init__(self, frustumColor=(1, 1, 1, 1), size=None, antialias=True, glOptions='translucent'): GLGraphicsItem.__init__(self) if size is None: size = QtGui.QVector3D(1, 1, 1) self.antialias = antialias self.setSize(size=size) self.setGLOptions(glOptions) assert len( frustumColor ) == 4, f'frustum color must be a 4 element tuple, it is: {frustumColor}' self.frustumColor = frustumColor
def __init__(self, size=None, color=(1, 1, 1, 0.3), thickness=1.0, antialias=True, glOptions='translucent'): GLGraphicsItem.__init__(self) self.setGLOptions(glOptions) self.antialias = antialias if size is None: size = QtGui.QVector3D(20, 20, 1) self.setSize(size=size) self.setSpacing(1, 1, 1) self.color = color self.thickness = thickness
def __init__(self): GLGraphicsItem.__init__(self) self.text = [] self.pos = []
def __init__(self): GLGraphicsItem.__init__(self)