Click or drag to resize
SoVRDicomFileReaderSetFilenameList Method (String, Int32, Int32, Int32)

Specify a list of DICOM files to load, using a sprintf-like format.

Namespace: OIV.VolumeViz.Readers
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public bool SetFilenameList(
	string format,
	int startIndex,
	int endIndex,
	int indexStep
)

Parameters

format
Type: SystemString

The format of the file name, which must be an absolute file path. e.g. "c:/testData/Brain.%04d.dcm", where "%04d" will be replaced by the current index, producing "c:/testData/Brain.0000.dcm" and so on.

startIndex
Type: SystemInt32

The index of the first file to add

endIndex
Type: SystemInt32

The index of the last file to add

indexStep
Type: SystemInt32

the stride to use (e.g. 2 will skip one out of two files, by generating indices 0, 2, 4, ...)

Return Value

Type: Boolean

true if successful.

Remarks

This will iterate from startIndex to endIndex (included) with increment of indexStep. For each step, this will add a file of name f, where f is format sprintf-ed with the current iteration index. All the specified files should be part of the same volume data set.

Note Note

Member available since Open Inventor 9.4.1

See Also