anfang variable zeitschritte

git-svn-id: http://svn.lsim.tuxzone.org/trunk@31 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
catdog2
2008-12-12 22:01:52 +00:00
parent 83c70690e0
commit bf1e341b71
18 changed files with 78 additions and 3309 deletions

View File

@@ -812,14 +812,16 @@ void SimulScene::startCalculation() {
ani->clear();
int currSteps = ellipse1->getCurrProbePath()->count();
int entry_step = ceil(currSteps/2500.0); //jeder entry_step(te) step wird eingetragen
double totalTime = ellipse1->getElapsedTimeList()->at(currSteps-1);
for (int i=0; i<currSteps; ++i) {
if (i%entry_step == 0 || i==currSteps) {
ani->setPosAt(i/(double)currSteps, ellipse1->getCurrProbePath()->at(i) );
if (i%entry_step == 0 || i==currSteps) {
//Zeianteil anstatt Weganteil
ani->setPosAt(ellipse1->getElapsedTimeList()->at(i)/totalTime, ellipse1->getCurrProbePath()->at(i) );
}
}
//aenderungen bestimmter Werte bekanntgeben
QString realSimulTimeString(QLocale().toString(ellipse1->getRealSimulTime(),'g'));
QString realSimulTimeString(QLocale().toString(totalTime,'g'));
realSimulTimeString.append(" s");
emit realSimulTimeChanged(realSimulTimeString);