1 #ifndef __CPM__ALGORITHMS__BASE__INPLACEMESHFILTER__HXX__
2 #define __CPM__ALGORITHMS__BASE__INPLACEMESHFILTER__HXX__
4 // -------------------------------------------------------------------------
6 cpm::Algorithms::Base::InPlaceMeshFilter< M >::
12 // -------------------------------------------------------------------------
14 cpm::Algorithms::Base::InPlaceMeshFilter< M >::
19 // -------------------------------------------------------------------------
21 void cpm::Algorithms::Base::InPlaceMeshFilter< M >::
24 const M* inPtr = dynamic_cast< const M* >(
25 this->itk::ProcessObject::GetInput( 0 )
27 M* outPtr = this->GetOutput( );
31 typename M::Pointer inAsOut = NULL;
32 inAsOut = const_cast< M* >( inPtr );
33 this->GraftOutput( inAsOut );
38 // -------------------------------------------------------------------------
40 void cpm::Algorithms::Base::InPlaceMeshFilter< M >::
44 this->itk::ProcessObject::ReleaseInputs( );
45 M* ptr = const_cast< M* >( this->GetInput( ) );
49 std::cout << "InPlaceMeshFilter::ReleaseData" << std::endl;
52 #endif // __CPM__ALGORITHMS__BASE__INPLACEMESHFILTER__HXX__