#include <itkNumericSeriesFileNames.h>
Generate an ordered sequence of filenames.
This class generate an ordered sequence of files whose filenames contain a single unique, non-negative, integral value (e.g. test.1.png, test2.png, foo.3, etc.).
The file name is created from a snprintf-style series format which should contain an integer format string like "%d". Bad formats will cause the series reader to throw an exception.
Warning: returned filenames (which may be full or relative paths) are not checked against any system-imposed path-length limit, because of difficulties finding a portable method to do so.
- ITK Sphinx Examples:
-
- Examples
- Examples/IO/ImageReadDicomSeriesWrite.cxx, Examples/IO/ImageReadImageSeriesWrite.cxx, Examples/IO/ImageSeriesReadWrite.cxx, Examples/IO/RGBImageSeriesReadWrite.cxx, Examples/IO/VisibleHumanStreamReadWrite.cxx, SphinxExamples/src/Core/Common/ReRunPipelineWithChangingLargestPossibleRegion/Code.cxx, SphinxExamples/src/IO/GDCM/ResampleDICOMSeries/Code.cxx, and SphinxExamples/src/IO/ImageBase/Create3DFromSeriesOf2D/Code.cxx.
Definition at line 54 of file itkNumericSeriesFileNames.h.
◆ Pointer
◆ Self
◆ Superclass
◆ NumericSeriesFileNames()
itk::NumericSeriesFileNames::NumericSeriesFileNames |
( |
| ) |
|
|
protected |
◆ ~NumericSeriesFileNames()
itk::NumericSeriesFileNames::~NumericSeriesFileNames |
( |
| ) |
|
|
overrideprotecteddefault |
◆ GetEndIndex()
virtual SizeValueType itk::NumericSeriesFileNames::GetEndIndex |
( |
| ) |
const |
|
virtual |
Set the end index of the numeric series. The default is 1.
◆ GetFileNames()
const std::vector<std::string>& itk::NumericSeriesFileNames::GetFileNames |
( |
| ) |
|
Returns a vector containing the series' file names. The file names are ordered by Index.
◆ GetIncrementIndex()
virtual SizeValueType itk::NumericSeriesFileNames::GetIncrementIndex |
( |
| ) |
const |
|
virtual |
Set the increment of the index of the numeric series. The default value is 1.
◆ GetNameOfClass()
const char* itk::NumericSeriesFileNames::GetNameOfClass |
( |
| ) |
const |
|
overridevirtual |
◆ GetSeriesFormat()
virtual const char* itk::NumericSeriesFileNames::GetSeriesFormat |
( |
| ) |
const |
|
virtual |
The format string used to generate the series. Different subclasses require different characteristics of this string. For example, the subclass NumericSeriesFileNames requires a "%d" or some integral format specified to be embedded in the string. Default is "%d".
◆ GetStartIndex()
virtual SizeValueType itk::NumericSeriesFileNames::GetStartIndex |
( |
| ) |
const |
|
virtual |
Use this method to set the starting index of the numeric series. The default value is 1.
◆ New()
static Pointer itk::NumericSeriesFileNames::New |
( |
| ) |
|
|
static |
◆ PrintSelf()
void itk::NumericSeriesFileNames::PrintSelf |
( |
std::ostream & |
os, |
|
|
Indent |
indent |
|
) |
| const |
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Object.
◆ SetEndIndex()
virtual void itk::NumericSeriesFileNames::SetEndIndex |
( |
SizeValueType |
_arg | ) |
|
|
virtual |
Set the end index of the numeric series. The default is 1.
◆ SetIncrementIndex()
virtual void itk::NumericSeriesFileNames::SetIncrementIndex |
( |
SizeValueType |
_arg | ) |
|
|
virtual |
Set the increment of the index of the numeric series. The default value is 1.
◆ SetSeriesFormat()
virtual void itk::NumericSeriesFileNames::SetSeriesFormat |
( |
const char * |
_arg | ) |
|
|
virtual |
The format string used to generate the series. Different subclasses require different characteristics of this string. For example, the subclass NumericSeriesFileNames requires a "%d" or some integral format specified to be embedded in the string. Default is "%d".
◆ SetStartIndex()
virtual void itk::NumericSeriesFileNames::SetStartIndex |
( |
SizeValueType |
_arg | ) |
|
|
virtual |
Use this method to set the starting index of the numeric series. The default value is 1.
◆ m_EndIndex
◆ m_FileNames
std::vector<std::string> itk::NumericSeriesFileNames::m_FileNames {} |
|
private |
◆ m_IncrementIndex
SizeValueType itk::NumericSeriesFileNames::m_IncrementIndex { 1 } |
|
private |
◆ m_SeriesFormat
std::string itk::NumericSeriesFileNames::m_SeriesFormat {} |
|
private |
◆ m_StartIndex
The documentation for this class was generated from the following file: