1 #ifndef CLITKVOXIMAGEIO_H
2 #define CLITKVOXIMAGEIO_H
4 ===================================================================
5 * @file clitkVoxImageIO.h
6 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
7 * @date 17 May 2006 08:01:35
11 ===================================================================*/
14 #include "clitkCommon.h"
17 #include "itkImageIOBase.h"
24 //====================================================================
25 // Class for reading Vox Image file format
26 class VoxImageIO: public itk::ImageIOBase
29 /** Standard class typedefs. */
30 typedef VoxImageIO Self;
31 typedef itk::ImageIOBase Superclass;
32 typedef itk::SmartPointer<Self> Pointer;
33 typedef signed short int PixelType;
35 VoxImageIO():Superclass() { mustWriteHeader = false; }
37 /** Method for creation through the object factory. */
40 /** Run-time type information (and related methods). */
41 itkTypeMacro(VoxImageIO, ImageIOBase);
43 /*-------- This part of the interface deals with reading data. ------ */
44 virtual void ReadImageInformation();
45 virtual bool CanReadFile( const char* FileNameToRead );
46 virtual void Read(void * buffer);
48 /*-------- This part of the interfaces deals with writing data. ----- */
49 virtual void WriteImageInformation(bool keepOfStream);
50 virtual void WriteImageInformation() { WriteImageInformation(false); }
51 virtual bool CanWriteFile(const char* filename);
52 virtual void Write(const void* buffer);
59 }; // end class VoxImageIO
63 // explicit template instantiation
64 template class itk::CreateObjectFunction<clitk::VoxImageIO>;
66 #endif /* end #define CLITKVOXIMAGEIO_H */