]> Creatis software - clitk.git/blobdiff - common/vvImageReader.cxx
Moved vvImageReader and vvImageWriter to clitkCommon for use in tools. Removed vvCons...
[clitk.git] / common / vvImageReader.cxx
similarity index 94%
rename from vv/vvImageReader.cxx
rename to common/vvImageReader.cxx
index 25e235a08edb3b713b347b5a5a1147aaed7fb061..4aad9b88099fed601a7a24a5aef4f2089824c45e 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef VVIMAGEREADER_CXX
 #define VVIMAGEREADER_CXX
 
-#include <QApplication>
 #include <itkImageFileReader.h>
 #include "vvImageReader.h"
 #include "vvImageReader.txx"
@@ -74,18 +73,7 @@ void vvImageReader::Update(int dim,std::string inputPixelType, LoadedImageType t
   mType = type;
   mDim = dim;
   mInputPixelType=inputPixelType;
-  this->start(); //Start heavy read operation in a separate thread
-  while (this->isRunning()) {
-    qApp->processEvents();
-    this->wait(50);
-  }
-}
-//------------------------------------------------------------------------------
 
-
-//------------------------------------------------------------------------------
-void vvImageReader::run()
-{
   switch(mDim)     {
   case 2:
     UpdateWithDim<2>(mInputPixelType);