def __init__(self): # antialiasing if QGLFormat is not None: format = QGLFormat() else: format = None if antialiasing: if hasattr(format, "setSampleBuffers"): format.setSampleBuffers(True) super(MyWidget, self).__init__(format=format, autosave=autosave, getfocus=getfocus)
def __init__(self, parent=None): glformat = QGLFormat() glformat.setSampleBuffers(True) super(GLWidget, self).__init__(glformat, parent) self.setCursor(Qt.OpenHandCursor) self.setMouseTracking(True) self._modelview_matrix = numpy.identity(4) self._near = 0.1 self._far = 4000.0 self._fovy = 45.0 self._radius = 50.0 self._last_point_2d = QPoint() self._last_point_3d = [0.0, 0.0, 0.0] self._last_point_3d_ok = False
def __init__(self, parent=None): glformat = QGLFormat() glformat.setSampleBuffers(True) super(GLWidget, self).__init__(glformat, parent) self.setCursor(Qt.OpenHandCursor) self.setMouseTracking(True) self._modelview_matrix = numpy.identity(4) self._near = 0.001 self._far = 100000.0 self._fovy = 45.0 self._radius = 5.0 self._last_point_2d = QPoint() self._last_point_3d = [0.0, 0.0, 0.0] self._last_point_3d_ok = False