X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Fctndicom.h;h=00604534a598e4f01f76728723355c7f72346e49;hb=HEAD;hp=011df7c867c81ee7619993ab64ff8d84a7ca3876;hpb=134461a6b28beafafdececf7b1f90f4211b56f6b;p=ctsim.git diff --git a/include/ctndicom.h b/include/ctndicom.h index 011df7c..0060453 100644 --- a/include/ctndicom.h +++ b/include/ctndicom.h @@ -1,15 +1,13 @@ /***************************************************************************** ** FILE IDENTIFICATION ** -** Name: ctndicomp.cpp +** Name: ctndicomp.cpp ** Purpose: Interface to CTN Dicom header -** Programmer: Kevin Rosenberg -** Date Started: March 2001 +** Programmer: Kevin Rosenberg +** Date Started: March 2001 ** ** This is part of the CTSim program -** Copyright (c) 1983-2001 Kevin Rosenberg -** -** $Id: ctndicom.h,v 1.4 2001/03/05 21:59:55 kevin Exp $ +** Copyright (c) 1983-2009 Kevin Rosenberg ** ** 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,7 +76,7 @@ private: Projections* m_pProjections; DCM_OBJECT* m_pFile; - void loadImage(unsigned short iNRows, unsigned short iNCols, unsigned short iBitsAllocated, + void loadImage(unsigned short iNRows, unsigned short iNCols, unsigned short iBitsAllocated, unsigned short iBitsStored, unsigned short iHighBit, unsigned short iPixRep); void loadProjections(); @@ -110,21 +108,20 @@ public: class DicomExporter { private: + const ImageFile* m_pImageFile; 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); + DCM_OBJECT* m_pObject; + bool createDicomObject(); public: - DicomExporter (const char* const pszFile, const ImageFile* pImageFile); + DicomExporter (ImageFile* pImageFile); ~DicomExporter(); + bool writeFile (const char* const pszFilename); bool fail() const {return m_bFail;} const std::string& failMessage() const {return m_strFailMessage;} };