MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / NBodyWidget

Method NBodyWidget

compute/example/nbody.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103};
104
105NBodyWidget::NBodyWidget(std::size_t particles, float dt, QWidget* parent)
106 : QGLWidget(parent), m_initial_draw(true), m_particles(particles), m_dt(dt)
107{
108 // create a timer to redraw as fast as possible
109 timer = new QTimer(this);
110 connect(timer, SIGNAL(timeout()), this, SLOT(updateGL()));
111 timer->start(1);
112}
113
114NBodyWidget::~NBodyWidget()
115{

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected