1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef CLITKHISIMAGEIO_H
19 #define CLITKHISIMAGEIO_H
21 ===================================================================
22 * @file clitkHisImageIO.h
23 * @author Simon Rit <simon.rit@gmail.com>
28 ===================================================================*/
31 #include "itkImageIOBase.h"
35 //====================================================================
36 // Class for reading His Image file format
37 class HisImageIO: public itk::ImageIOBase
40 /** Standard class typedefs. */
41 typedef HisImageIO Self;
42 typedef itk::ImageIOBase Superclass;
43 typedef itk::SmartPointer<Self> Pointer;
44 typedef signed short int PixelType;
46 HisImageIO():Superclass() {;}
48 /** Method for creation through the object factory. */
51 /** Run-time type information (and related methods). */
52 itkTypeMacro(HisImageIO, ImageIOBase);
54 /*-------- This part of the interface deals with reading data. ------ */
55 virtual void ReadImageInformation();
56 virtual bool CanReadFile( const char* FileNameToRead );
57 virtual void Read(void * buffer);
59 /*-------- This part of the interfaces deals with writing data. ----- */
60 virtual void WriteImageInformation(bool keepOfStream) { ; }
61 virtual void WriteImageInformation() { WriteImageInformation(false); }
62 virtual bool CanWriteFile(const char* filename);
63 virtual void Write(const void* buffer);
68 }; // end class HisImageIO
71 // explicit template instantiation
72 //template class itk::CreateObjectFunction<clitk::HisImageIO>;
74 #endif /* end #define CLITKHISIMAGEIO_H */