]> Creatis software - cpPlugins.git/blobdiff - plugins/ITKIO/DicomSeriesReader.cxx
Moved to version 1.0
[cpPlugins.git] / plugins / ITKIO / DicomSeriesReader.cxx
diff --git a/plugins/ITKIO/DicomSeriesReader.cxx b/plugins/ITKIO/DicomSeriesReader.cxx
deleted file mode 100644 (file)
index 18ec6f0..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-#include <ITKIO/DicomSeriesReader.h>
-#include <ITKIO/DicomSeriesReaderQDialog.h>
-
-#ifdef cpPlugins_QT4
-
-#include <QApplication>
-#include <QFileInfo>
-#include <ITKIO/ui_DicomSeriesReaderQDialog.h>
-
-// -------------------------------------------------------------------------
-cpPluginsITKIO::DicomSeriesReaderQDialog::
-DicomSeriesReaderQDialog( QWidget* parent )
-  : QDialog( parent ),
-    m_UI( new Ui::DicomSeriesReaderQDialog ),
-    m_ProcessObject( NULL )
-{
-  this->m_UI->setupUi( this );
-  this->connect(
-    this, SIGNAL( accepted( ) ), this, SLOT( _dlg_Accepted( ) )
-    );
-  this->setWindowTitle( "Open DICOM series" );
-}
-
-// -------------------------------------------------------------------------
-cpPluginsITKIO::DicomSeriesReaderQDialog::
-~DicomSeriesReaderQDialog( )
-{
-  delete this->m_UI;
-}
-
-// -------------------------------------------------------------------------
-void cpPluginsITKIO::DicomSeriesReaderQDialog::
-setProcessObject( cpPlugins::Pipeline::ProcessObject* obj )
-{
-  if( obj == NULL )
-    return;
-  this->m_ProcessObject = obj;
-  auto param = this->m_ProcessObject->GetParameters( );
-  auto files = param->GetOpenFileNameList( "FileNames" );
-  if( files.size( ) > 0 )
-  {
-    QFileInfo info( files[ 0 ].c_str( ) );
-    this->m_UI->Selector->setStartDir( info.canonicalPath( ) );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPluginsITKIO::DicomSeriesReaderQDialog::
-_dlg_Accepted( )
-{
-  if( this->m_ProcessObject != NULL )
-  {
-    auto param = this->m_ProcessObject->GetParameters( );
-    auto files = this->m_UI->Selector->selectedFilenames( );
-    param->ClearOpenFileNameList( "FileNames" );
-    for( auto fIt = files->begin( ); fIt != files->end( ); ++fIt )
-      param->AddToOpenFileNameList( "FileNames", *fIt );
-
-  } // fi
-}
-
-#endif // cpPlugins_QT4
-
-// -------------------------------------------------------------------------
-QDialog* cpPluginsITKIO::DicomSeriesReader::
-CreateQDialog( )
-{
-#ifdef cpPlugins_QT4
-  DicomSeriesReaderQDialog* dlg = NULL;
-  if( QApplication::instance( ) != NULL )
-  {
-    dlg = new DicomSeriesReaderQDialog( );
-    dlg->setProcessObject( this );
-
-  } // fi
-  return( dlg );
-#else // cpPlugins_QT4
-  return( NULL );
-#endif // cpPlugins_QT4
-}
-
-// -------------------------------------------------------------------------
-cpPluginsITKIO::DicomSeriesReader::
-DicomSeriesReader( )
-  : Superclass( )
-{
-}
-// -------------------------------------------------------------------------
-cpPluginsITKIO::DicomSeriesReader::
-~DicomSeriesReader( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpPluginsITKIO::DicomSeriesReader::
-_GenerateData( )
-{
-  this->Superclass::_GenerateData( );
-}
-
-// eof - $RCSfile$