]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/IO/MeshReader.cxx
Getting ready for interactive initialization.
[cpPlugins.git] / lib / cpPlugins / Plugins / IO / MeshReader.cxx
index 397b644ef10b402d267a5e0fadd98a7571e239fd..f8c3b84483a96a6b79be61bf9a11eb056fddcd48 100644 (file)
@@ -9,10 +9,11 @@
 #endif // cpPlugins_Interface_QT4
 
 // -------------------------------------------------------------------------
-bool cpPlugins::IO::MeshReader::
+cpPlugins::IO::MeshReader::
+DialogResult cpPlugins::IO::MeshReader::
 ExecConfigurationDialog( QWidget* parent )
 {
-  bool r = false;
+  DialogResult r = Self::DialogResult_Cancel;
 
 #ifdef cpPlugins_Interface_QT4
 
@@ -28,7 +29,7 @@ ExecConfigurationDialog( QWidget* parent )
     this->m_Parameters->SetSelectedChoice( "PixelType", "float" );
     this->m_Parameters->SetUint( "Dimension", 3 );
 
-    r = true;
+    r = Self::DialogResult_NoModal;
 
   } // fi
 
@@ -42,8 +43,7 @@ cpPlugins::IO::MeshReader::
 MeshReader( )
   : Superclass( )
 {
-  this->SetNumberOfOutputs( 1 );
-  this->_MakeOutput< cpPlugins::Interface::Mesh >( 0 );
+  this->_MakeOutput< cpPlugins::Interface::Mesh >( "Output" );
 
   std::vector< TParameters::TString > valid_types;
   valid_types.push_back( "float" );
@@ -100,7 +100,7 @@ _GD1( )
   pdr->Update( );
 
   cpPlugins::Interface::Mesh* out =
-    this->GetOutput< cpPlugins::Interface::Mesh >( 0 );
+    this->GetOutput< cpPlugins::Interface::Mesh >( "Output" );
   if( out != NULL )
     out->SetVTK( pdr->GetOutput( ) );
   else