]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/IO/MeshWriter.cxx
...
[cpPlugins.git] / lib / cpPlugins / Plugins / IO / MeshWriter.cxx
index e45367d79676e80209f6527dfb928296ae6a1b35..37b936c022439b21ee467cd30d6075da9eb681ac 100644 (file)
@@ -51,7 +51,7 @@ MeshWriter( )
   : Superclass( )
 {
   this->_AddInput( "Input" );
-  this->m_Parameters->ConfigureAsFileName( "FileName" );
+  this->m_Parameters->ConfigureAsSaveFileName( "FileName" );
 }
 
 // -------------------------------------------------------------------------
@@ -64,14 +64,13 @@ cpPlugins::IO::MeshWriter::
 std::string cpPlugins::IO::MeshWriter::
 _GenerateData( )
 {
-  cpPlugins::Interface::Mesh* mesh =
-    this->GetInput< cpPlugins::Interface::Mesh >( "Input" );
+  auto mesh = this->GetInputData< cpPlugins::Interface::Mesh >( "Input" );
   if( mesh == NULL )
     return( "MeshWriter: No input mesh." );
   vtkPolyData* i = mesh->GetVTK< vtkPolyData >( );
   if( i == NULL )
     return( "MeshWriter: No suitable input." );
-  std::string fname = this->m_Parameters->GetFileName( "FileName" );
+  std::string fname = this->m_Parameters->GetSaveFileName( "FileName" );
 
   vtkPolyDataWriter* pdw = this->_CreateVTK< vtkPolyDataWriter >( );
   pdw->SetInputData( i );