#ifndef __CPM__ALGORITHMS__BASE__INPLACEMESHFILTER__HXX__ #define __CPM__ALGORITHMS__BASE__INPLACEMESHFILTER__HXX__ // ------------------------------------------------------------------------- template< class M > cpm::Algorithms::Base::InPlaceMeshFilter< M >:: InPlaceMeshFilter( ) : Superclass( ) { } // ------------------------------------------------------------------------- template< class M > cpm::Algorithms::Base::InPlaceMeshFilter< M >:: ~InPlaceMeshFilter( ) { } // ------------------------------------------------------------------------- template< class M > void cpm::Algorithms::Base::InPlaceMeshFilter< M >:: PrepareOutputs( ) { const M* inPtr = dynamic_cast< const M* >( this->itk::ProcessObject::GetInput( 0 ) ); M* outPtr = this->GetOutput( ); if( inPtr != NULL ) { typename M::Pointer inAsOut = NULL; inAsOut = const_cast< M* >( inPtr ); this->GraftOutput( inAsOut ); } // fi } // ------------------------------------------------------------------------- template< class M > void cpm::Algorithms::Base::InPlaceMeshFilter< M >:: ReleaseInputs( ) { /* this->itk::ProcessObject::ReleaseInputs( ); M* ptr = const_cast< M* >( this->GetInput( ) ); if( ptr ) ptr->ReleaseData( ); */ std::cout << "InPlaceMeshFilter::ReleaseData" << std::endl; } #endif // __CPM__ALGORITHMS__BASE__INPLACEMESHFILTER__HXX__ // eof - $RCSfile$