// -------------------------------------------------------------------------
cpPlugins::Plugins::MeshReader::
MeshReader( )
- : Superclass( )
+ : Superclass( ),
+ m_Reader( NULL )
{
this->m_ClassName = "cpPlugins::MeshReader";
this->m_ClassCategory = "MeshReader";
cpPlugins::Plugins::MeshReader::
~MeshReader( )
{
+ if( this->m_Reader != NULL )
+ this->m_Reader = NULL;
}
// -------------------------------------------------------------------------
pdr->Update( );
cpPlugins::Interface::Mesh* out =
- this->_Output< cpPlugins::Interface::Mesh >( 0 );
+ this->GetOutput< cpPlugins::Interface::Mesh >( 0 );
if( out != NULL )
out->SetVTKMesh( pdr->GetOutput( ) );
else