cpPlugins::Interface::DataObject::
~DataObject( )
{
- auto ptr = reinterpret_cast< ProcessObject::Pointer* >( this->m_Source );
- delete ptr;
+ /* TODO
+ auto ptr = reinterpret_cast< ProcessObject::Pointer* >( this->m_Source );
+ delete ptr;
+ */
}
// eof - $RCSfile$
SetITK( itk::LightObject* o )
{
this->Superclass::SetITK( o );
- this->_ITK_2_VTK_0< 2 >( o );
- this->_ITK_2_VTK_0< 3 >( o );
+ bool success = false;
+ success |= this->_ITK_2_VTK_0< 2 >( o );
+ success |= this->_ITK_2_VTK_0< 3 >( o );
+ if( !success )
+ {
+ this->m_VTKObject = NULL;
+ this->m_ITKvVTK = NULL;
+
+ } // fi
+ this->Modified( );
}
// -------------------------------------------------------------------------
virtual ~Image( );
template< unsigned int D >
- inline void _ITK_2_VTK_0( itk::LightObject* o );
+ inline bool _ITK_2_VTK_0( itk::LightObject* o );
template< class P, unsigned int D >
- inline void _ITK_2_VTK_1( itk::LightObject* o );
+ inline bool _ITK_2_VTK_1( itk::LightObject* o );
template< class I >
- inline void _ITK_2_VTK_2( itk::LightObject* o );
+ inline bool _ITK_2_VTK_2( itk::LightObject* o );
private:
// Purposely not implemented
// -------------------------------------------------------------------------
template< unsigned int D >
-void cpPlugins::Interface::Image::
+bool cpPlugins::Interface::Image::
_ITK_2_VTK_0( itk::LightObject* o )
{
+ bool s = false;
if( dynamic_cast< itk::ImageBase< D >* >( o ) != NULL )
{
- this->_ITK_2_VTK_1< char, D >( o );
- this->_ITK_2_VTK_1< short, D >( o );
- this->_ITK_2_VTK_1< int, D >( o );
- this->_ITK_2_VTK_1< long, D >( o );
- this->_ITK_2_VTK_1< unsigned char, D >( o );
- this->_ITK_2_VTK_1< unsigned short, D >( o );
- this->_ITK_2_VTK_1< unsigned int, D >( o );
- this->_ITK_2_VTK_1< unsigned long, D >( o );
- this->_ITK_2_VTK_1< float, D >( o );
- this->_ITK_2_VTK_1< double, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< char >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< short >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< int >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< long >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< unsigned char >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< unsigned short >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< unsigned int >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< unsigned long >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< float >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBPixel< double >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< char >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< short >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< int >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< long >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned char >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned short >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned int >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned long >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< float >, D >( o );
- this->_ITK_2_VTK_1< itk::RGBAPixel< double >, D >( o );
- this->_ITK_2_VTK_1< itk::DiffusionTensor3D< float >, D >( o );
- this->_ITK_2_VTK_1< itk::DiffusionTensor3D< double >, D >( o );
- this->_ITK_2_VTK_1< itk::Vector< float, D >, D >( o );
- this->_ITK_2_VTK_1< itk::Vector< double, D >, D >( o );
- this->_ITK_2_VTK_1< itk::CovariantVector< float, D >, D >( o );
- this->_ITK_2_VTK_1< itk::CovariantVector< double, D >, D >( o );
- this->_ITK_2_VTK_1< itk::Point< float, D >, D >( o );
- this->_ITK_2_VTK_1< itk::Point< double, D >, D >( o );
- this->_ITK_2_VTK_1< itk::SymmetricSecondRankTensor< float, D >, D >( o );
- this->_ITK_2_VTK_1< itk::SymmetricSecondRankTensor< double, D >, D >( o );
- }
- else
- {
- this->m_VTKObject = NULL;
- this->m_ITKvVTK = NULL;
- this->Modified( );
+ s |= this->_ITK_2_VTK_1< char, D >( o );
+ s |= this->_ITK_2_VTK_1< short, D >( o );
+ s |= this->_ITK_2_VTK_1< int, D >( o );
+ s |= this->_ITK_2_VTK_1< long, D >( o );
+ s |= this->_ITK_2_VTK_1< unsigned char, D >( o );
+ s |= this->_ITK_2_VTK_1< unsigned short, D >( o );
+ s |= this->_ITK_2_VTK_1< unsigned int, D >( o );
+ s |= this->_ITK_2_VTK_1< unsigned long, D >( o );
+ s |= this->_ITK_2_VTK_1< float, D >( o );
+ s |= this->_ITK_2_VTK_1< double, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< char >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< short >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< int >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< long >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< unsigned char >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< unsigned short >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< unsigned int >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< unsigned long >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< float >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBPixel< double >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< char >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< short >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< int >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< long >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned char >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned short >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned int >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned long >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< float >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::RGBAPixel< double >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::DiffusionTensor3D< float >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::DiffusionTensor3D< double >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::Vector< float, D >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::Vector< double, D >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::CovariantVector< float, D >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::CovariantVector< double, D >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::Point< float, D >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::Point< double, D >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::SymmetricSecondRankTensor< float, D >, D >( o );
+ s |= this->_ITK_2_VTK_1< itk::SymmetricSecondRankTensor< double, D >, D >( o );
} // fi
+ return( s );
}
// -------------------------------------------------------------------------
template< class P, unsigned int D >
-void cpPlugins::Interface::Image::
+bool cpPlugins::Interface::Image::
_ITK_2_VTK_1( itk::LightObject* o )
{
- if( dynamic_cast< itk::Image< P, D >* >( o ) == NULL )
- {
- this->m_VTKObject = NULL;
- this->m_ITKvVTK = NULL;
- this->Modified( );
- }
+ if( dynamic_cast< itk::Image< P, D >* >( o ) != NULL )
+ return( this->_ITK_2_VTK_2< itk::Image< P, D > >( o ) );
else
- this->_ITK_2_VTK_2< itk::Image< P, D > >( o );
+ return( false );
}
// -------------------------------------------------------------------------
template< class I >
-void cpPlugins::Interface::Image::
+bool cpPlugins::Interface::Image::
_ITK_2_VTK_2( itk::LightObject* o )
{
typedef itk::ImageToVTKImageFilter< I > _I2V;
// Keep object track
this->m_ITKObject = o;
this->m_VTKObject = f->GetOutput( );
+ return( true );
}
else
- {
- this->m_VTKObject = NULL;
- this->m_ITKvVTK = NULL;
-
- } // fi
- this->Modified( );
+ return( false );
}
#ifndef cpPlugins_Interface_EXPORTS
{
bool iv = i->second.IsValid( );
bool ir = i->second.IsRequired( );
- if( iv || !ir )
+ if( !iv && ir )
+ r =
+ "ProcessObject: Required input \"" +
+ i->first + "@" + this->GetClassName( ) +
+ "\" is not valid (=NULL).";
+ if( iv && r == "" )
{
Self* src = dynamic_cast< Self* >( i->second->GetSource( ) );
if( src != NULL )
r = src->Update( );
} // fi
- }
- else
- r =
- "ProcessObject: Required input \"" +
- i->first + "@" + this->GetClassName( ) +
- "\" is not valid (=NULL).";
+
+ } // fi
} // rof
if( filter == NULL )
{
typename F::Pointer filter_ptr = F::New( );
- this->SetITK( filter_ptr.GetPointer( ) );
- this->SetVTK( NULL );
+ this->m_ITKObject = filter_ptr;
+ this->m_VTKObject = NULL;
filter = filter_ptr.GetPointer( );
this->Modified( );
if( filter == NULL )
{
vtkSmartPointer< F > filter_ptr = vtkSmartPointer< F >::New( );
- this->SetITK( NULL );
- this->SetVTK( filter_ptr );
+ this->m_ITKObject = NULL;
+ this->m_VTKObject = filter_ptr;
filter = filter_ptr.GetPointer( );
this->Modified( );
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out != NULL )
- {
- out->SetITK< O >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "BinaryErodeImageFilter: output not correctly created." );
+ out->SetITK( filter->GetOutput( ) );
+ return( "" );
}
// eof - $RCSfile$
BinaryThresholdImageFilter( )
: Superclass( )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
this->m_Parameters->ConfigureAsReal( "LowerThresholdValue" );
_GenerateData( )
{
auto image = this->GetInputData< cpPlugins::Interface::Image >( "Input" );
- if( image == NULL )
- return( "BinaryThresholdImageFilter: No input image." );
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out != NULL )
- {
- out->SetITK< O >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "BinaryThresholdImageFilter: output not correctly created." );
+ out->SetITK( filter->GetOutput( ) );
+ return( "" );
}
// eof - $RCSfile$
CPRFilter( )
: Superclass( )
{
- this->_AddInput( "InputImage", true );
- this->_AddInput( "InputAxis", true );
+ this->_AddInput( "InputImage" );
+ this->_AddInput( "InputAxis" );
this->_AddInput( "Interpolator", false );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
{
auto image =
this->GetInputData< cpPlugins::Interface::Image >( "InputImage" );
- if( image == NULL )
- return( "CPRFilter: No input image." );
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
this->GetInputData< cpPlugins::Interface::PolyLineParametricPath >(
"InputAxis"
)->GetITK< _Path >( );
+ if( axis == NULL )
+ return( "CPRFilter: Invalid input axis." );
auto w_int =
this->GetInputData< cpPlugins::Interface::DataObject >( "Interpolator" );
_Interpolator* interpolator = NULL;
// Assign output
auto out =
this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- out->SetITK< I >( filter->GetOutput( ) );
+ out->SetITK( filter->GetOutput( ) );
return( "" );
}
Cutter( )
: Superclass( )
{
- this->_AddInput( "InputMesh", true );
- this->_AddInput( "InputFunction", true );
+ this->_AddInput( "InputMesh" );
+ this->_AddInput( "InputFunction" );
this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
}
this->GetInputData< cpPlugins::Interface::ImplicitFunction >(
"InputFunction"
);
- if( function == NULL )
- return( "Cutter: Input data 1 is not a valid implicit function." );
-
vtkCutter* cutter = this->_CreateVTK< vtkCutter >( );
cutter->DebugOn( );
cutter->SetInputData( mesh->GetVTK< vtkPolyData >( ) );
ExtractSliceImageFilter( )
: Superclass( )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
this->m_Parameters->ConfigureAsUint( "Axis" );
_GenerateData( )
{
auto image = this->GetInputData< cpPlugins::Interface::Image >( "Input" );
- if( image == NULL )
- return( "ExtractSliceImageFilter: No input image." );
-
itk::DataObject* itk_image = NULL;
std::string r = "";
/*
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out != NULL )
- {
- out->SetITK< O >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "ExtractSliceImageFilter: output not correctly created." );
+ out->SetITK( filter->GetOutput( ) );
+ return( "" );
}
// eof - $RCSfile$
ImageInterpolatorSource( )
: Superclass( )
{
- this->_AddInput( "ReferenceImage", true );
+ this->_AddInput( "ReferenceImage" );
this->_AddOutput< cpPlugins::Interface::DataObject >( "Output" );
std::vector< std::string > type_choices;
{
auto image =
this->GetInputData< cpPlugins::Interface::Image >( "ReferenceImage" );
- if( image == NULL )
- return( "ImageInterpolatorSource: No input image." );
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
InputDataReproducer( )
: Superclass( )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::DataObject >( "Output" );
this->m_Parameters->Clear( );
}
: Superclass( ),
m_PlaneWidget( NULL )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::DataObject >( "PositiveOutput" );
this->_AddOutput< cpPlugins::Interface::DataObject >( "NegativeOutput" );
} // fi
// Assign outputs
- pos_out->SetITK< I >( filter->GetPositiveOutput( ) );
- neg_out->SetITK< I >( filter->GetNegativeOutput( ) );
+ pos_out->SetITK( filter->GetPositiveOutput( ) );
+ neg_out->SetITK( filter->GetNegativeOutput( ) );
return( "" );
}
MacheteImageFilter()
: Superclass()
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >("Output");
this->m_Parameters->ConfigureAsReal("Radius");
_GenerateData()
{
auto image = this->GetInputData< cpPlugins::Interface::Image >("Input");
- if (image == NULL)
- return("MacheteImageFilter: No input image.");
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllScalarTypes(2, image, itk_image, r, _GD0);
{
return(
this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
- image
- )
+ image
+ )
);
}
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >("Output");
- if (out != NULL)
- {
- out->SetITK< O >( filter->GetOutput( ) );
- return("");
- }
- else
- return("MacheteImageFilter: output not correctly created.");
+ out->SetITK( filter->GetOutput( ) );
+ return("");
}
// eof - $RCSfile$
MarchingCubes( )
: Superclass( )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
this->m_Parameters->ConfigureAsRealList( "Thresholds" );
{
// Get input
auto image = this->GetInputData< cpPlugins::Interface::Image >( "Input" );
- if( image == NULL )
- return( "MarchingCubes: Input data is not a valid image." );
vtkImageData* vtk_image = image->GetVTK< vtkImageData >( );
if( vtk_image == NULL )
return( "MarchingCubes: Input does not have a valid VTK conversion." );
MedianImageFilter( )
: Superclass( )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
this->m_Parameters->ConfigureAsUint( "Radius" );
_GenerateData( )
{
auto image = this->GetInputData< cpPlugins::Interface::Image >( "Input" );
- if( image == NULL )
- return( "MedianImageFilter: No input image." );
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out != NULL )
- {
- out->SetITK< O >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "MedianImageFilter: output not correctly created." );
+ out->SetITK( filter->GetOutput( ) );
+ return( "" );
}
// eof - $RCSfile$
OtsuThresholdImageFilter( )
: Superclass( )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
this->m_Parameters->ConfigureAsUint( "NumberOfHistogramBins" );
_GenerateData( )
{
auto image = this->GetInputData< cpPlugins::Interface::Image >( "Input" );
- if( image == NULL )
- return( "OtsuThresholdImageFilter: No input image." );
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out != NULL )
- {
- out->SetITK< O >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "OtsuThresholdImageFilter: output not correctly created." );
+ out->SetITK( filter->GetOutput( ) );
+ return( "" );
}
// eof - $RCSfile$
RGBImageToOtherChannelsFilter( )
: Superclass( )
{
- typedef cpPlugins::Interface::Parameters TParameters;
-
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
std::vector< std::string > choices;
_GenerateData( )
{
auto image = this->GetInputData< cpPlugins::Interface::Image >( "Input" );
- if( image == NULL )
- return( "RGBImageToOtherChannelsFilter: No input image." );
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllRGBTypes( 2, image, itk_image, r, _GD0 );
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out != NULL )
- {
- out->SetITK< _O >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "RGBImageToOtherChannelsFilter: output not correctly created." );
-
+ out->SetITK( filter->GetOutput( ) );
return( "" );
}
SignedMaurerDistanceMapImageFilter( )
: Superclass( )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
this->m_Parameters->ConfigureAsReal( "BackgroundValue" );
_GenerateData( )
{
auto image = this->GetInputData< cpPlugins::Interface::Image >( "Input" );
- if( image == NULL )
- return( "SignedMaurerDistanceMapImageFilter: No input image." );
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out != NULL )
- {
- out->SetITK< O >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "SignedMaurerDistanceMapImageFilter: output not correctly created." );
+ out->SetITK( filter->GetOutput( ) );
+ return( "" );
}
// eof - $RCSfile$
TriangleMeshToBinaryImageFilter( )
: Superclass( )
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
this->m_Parameters->ConfigureAsUint( "InsideValue" );
typedef itk::Mesh< double, 3 > _3D;
auto input = this->GetInputData< cpPlugins::Interface::Mesh >( "Input" );
- if( input == NULL )
- return( "TriangleMeshToBinaryImageFilter: No valid input mesh." );
-
auto in_3f = input->GetITK< _3F >( );
auto in_3d = input->GetITK< _3D >( );
if ( in_3f != NULL ) return( this->_GD0( in_3f ) );
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out != NULL )
- {
- out->SetITK< I >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "TriangleMeshToBinaryImageFilter: output not correctly created." );
+ out->SetITK( filter->GetOutput( ) );
+ return( "" );
}
// eof - $RCSfile$
stlr->Update( );
auto out = this->GetOutputData< cpPlugins::Interface::Mesh >( "Output" );
- if( out != NULL )
- out->SetVTK( stlr->GetOutput( ) );
- else
- return( "MeshReader: output not correctly created." );
+ out->SetVTK( stlr->GetOutput( ) );
return( "" );
}
else if( ext == "obj" )
pdr->Update( );
auto out = this->GetOutputData< cpPlugins::Interface::Mesh >( "Output" );
- if( out != NULL )
- out->SetVTK( pdr->GetOutput( ) );
- else
- return( "MeshReader: output not correctly created." );
+ out->SetVTK( pdr->GetOutput( ) );
return( "" );
} // fi