From 48b30a6098fc37b059dcb37ada49584f459d1fbb Mon Sep 17 00:00:00 2001 From: dsarrut Date: Fri, 29 Jan 2010 13:53:15 +0000 Subject: [PATCH] - new GF system --- common/clitkImageToImageGenericFilter.cxx | 20 +++++++++++++++----- common/clitkImageToImageGenericFilter.h | 5 +++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/common/clitkImageToImageGenericFilter.cxx b/common/clitkImageToImageGenericFilter.cxx index f41f8d3..105afe0 100644 --- a/common/clitkImageToImageGenericFilter.cxx +++ b/common/clitkImageToImageGenericFilter.cxx @@ -203,19 +203,29 @@ bool clitk::ImageToImageGenericFilterBase::CheckPixelType() { //-------------------------------------------------------------------- void clitk::ImageToImageGenericFilterBase::PrintAvailableImageTypes() { - std::cout << "The filter <" << mFilterName << "> manages "; + std::cout << GetAvailableImageTypes(); +} +//-------------------------------------------------------------------- + + +//-------------------------------------------------------------------- +std::string clitk::ImageToImageGenericFilterBase::GetAvailableImageTypes() { + std::ostringstream oss; + oss << "The filter <" << mFilterName << "> manages "; for(unsigned int i=0; i is not available for " diff --git a/common/clitkImageToImageGenericFilter.h b/common/clitkImageToImageGenericFilter.h index c065fc9..645fe9b 100644 --- a/common/clitkImageToImageGenericFilter.h +++ b/common/clitkImageToImageGenericFilter.h @@ -3,8 +3,8 @@ Program: clitk Module: $RCSfile: clitkImageToImageGenericFilter.h,v $ Language: C++ - Date: $Date: 2010/01/29 07:27:31 $ - Version: $Revision: 1.2 $ + Date: $Date: 2010/01/29 13:53:15 $ + Version: $Revision: 1.3 $ Author : Joel Schaerer David Sarrut @@ -84,6 +84,7 @@ namespace clitk { // Information on available image types void PrintAvailableImageTypes(); + std::string GetAvailableImageTypes(); bool CheckDimension(unsigned int d); bool CheckPixelType(std::string pt); -- 2.47.1