1 #ifndef CLITKHISIMAGEIO_H
2 #define CLITKHISIMAGEIO_H
4 ===================================================================
5 * @file clitkHisImageIO.h
6 * @author Simon Rit <simon.rit@gmail.com>
11 ===================================================================*/
14 #include "itkImageIOBase.h"
18 //====================================================================
19 // Class for reading His Image file format
20 class HisImageIO: public itk::ImageIOBase
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;
29 HisImageIO():Superclass() {;}
31 /** Method for creation through the object factory. */
34 /** Run-time type information (and related methods). */
35 itkTypeMacro(HisImageIO, ImageIOBase);
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);
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);
51 }; // end class HisImageIO
54 // explicit template instantiation
55 template class itk::CreateObjectFunction<clitk::HisImageIO>;
57 #endif /* end #define CLITKHISIMAGEIO_H */