- if( cate == "ImageToMeshFilter" )
- {
- if( filter->ExecConfigurationDialog( this ) )
- {
- filter->SetInput( "Input", this->m_MainImage );
- this->_Block( );
- err = filter->Update( );
- this->_Unblock( );
- TPlugins::TMesh::Pointer mesh =
- filter->GetOutput< TPlugins::TMesh >( "Output" );
- this->m_Meshes.push_back( mesh );
- mesh->CreateVTKActor( );
- vtkActor* actor = mesh->GetVTKActor( );
- if( actor != NULL )
- this->m_UI->MPR->Add3DActor( actor );
+ QMessageBox::critical(
+ this,
+ tr( "Error creating filter" ),
+ tr( (
+ std::string( "No valid filter \"" ) +
+ filter_name +
+ std::string( "\"defined." )
+ ).c_str( ) )
+ );
+ return;