glwidget¶
- class janim.gui.glwidget.GLWidget(parent: QWidget | None = None)¶
Bases:
QOpenGLWidgetRendering interface in the center of the window
- rendered¶
- error_occurred¶
- set_built(built: BuiltTimeline) None¶
- set_time(time: float) None¶
- map_to_gl2d(point: QPointF) tuple[float, float]¶
- map_from_gl2d(x: float, y: float) QPointF¶
- map_to_glx(point: QPointF) float¶
- map_to_gly(point: QPointF) float¶
- map_from_glx(x: float) float¶
- map_from_gly(y: float) float¶
- map_to_point(position: QPointF, info: CameraInfo | None = None) ndarray¶
Convert window coordinates to coordinates in 3D space
- map_from_points(points: VectArray, info: CameraInfo | None = None) list[QPointF]¶
Convert a series of coordinates in 3D space to a series of coordinates in the window
- initializeGL() None¶
- update_clear_color() None¶
- setup_profiler(callback: Callable[[FrameRecord], Any]) None¶
- teardown_profiler() None¶
- paintGL() None¶
- staticMetaObject = PySide6.QtCore.QMetaObject("GLWidget" inherits "QOpenGLWidget": Methods: #37 type=Signal, signature=rendered() #38 type=Signal, signature=error_occurred() )¶