1 #ifndef CLITKHISIMAGEIO_H
2 #define CLITKHISIMAGEIO_H
5 ===================================================================
6 * @file clitkHisImageIO.h
7 * @author Simon Rit <simon.rit@gmail.com>
12 ===================================================================*/
15 #include "itkImageIOBase.h"
19 //====================================================================
20 // Class for reading His Image file format
21 class HisImageIO: public itk::ImageIOBase
24 /** Standard class typedefs. */
25 typedef HisImageIO Self;
26 typedef itk::ImageIOBase Superclass;
27 typedef itk::SmartPointer<Self> Pointer;
28 typedef signed short int PixelType;
30 HisImageIO():Superclass() {;}
32 /** Method for creation through the object factory. */
35 /** Run-time type information (and related methods). */
36 itkTypeMacro(HisImageIO, ImageIOBase);
38 /*-------- This part of the interface deals with reading data. ------ */
39 virtual void ReadImageInformation();
40 virtual bool CanReadFile( const char* FileNameToRead );
41 virtual void Read(void * buffer);
43 /*-------- This part of the interfaces deals with writing data. ----- */
44 virtual void WriteImageInformation(bool keepOfStream) { ; }
45 virtual void WriteImageInformation() { WriteImageInformation(false); }
46 virtual bool CanWriteFile(const char* filename);
47 virtual void Write(const void* buffer);
52 }; // end class HisImageIO
55 // explicit template instantiation
56 template class itk::CreateObjectFunction<clitk::HisImageIO>;
58 #endif /* end #define CLITKHISIMAGEIO_H */