SIVIC API
0.9.26
|
#include <svkDICOMRawDataWriter.h>
Public Member Functions | |
vtkTypeMacro (svkDICOMRawDataWriter, svkImageWriter) | |
void | SetSHA1Digest (string sha1Digest) |
void | AddAssociatedFile (string fileName, string sha1Digest) |
void | ReuseSeriesUID (bool reuseUID) |
void | ReuseInstanceUID (bool reuseUID) |
virtual void | SetFileName (const char *fileName) |
void | SetSeriesUID (string UID) |
void | SetInstanceUID (string UID) |
void | SetSkipFileSizeCheck (bool skipFileSizeCheck) |
virtual void | Write () |
Public Member Functions inherited from svkImageWriter | |
vtkTypeMacro (svkImageWriter, vtkImageWriter) | |
virtual void | Update () |
void | SetSeriesNumber (int number) |
void | SetSeriesDescription (string description) |
void | SetInstanceNumber (int number) |
virtual void | SetFileNameWithExtension (const char *) |
Static Public Member Functions | |
static svkDICOMRawDataWriter * | New () |
Static Public Member Functions inherited from svkImageWriter | |
static svkImageWriter * | New () |
Protected Member Functions | |
svkDICOMRawDataWriter () | |
~svkDICOMRawDataWriter () | |
virtual int | FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
Protected Member Functions inherited from svkImageWriter | |
svkImageWriter () | |
~svkImageWriter () | |
virtual void | SetProvenance () |
Additional Inherited Members | |
Public Types inherited from svkImageWriter | |
enum | seriesNumStatus { UNDEFINED_SERIES_NUMBER = -1000 } |
Protected Attributes inherited from svkImageWriter | |
int | seriesNumber |
string | seriesDescription |
int | instanceNumber |
Concrete svkImageWriter instance for creating a Raw Data SOP instance. Used within svk primarily for encapsulating a non DICOM raw file (e.g. a GE PFile) into a DICOM object such that it may managed via DICOM C-STORE, C-GET, etc. Encapsulates a raw file as well as any associated files into a single object.
|
protected |
References svkImageWriter::instanceNumber, and svkImageWriter::seriesNumber.
|
protected |
void AddAssociatedFile | ( | string | fileName, |
string | sha1DigestVal | ||
) |
Add filename for file associated with the PFile and to be included in RawData SOP instance.
|
protectedvirtual |
|
static |
void ReuseInstanceUID | ( | bool | reuseUID | ) |
By default the DICOM Raw Storage object will have the same instance uid as the raw file. However in some cases it may be desirable to use a unique UID, for example if another series exists which contains the reconstructed MRImageStorage objects with the same UID. If set to fasle, then a unique UID will be generated and inserted.
void ReuseSeriesUID | ( | bool | reuseUID | ) |
By default the DICOM Raw Storage object will have the same uid as the raw file. However in some cases it may be desirable to use a unique UID, for example if another series exists which contains the reconstructed MRImageStorage objects with the same UID. If set to fasle, then a unique UID will be generated and inserted.
|
virtual |
Reimplemented from svkImageWriter.
void SetInstanceUID | ( | string | UID | ) |
void SetSeriesUID | ( | string | UID | ) |
void SetSHA1Digest | ( | string | sha1Digest | ) |
void SetSkipFileSizeCheck | ( | bool | skipFileSizeCheck | ) |
vtkTypeMacro | ( | svkDICOMRawDataWriter | , |
svkImageWriter | |||
) |
|
virtual |
The main method which triggers the writer to create DICOM Raw Data file.
References svkImageReaderFactory::CreateImageReader2(), svkGEPFileReader::GetPFMap(), svkDcmHeader::GetStringValue(), svkDcmHeader::InsertUniqueUID(), svkImageReaderFactory::New(), svkImageReader2::OnlyReadHeader(), svkImageReaderFactory::QuickParse(), svkDcmHeader::SetValue(), and svkDcmHeader::WriteDcmFile().