X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fctndicom.h;h=cbd6a22e20cbeed59d201f023cac245bd949dbb1;hp=701434b0e0542628040616ae7bd913f78c622733;hb=acbdc3e0bc421e5df6fdcea262a66a189d65dad3;hpb=cd93aebb4dec4e0ae88d53f131c2320ae92d0cab diff --git a/include/ctndicom.h b/include/ctndicom.h index 701434b..cbd6a22 100644 --- a/include/ctndicom.h +++ b/include/ctndicom.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: ctndicom.h,v 1.2 2001/03/02 02:08:14 kevin Exp $ +** $Id: ctndicom.h,v 1.3 2001/03/05 15:10:58 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -78,5 +78,27 @@ public: Projections* getProjections() const {return m_pProjections;} }; + +class DicomExporter { +private: + std::string m_strFilename; + bool m_bFail; + std::string m_strFailMessage; + const ImageFile* m_pImageFile; + DCM_OBJECT* m_pFile; + + void saveImage (unsigned short iNRows, unsigned short iNCols, unsigned short iBitsAllocated, + unsigned short iBitsStored, unsigned short iHighBit, unsigned short iPixRep); + + +public: + + DicomExporter (const char* const pszFile, const ImageFile* pImageFile); + ~DicomExporter(); + + bool fail() const {return m_bFail;} + const std::string& failMessage() const {return m_strFailMessage;} +}; + #endif // HAVE_CTN_DICOM #endif // _CTNDICOM_H_