Logo Search packages:      
Sourcecode: qantenna version File versions  Download package

void DataManager::checkFinishedCalc (  )  [private, slot]

If the last container was calculated, emits finishedCalc

Definition at line 354 of file datamanager.cpp.

References dBMinumum, finishedAllCalc(), and necContainerList.

Referenced by openNECFile().

{
      // FIXME remove after .2
      // Sync with GUI
      foreach(NECContainer *container, necContainerList)    {
            if(container->getRadiationPatternCalculated()) {
                  container->setRenderSurface(surface);
                  container->setRenderSurface(surface);
                  container->setRenderSpheres(spheres);
                  container->setRenderMesh(mesh);
                  container->setRenderInsideTriangles(insideTriangles);
                  container->setDBMinimum(dBMinumum);
                  container->setComponentsRadius((double)componentsRadius);
                  container->setRadius((double)radius/1000.0);
                  container->setAlpha((double)alpha/100.0);
                  container->setSurfaceSize((double)surfaceSize/10.0);
            }
      }

      bool exit= false;
      int i= 0;
      while(!exit && i<necContainerList.size()) {
            if(!necContainerList.at(i)->getRadiationPatternCalculated())
                  exit= true;
            i++;
      }
      if(!exit) emit finishedAllCalc();
}


Generated by  Doxygen 1.6.0   Back to index