Orfeo Toolbox  3.16
itkBrains2MaskImageIO.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkBrains2MaskImageIO.h,v $
5  Language: C++
6  Date: $Date: 2008-05-08 15:28:19 $
7  Version: $Revision: 1.11 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 
18 #ifndef __itkBrains2MaskImageIO_h
19 #define __itkBrains2MaskImageIO_h
20 
21 #ifdef _MSC_VER
22 #pragma warning(disable:4786)
23 #endif
24 
25 #include <fstream>
26 #include "itkImageIOBase.h"
28 #include "itkOctree.h"
29 
30 namespace itk
31 {
59 {
60 public:
65 
67  itkNewMacro(Self);
68 
70  itkTypeMacro(Brains2MaskImageIO, Superclass);
71 
72  /*-------- This part of the interfaces deals with reading data. ----- */
73 
80  virtual bool CanReadFile(const char* FileNameToRead);
81 
83  virtual void ReadImageInformation();
84 
86  virtual void Read(void* buffer);
87 
88  /*-------- This part of the interfaces deals with writing data. ----- */
89 
96  virtual bool CanWriteFile(const char * FileNameToWrite);
97 
99  virtual void WriteImageInformation();
100 
103  virtual void Write(const void* buffer);
104 
105 
106 protected:
109  void PrintSelf(std::ostream& os, Indent indent) const;
110 private:
111  Brains2MaskImageIO(const Self&); //purposely not implemented
112  void operator=(const Self&); //purposely not implemented
113  itk::OctreeNodeBranch * readOctree (
114  std::ifstream & octreestream,
115  const ImageIOBase::ByteOrder machineByteOrder,
116  const ImageIOBase::ByteOrder fileByteOrder);
118 
122 };
123 
124 } // end namespace itk
125 
126 #endif // __itkBrains2MaskImageIO_h

Generated at Sat Feb 2 2013 23:30:29 for Orfeo Toolbox with doxygen 1.8.1.1