ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkNumericSeriesFileNames.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkNumericSeriesFileNames_h
19 #define itkNumericSeriesFileNames_h
20 #include "ITKIOImageBaseExport.h"
21 
22 
23 #include "itkObject.h"
24 #include "itkObjectFactory.h"
25 #include "itkIntTypes.h"
26 #include "itkMacro.h"
27 #include <vector>
28 
29 namespace itk
30 {
54 class ITKIOImageBase_EXPORT NumericSeriesFileNames:public Object
55 {
56 public:
57  ITK_DISALLOW_COPY_AND_ASSIGN(NumericSeriesFileNames);
58 
61  using Superclass = Object;
63 
65  itkNewMacro(Self);
66 
68  itkTypeMacro(NumericSeriesFileNames, Object);
69 
70  /* -------- Define the API for NumericSeriesFileNames ----------- */
71 
74  itkSetMacro(StartIndex, SizeValueType);
75  itkGetConstMacro(StartIndex, SizeValueType);
77 
79  itkSetMacro(EndIndex, SizeValueType);
80  itkGetConstMacro(EndIndex, SizeValueType);
82 
85  itkSetMacro(IncrementIndex, SizeValueType);
86  itkGetConstMacro(IncrementIndex, SizeValueType);
88 
94  itkSetStringMacro(SeriesFormat);
95  itkGetStringMacro(SeriesFormat);
97 
100  const std::vector< std::string > & GetFileNames();
101 
102 protected:
104  ~NumericSeriesFileNames() override = default;
105  void PrintSelf(std::ostream & os, Indent indent) const override;
106 
107 private:
108  SizeValueType m_StartIndex{1};
109  SizeValueType m_EndIndex{1};
110  SizeValueType m_IncrementIndex{1};
111 
113  std::string m_SeriesFormat;
114 
115  std::vector< std::string > m_FileNames;
116 };
117 } //namespace ITK
118 
119 #endif // itkNumericSeriesFileNames_h
Light weight base class for most itk classes.
unsigned long SizeValueType
Definition: itkIntTypes.h:83
Generate an ordered sequence of filenames.
std::vector< std::string > m_FileNames
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:60