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://oncora1.lyon.fnclcc.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 CLITKVOXIMAGEIO_H
19 #define CLITKVOXIMAGEIO_H
21 ===================================================================
22 * @file clitkVoxImageIO.h
23 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
24 * @date 17 May 2006 08:01:35
28 ===================================================================*/
31 #include "clitkCommon.h"
34 #include "itkImageIOBase.h"
41 //====================================================================
42 // Class for reading Vox Image file format
43 class VoxImageIO: public itk::ImageIOBase
46 /** Standard class typedefs. */
47 typedef VoxImageIO Self;
48 typedef itk::ImageIOBase Superclass;
49 typedef itk::SmartPointer<Self> Pointer;
50 typedef signed short int PixelType;
52 VoxImageIO():Superclass() { mustWriteHeader = false; }
54 /** Method for creation through the object factory. */
57 /** Run-time type information (and related methods). */
58 itkTypeMacro(VoxImageIO, ImageIOBase);
60 /*-------- This part of the interface deals with reading data. ------ */
61 virtual void ReadImageInformation();
62 virtual bool CanReadFile( const char* FileNameToRead );
63 virtual void Read(void * buffer);
65 /*-------- This part of the interfaces deals with writing data. ----- */
66 virtual void WriteImageInformation(bool keepOfStream);
67 virtual void WriteImageInformation() { WriteImageInformation(false); }
68 virtual bool CanWriteFile(const char* filename);
69 virtual void Write(const void* buffer);
76 }; // end class VoxImageIO
80 // explicit template instantiation
81 //template class itk::CreateObjectFunction<clitk::VoxImageIO>;
83 #endif /* end #define CLITKVOXIMAGEIO_H */