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 #ifndef _mitk_Point_Set_To_Geometry_Data_Filter__h_ 00019 #define _mitk_Point_Set_To_Geometry_Data_Filter__h_ 00020 00021 #include <mitkPointSet.h> 00022 #include "MitkExtExports.h" 00023 #include <mitkGeometryDataSource.h> 00024 00025 namespace mitk 00026 { 00027 00032 class MitkExt_EXPORT PointSetToGeometryDataFilter : public GeometryDataSource 00033 { 00034 public: 00038 mitkClassMacro( PointSetToGeometryDataFilter, GeometryDataSource ); 00039 00040 itkNewMacro( Self ); 00041 00045 typedef mitk::PointSet InputType; 00046 typedef InputType::Pointer InputTypePointer; 00047 typedef InputType::ConstPointer InputTypeConstPointer; 00048 00052 virtual void SetInput( const InputType* input ); 00053 virtual void SetInput( const unsigned int& idx, const InputType* input ); 00054 virtual InputType* GetInput(); 00055 virtual InputType* GetInput(const unsigned int& idx); 00056 00057 protected: 00058 00062 PointSetToGeometryDataFilter(); 00063 00067 virtual ~PointSetToGeometryDataFilter(); 00068 00069 00070 }; 00071 00072 } //end of namespace mitk 00073 00074 00075 #endif 00076 00077