Writer ala DOM (Document Object Model) This class is a non-validating writer, it will only performs well- formedness check only.
More...
#include <gdcmWriter.h>
List of all members.
Detailed Description
Writer ala DOM (Document Object Model) This class is a non-validating writer, it will only performs well- formedness check only.
Detailled description here To avoid GDCM being yet another broken DICOM lib we try to be user level and avoid writing illegal stuff (odd length, non-zero value for Item start/end length ...) Therefore you cannot (well unless you are really smart) write DICOM with even length tag. All the checks are consider basics:
- Correct Meta Information Header (see gdcm::FileMetaInformation)
- Zero value for Item Length (0xfffe, 0xe00d/0xe0dd)
- Even length for any elements
- Alphabetical order for elements (garanteed by design of internals)
- 32bits VR will be rewritten with 00
- Warning:
- gdcm::Writer cannot write a DataSet if no SOP Instance UID (0008,0018) is found
- See also:
- Reader DataSet File
- Examples:
-
ChangeSequenceUltrasound.cxx, ClinicalTrialAnnotate.cxx, DuplicatePCDE.cxx, EncapsulateFileInRawData.cxx, FixBrokenJ2K.cxx, GenAllVR.cxx, GenFakeIdentifyFile.cxx, GenSeqs.cxx, HelloWorld.cxx, LargeVRDSExplicit.cxx, PatchFile.cxx, and rle2img.cxx.
Constructor & Destructor Documentation
gdcm::Writer::Writer |
( |
) |
[inline] |
virtual gdcm::Writer::~Writer |
( |
) |
[virtual] |
Member Function Documentation
void gdcm::Writer::CheckFileMetaInformationOff |
( |
) |
[inline] |
void gdcm::Writer::CheckFileMetaInformationOn |
( |
) |
[inline] |
File& gdcm::Writer::GetFile |
( |
) |
[inline] |
void gdcm::Writer::SetCheckFileMetaInformation |
( |
bool |
b ) |
[inline] |
void gdcm::Writer::SetFile |
( |
const File & |
f ) |
[inline] |
Set/Get the DICOM file (DataSet + Header)
- Examples:
- ChangeSequenceUltrasound.cxx, ClinicalTrialAnnotate.cxx, CompressImage.cxx, DuplicatePCDE.cxx, FixBrokenJ2K.cxx, GenFakeImage.cxx, GenSeqs.cxx, HelloWorld.cxx, LargeVRDSExplicit.cxx, MergeTwoFiles.cxx, PatchFile.cxx, and rle2img.cxx.
void gdcm::Writer::SetFileName |
( |
const char * |
filename ) |
[inline] |
Set the filename of DICOM file to write:
- Examples:
- ChangeSequenceUltrasound.cxx, ClinicalTrialAnnotate.cxx, CompressImage.cxx, CreateARGBImage.cxx, CreateCMYKImage.cxx, csa2img.cxx, DuplicatePCDE.cxx, EncapsulateFileInRawData.cxx, FixBrokenJ2K.cxx, GenAllVR.cxx, GenFakeIdentifyFile.cxx, GenFakeImage.cxx, GenSeqs.cxx, HelloVizWorld.cxx, HelloWorld.cxx, LargeVRDSExplicit.cxx, MergeTwoFiles.cxx, PatchFile.cxx, and rle2img.cxx.
void gdcm::Writer::SetStream |
( |
std::ostream & |
output_stream ) |
[inline] |
virtual bool gdcm::Writer::Write |
( |
) |
[virtual] |
Main function to tell the writer to write.
Reimplemented in gdcm::ImageWriter, and gdcm::PixmapWriter.
- Examples:
- ChangeSequenceUltrasound.cxx, ClinicalTrialAnnotate.cxx, DuplicatePCDE.cxx, EncapsulateFileInRawData.cxx, FixBrokenJ2K.cxx, GenAllVR.cxx, GenFakeIdentifyFile.cxx, GenSeqs.cxx, HelloWorld.cxx, LargeVRDSExplicit.cxx, PatchFile.cxx, and rle2img.cxx.
Member Data Documentation
The documentation for this class was generated from the following file: