]> Creatis software - clitk.git/blob - common/clitkHisImageIO.h
removed headers
[clitk.git] / common / clitkHisImageIO.h
1 #ifndef CLITKHISIMAGEIO_H
2 #define CLITKHISIMAGEIO_H
3 /**
4  ===================================================================
5  * @file   clitkHisImageIO.h
6  * @author Simon Rit <simon.rit@gmail.com>
7  * @date   16 Feb 2010
8
9  * @brief  
10
11  ===================================================================*/
12
13 // itk include
14 #include "itkImageIOBase.h"
15
16 namespace clitk {
17   
18   //====================================================================
19   // Class for reading His Image file format
20   class HisImageIO: public itk::ImageIOBase
21   {
22   public: 
23         /** Standard class typedefs. */
24         typedef HisImageIO              Self;
25         typedef itk::ImageIOBase        Superclass;
26         typedef itk::SmartPointer<Self> Pointer;        
27         typedef signed short int        PixelType;
28         
29         HisImageIO():Superclass() {;}
30
31         /** Method for creation through the object factory. */
32         itkNewMacro(Self);
33         
34         /** Run-time type information (and related methods). */
35         itkTypeMacro(HisImageIO, ImageIOBase);
36         
37         /*-------- This part of the interface deals with reading data. ------ */
38         virtual void ReadImageInformation();
39         virtual bool CanReadFile( const char* FileNameToRead );
40         virtual void Read(void * buffer);
41
42         /*-------- This part of the interfaces deals with writing data. ----- */
43         virtual void WriteImageInformation(bool keepOfStream) { ; }
44         virtual void WriteImageInformation() { WriteImageInformation(false); }
45         virtual bool CanWriteFile(const char* filename);
46         virtual void Write(const void* buffer);
47         
48   protected:
49         int m_HeaderSize;
50
51   }; // end class HisImageIO  
52 } // end namespace
53
54   // explicit template instantiation
55 template class itk::CreateObjectFunction<clitk::HisImageIO>;
56
57 #endif /* end #define CLITKHISIMAGEIO_H */
58