/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: $RCSfile: itkImageToPathFilter.txx,v $ Language: C++ Date: $Date: 2007-02-25 14:36:07 $ Version: $Revision: 1.2 $ Copyright (c) Insight Software Consortium. All rights reserved. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef __itkImageToPathFilter_txx #define __itkImageToPathFilter_txx #include "itkImageToPathFilter.h" namespace itk { /** * */ template ImageToPathFilter ::ImageToPathFilter() { // Modify superclass default values, can be overridden by subclasses this->SetNumberOfRequiredInputs(1); } /** * */ template ImageToPathFilter ::~ImageToPathFilter() { } /** * */ template void ImageToPathFilter ::SetInput(const InputImageType *input) { // Process object is not const-correct so the const_cast is required here this->ProcessObject::SetNthInput(0, const_cast< InputImageType * >( input ) ); } /** * Connect one of the operands for pixel-wise addition */ template void ImageToPathFilter ::SetInput( unsigned int index, const TInputImage * image ) { // Process object is not const-correct so the const_cast is required here this->ProcessObject::SetNthInput(index, const_cast< TInputImage *>( image ) ); } /** * */ template const typename ImageToPathFilter::InputImageType * ImageToPathFilter ::GetInput(void) { if (this->GetNumberOfInputs() < 1) { return 0; } return static_cast (this->ProcessObject::GetInput(0) ); } /** * */ template const typename ImageToPathFilter::InputImageType * ImageToPathFilter ::GetInput(unsigned int idx) { return static_cast< const TInputImage * > (this->ProcessObject::GetInput(idx)); } template void ImageToPathFilter ::PrintSelf(std::ostream& os, Indent indent) const { Superclass::PrintSelf(os, indent); } } // end namespace itk #endif