** 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
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_