: Superclass( )
{
this->_AddInput( "Input" );
- this->m_Parameters->ConfigureAsFileName( "FileName" );
+ this->m_Parameters->ConfigureAsSaveFileName( "FileName" );
}
// -------------------------------------------------------------------------
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 );