C# Class Microsoft.RTConvert.MedIO.Readers.DicomFileAndPath

Read only tuple of DicomFile and its original path
ファイルを表示 Open project: microsoft/InnerEye-DICOM-RT Class Usage Examples

Public Methods

Method Description
DicomFileAndPath ( DicomFile dicomFile, string path ) : System

Creates a new instance of the class.

SafeCreate ( Stream stream, string path ) : DicomFileAndPath

Create a DicomFileAndPath from a stream and path

SafeCreate ( string path ) : DicomFileAndPath

Create a DicomFileAndPath from a path to a folder

SaveToFolder ( string folder ) : string

Saves the Dicom file to the given folder. The filename is read from the Path property, which must be non-empty. Returns the full filename (folder plus filename) to which the file was saved.

Method Details

DicomFileAndPath() public method

Creates a new instance of the class.
public DicomFileAndPath ( DicomFile dicomFile, string path ) : System
dicomFile DicomFile The value to use for the File property of the object.
path string The value to use for the Path property of the object.
return System

SafeCreate() public static method

Create a DicomFileAndPath from a stream and path
public static SafeCreate ( Stream stream, string path ) : DicomFileAndPath
stream Stream
path string
return DicomFileAndPath

SafeCreate() public static method

Create a DicomFileAndPath from a path to a folder
public static SafeCreate ( string path ) : DicomFileAndPath
path string
return DicomFileAndPath

SaveToFolder() public method

Saves the Dicom file to the given folder. The filename is read from the Path property, which must be non-empty. Returns the full filename (folder plus filename) to which the file was saved.
public SaveToFolder ( string folder ) : string
folder string The directory into which the Dicom file should be saved. The directory must exist already.
return string