r605: *** empty log message ***
[ctsim.git] / include / ctndicom.h
index 701434b0e0542628040616ae7bd913f78c622733..cbd6a22e20cbeed59d201f023cac245bd949dbb1 100644 (file)
@@ -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_