Allgemeines einstellungsdock, verschiedenes anderes
git-svn-id: http://svn.lsim.tuxzone.org/trunk@15 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -39,10 +39,10 @@
|
||||
|
||||
SimulScene::SimulScene ( QObject* parent ) : QGraphicsScene ( parent ) {
|
||||
//variablen initialisieren
|
||||
setTimePerStep(0.00001);
|
||||
setSteps(210000);
|
||||
setTimePerStep(1e-7);
|
||||
setSteps(300000);
|
||||
//setMeterPerPx(1/1000.0);
|
||||
setMeterPerPx(1);
|
||||
setMeterPerPx(0.01);
|
||||
|
||||
currHomoEfieldInsertItem = 0;
|
||||
currHomoEfieldEditItem = 0;
|
||||
@@ -587,7 +587,7 @@ void SimulScene::setTimePerStep(double time) {
|
||||
void SimulScene::startCalculation() {
|
||||
pathItem1->setPath(QPainterPath());
|
||||
|
||||
//Feld Item Listen erzeugen
|
||||
//Feld Item Listen erzeugen (viel schneller, als jedes mal items(point) durchlaufen)
|
||||
calcEFieldList.clear();
|
||||
calcBFieldList.clear();
|
||||
for(int i = 0; i < items().size(); ++i) {
|
||||
@@ -607,7 +607,6 @@ void SimulScene::startCalculation() {
|
||||
pathItem1->setPath(ellipse1->getFlightPath());
|
||||
|
||||
//animationspfad berechnen
|
||||
time_t anitimeb = time(0);
|
||||
ani->clear();
|
||||
int currSteps = ellipse1->getCurrProbePath()->count();
|
||||
int entry_step = ceil(currSteps/2500.0); //jeder entry_step(te) step wird eingetragen
|
||||
@@ -616,10 +615,7 @@ void SimulScene::startCalculation() {
|
||||
if (i%entry_step == 0 || i==currSteps) {
|
||||
ani->setPosAt(i/(double)currSteps, ellipse1->getCurrProbePath()->at(i) );
|
||||
}
|
||||
//qDebug()<< getSteps();
|
||||
}
|
||||
time_t anitimea = time(0);
|
||||
qDebug()<< "animationszeit" <<difftime(anitimea,anitimeb);
|
||||
}
|
||||
|
||||
|
||||
@@ -748,6 +744,21 @@ QWidget* SimulScene::getProbeDockWidget() const {
|
||||
}
|
||||
|
||||
void SimulScene::setFlightPathVisible(bool visible) {
|
||||
if(pathItem1->isVisible() == visible) return;
|
||||
pathItem1->setVisible(visible);
|
||||
emit flightPathVisibilityChanged(visible);
|
||||
}
|
||||
|
||||
bool SimulScene::isFlightPathVisible() {
|
||||
return pathItem1->isVisible();
|
||||
}
|
||||
|
||||
void SimulScene::setTimeLineDuration(int duration) {
|
||||
if(timer->duration() == duration) return;
|
||||
timer->setDuration(duration);
|
||||
emit timeLineDurationChanged(duration);
|
||||
}
|
||||
|
||||
int SimulScene::getTimeLineDuration() {
|
||||
return timer->duration();
|
||||
}
|
||||
Reference in New Issue
Block a user