]> Creatis software - gdcm.git/blobdiff - src/gdcmPixelWriteConvert.h
Fix mistypings
[gdcm.git] / src / gdcmPixelWriteConvert.h
index bbdcad271068e231810a184a0b3afd09b9d1cff4..8764adf0c2dc1f43c686c9bcf807b3ce4b1168d9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelWriteConvert.h,v $
   Language:  C++
-  Date:      $Date: 2005/10/23 15:09:19 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2007/08/22 16:14:04 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 =========================================================================*/
 
 
-#ifndef GDCMPIXELWRITECONVERT_H
-#define GDCMPIXELWRITECONVERT_H
+#ifndef _GDCMPIXELWRITECONVERT_H_
+#define _GDCMPIXELWRITECONVERT_H_
 
 #include "gdcmCommon.h"
 #include "gdcmBase.h"
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 /**
  * \brief Utility container for gathering the various forms the pixel data
@@ -31,6 +31,7 @@ namespace gdcm
  * \warning None of the methods may be called by end user (they have no
  *          meaning outside the class FileHelper)
  */
+class File;
 class GDCM_EXPORT PixelWriteConvert : public Base
 {
 friend class FileHelper;
@@ -40,13 +41,13 @@ private:
    virtual ~PixelWriteConvert();
 
    // Set/Get of images and their size
-   
    void SetReadData(uint8_t *data, size_t size);
    /// \brief returns ReadData
    uint8_t *GetReadData() { return ReadData; }
    /// \brief returns ReadDataSize
    size_t   GetReadDataSize() { return ReadDataSize; }
 
+   /// \brief Set UserData
    void SetUserData(uint8_t *data, size_t size);
    /// \brief returns UserData
    uint8_t *GetUserData() { return UserData; }
@@ -57,6 +58,8 @@ private:
    uint8_t *GetData();
    size_t   GetDataSize();
 
+   void SetCompressJPEG2000UserData(uint8_t *data, size_t size, File *image);
+   void SetCompressJPEGUserData(uint8_t *data, size_t size, File *image);
 
 // Variables
    /// Pixel data represented as RGB after LUT color interpretation.
@@ -68,6 +71,9 @@ private:
    uint8_t *UserData;
    /// Size of User image.
    size_t   UserDataSize;
+
+   /// Whether we want to write compressed or not
+   bool Compressed;
 };
 } // end namespace gdcm