X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.h;h=da6ce949ba08d3ac1973821a9b5eb5e500f296d5;hb=31bb4e18ba6804c0d83fc34f11e89adc67271ea9;hp=dcf6f7046c794bede47eda7107b1bb39747efcb2;hpb=71f64e7a420374811ea79d211d5558dd103bcfe8;p=gdcm.git diff --git a/src/gdcmFile.h b/src/gdcmFile.h index dcf6f704..da6ce949 100644 --- a/src/gdcmFile.h +++ b/src/gdcmFile.h @@ -10,14 +10,22 @@ /* * In addition to Dicom header exploration, this class is designed * for accessing the image/volume content. One can also use it to - * write Dicom files. + * write Dicom/ACR-NEMA/RAW files. */ class GDCM_EXPORT gdcmFile { public: gdcmFile(gdcmHeader *header); - gdcmFile(std::string & filename); - gdcmFile(const char * filename); + gdcmFile(std::string & filename, + bool exception_on_error = false, + bool enable_sequences = false, + bool skip_shadow = false); + + gdcmFile(const char * filename, + bool exception_on_error = false, + bool enable_sequences = false, + bool skip_shadow = false); + virtual ~gdcmFile(void); gdcmHeader *GetHeader(void); @@ -89,16 +97,29 @@ private: bool gdcm_read_RLE_file (FILE *fp,void * image_buffer); // Variables - gdcmHeader *Header; // Header to use to load the file + /// Header to use to load the file + gdcmHeader *Header; bool SelfHeader; void* PixelData; - size_t lgrTotaleRaw; // Area length to receive the pixels - size_t lgrTotale; // Area length to receive the RGB pixels - // from Grey Plane + Palette Color + + /// Area length to receive the pixels + size_t lgrTotaleRaw; + + /// Area length to receive the RGB pixels + /// from Grey Plane + Palette Color + size_t lgrTotale; + + /// ==1 if GetImageDataRaw was used + /// ==0 if GetImageData was used + /// ==-1 if ImageData never read + int PixelRead; - int Parsed; // weather already parsed - std::string OrigFileName; // To avoid file overwrite + /// weather already parsed + int Parsed; + + /// To avoid file overwrite + std::string OrigFileName; }; //-----------------------------------------------------------------------------