Display

Inheritance diagram of display

Module for displaying spherical moving bodies.

module

display

author

Laurent, Jules

author

Le Bars, Yoann

This file is part of the pure Python benchmark.

This Python benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This Python benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The file LICENSE is a copy of the GNU General Public License. You can also see it on https://www.gnu.org/licenses/.

class display.Display(n_iter: int, n: int, dens: float, dt: float, G: float = 6.6743e-11, epsilon: float = 1e-06)

Class creating the 3D scene and camera in which move several bodies.

Parameters
  • __iteration_count (int) – Number of iterations.

  • __max_iterations (int) – Maximum number of iterations.

  • __space (Space) – Space for modelling.

  • __cam_controller (Qt3DExtras.QOrbitCameraController) – Mouse camera controller.

  • __timer (QTimer) – Screen refreshing __timer.

  • __root_entity (Qt3DCore.QEntity) – Visualization root.

  • __bodies (list) – List of spheres representing bodies. Differs from the actual physical bodies.

  • signal_quit (Signal) – Indicates wether the application should stop.