- auto output = filter->GetOutputData( output_name );
- if( output != NULL )
- {
- std::string data_name = output_name + "@" + filter_name;
- auto idata = output->GetVTK< vtkImageData >( );
- auto mdata = output->GetVTK< vtkPolyData >( );
- if( idata != NULL )
- {
- if( this->m_UI->Viewer->AddData( idata, data_name, "" ) )
- {
- if( this->m_UI->Viewer->GetNumberOfData( ) > 1 )
- this->m_UI->Viewer->SetDataColor( data_name, 1, 0, 0 );
- else
- this->m_UI->Viewer->SetMainImage( data_name );
- this->_Block( );
- this->m_UI->Viewer->ShowData( data_name );
- this->_UnBlock( );
-
- } // fi
- }
- else if( mdata != NULL )
- {
- if( this->m_UI->Viewer->AddData( mdata, data_name ) )
- {
- this->m_UI->Viewer->SetDataColor( data_name, 1, 0, 0 );
- this->_Block( );
- this->m_UI->Viewer->ShowData( data_name );
- this->_UnBlock( );
-
- } // fi
- }
- else
- QMessageBox::critical(
- this,
- QMessageBox::tr( "Error showing data" ),
- QMessageBox::tr( "No known VTK conversion!" )
- );
-
- } // fi
+ QMessageBox::critical(
+ this,
+ QMessageBox::tr( "Error showing data" ),
+ QMessageBox::tr( "Unknown port name." )
+ );
+ return;