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 00019 #ifndef _MITK_POINT_SET_SOURCE_H 00020 #define _MITK_POINT_SET_SOURCE_H 00021 00022 #include "mitkBaseProcess.h" 00023 #include "mitkPointSet.h" 00024 00025 namespace mitk 00026 { 00037 class MITK_CORE_EXPORT PointSetSource : public BaseProcess 00038 { 00039 public: 00040 mitkClassMacro( PointSetSource, BaseProcess ); 00041 00042 itkNewMacro( Self ); 00043 00044 typedef PointSet OutputType; 00045 00046 typedef OutputType::Pointer OutputTypePointer; 00047 00054 virtual itk::DataObject::Pointer MakeOutput ( unsigned int idx ); 00055 00060 virtual void SetOutput( OutputType* output ); 00061 00062 virtual void GraftOutput(OutputType *output); 00063 virtual void GraftNthOutput(unsigned int idx, OutputType *output); 00064 00069 virtual OutputType* GetOutput(); 00070 00076 virtual OutputType* GetOutput ( unsigned int idx ); 00077 00078 protected: 00079 00080 PointSetSource(); 00081 00082 virtual ~PointSetSource(); 00083 00084 }; 00085 00086 } 00087 #endif // #define _MITK_POINT_SET_SOURCE_H