added backgroundimage transformation

This commit is contained in:
2024-05-06 14:05:59 +02:00
parent 5f6b88b34c
commit 507d0065f0
5 changed files with 69 additions and 52 deletions

View File

@@ -62,12 +62,11 @@ void CameraMoveCallback::zoom(const bool in) {
double scale = this->cam->GetParallelScale();
if (in) {
if (scale >= 0.2) {
scale -= 0.1;
}
if (scale >= 0.2)
scale -= 0.1;
} else {
if (scale <= 0.9)
scale += 0.1;
scale += 0.1;
}
this->cam->SetParallelScale(scale);

View File

@@ -8,7 +8,7 @@ TimerCallbackCommand::TimerCallbackCommand() : dt(3600), maxTime(3600*24*365), t
TimerCallbackCommand* TimerCallbackCommand::New(Program *program) {
TimerCallbackCommand *cb = new TimerCallbackCommand();
cb->setProgram(program);
cb->setPaused(false);
cb->setPaused(true);
return cb;
}