}
// -------------------------------------------------------------------------
-std::string fpaPlugins::MinimumSpanningTreeWriter::
+void fpaPlugins::MinimumSpanningTreeWriter::
_GenerateData( )
{
typedef fpa::Image::MinimumSpanningTree< 2 > _2D;
auto _2d = this->GetInputData( "Input" )->GetITK< _2D >( );
auto _3d = this->GetInputData( "Input" )->GetITK< _3D >( );
- if ( _2d != NULL ) return( this->_GD0( _2d ) );
- else if( _3d != NULL ) return( this->_GD0( _3d ) );
- else
- return( "MinimumSpanningTreeWriter: Not a valid MST." );
+ if ( _2d != NULL ) this->_GD0( _2d );
+ else if( _3d != NULL ) this->_GD0( _3d );
+ else this->_Error( "Not a valid MST." );
}
// -------------------------------------------------------------------------
template< class _TTree >
-std::string fpaPlugins::MinimumSpanningTreeWriter::
+void fpaPlugins::MinimumSpanningTreeWriter::
_GD0( _TTree* tree )
{
typedef fpa::IO::MinimumSpanningTreeWriter< _TTree > _TFilter;
}
catch( itk::ExceptionObject& err )
{
- return(
- "MinimumSpanningTreeWriter: " + std::string( err.GetDescription( ) )
- );
+ this->_Error( err.GetDescription( ) );
} // yrt
- return( "" );
}
// eof - $RCSfile$