00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkNumericSeriesFileNames.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007-03-22 14:28:51 $ 00007 Version: $Revision: 1.6 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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 #ifndef __itkNumericSeriesFileNames_h 00018 #define __itkNumericSeriesFileNames_h 00019 00020 #ifdef _MSC_VER 00021 #pragma warning ( disable : 4786 ) 00022 #endif 00023 00024 #include "itkObject.h" 00025 #include "itkObjectFactory.h" 00026 #include "itkExceptionObject.h" 00027 #include <vector> 00028 00029 namespace itk 00030 { 00031 00046 class ITK_EXPORT NumericSeriesFileNames : public Object 00047 { 00048 public: 00050 typedef NumericSeriesFileNames Self; 00051 typedef Object Superclass; 00052 typedef SmartPointer<Self> Pointer; 00053 00055 itkNewMacro(Self); 00056 00058 itkTypeMacro(NumericSeriesFileNames, Object); 00059 00060 /* -------- Define the API for NumericSeriesFileNames ----------- */ 00061 00064 itkSetMacro(StartIndex,unsigned long); 00065 itkGetMacro(StartIndex,unsigned long); 00067 00069 itkSetMacro(EndIndex,unsigned long); 00070 itkGetMacro(EndIndex,unsigned long); 00072 00075 itkSetMacro(IncrementIndex,unsigned long); 00076 itkGetMacro(IncrementIndex,unsigned long); 00078 00083 itkSetStringMacro(SeriesFormat); 00084 itkGetStringMacro(SeriesFormat); 00086 00089 const std::vector<std::string> &GetFileNames (); 00090 00091 protected: 00092 NumericSeriesFileNames(); 00093 ~NumericSeriesFileNames() {}; 00094 void PrintSelf(std::ostream& os, Indent indent) const; 00095 00096 private: 00097 NumericSeriesFileNames(const Self&); //purposely not implemented 00098 void operator=(const Self&); //purposely not implemented 00099 00100 unsigned long m_StartIndex; 00101 unsigned long m_EndIndex; 00102 unsigned long m_IncrementIndex; 00103 00105 std::string m_SeriesFormat; 00106 00107 std::vector<std::string> m_FileNames; 00108 }; 00109 00110 } //namespace ITK 00111 00112 #endif // __itkNumericSeriesFileNames_h 00113