00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #include "mitkPointSetToGeometryDataFilter.h" 00019 #include <itkProcessObject.h> 00020 00021 void mitk::PointSetToGeometryDataFilter::SetInput ( const mitk::PointSetToGeometryDataFilter::InputType* input ) 00022 { 00023 this->SetInput( 0, input ); 00024 } 00025 00026 00027 void mitk::PointSetToGeometryDataFilter::SetInput ( const unsigned int& idx, const mitk::PointSetToGeometryDataFilter::InputType* input ) 00028 { 00029 if ( idx + 1 > this->GetNumberOfInputs() ) 00030 { 00031 this->SetNumberOfRequiredInputs(idx + 1); 00032 } 00033 if ( input != static_cast<InputType*> ( this->ProcessObject::GetInput ( idx ) ) ) 00034 { 00035 this->ProcessObject::SetNthInput ( idx, const_cast<InputType*> ( input ) ); 00036 this->Modified(); 00037 } 00038 } 00039 00040 00041 mitk::PointSetToGeometryDataFilter::InputType* mitk::PointSetToGeometryDataFilter::GetInput() 00042 { 00043 return this->GetInput( 0 ); 00044 } 00045 00046 00047 mitk::PointSetToGeometryDataFilter::InputType* mitk::PointSetToGeometryDataFilter::GetInput ( const unsigned int& idx ) 00048 { 00049 if ( this->GetNumberOfInputs() < 1 ) 00050 return 0; 00051 00052 return static_cast<InputType*> ( this->ProcessObject::GetInput ( idx ) ); 00053 } 00054 00055 00056 mitk::PointSetToGeometryDataFilter::PointSetToGeometryDataFilter() 00057 {} 00058 00059 mitk::PointSetToGeometryDataFilter::~PointSetToGeometryDataFilter() 00060 {} 00061