code style fix

This commit is contained in:
Djairo Hougee 2024-05-05 23:27:30 +02:00
parent da20a2514c
commit f2b6286ecb
1 changed files with 8 additions and 9 deletions

View File

@ -18,16 +18,15 @@ void TimerCallbackCommand::Execute(vtkObject* caller, unsigned long eventId, voi
if (eventId == vtkCommand::KeyPressEvent and not strcmp("space", intr->GetKeySym())) { if (eventId == vtkCommand::KeyPressEvent and not strcmp("space", intr->GetKeySym())) {
this->paused = ! this->paused; this->paused = ! this->paused;
} else if (eventId == vtkCommand::TimerEvent and not this->paused) { } else if (eventId == vtkCommand::TimerEvent and not this->paused) {
this->time += this->dt; this->time += this->dt;
if (this->time >= this->maxTime) { if (this->time >= this->maxTime) {
return; return;
// TODO: how do we deal with reaching the end of the simulated dataset? Do we just stop simulating, loop back around? What about the location of the particles in this case? Just some ideas to consider, but we should iron this out pretty soon. // TODO: how do we deal with reaching the end of the simulated dataset? Do we just stop simulating, loop back around? What about the location of the particles in this case? Just some ideas to consider, but we should iron this out pretty soon.
}
this->program->updateData(this->time);
} }
this->program->updateData(this->time);
}
} }
void TimerCallbackCommand::setProgram(Program *program) { void TimerCallbackCommand::setProgram(Program *program) {